[Lldb-commits] [lldb] r176360 - Fix string warning I introduced with indirect function support.

Matt Kopec Matt.Kopec at intel.com
Fri Mar 1 09:44:32 PST 2013


Author: mkopec
Date: Fri Mar  1 11:44:31 2013
New Revision: 176360

URL: http://llvm.org/viewvc/llvm-project?rev=176360&view=rev
Log:
Fix string warning I introduced with indirect function support.


Modified:
    lldb/trunk/source/Plugins/Process/POSIX/ProcessPOSIX.cpp

Modified: lldb/trunk/source/Plugins/Process/POSIX/ProcessPOSIX.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/POSIX/ProcessPOSIX.cpp?rev=176360&r1=176359&r2=176360&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/POSIX/ProcessPOSIX.cpp (original)
+++ lldb/trunk/source/Plugins/Process/POSIX/ProcessPOSIX.cpp Fri Mar  1 11:44:31 2013
@@ -491,7 +491,8 @@ ProcessPOSIX::ResolveIndirectFunction(co
         error.SetErrorStringWithFormat("unable to determine direct function call for NULL address");
     } else if (!InferiorCall(this, address, function_addr)) {
         function_addr = LLDB_INVALID_ADDRESS;
-        error.SetErrorStringWithFormat("unable to determine direct function call for indirect function with address %x", address);
+        error.SetErrorStringWithFormat("unable to determine direct function call for indirect function %s",
+                                       address->CalculateSymbolContextSymbol()->GetName().AsCString());
     }
     return function_addr;
 }





More information about the lldb-commits mailing list