This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug tdep/19373] New: Attach -> detach -> attach to a different exe: loads symbols from original exe
- From: "phantall at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 16 Dec 2015 19:09:41 +0000
- Subject: [Bug tdep/19373] New: Attach -> detach -> attach to a different exe: loads symbols from original exe
- Auto-submitted: auto-generated
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.