Re: [RFC] Gdb line table implementation tweak

Daniel Jacobowitz
2002-02-13T15:10:25Z

On Tue, Feb 12, 2002 at 05:28:55PM -0700, Fred Fish wrote:
> The implementation of gdb's line number table can cause gdb to give
> misleading results when some parts of a program are compiled with
> debugging enabled and other parts are not. Here is an example:

I like this patch; I like it a lot. It fixes a problem I've described
on the lists several times now involving libstdc++. I'm not sure it
will fix all my problems, given that texthigh/textlow for the psymtabs
are still used in various places and will be incorrect; but it should
be purely an improvement.

This should fix the problem we were attempting to solve in:

2001-11-13 Jim Blandy <jimb@redhat.com>

...

Patch from Peter Schauer:

* symtab.c (find_pc_sect_line): If we can't find the function
containing PC, we certainly won't have line number information for
that location, so return zero immediately.

Which had to be reverted for breaking assembly language debugging.

--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer