diff options
author | srinivas <devnull@localhost> | 1998-05-01 19:47:14 +0000 |
---|---|---|
committer | srinivas <devnull@localhost> | 1998-05-01 19:47:14 +0000 |
commit | efbb1092d30138e0c17ce55efe3283ded6a1007d (patch) | |
tree | 88d740818b0567522fd036c8bdfbba35844415e7 | |
parent | 3ad67ac6ce693909c671b5757c07d4ecfacb58a2 (diff) | |
download | nspr-hg-efbb1092d30138e0c17ce55efe3283ded6a1007d.tar.gz |
Set up pointers to the stack-pointer/frame-pointer words in the thread's
context structure. Useful for displaying thread stacks in the debugger.
-rw-r--r-- | pr/src/md/unix/linux.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pr/src/md/unix/linux.c b/pr/src/md/unix/linux.c index 7cea2542..637044cc 100644 --- a/pr/src/md/unix/linux.c +++ b/pr/src/md/unix/linux.c @@ -56,6 +56,12 @@ _MD_SET_PRIORITY(_MDThread *thread, PRUintn newPri) PRStatus _MD_InitializeThread(PRThread *thread) { + /* + * set the pointers to the stack-pointer and frame-pointer words in the + * context structure; this is for debugging use. + */ + thread->md.sp = _MD_GET_SP_PTR(thread); + thread->md.fp = _MD_GET_FP_PTR(thread); return PR_SUCCESS; } |