This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Line Table Problems
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Andrew Burgess <aburgess at broadcom dot com>
- Cc: "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Thu, 6 Oct 2011 22:18:39 +0200
- Subject: Re: Line Table Problems
- References: <4E8C4CD2.9070703@broadcom.com>
On Wed, 05 Oct 2011 14:25:54 +0200, Andrew Burgess wrote:
> My question then is, am I doing something wrong, what could I do
> differently to get gdb to give me the full file/line-number
> information, or does this look like a gdb bug?
I am not posting a fix, just that you guessed the reason right and it is due
to that mode `3' you use there:
if (mode & 0x1)
disasm_flags |= DISASSEMBLY_SOURCE;
which is the same as /m for the CLI `disassemble' command which is filed as:
[Bug gdb/11833] New: disassemble/m should be PC-driven, not source line driven
http://sourceware.org/bugzilla/show_bug.cgi?id=11833
Thanks,
Jan