* config/tc-cr16.c (getprocregp_image): Fix type of 'r' parameter
[deliverable/binutils-gdb.git] / gdb / linespec.h
index f8805182ffd1a79d318545dff9b0726f4ea8db79..3c86af36cbda169c21a9ea5a2bd955a6b2c108c4 100644 (file)
@@ -1,5 +1,6 @@
 /* Header for GDB line completion.
-   Copyright (C) 2000, 2007 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2007, 2008, 2009, 2010, 2011
+   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
 
 struct symtab;
 
+/* An instance of this may be filled in by decode_line_1.  The caller
+   must call init_linespec_result to initialize it.  */
+
+struct linespec_result
+{
+  /* If non-zero, the linespec should be displayed to the user.  This
+     is used by "unusual" linespecs where the ordinary `info break'
+     display mechanism would do the wrong thing.  */
+  int special_display;
+
+  /* If non-NULL, an array of canonical names for returned
+     symtab_and_line objects.  The array has as many elements as the
+     `nelts' field in the symtabs_and_line returned by decode_line_1.
+     An element in the array may be NULL.  The array and each non-NULL
+     element in it are allocated with xmalloc and must be freed by the
+     caller.  */
+  char **canonical;
+};
+
+/* Initialize a linespec_result.  */
+
+extern void init_linespec_result (struct linespec_result *);
+
 extern struct symtabs_and_lines
        decode_line_1 (char **argptr, int funfirstline,
                       struct symtab *default_symtab, int default_line,
-                      char ***canonical, int *not_found_ptr);
+                      struct linespec_result *canonical);
 
 #endif /* defined (LINESPEC_H) */
This page took 0.025214 seconds and 4 git commands to generate.