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] Remove some empty lines from the linetable


On Mon, Oct 01, 2007 at 01:49:43PM -0700, Joel Brobecker wrote:
> There is one thing I am not sure about, though. In your patch,
> you still add the end-of-sequence marker. So you eliminate the
> empty line 58, but keep it's associated line 0 entry. I guess
> we have to in the following case:
> 
>   line 57 @ 0x1234
>   line 58 @ 0x1240
>   line 0  @ 0x1240
> 
> We need this because otherwise we'd record the wrong end-address
> for line 57.

Right.  Sometimes we end up with two zeros in a row this way, which is
useless and ugly but harmless.

-- 
Daniel Jacobowitz
CodeSourcery


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