aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-03-24 20:25:17 +0000
committerTom Tromey <tromey@redhat.com>2011-03-24 20:25:17 +0000
commit9ef07c8ca4143ec17557e855fe05bb0cd55283b4 (patch)
tree33c0fd2374d51b00ec5662ddbef427f613c4ef8f /gdb/doc
parent56435ebec80eae3bd6511f386f9a86f8703b3de8 (diff)
downloadgdb-9ef07c8ca4143ec17557e855fe05bb0cd55283b4.zip
gdb-9ef07c8ca4143ec17557e855fe05bb0cd55283b4.tar.gz
gdb-9ef07c8ca4143ec17557e855fe05bb0cd55283b4.tar.bz2
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.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog5
-rw-r--r--gdb/doc/gdb.texinfo3
2 files changed, 8 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index d3527de..6830f36 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,8 @@
+2011-03-24 Tom Tromey <tromey@redhat.com>
+
+ * gdb.texinfo (Specify Location): Document `function:label'
+ linespec.
+
2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
PR python/12149
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index fcbbd6c..e023058 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -6361,6 +6361,9 @@ Specifies the line @var{linenum} in the source file @var{filename}.
Specifies the line that begins the body of the function @var{function}.
For example, in C, this is the line with the open brace.
+@item @var{function}:@var{label}
+Specifies the line where @var{label} appears in @var{function}.
+
@item @var{filename}:@var{function}
Specifies the line that begins the body of the function @var{function}
in the file @var{filename}. You only need the file name with a