From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1525 invoked by alias); 13 Feb 2003 22:29:27 -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 1517 invoked from network); 13 Feb 2003 22:29:27 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by 172.16.49.205 with SMTP; 13 Feb 2003 22:29:27 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18jTkH-0007B4-00; Thu, 13 Feb 2003 18:30:25 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18jRr8-00047y-00; Thu, 13 Feb 2003 17:29:22 -0500 Date: Thu, 13 Feb 2003 22:29:00 -0000 From: Daniel Jacobowitz To: Kris Warkentin Cc: Mark Kettenis , Andrew Cagney , gdb-patches@sources.redhat.com Subject: Re: patch to add QNX NTO i386 support Message-ID: <20030213222922.GA15783@nevyn.them.org> Mail-Followup-To: Kris Warkentin , Mark Kettenis , Andrew Cagney , gdb-patches@sources.redhat.com References: <1c3601c2cbc1$72eac3b0$0202040a@catdog> <3E40387D.50001@redhat.com> <008f01c2ce4b$427295f0$2a00a8c0@dash> <86lm0r3nha.fsf@elgar.kettenis.dyndns.org> <01dd01c2d3aa$d4c1b1c0$0202040a@catdog> <20030213220751.GA15234@nevyn.them.org> <020c01c2d3ae$c7cb39b0$0202040a@catdog> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <020c01c2d3ae$c7cb39b0$0202040a@catdog> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-02/txt/msg00315.txt.bz2 On Thu, Feb 13, 2003 at 05:25:14PM -0500, Kris Warkentin wrote: > > > This GDB was configured as "--host=i686-pc-cygwin --target=ntox86". > > > (gdb) target qnx ren:10000 > > > Remote debugging using ren:10000 > > > (gdb) sym blah > > > Reading symbols from blah...done. > > > > Silly question - why not say "file blah" here? That'll set exec_bfd, > > and you'll be just fine. > > > Not silly. If you say 'file' you have tied yourself to the host and target > file being the same. I need to be able to get syms from /home/kewarken/foo > and run /tmp/foo. Wait, but from your earlier sequence, isn't /home/kewarken/foo on the host and uploaded to /tmp/foo on the target? I don't follow why GDB needs to know anything about the target filename. I can see that this remote protocol is very different from the normal one, if you're ssending full paths. > > If I'm right, and you want to support the above sequence, you could > > probably locally make sym set the exec file, if none was set. > > I'm trying to find the right place to call exec_file_attach or some such. I > think I'm close....;-) > > cheers, > > Kris > > -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer