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: patch to add QNX NTO i386 support


   From: "Kris Warkentin" <kewarken@qnx.com>
   Date: Wed, 5 Feb 2003 16:42:32 -0500

   > > You'll also need to find a way to distinguish QNX binaries from other
   > > OS'es.  The hardware breakpoint stuff will have to be moved to the
   > > nm.h.  Most of the other stuff shouldn't be necessary or should be
   > > moved there too.
   >
   > Okay.  Not sure how but I'll look into it.  Once I've done that, do I
   > register an osabi_sniffer to determine the binary?

   I don't think this is going to work.  Our binaries are very generic elf with
   no special sections or anything to distinguish them.

In that case you'll have to provide a default OS/ABI for your target.
Add something like:

*-*-nto*)     gdb_osabi=GDB_OSABI_QNX ;;

to the appropriate case-statement at the end of configure.tgt.

   The only way to tell that we're targetting a qnx binary will be when
   someone types 'target qnx ...'.  Is it acceptable to have the
   gdbarch stuff come into play when someone does that targetting?

I'm not sure.  If the "qnx" protocol implies that the OS/ABI is QNX,
this would make sense to me, but there are other people on this list
that could judge better.

Mark


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