This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: shlibs/1470: ELF_LINK_POINTER_EQUALITY_NEEDED breaks shlib-call.exp
- From: Jakub Jelinek <jakub at redhat dot com>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 27 Nov 2003 18:28:00 -0000
- Subject: Re: shlibs/1470: ELF_LINK_POINTER_EQUALITY_NEEDED breaks shlib-call.exp
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
The following reply was made to PR shlibs/1470; it has been noted by GNATS.
From: Jakub Jelinek <jakub@redhat.com>
To: mec.gnu@mindspring.com
Cc: gdb-gnats@sources.redhat.com, drow@mvista.com
Subject: Re: shlibs/1470: ELF_LINK_POINTER_EQUALITY_NEEDED breaks shlib-call.exp
Date: Thu, 27 Nov 2003 13:25:47 -0500
> This patch appears to be just an optimization, so at worst, it could just
> be backed out. More likely, there are just more cases where
> ELF_LINK_POINTER_EQUALITY_NEEDED must be set. Or maybe gdb needs to be
> made smarter?
IMNSHO gdb just needs to be smarter. Ideally, it should use dynamic linker
or a special library for talking to the dynamic linker like
libthread_db.so.0 queries libpthread. But even without that, it can
trivially see that the .dynsym symbol in the binary has st_value == 0
and set a breakpoint directly at the routine in the shared library in that
case.
Jakub