Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F166484190
D1173.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D1173.diff
View Options
Index: sys/powerpc/powerpc/db_trace.c
===================================================================
--- sys/powerpc/powerpc/db_trace.c
+++ sys/powerpc/powerpc/db_trace.c
@@ -135,9 +135,6 @@
db_backtrace(struct thread *td, db_addr_t fp, int count)
{
db_addr_t stackframe, lr, *args;
- db_expr_t diff;
- c_db_sym_t sym;
- const char *symname;
boolean_t kernel_only = TRUE;
boolean_t full = FALSE;
@@ -265,16 +262,8 @@
print_trap:
lr = (db_addr_t) tf->srr0;
- diff = 0;
- symname = NULL;
- sym = db_search_symbol(lr, DB_STGY_ANY, &diff);
- db_symbol_values(sym, &symname, 0);
- if (symname == NULL || !strcmp(symname, "end")) {
- db_printf("%#zx: srr1=%#zx\n", lr, tf->srr1);
- } else {
- db_printf("%s+%#zx: srr1=%#zx\n", symname, diff,
- tf->srr1);
- }
+ db_printsym(lr, DB_STGY_ANY);
+ db_printf(": srr1=%#x\n", tf->srr1);
db_printf("%-10s r1=%#zx cr=%#x xer=%#x ctr=%#zx",
"", tf->fixreg[1], (uint32_t)tf->cr,
(uint32_t)tf->xer, tf->ctr);
@@ -288,14 +277,8 @@
goto next_frame;
}
- diff = 0;
- symname = NULL;
- sym = db_search_symbol(lr, DB_STGY_ANY, &diff);
- db_symbol_values(sym, &symname, 0);
- if (symname == NULL || !strcmp(symname, "end"))
- db_printf("at %zx", lr);
- else
- db_printf("at %s+%#zx", symname, diff);
+ db_printf("at ");
+ db_printsym(lr, DB_STGY_PROC);
if (full)
/* Print all the args stored in that stackframe. */
db_printf("(%zx, %zx, %zx, %zx, %zx, %zx, %zx, %zx)",
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Aug 14, 7:49 PM (1 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36753628
Default Alt Text
D1173.diff (1 KB)
Attached To
Mode
D1173: Use db_printsym() instead of our own in backtraces
Attached
Detach File
Event Timeline
Log In to Comment