Re: [PATCH 0/7] Do not require "file" commands for remote targets

Gary Benson
2015-04-15T12:02:48Z

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

--