Implement db_trace_self() by calling db_stack_trace_cmd()

and not db_trace_thread().
This commit is contained in:
Marcel Moolenaar 2009-11-05 06:23:02 +00:00
parent c2ef543ba1
commit faa7ba7a3f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=198942

View File

@ -207,5 +207,8 @@ db_trace_thread(struct thread *thr, int count)
void
db_trace_self(void)
{
db_trace_thread(curthread, -1);
db_addr_t addr;
addr = (db_addr_t)__builtin_frame_address(1);
db_stack_trace_cmd(addr, -1);
}