This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: shlibs/1470: ELF_LINK_POINTER_EQUALITY_NEEDED breaks shlib-call.exp


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]