This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Fix "break foo" when `foo's prologue ends before line table
- From: Daniel Jacobowitz <drow at false dot org>
- To: Eli Zaretskii <eliz at gnu dot org>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 11 May 2009 15:42:47 -0400
- Subject: Re: [RFA] Fix "break foo" when `foo's prologue ends before line table
- References: <83skjebbef.fsf@gnu.org>
On Sat, May 09, 2009 at 05:26:16PM +0300, Eli Zaretskii wrote:
> Note that the lineinfo table for the program starts at line 6 at PC
> 0x1748, whereas the function `main' begins at PC 0x172c.
Is this really what the coff file says? If so, it is a bug in GCC.
If we're at 0x172c, GDB should be able to show which line we're on,
and we're definitely on some line of main.
Is it possible to patch this up in the coff line table reader?
--
Daniel Jacobowitz
CodeSourcery