This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]