aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-finishbreakpoint.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/python/py-finishbreakpoint.c
parentf91822c2b9f9fed0c2717b17f380e5216502ea32 (diff)
downloadbinutils-a0cbd6505e9590baddd27d2ce603103d6e77421a.zip
binutils-a0cbd6505e9590baddd27d2ce603103d6e77421a.tar.gz
binutils-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/python/py-finishbreakpoint.c')
-rw-r--r--gdb/python/py-finishbreakpoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/py-finishbreakpoint.c b/gdb/python/py-finishbreakpoint.c
index c4b043f..317e2d7 100644
--- a/gdb/python/py-finishbreakpoint.c
+++ b/gdb/python/py-finishbreakpoint.c
@@ -207,7 +207,7 @@ bpfinishpy_init (PyObject *self, PyObject *args, PyObject *kwargs)
else
{
frame_id = get_frame_id (prev_frame);
- if (frame_id_eq (frame_id, null_frame_id))
+ if (frame_id == null_frame_id)
PyErr_SetString (PyExc_ValueError,
_("Invalid ID for the `frame' object."));
}