diff options
Diffstat (limited to 'gdb/location.h')
-rw-r--r-- | gdb/location.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/gdb/location.h b/gdb/location.h index 9ba3a20..cc9dfe4 100644 --- a/gdb/location.h +++ b/gdb/location.h @@ -83,7 +83,12 @@ struct location_spec /* Return true if this location spec is empty, false otherwise. */ virtual bool empty_p () const = 0; - /* Return a string representation of this location. */ + /* Return a string representation of this location. + + This function may return NULL for unspecified linespecs, e.g, + LINESPEC_LOCATION_SPEC and spec_string is NULL. + + The result is cached in the locspec. */ const char *to_string () const { if (as_string.empty ()) @@ -233,15 +238,6 @@ protected: std::string compute_string () const override; }; -/* Return a string representation of LOCSPEC. - This function may return NULL for unspecified linespecs, - e.g, LINESPEC_LOCATION_SPEC and spec_string is NULL. - - The result is cached in LOCSPEC. */ - -extern const char * - location_spec_to_string (location_spec *locspec); - /* Create a new linespec location spec. */ extern location_spec_up new_linespec_location_spec |