aboutsummaryrefslogtreecommitdiff
path: root/gdb/guile/scm-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/guile/scm-frame.c
parentf91822c2b9f9fed0c2717b17f380e5216502ea32 (diff)
downloadgdb-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/guile/scm-frame.c')
-rw-r--r--gdb/guile/scm-frame.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/guile/scm-frame.c b/gdb/guile/scm-frame.c
index 159603b..7776494 100644
--- a/gdb/guile/scm-frame.c
+++ b/gdb/guile/scm-frame.c
@@ -134,7 +134,7 @@ frscm_eq_frame_smob (const void *ap, const void *bp)
const frame_smob *a = (const frame_smob *) ap;
const frame_smob *b = (const frame_smob *) bp;
- return (frame_id_eq (a->frame_id, b->frame_id)
+ return (a->frame_id == b->frame_id
&& a->inferior == b->inferior
&& a->inferior != NULL);
}