Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152691317
D2858.id7157.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
880 B
Referenced Files
None
Subscribers
None
D2858.id7157.diff
View Options
Index: head/sys/ddb/db_examine.c
===================================================================
--- head/sys/ddb/db_examine.c
+++ head/sys/ddb/db_examine.c
@@ -232,9 +232,13 @@
void
db_print_loc_and_inst(db_addr_t loc)
{
+ db_expr_t off;
+
db_printsym(loc, DB_STGY_PROC);
- db_printf(":\t");
- (void) db_disasm(loc, true);
+ if (db_search_symbol(loc, DB_STGY_PROC, &off) != C_DB_SYM_NULL) {
+ db_printf(":\t");
+ (void)db_disasm(loc, true);
+ }
}
/*
Index: head/sys/ddb/db_main.c
===================================================================
--- head/sys/ddb/db_main.c
+++ head/sys/ddb/db_main.c
@@ -110,7 +110,7 @@
diff = ~0UL;
match = NULL;
for (sym = (Elf_Sym*)symtab->start; (char*)sym < symtab->end; sym++) {
- if (sym->st_name == 0)
+ if (sym->st_name == 0 || sym->st_shndx == SHN_UNDEF)
continue;
if (off < sym->st_value)
continue;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 17, 1:13 PM (21 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31661468
Default Alt Text
D2858.id7157.diff (880 B)
Attached To
Mode
D2858: ddb: don't return undefined symbols to a lookup
Attached
Detach File
Event Timeline
Log In to Comment