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/breakpoint.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/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 7e008ba..bfa9e68 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -3699,8 +3699,7 @@ create_exception_master_breakpoint (void) static int breakpoint_location_spec_empty_p (const struct breakpoint *b) { - return (b->locspec != nullptr - && location_spec_empty_p (b->locspec.get ())); + return (b->locspec != nullptr && b->locspec->empty_p ()); } void |