This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: patch to add QNX NTO i386 support
Okay. I've got all our config files down to what's below. Not much left to
them. Andrew had wanted me to submit separate native and remote patches but
I can't figure out how to do that. We would never build a native only gdb -
we always support the remote protocol as well - so I'm at a loss for how to
get it to NOT compile the remote-nto.c file.
As you can see, I've got the common stuff separated into nto-tdep.c and
i386-nto-tdep.c which will be used by both remote-nto.c and nto-procfs.c.
The problem seems to be that when I build a native debugger, it includes the
stuff from i386nto.mt as well. I'm thinking that I want NATDEPFILES and
TDEPFILES to both have the *nto-tdep in them but then where does the
remote-nto.c go? Any help?
cheers,
Kris
>>>>>>i386nto.mt<<<<<<<<<
# Target: Intel 386 running qnx6
TDEPFILES= i386-tdep.o i387-tdep.o corelow.o solib.o solib-svr4.o \
i386-nto-tdep.o nto-tdep.o remote-nto.o
TM_FILE= tm-i386nto.h
>>>>>>nm-nto.h<<<<<<<<<
#ifndef _NM_NTO_H
#define _NM_NTO_H
/* I'll be getting rid of this... */
#define QNX_TARGET_CPUTYPE CPUTYPE_X86
#endif /* _NM_NTO_H */
>>>>>>nto.mh<<<<<<<<<
# Host: Intel 386 running QNX
NAT_FILE= nm-nto.h
NATDEPFILES= nto-procfs.o nto-tdep.o
>>>>>>tm-i386nto.h<<<<<<<<<
#ifndef TM_I386NTO_H
#define TM_I386NTO_H 1
/* Pick up most of what we need from the generic i386 target include file.
*/
#include "i386/tm-i386.h"
#include "tm-qnxnto.h"
#define HANDLE_SVR4_EXEC_EMULATORS 1
#include "solib.h" /* shared lib support */
#endif /* ifndef TM_I386QNX_H */
>>>>>>tm-nto.h<<<<<<<<<
#include "tm-i386.h"
#include "config/tm-qnxnto.h"
/* This is the amount to subtract from u.u_ar0
to get the offset in the core file of the register values. */
#define KERNEL_U_ADDR 0xe0000000