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/dummy-frame.c | |
parent | f91822c2b9f9fed0c2717b17f380e5216502ea32 (diff) | |
download | gdb-a0cbd6505e9590baddd27d2ce603103d6e77421a.zip gdb-a0cbd6505e9590baddd27d2ce603103d6e77421a.tar.gz 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/dummy-frame.c')
-rw-r--r-- | gdb/dummy-frame.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dummy-frame.c b/gdb/dummy-frame.c index 40b455c..2fef6ea 100644 --- a/gdb/dummy-frame.c +++ b/gdb/dummy-frame.c @@ -47,7 +47,7 @@ static int dummy_frame_id_eq (struct dummy_frame_id *id1, struct dummy_frame_id *id2) { - return frame_id_eq (id1->id, id2->id) && id1->thread == id2->thread; + return id1->id == id2->id && id1->thread == id2->thread; } /* List of dummy_frame destructors. */ @@ -130,7 +130,7 @@ static bool pop_dummy_frame_bpt (struct breakpoint *b, struct dummy_frame *dummy) { if (b->thread == dummy->id.thread->global_num - && b->disposition == disp_del && frame_id_eq (b->frame_id, dummy->id.id)) + && b->disposition == disp_del && b->frame_id == dummy->id.id) { while (b->related_breakpoint != b) delete_breakpoint (b->related_breakpoint); |