summaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorPedro Alves <pedro@palves.net>2022-05-27 16:28:29 +0100
committerPedro Alves <pedro@palves.net>2022-06-17 09:58:49 +0100
commit238dc9af03392ecd8129ee54a340efd736782cf9 (patch)
treee5ba1fcefc30c036392eeb554a299c39c8344a72 /gdb/breakpoint.c
parent5c1ddcb69a01c3d4985ecffbbab126a4e8cd4e33 (diff)
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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 7e008ba87a..bfa9e68fdb 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