This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Does gdb support weak/normal symbols?
- From: Daniel Jacobowitz <drow at false dot org>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: GDB <gdb at sources dot redhat dot com>
- Date: Sun, 15 Jan 2006 20:49:04 -0500
- Subject: Re: Does gdb support weak/normal symbols?
- References: <20060116004831.GA1186@lucon.org>
On Sun, Jan 15, 2006 at 04:48:31PM -0800, H. J. Lu wrote:
> foo in weak.c isn't in the symbol table. But gdb sets the breakpoint
> of foo on it. Shouldn't gdb be clever enough to know to check the
> other one?
GDB uses the debug information in preference to the ELF symbol table.
That one says this is a definition of foo.
Eventually "break foo" will breakpoint both of them.
--
Daniel Jacobowitz
CodeSourcery