This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] problem fetching inferior memory due to breakpoint
On Sat, Apr 29, 2006 at 05:13:49PM +0300, Eli Zaretskii wrote:
> Here's what I get (from the .s file written by the above GCC command):
>
> .file "gdbt.c"
> .section .debug_abbrev,"dr"
> Ldebug_abbrev0:
> .section .debug_info,"dr"
> Ldebug_info0:
> .section .debug_line,"dr"
> Ldebug_line0:
> .text
> Ltext0:
> .section .rdata,"dr"
> LC0:
> .ascii "Hello world.\12\0"
> .text
> .globl _hello
> .def _hello; .scl 2; .type 32; .endef
> _hello:
> LFB10:
> .file 1 "gdbt.c"
> .loc 1 5 0
> pushl %ebp
That's why. Your Cygwin compiler uses DWARF-2 unwinding; therefore the
prologue analyzer is never even invoked. Try using -gstabs instead of
-gdwarf-2 (or not using -g at all), and I bet you'll see the problem.
--
Daniel Jacobowitz
CodeSourcery