This is the mail archive of the
mailing list for the GDB project.
Re: [RFC] Gdb line table implementation tweak
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: fnf at redhat dot com
- Cc: gdb-patches at sources dot redhat dot com
- Date: Wed, 13 Feb 2002 10:10:20 -0500
- Subject: Re: [RFC] Gdb line table implementation tweak
- References: <200202130028.g1D0StM11730@fred.ninemoons.com>
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 <email@example.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