public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] frame.c: Fix the check for FID_STACK_INVALID in frame_id_eq().
@ 2014-11-25 19:34 Martin Galvan
  2014-11-25 20:33 ` Sergio Durigan Junior
  2014-11-30 15:41 ` Joel Brobecker
  0 siblings, 2 replies; 4+ messages in thread
From: Martin Galvan @ 2014-11-25 19:34 UTC (permalink / raw)
  To: gdb-patches; +Cc: daniel.gutson

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 I corrected it.

gdb/ChangeLog:

2014-11-25  Martin Galvan  <martin.galvan@tallertechnologies.com>

    * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.

---

diff --git a/gdb/frame.c b/gdb/frame.c
index 0663af9..135b820 100644
--- a/gdb/frame.c
+++ b/gdb/frame.c
@@ -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;

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-11-30 15:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-25 19:34 [PATCH] frame.c: Fix the check for FID_STACK_INVALID in frame_id_eq() Martin Galvan
2014-11-25 20:33 ` Sergio Durigan Junior
2014-11-26  1:19   ` Martin Galvan
2014-11-30 15:41 ` Joel Brobecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).