This is the mail archive of the gdb-prs@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]

[Bug gdb/17626] attach, detach, attach did not work


https://sourceware.org/bugzilla/show_bug.cgi?id=17626

Pedro Alves <palves at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |palves at redhat dot com

--- Comment #1 from Pedro Alves <palves at redhat dot com> ---
> Now I detach immediately and try to attach to the child:

In this case, the inferior still has the parent's executable loaded:

...
> Attaching to program: ...bin/firefox, process 8189
                               ^^^^^^^

while in this case, you don't have an executable loaded, and so GDB
fetches the right one:

> However, if I quit gdb and attach to the child, it works.
...
> Reading symbols from ...bin/plugin-container...done.
                              ^^^^^^^^^^^^^^^^

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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