Date: Thu, 7 Jun 2001 16:23:26 -0400 (EDT) From: Andrew Gallatin <gallatin@cs.duke.edu> To: freebsd-alpha@freebsd.org Cc: dfr@nlsystems.com, mjacob@feral.com Subject: CFR: db_trace.c from NetBSD Message-ID: <15135.58046.974661.129491@grasshopper.cs.duke.edu>
next in thread | raw e-mail | index | archive | help
I'd like to update our db_trace.c to use Ross Harvey's clever NetBSD traceback methods. The advantages are that we get a _lot_ more info. This: db> tr Debugger() at Debugger+0x34 panic() at panic+0x178 witness_lock() at witness_lock+0x240 vm_fault() at vm_fault+0x108 trap() at trap+0xfc8 XentMM() at XentMM+0x2c --- memory management fault (from ipl 7) --- hardclock() at hardclock+0x308 handleclock() at handleclock+0x22c alpha_clock_interrupt() at alpha_clock_interrupt+0x68 interrupt() at interrupt+0xb8 XentInt() at XentInt+0x28 --- interrupt (from ipl 0) --- siocntxwait() at siocntxwait+0x50 siocnclose() at siocnclose+0x30 siocnputc() at siocnputc+0x98 cnputc() at cnputc+0x4c putchar() at putchar+0xf4 kvprintf() at kvprintf+0xcc printf() at printf+0xac printtrap() at printtrap+0x100 trap() at trap+0x1214 XentMM() at XentMM+0x2c --- memory management fault --- vm_fault1() at vm_fault1+0x1d8 vm_fault() at vm_fault+0x204 trap() at trap+0xfc8 XentMM() at XentMM+0x2c --- memory management fault --- pmap_insert_entry() at pmap_insert_entry+0x6c pmap_enter_quick() at pmap_enter_quick+0x1f4 pmap_object_init_pt() at pmap_object_init_pt+0x198 vm_map_insert() at vm_map_insert+0x344 elf_load_section() at elf_load_section+0x32c exec_elf_imgact() at exec_elf_imgact+0x4f8 execve() at execve+0x274 syscall() at syscall+0x6f8 XentSys() at XentSys+0x64 --- syscall (59, FreeBSD ELF.execve) --- --- user mode --- VS this: Debugger() at Debugger+0x34 panic() at panic+0x178 witness_lock() at witness_lock+0x240 vm_fault() at vm_fault+0x108 trap() at trap+0xfc8 XentMMlgp() at XentMM+0x2c The downside is that we have to convert to more traceback friendly temporary labels in kernel entry points. I've left a patch at http://people.freebsd.org/~gallatin/ddb.diff for your perusal. Cheers, Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15135.58046.974661.129491>