diff options
author | Pedro Alves <pedro@palves.net> | 2022-05-27 16:28:29 +0100 |
---|---|---|
committer | Pedro Alves <pedro@palves.net> | 2022-06-17 09:58:49 +0100 |
commit | 238dc9af03392ecd8129ee54a340efd736782cf9 (patch) | |
tree | e5ba1fcefc30c036392eeb554a299c39c8344a72 /gdb/location.c | |
parent | 5c1ddcb69a01c3d4985ecffbbab126a4e8cd4e33 (diff) | |
download | gdb-238dc9af03392ecd8129ee54a340efd736782cf9.zip gdb-238dc9af03392ecd8129ee54a340efd736782cf9.tar.gz gdb-238dc9af03392ecd8129ee54a340efd736782cf9.tar.bz2 |
Convert location_spec_empty_p to a method
This converts location_spec_empty_p to a method of location_spec,
simplifying users, as they no longer have to use
std::unique_ptr::get().
Change-Id: I83381a729896f12e1c5a1b4d6d4c2eb1eb6582ff
Diffstat (limited to 'gdb/location.c')
-rw-r--r-- | gdb/location.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/gdb/location.c b/gdb/location.c index 19b58ab..ae056f3 100644 --- a/gdb/location.c +++ b/gdb/location.c @@ -855,7 +855,7 @@ string_to_location_spec (const char **stringp, /* If the user really specified a location spec, then we're done. */ - if (!location_spec_empty_p (locspec.get ())) + if (!locspec->empty_p ()) return locspec; /* Otherwise, the user _only_ specified optional flags like @@ -876,14 +876,6 @@ string_to_location_spec (const char **stringp, /* See description in location.h. */ -int -location_spec_empty_p (const location_spec *locspec) -{ - return locspec->empty_p (); -} - -/* See description in location.h. */ - void set_location_spec_string (struct location_spec *locspec, std::string &&string) |