[DynInst_API:] [PATCH] BPatch_localVar::getFrameOffset() missing not


Date: Wed, 28 Nov 2012 11:22:35 +0000
From: Wei Ming Khoo <weimzz@xxxxxxxxx>
Subject: [DynInst_API:] [PATCH] BPatch_localVar::getFrameOffset() missing not
Minor bug.

Regards,
--wm

---
diff --git a/dyninstAPI/src/BPatch_type.C b/dyninstAPI/src/BPatch_type.C
index 7984437..176f029 100644
--- a/dyninstAPI/src/BPatch_type.C
+++ b/dyninstAPI/src/BPatch_type.C
@@ -560,7 +560,7 @@ long BPatch_localVar::getFrameOffset() {
 
    vector<Dyninst::VariableLocation> &locs = lVar->getLocationLists();
 
-   if (locs.size())
+   if (!locs.size())
       return -1;
 
    return locs[0].frameOffset;

[← Prev in Thread] Current Thread [Next in Thread→]
  • [DynInst_API:] [PATCH] BPatch_localVar::getFrameOffset() missing not, Wei Ming Khoo <=