This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Regression caused by elfread.c patch
- To: gdb at sourceware dot cygnus dot com
- Subject: Regression caused by elfread.c patch
- From: Mark Kettenis <kettenis at wins dot uva dot nl>
- Date: Mon, 14 Feb 2000 23:06:36 +0100
- CC: kingdon at redhat dot com
Hi,
The following patch seems to be wrong:
2000-01-17 Amit S. Kale <akale@veritas.com>
* elfread.c (elf_symtab_read): Use offset for the section in which a
symbol resides, instead of .text section for calculating address of a
symbol.
Checked in by Jim Kingdon <kingdon@redhat.com>
The memory address for some functions is no longer correct.
On Linux (with glibc) vfprintf is a strong alias for _IO_vfprintf.
Setting a breakpoint on _IO_vfprintf still works (probably because
stabs debugging information is present for this symbol), but setting a
breakpoint on vfprintf fails with:
(gdb) b vfprintf
Cannot access memory at address 0x45641
I've no idea how to fix this :-(.
Mark