Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142009964
D2858.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.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
Thu, Jan 15, 9:14 PM (4 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27654880
Default Alt Text
D2858.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