* "call" now sets some useful debugger variables, like _argX for all arguments,

and _frame for the stack frame.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23849 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2008-02-03 18:04:25 +00:00
parent dc6e60ec93
commit 08f2fdac37

View File

@ -9,6 +9,7 @@
#include <arch/debug.h>
#include <stdio.h>
#include <stdlib.h>
#include <debug.h>
@ -376,10 +377,17 @@ print_call(struct thread *thread, addr_t eip, addr_t ebp, addr_t nextEbp,
kprintf("%#lx", *arg);
if (*arg > -0x10000 && *arg < 0x10000)
kprintf(" (%ld)", *arg);
char name[8];
snprintf(name, sizeof(name), "_arg%ld", i + 1);
set_debug_variable(name, *(uint32 *)arg);
arg++;
}
kprintf(")\n");
set_debug_variable("_frame", nextEbp);
}