mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 00:59:15 +08:00
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>
This commit is contained in:
@ -3252,7 +3252,7 @@ find_frame_for_address (CORE_ADDR address)
|
||||
fid != NULL;
|
||||
fid = get_prev_frame (fid))
|
||||
{
|
||||
if (frame_id_eq (id, get_frame_id (fid)))
|
||||
if (id == get_frame_id (fid))
|
||||
{
|
||||
struct frame_info *prev_frame;
|
||||
|
||||
@ -3260,7 +3260,7 @@ find_frame_for_address (CORE_ADDR address)
|
||||
{
|
||||
prev_frame = get_prev_frame (fid);
|
||||
if (!prev_frame
|
||||
|| !frame_id_eq (id, get_frame_id (prev_frame)))
|
||||
|| id != get_frame_id (prev_frame))
|
||||
break;
|
||||
fid = prev_frame;
|
||||
}
|
||||
|
Reference in New Issue
Block a user