Bugzilla – Attachment 217718 Details for
Bug 390722
gdb - backtrace grace ?
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Forgot Password
[patch]
make gdb print %ebp based backtraces
fix-gdb-backtrace.diff (text/plain), 763 bytes, created by
Michael Matz
on 2008-05-23 09:11:22 UTC
(
hide
)
Description:
make gdb print %ebp based backtraces
Filename:
MIME Type:
Creator:
Michael Matz
Created:
2008-05-23 09:11:22 UTC
Size:
763 bytes
patch
obsolete
>Index: gdb/i386-tdep.c >=================================================================== >RCS file: /cvs/src/src/gdb/i386-tdep.c,v >retrieving revision 1.258 >diff -u -p -r1.258 i386-tdep.c >--- gdb/i386-tdep.c 16 May 2008 00:27:23 -0000 1.258 >+++ gdb/i386-tdep.c 23 May 2008 09:03:05 -0000 >@@ -1234,11 +1234,13 @@ i386_frame_cache (struct frame_info *thi > /* This will be added back below. */ > cache->saved_regs[I386_EIP_REGNUM] -= cache->base; > } >- else >+ else if (cache->pc) > { > get_frame_register (this_frame, I386_ESP_REGNUM, buf); > cache->base = extract_unsigned_integer (buf, 4) + cache->sp_offset; > } >+ else >+ cache->saved_regs[I386_EBP_REGNUM] = 0; > } > > /* Now that we have the base address for the stack frame we can
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 390722
:
215511
| 217718 |
217741
|
247826