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/macrocmd.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/macrocmd.c')
-rw-r--r-- | gdb/macrocmd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/macrocmd.c b/gdb/macrocmd.c index 367f211..a327cad 100644 --- a/gdb/macrocmd.c +++ b/gdb/macrocmd.c @@ -26,6 +26,7 @@ #include "command.h" #include "gdbcmd.h" #include "gdb_string.h" +#include "linespec.h" /* The `macro' prefix command. */ @@ -282,7 +283,8 @@ info_macros_command (char *args, int from_tty) ms = default_macro_scope (); else { - struct symtabs_and_lines sals = decode_line_spec (args, 0); + struct symtabs_and_lines sals = + decode_line_with_current_source (args, 0); if (sals.nelts) ms = sal_macro_scope (sals.sals[0]); |