Set up pointers to the stack-pointer/frame-pointer words in the thread's

context structure. Useful for displaying thread stacks in the debugger.
This commit is contained in:
srinivas 1998-05-01 19:47:14 +00:00
Родитель 95833fac88
Коммит 6489acef21
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -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;
}