From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24313 invoked by alias); 12 Feb 2003 22:18:39 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 24120 invoked from network); 12 Feb 2003 22:18:38 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by 172.16.49.205 with SMTP; 12 Feb 2003 22:18:38 -0000 Received: from smtp.ott.qnx.com (smtp.ott.qnx.com [10.0.2.158]) by hub.ott.qnx.com (8.9.3/8.9.3) with ESMTP id RAA17411; Wed, 12 Feb 2003 17:07:35 -0500 Received: from catdog ([10.4.2.2]) by smtp.ott.qnx.com (8.8.8/8.6.12) with SMTP id RAA21761; Wed, 12 Feb 2003 17:18:37 -0500 Message-ID: <01f301c2d2e4$afb31200$0202040a@catdog> From: "Kris Warkentin" To: "Mark Kettenis" Cc: "Andrew Cagney" , References: <1c3601c2cbc1$72eac3b0$0202040a@catdog> <3E40387D.50001@redhat.com> <008f01c2ce4b$427295f0$2a00a8c0@dash> <86lm0r3nha.fsf@elgar.kettenis.dyndns.org> Subject: Re: patch to add QNX NTO i386 support Date: Wed, 12 Feb 2003 22:18:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-SW-Source: 2003-02/txt/msg00295.txt.bz2 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