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/tracepoint.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/tracepoint.c')
-rw-r--r-- | gdb/tracepoint.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index 6f01f52..2f867a0 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -2190,8 +2190,7 @@ tfind_1 (enum trace_find_type type, int num, function and it's arguments) -- otherwise we'll just show the new source line. */ - if (frame_id_eq (old_frame_id, - get_frame_id (get_current_frame ()))) + if (old_frame_id == get_frame_id (get_current_frame ())) print_what = SRC_LINE; else print_what = SRC_AND_LOC; |