The "thread" debugger command now also accepts an address for the thread structure.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14308 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -548,7 +548,7 @@ dump_thread_info(int argc, char **argv)
|
|||||||
bool found = false;
|
bool found = false;
|
||||||
|
|
||||||
if (argc > 2) {
|
if (argc > 2) {
|
||||||
kprintf("usage: thread [id/name]\n");
|
kprintf("usage: thread [id/address/name]\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -558,6 +558,12 @@ dump_thread_info(int argc, char **argv)
|
|||||||
} else {
|
} else {
|
||||||
name = argv[1];
|
name = argv[1];
|
||||||
id = strtoul(argv[1], NULL, 0);
|
id = strtoul(argv[1], NULL, 0);
|
||||||
|
|
||||||
|
if (IS_KERNEL_ADDRESS(id)) {
|
||||||
|
// semi-hack
|
||||||
|
_dump_thread_info((struct thread *)id);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// walk through the thread list, trying to match name or id
|
// walk through the thread list, trying to match name or id
|
||||||
|
|||||||
Reference in New Issue
Block a user