This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: %ebp-based backtrace patch


On Wed, Jul 08, 2009 at 11:01:16AM +0200, Mark Kettenis wrote:
> Before comitting this diff, I ran the testsuite, and noticed a
> regression.  The problem is that if you do a function call through a
> null-function-pointer or an otherwise corrupt function pointer, and
> get a SIGSEGV, the backtrace no longer shows the frame that did the
> function call.
> 
> Until we come up with a way to fix this issue, I'm not going to commit
> the diff.

Hmm.  if (target_read_memory (pc, buf, 1)) ?  That's how a similar
issue is handled on ARM, in arm_stub_unwind_sniffer.

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]