mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
frame.c: Fix the check for FID_STACK_INVALID in frame_id_eq()
I noticed in frame_id_eq() we were checking for the "l" frame_id being invalid twice instead of checking both "l" and "r", so this patch corrects it. gdb/ChangeLog: * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
This commit is contained in:
committed by
Joel Brobecker
parent
db76a70026
commit
f0d4ba1fc4
@@ -614,7 +614,7 @@ frame_id_eq (struct frame_id l, struct frame_id r)
|
||||
outer_frame_id. */
|
||||
eq = 1;
|
||||
else if (l.stack_status == FID_STACK_INVALID
|
||||
|| l.stack_status == FID_STACK_INVALID)
|
||||
|| r.stack_status == FID_STACK_INVALID)
|
||||
/* Like a NaN, if either ID is invalid, the result is false.
|
||||
Note that a frame ID is invalid iff it is the null frame ID. */
|
||||
eq = 0;
|
||||
|
||||
Reference in New Issue
Block a user