This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: -symbol-list-lines
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb at sources dot redhat dot com
- Date: Mon, 16 Feb 2004 15:45:16 -0500
- Subject: Re: -symbol-list-lines
- References: <20040216204035.GD3978@white>
On Mon, Feb 16, 2004 at 03:40:35PM -0500, Bob Rossi wrote:
> I am seeing 2 potential problems,
>
> Several lines come back as {pc="0x08048406",line="0"},
> should the value "0" be documented? or is it a bug?
>
> Also, for some reason, a value is repeated
> {pc="0x0804849c",line="38"}. Is this ok?
I can't say anything about what is appropriate (or useful) for the MI
interface but I can tell you what's going on. This matches the
structure of the internal line table precisely.
- line 0 means end-of-sequence. I.E. PCs greater than 0x8048406 that
don't have a new starting line do not belong to this line number table.
- duplicated line numbers are emitted by the compiler to mark, mostly,
the ends of prologues. Sometimes the prologue is zero-sized.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer