aboutsummaryrefslogtreecommitdiff
path: root/gdb/dummy-frame.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-07-25 14:06:33 -0300
committerBruno Larsen <blarsen@redhat.com>2022-10-10 11:57:10 +0200
commita0cbd6505e9590baddd27d2ce603103d6e77421a (patch)
treef4681765647d430ce9809c3a979f85511e0cc8bc /gdb/dummy-frame.c
parentf91822c2b9f9fed0c2717b17f380e5216502ea32 (diff)
downloadfsf-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/dummy-frame.c')
-rw-r--r--gdb/dummy-frame.c4
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);