[Lldb-commits] [lldb] r178889 - Fixme comment.

Jim Ingham jingham at apple.com
Fri Apr 5 10:39:29 PDT 2013


Author: jingham
Date: Fri Apr  5 12:39:29 2013
New Revision: 178889

URL: http://llvm.org/viewvc/llvm-project?rev=178889&view=rev
Log:
Fixme comment.

Modified:
    lldb/trunk/source/Plugins/ABI/SysV-x86_64/ABISysV_x86_64.cpp

Modified: lldb/trunk/source/Plugins/ABI/SysV-x86_64/ABISysV_x86_64.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/ABI/SysV-x86_64/ABISysV_x86_64.cpp?rev=178889&r1=178888&r2=178889&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/ABI/SysV-x86_64/ABISysV_x86_64.cpp (original)
+++ lldb/trunk/source/Plugins/ABI/SysV-x86_64/ABISysV_x86_64.cpp Fri Apr  5 12:39:29 2013
@@ -1038,6 +1038,12 @@ ABISysV_x86_64::GetReturnValueObjectImpl
             }
         }
         
+        
+        // FIXME: This is just taking a guess, rax may very well no longer hold the return storage location.
+        // If we are going to do this right, when we make a new frame we should check to see if it uses a memory
+        // return, and if we are at the first instruction and if so stash away the return location.  Then we would
+        // only return the memory return value if we know it is valid.
+        
         if (is_memory)
         {
             unsigned rax_id = reg_ctx_sp->GetRegisterInfoByName("rax", 0)->kinds[eRegisterKindLLDB];





More information about the lldb-commits mailing list