This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 0/7] Do not require "file" commands for remote targets
- From: Gary Benson <gbenson at redhat dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 15 Apr 2015 13:02:37 +0100
- Subject: Re: [PATCH 0/7] Do not require "file" commands for remote targets
- Authentication-results: sourceware.org; auth=none
- References: <1427887341-31819-1-git-send-email-gbenson at redhat dot com> <552E41B5 dot 1000508 at redhat dot com>
Pedro Alves wrote:
> On 04/01/2015 12:22 PM, Gary Benson wrote:
> > Patch 7 causes GDB to attempt to locate and open the executable
> > in remote-target cases without multiprocess extensions:
>
> Should be "with multiprocess extensions". Without those, we don't
> know the target's pid, and thus can't use pid-to-exec-file.
How about:
Patch 7 causes GDB to attempt to locate and open the executable
for remote targets not using extended-remote:
> >
> > bash$ gdb -q
> > (gdb) target remote | gdbserver - --attach 31979
> > Remote debugging using | gdbserver - --attach 31979
> > Attached; pid = 31979
> > Remote debugging using stdio
> > Reading symbols from target:/bin/bash...
> >
> > and:
> >
> > bash$ gdb -q
> > (gdb) target remote | gdbserver - /bin/sh
> > Remote debugging using | gdbserver - /bin/sh
> > Process /bin/sh created; pid = 32166
> > stdin/stdout redirected
> > Remote debugging using stdio
> > Reading symbols from target:/bin/bash...
Cheers,
Gary
--
http://gbenson.net/