diff options
author | Keith Seitz <keiths@redhat.com> | 2015-08-11 17:09:35 -0700 |
---|---|---|
committer | Keith Seitz <keiths@redhat.com> | 2015-08-11 17:09:35 -0700 |
commit | c7c1b3e998a77eb077ac3c08c88a97d2e11dfef0 (patch) | |
tree | b096b0ee0c2de1ab36dd9215c6a20e75534d0175 /gdb/linespec.h | |
parent | 5f700d83f7f3ea422d789c51a25f04818bf788d7 (diff) | |
download | gdb-c7c1b3e998a77eb077ac3c08c88a97d2e11dfef0.zip gdb-c7c1b3e998a77eb077ac3c08c88a97d2e11dfef0.tar.gz gdb-c7c1b3e998a77eb077ac3c08c88a97d2e11dfef0.tar.bz2 |
Explicit locations: introduce new struct event_location-based API
This patch introduces the new breakpoint/"linespec" API based on
a new struct event_location. This API currently only supports
traditional linespecs, maintaining the status quo of the code base.
Future patches will add additional functionality for other location
types such as address locations.
gdb/ChangeLog:
* Makefile.in (SFILES): Add location.c.
(HFILES_NO_SRCDIR): Add location.h.
(COMMON_OBS): Add location.o.
* linespec.c (linespec_lex_to_end): New function.
* linespec.h (linespec_lex_to_end): Declare.
* location.c: New file.
* location.h: New file.
Diffstat (limited to 'gdb/linespec.h')
-rw-r--r-- | gdb/linespec.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/linespec.h b/gdb/linespec.h index 7e66024..77ec46d 100644 --- a/gdb/linespec.h +++ b/gdb/linespec.h @@ -156,4 +156,9 @@ extern struct symtabs_and_lines decode_line_with_last_displayed (char *, int); the keyword. If not, return NULL. */ extern const char *linespec_lexer_lex_keyword (const char *p); + +/* Find the end of the (first) linespec pointed to by *STRINGP. + STRINGP will be advanced to this point. */ + +extern void linespec_lex_to_end (char **stringp); #endif /* defined (LINESPEC_H) */ |