libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libunwind-devel] [PATCH 14/57] HPPA: properly check dwarf_get() return


From: Tommi Rantala
Subject: [Libunwind-devel] [PATCH 14/57] HPPA: properly check dwarf_get() return value in unw_step()
Date: Fri, 21 Sep 2012 14:11:15 +0300

---
 src/hppa/Gstep.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/hppa/Gstep.c b/src/hppa/Gstep.c
index abff456..1362013 100644
--- a/src/hppa/Gstep.c
+++ b/src/hppa/Gstep.c
@@ -62,7 +62,7 @@ unw_step (unw_cursor_t *cursor)
          c->sigcontext_addr = sc_addr;
          c->dwarf.ret_addr_column = UNW_HPPA_RP;
 
-         if ((ret = dwarf_get (&c->dwarf, iaoq_loc, &ip)) , 0)
+         if ((ret = dwarf_get (&c->dwarf, iaoq_loc, &ip)) < 0)
            {
              Debug (2, "failed to read IAOQ[1] (ret=%d)\n", ret);
              return ret;
-- 
1.7.9.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]