[Lldb-commits] [lldb] r260546 - [Renderscript] Fix typo in mips64 argument reading code.

Aidan Dodds via lldb-commits lldb-commits at lists.llvm.org
Thu Feb 11 09:17:12 PST 2016


Author: aidandodds
Date: Thu Feb 11 11:17:12 2016
New Revision: 260546

URL: http://llvm.org/viewvc/llvm-project?rev=260546&view=rev
Log:
[Renderscript] Fix typo in mips64 argument reading code.

A typo in the mips64 argument reading code would cause register passed arguments to be truncated to 32bits.

Modified:
    lldb/trunk/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp

Modified: lldb/trunk/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp?rev=260546&r1=260545&r2=260546&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp (original)
+++ lldb/trunk/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp Thu Feb 11 11:17:12 2016
@@ -392,7 +392,7 @@ GetArgsMips64el(GetArgsCtx &ctx, ArgItem
             const RegisterInfo *rArg = ctx.reg_ctx->GetRegisterInfoAtIndex(i + c_reg_offset);
             RegisterValue rVal;
             if (ctx.reg_ctx->ReadRegister(rArg, rVal))
-                arg.value = rVal.GetAsUInt32(0, &success);
+                arg.value = rVal.GetAsUInt64(0, &success);
         }
         // arguments passed on the stack
         else




More information about the lldb-commits mailing list