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 tdep/19373] New: Attach -> detach -> attach to a different exe: loads symbols from original exe


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

            Bug ID: 19373
           Summary: Attach -> detach -> attach to a different exe: loads
                    symbols from original exe
           Product: gdb
           Version: 7.10
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tdep
          Assignee: unassigned at sourceware dot org
          Reporter: phantall at gmail dot com
  Target Milestone: ---

Here's an example to illustrate:

> $ sleep 1000 &
> [1] 21233
> $ fg

In a separate terminal:

> $ gdb
> /*snip*/
> (gdb) attach 21233
> /*snip*/
> (gdb) kill
> Kill the program being debugged? (y or n) y

In the 1st terminal:

> $ perl -e 'sleep 1000' &
> [1] 21328

Then in the gdb window:

> (gdb) attach 21328
> Attaching to program: /bin/sleep, process 21328
> /*snip*/              ^^^^^^^^^^


It seems the only way to get around this is to manually alter it with
file/exec-file.

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