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/linespec.h | |
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/linespec.h')
-rw-r--r-- | gdb/linespec.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/linespec.h b/gdb/linespec.h index ed8174f..0310bb4 100644 --- a/gdb/linespec.h +++ b/gdb/linespec.h @@ -93,6 +93,8 @@ extern void destroy_linespec_result (struct linespec_result *); extern struct cleanup * make_cleanup_destroy_linespec_result (struct linespec_result *); +/* Decode a linespec using the provided default symtab and line. */ + extern struct symtabs_and_lines decode_line_1 (char **argptr, int flags, struct symtab *default_symtab, int default_line); @@ -139,4 +141,15 @@ extern void decode_line_full (char **argptr, int flags, const char *select_mode, const char *filter); +/* Given a string, return the line specified by it, using the current + source symtab and line as defaults. + This is for commands like "list" and "breakpoint". */ + +extern struct symtabs_and_lines decode_line_with_current_source (char *, int); + +/* Given a string, return the line specified by it, using the last displayed + codepoint's values as defaults, or nothing if they aren't valid. */ + +extern struct symtabs_and_lines decode_line_with_last_displayed (char *, int); + #endif /* defined (LINESPEC_H) */ |