This is the mail archive of the gdb-patches@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: Assume solib.h


   Date: Thu, 11 Nov 2004 16:46:54 -0500
   From: Andrew Cagney <cagney@gnu.org>

   Mark Kettenis wrote:
   >    Date: Thu, 11 Nov 2004 14:38:08 -0500
   >    From: Andrew Cagney <cagney@gnu.org>
   > 
   >    Joseph, Kevin,
   > 
   >    The attached patch illustrates the minimum needed to enable solibs for 
   >    Solaris.  It just needs to be filled out so that other systems are 
   >    updated like I did for PPC linux (hint, hint ;-)
   > 
   >    Once this is in place we can follow through with other cleanups - much 
   >    will fall out!
   > 
   >    There's just one non-technical nit.
   > 
   >    It means breaking non solib.[hc] shared library systems.  Kevin 
   >    indicated that there were two - AIX and HP/UX remaining.  I think we can 
   >    live with that - we've patiently waited for what, more than two years 
   >    for nothing to happen, so it is now time to give things that gentle push.
   > 
   > IIRC (and looking at the code I think I do remember it correctly) this
   > also breaks targets without shared library support.

   I gave it a full test with PowerPC GNU/Linux and sniff test with 
   powerpc-elf.  If there are other problems, I'm sure they'll be sorted out.

Really?

fork-child.c:fork_inferior() 
    ||
    \/
SOLIB_CREATE_INFERIOR_HOOK
    ||
    \/
solib.c:solib_create_inferior_hook()
    ||
    \/
TARGET_SO_SOLIB_CREATE_INFERIOR_HOOK
    ||
    \/
current_target_so_ops->solib_create_inferior_hook()

which, if you don't include any of:

   solib-aix5.c
   solib-frv.c
   solib-irix.c
   solib-osf.c
   solib-sunos.c
   solib-svr4.c

is a null pointer.

Sorry Andrew, but if you want this to go in, you'll have to fix it.
(Of course I might do that myself to get OpenBSD/mips64 working again).

Mark


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