This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug shlibs/7192] Problem with weak functions
- From: "keiths at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 13 Jan 2012 17:41:38 +0000
- Subject: [Bug shlibs/7192] Problem with weak functions
- Auto-submitted: auto-generated
- References: <bug-7192-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=7192
Keith Seitz <keiths at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
CC| |keiths at redhat dot com
Resolution| |FIXED
AssignedTo|unassigned at sourceware |keiths at redhat dot com
|dot org |
Target Milestone|--- |7.4
--- Comment #4 from Keith Seitz <keiths at redhat dot com> 2012-01-13 17:41:38 UTC ---
This may or may not work correctly on various gdb versions since the bug was
reported, depending on whether the correct test_weak symbol is found during the
search (gdb stops -- or used to -- with the first correct match).
Nonetheless, with 7.4 and ambiguous linespecs, this is properly fixed:
(gdb) b test_weak
Breakpoint 1 at 0x4004c8: test_weak. (2 locations)
(gdb) inf br
Num Type Disp Enb Address What
1 breakpoint keep y <MULTIPLE>
1.1 y 0x00000000004004c8 in test_weak at t.c:5
1.2 y 0x00000000004004e0 in test_weak at main.c:7
(gdb) r
Starting program: /home/keiths/tmp/7192
Breakpoint 1, test_weak () at main.c:7
7 return 2;
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.