Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F137475972
D27828.id81344.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
602 B
Referenced Files
None
Subscribers
None
D27828.id81344.diff
View Options
Index: sys/ddb/db_thread.c
===================================================================
--- sys/ddb/db_thread.c
+++ sys/ddb/db_thread.c
@@ -114,7 +114,6 @@
{
struct thread *td;
db_expr_t decaddr;
- struct proc *p;
/*
* If the parsed address was not a valid decimal expression,
@@ -128,10 +127,9 @@
if (td != NULL)
return (td);
if (check_pid) {
- LIST_FOREACH(p, PIDHASH(decaddr), p_hash) {
- if (p->p_pid == decaddr)
- return (FIRST_THREAD_IN_PROC(p));
- }
+ td = kdb_thr_from_pid(decaddr);
+ if (td != NULL)
+ return (td);
}
return ((struct thread *)addr);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 24, 7:49 PM (1 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26072771
Default Alt Text
D27828.id81344.diff (602 B)
Attached To
Mode
D27828: Use kdb_thr_from_pid() in db_lookup_thread().
Attached
Detach File
Event Timeline
Log In to Comment