old-cross-binutils/gdb/testsuite/gdb.base/label.c
Tom Tromey 0f5238edfd gdb
PR breakpoints/8357:
	* symtab.h (domain_enum_tag) <LABEL_DOMAIN>: 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) <DW_TAG_label>: 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.
2010-07-13 20:07:44 +00:00

21 lines
206 B
C

#include <stdio.h>
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;
}