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:
Axel Dörfler
2005-10-06 08:40:35 +00:00
parent 7dc1c65f2f
commit 8d3256a4ad
+7 -1
View File
@@ -548,7 +548,7 @@ dump_thread_info(int argc, char **argv)
bool found = false;
if (argc > 2) {
kprintf("usage: thread [id/name]\n");
kprintf("usage: thread [id/address/name]\n");
return 0;
}
@@ -558,6 +558,12 @@ dump_thread_info(int argc, char **argv)
} else {
name = argv[1];
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