Explicit locations: add UI features for CLI
[deliverable/binutils-gdb.git] / gdb / location.h
index 3082d9e7ba3b5033d648330c9a01d362e5998d83..31ae59af3693d69272968e8e1d00659890c70d10 100644 (file)
@@ -203,6 +203,21 @@ extern struct event_location *
   string_to_event_location (char **argp,
                            const struct language_defn *langauge);
 
+/* Attempt to convert the input string in *ARGP into an explicit location.
+   ARGP is advanced past any processed input.  Returns an event_location
+   (malloc'd) if an explicit location was successfully found in *ARGP,
+   NULL otherwise.
+
+   IF !DONT_THROW, this function may call error() if *ARGP looks like
+   properly formed input, e.g., if it is called with missing argument
+   parameters or invalid options.  If DONT_THROW is non-zero, this function
+   will not throw any exceptions.  */
+
+extern struct event_location *
+  string_to_explicit_location (const char **argp,
+                              const struct language_defn *langauge,
+                              int dont_throw);
+
 /* A convenience function for testing for unset locations.  */
 
 extern int event_location_empty_p (const struct event_location *location);
This page took 0.025608 seconds and 4 git commands to generate.