Fix typo in gdb.python/py-objfile.exp
[deliverable/binutils-gdb.git] / gdb / linespec.h
index 401158c2a5eeb631e20d5359c87e5624ec95fff6..7e66024cf56c4a94e5738787753f7b679ced82f4 100644 (file)
@@ -1,6 +1,5 @@
 /* Header for GDB line completion.
-   Copyright (C) 2000, 2007, 2008, 2009, 2010, 2011
-   Free Software Foundation, Inc.
+   Copyright (C) 2000-2015 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -94,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);
@@ -140,4 +141,19 @@ 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);
+
+/* Does P represent one of the keywords?  If so, return
+   the keyword.  If not, return NULL.  */
+
+extern const char *linespec_lexer_lex_keyword (const char *p);
 #endif /* defined (LINESPEC_H) */
This page took 0.023553 seconds and 4 git commands to generate.