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
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