This is the mail archive of the gdb@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: [RFC] Time for a shared linux-nat.c module?


   From: Michael Snyder <msnyder@redhat.com>
   Date: Tue, 23 Apr 2002 13:21:22 -0700

   I notice that there are now a bunch of <arch>-linux-tdep.c 
   modules, and that some of them share a bunch of duplicate code.  
   
   I'm wondering if it isn't time to create a linux-nat.c module, 
   shared by all host architectures, into which we can move
   some of this code instead of maintaining separate, duplicate
   versions.
   
The code won't be even Linux specific, I think.

For example the dynamic linker checks are glibc specific.
The commentary refers to it as the "Hurd" resolver, but
in fact it is more of a glibc thing than anything else.

${cpu}_linux_skip_solib_resolver is what I'm specifically talking
about and we can put that as glibc_skip_solib_resolver in glibc-tdep.c
or something like that.

The rest doesn't look all that sharable, as they deal with signal
frame specifics which are quite CPU dependent.


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