diff options
author | Doug Evans <dje@google.com> | 2012-06-29 22:46:46 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2012-06-29 22:46:46 +0000 |
commit | 39cf75f7e02e5d3e0080a7862cde324e378c69ea (patch) | |
tree | 697a7c162edb5232330ca08193e6d3ff9d11e29a /gdb/symtab.c | |
parent | a040981f6272e74d8157108e1677bc4d13425cd0 (diff) | |
download | gdb-39cf75f7e02e5d3e0080a7862cde324e378c69ea.zip gdb-39cf75f7e02e5d3e0080a7862cde324e378c69ea.tar.gz gdb-39cf75f7e02e5d3e0080a7862cde324e378c69ea.tar.bz2 |
* linespec.c: #include "stack.h".
(decode_line_with_current_source): Moved here from symtab.c and
renamed from decode_line_spec. All callers updated.
(decode_line_with_last_displayed): Moved here from breakpoint.c and
renamed from decode_line_spec_1. All callers updated.
* linespec.h (decode_line_with_current_source): Move declaration here
from symtab.h and renamed from decode_line_spec.
(decode_line_with_last_displayed): Move declaration here from symtab.h
and renamed from decode_line_spec_1.
* macrocmd.c: #include "linespec.h".
* symtab.c: Remove #include "linespec.h".
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index 46d119a..d83f518 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -33,7 +33,6 @@ #include "language.h" #include "demangle.h" #include "inferior.h" -#include "linespec.h" #include "source.h" #include "filenames.h" /* for FILENAME_CMP */ #include "objc-lang.h" @@ -4821,27 +4820,6 @@ skip_prologue_using_sal (struct gdbarch *gdbarch, CORE_ADDR func_addr) return prologue_sal.pc; } -struct symtabs_and_lines -decode_line_spec (char *string, int flags) -{ - struct symtabs_and_lines sals; - struct symtab_and_line cursal; - - if (string == 0) - error (_("Empty line specification.")); - - /* We use whatever is set as the current source line. We do not try - and get a default or it will recursively call us! */ - cursal = get_current_source_symtab_and_line (); - - sals = decode_line_1 (&string, flags, - cursal.symtab, cursal.line); - - if (*string) - error (_("Junk at end of line specification: %s"), string); - return sals; -} - /* Track MAIN */ static char *name_of_main; enum language language_of_main = language_unknown; |