This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug breakpoints/11816] support "break function:label"
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 24 Mar 2011 20:25:33 +0000
- Subject: [Bug breakpoints/11816] support "break function:label"
- Auto-submitted: auto-generated
- References: <bug-11816-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=11816
--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2011-03-24 20:25:21 UTC ---
CVSROOT: /cvs/src
Module name: src
Changes by: tromey@sourceware.org 2011-03-24 20:25:17
Modified files:
gdb : ChangeLog linespec.c
gdb/doc : ChangeLog gdb.texinfo
gdb/testsuite : ChangeLog
gdb/testsuite/gdb.base: label.exp
Log message:
gdb
PR breakpoints/11816:
* linespec.c (decode_line_1): Parse `function:label' linespecs.
(decode_compound): Update.
(find_function_symbol): New function.
(decode_dollar): Update.
(decode_label): Add 'function_symbol' parameter. Handle
function-relative labels.
(decode_variable): Update.
(symbol_found): Add 'function_symbol' parameter. Use label's PC,
not its line. Set `special_display' and canonical name for
labels.
gdb/doc
* gdb.texinfo (Specify Location): Document `function:label'
linespec.
gdb/testsuite
* gdb.base/label.exp: Use `main:there' linespec. Add re-running
test.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.12858&r2=1.12859
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/linespec.c.diff?cvsroot=src&r1=1.115&r2=1.116
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/doc/ChangeLog.diff?cvsroot=src&r1=1.1166&r2=1.1167
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/doc/gdb.texinfo.diff?cvsroot=src&r1=1.814&r2=1.815
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.2648&r2=1.2649
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/label.exp.diff?cvsroot=src&r1=1.2&r2=1.3
--
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.