[Lldb-commits] [PATCH] fix: wrong error for invalid high_addr

Remco Verhoef remco at dutchcoders.io
Sat Sep 6 01:20:43 PDT 2014


Just a small fix for a typo. High and low address were mixed-up. Diff also
attached as file.

Regards,

Remco

------------

diff --git a/source/Commands/CommandObjectMemory.cpp
b/source/Commands/CommandObjectMemory.cpp
index bfbb296..4be9baa 100644
--- a/source/Commands/CommandObjectMemory.cpp
+++ b/source/Commands/CommandObjectMemory.cpp
@@ -1078,7 +1078,7 @@ class CommandObjectMemoryFind : public CommandObjectParsed
       lldb::addr_t high_addr = Args::StringToAddress(&m_exe_ctx,
command.GetArgumentAtIndex(1),LLDB_INVALID_ADDRESS,&error);
       if (high_addr == LLDB_INVALID_ADDRESS || error.Fail())
       {
-          result.AppendError("invalid low address");
+          result.AppendError("invalid high address");
           return false;
       }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20140906/d197e09c/attachment.html>
-------------- next part --------------
diff --git a/source/Commands/CommandObjectMemory.cpp b/source/Commands/CommandObjectMemory.cpp
index bfbb296..4be9baa 100644
--- a/source/Commands/CommandObjectMemory.cpp
+++ b/source/Commands/CommandObjectMemory.cpp
@@ -1078,7 +1078,7 @@ class CommandObjectMemoryFind : public CommandObjectParsed
       lldb::addr_t high_addr = Args::StringToAddress(&m_exe_ctx, command.GetArgumentAtIndex(1),LLDB_INVALID_ADDRESS,&error);
       if (high_addr == LLDB_INVALID_ADDRESS || error.Fail())
       {
-          result.AppendError("invalid low address");
+          result.AppendError("invalid high address");
           return false;
       }
 


More information about the lldb-commits mailing list