From 0f5238edfdd060ff07a15df61aafdfe21fb6427f Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 13 Jul 2010 20:07:44 +0000 Subject: gdb PR breakpoints/8357: * symtab.h (domain_enum_tag) : Update comment. * linespec.c (decode_line_1): Update comment. Call decode_label. (decode_label): New function. (symbol_found): Handle LOC_LABEL. * dwarf2read.c (new_symbol) : Set symbol's type and domain. Call add_symbol_to_list. gdb/doc * gdb.texinfo (Specify Location): Document labels. gdb/testsuite * gdb.base/label.exp: New file. * gdb.base/label.c: New file. --- gdb/testsuite/gdb.base/label.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 gdb/testsuite/gdb.base/label.c (limited to 'gdb/testsuite/gdb.base/label.c') diff --git a/gdb/testsuite/gdb.base/label.c b/gdb/testsuite/gdb.base/label.c new file mode 100644 index 0000000..f9cd8c3 --- /dev/null +++ b/gdb/testsuite/gdb.base/label.c @@ -0,0 +1,21 @@ +#include + +int +main (int argc, char *argv) +{ + int i = 0; + goto there; + +here: + printf("not here\n"); + i = 1; + +there: + printf("but here\n"); + if (i == 0) + goto here; + +done: + return 0; +} + -- cgit v1.1