Bug 16266 - "attach" could check build-id
Summary: "attach" could check build-id
Status: NEW
Alias: None
Product: gdb
Classification: Unclassified
Component: gdb (show other bugs)
Version: HEAD
: P2 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-27 16:36 UTC by Tom Tromey
Modified: 2014-11-19 21:01 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Tromey 2013-11-27 16:36:15 UTC
Right now you can confuse yourself by starting gdb
with one file, then attaching to a running program
that is executing a different file.  (The typical
problem here is if the two files have the same name,
so you think you are doing the right thing...)

gdb could help with this by comparing build-ids,
when available, and offering to switch the exec file.
Comment 1 Tom Tromey 2014-11-19 21:01:52 UTC
*** Bug 17626 has been marked as a duplicate of this bug. ***