diff options
author | Tom Tromey <tom@tromey.com> | 2022-07-25 14:06:33 -0300 |
---|---|---|
committer | Bruno Larsen <blarsen@redhat.com> | 2022-10-10 11:57:10 +0200 |
commit | a0cbd6505e9590baddd27d2ce603103d6e77421a (patch) | |
tree | f4681765647d430ce9809c3a979f85511e0cc8bc /gdb/breakpoint.c | |
parent | f91822c2b9f9fed0c2717b17f380e5216502ea32 (diff) | |
download | fsf-binutils-gdb-a0cbd6505e9590baddd27d2ce603103d6e77421a.zip fsf-binutils-gdb-a0cbd6505e9590baddd27d2ce603103d6e77421a.tar.gz fsf-binutils-gdb-a0cbd6505e9590baddd27d2ce603103d6e77421a.tar.bz2 |
Remove frame_id_eq
This replaces frame_id_eq with operator== and operator!=. I wrote
this for a version of this series that I later abandoned; but since it
simplifies the code, I left this patch in.
Approved-by: Tom Tomey <tom@tromey.com>
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index a3a154c..2eabdd6 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -5325,7 +5325,7 @@ bpstat_check_breakpoint_conditions (bpstat *bs, thread_info *thread) breakpoint or a single step breakpoint. */ if (frame_id_p (b->frame_id) - && !frame_id_eq (b->frame_id, get_stack_frame_id (get_current_frame ()))) + && b->frame_id != get_stack_frame_id (get_current_frame ())) { infrun_debug_printf ("incorrect frame %s not %s, not stopping", get_stack_frame_id (get_current_frame ()).to_string ().c_str (), |