This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: Regression caused by elfread.c patch
- To: Mark Kettenis <kettenis at wins dot uva dot nl>, gdb at sourceware dot cygnus dot com
- Subject: Re: Regression caused by elfread.c patch
- From: "Amit S. Kale" <akale at veritas dot com>
- Date: Tue, 15 Feb 2000 09:45:56 +0530
- Cc: kingdon at redhat dot com
- Organization: Veritas Software (India)
- References: <200002142206.e1EM6a310093@delius.kettenis.local>
Hi,
That was because Jim didn't checkin my patch correctly.
He has fixed it now.
On Tue, 15 Feb 2000, Mark Kettenis wrote:
> 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
--
Amit Kale
Veritas Software ( http://www.veritas.com )