Regression caused by elfread.c patch
Mark Kettenis
kettenis@wins.uva.nl
Sat Apr 1 00:00:00 GMT 2000
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
More information about the Gdb
mailing list