aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.h
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2007-09-24 07:40:32 +0000
committerVladimir Prus <vladimir@codesourcery.com>2007-09-24 07:40:32 +0000
commited0616c6b78a0966e24cdcecf48ebe8e581a0448 (patch)
tree08b6c9c86853d2274b0179e8e333e02ae53f767c /gdb/symtab.h
parentfad9eaf0deff64167032634213f1070193d929f7 (diff)
downloadgdb-ed0616c6b78a0966e24cdcecf48ebe8e581a0448.zip
gdb-ed0616c6b78a0966e24cdcecf48ebe8e581a0448.tar.gz
gdb-ed0616c6b78a0966e24cdcecf48ebe8e581a0448.tar.bz2
* breakpoint.c (remove_sal): New.
(expand_line_sal_maybe): New. (create_breakpoints): Call expand_line_sal_maybe. (clear_command): Add comment. (breakpoint_re_set_one): Call expand_line_sal_maybe. * linespec.c (decode_indirect): Set explicit_pc to 1. (decode_all_digits): Set explicit_line to 1. (append_expanded_sal): New. (expand_line_sal): New. * linespec.h (expand_line_sal): Declare. * symtab.c (init_sal): Initialize explicit_pc and explicit_line. * symtab.h (struct symtab_and_line): New fields explicit_pc and explicit_line.
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r--gdb/symtab.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h
index dece0a3..c50f087 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -1213,6 +1213,8 @@ struct symtab_and_line
CORE_ADDR pc;
CORE_ADDR end;
+ int explicit_pc;
+ int explicit_line;
};
extern void init_sal (struct symtab_and_line *sal);
@@ -1404,5 +1406,7 @@ struct symbol *lookup_global_symbol_from_objfile (const struct objfile *objfile,
const domain_enum domain,
struct symtab **symtab);
+extern struct symtabs_and_lines
+expand_line_sal (struct symtab_and_line sal);
#endif /* !defined(SYMTAB_H) */