[Lldb-commits] [PATCH] Fix -data-read-memory-bytes command (MI)

Ilia K ki.stfu at gmail.com
Fri Feb 13 06:18:04 PST 2015


================
Comment at: tools/lldb-mi/MIUtilString.cpp:460
@@ -439,7 +459,3 @@
 
-    const MIint64 nNum = ::strtoul(this->c_str(), nullptr, 16);
-    if (nNum != LONG_MAX)
-    {
-        vwrNumber = nNum;
-        return true;
-    }
+    const MIuint64 nNum = ::strtoull(this->c_str(), nullptr, 16);
+    if (nNum == ULLONG_MAX && errno == ERANGE)
----------------
set errno to 0 before strtoull()

http://reviews.llvm.org/D7610

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the lldb-commits mailing list