[Lldb-commits] [lldb] r343193 - Update CallFrameString API to account for r343114

Luke Cheeseman via lldb-commits lldb-commits at lists.llvm.org
Thu Sep 27 03:42:14 PDT 2018


Author: lukecheeseman
Date: Thu Sep 27 03:42:14 2018
New Revision: 343193

URL: http://llvm.org/viewvc/llvm-project?rev=343193&view=rev
Log:
Update CallFrameString API to account for r343114

- CallFrameString now takes an Arch parameter to account for multiplexing
  overlapping CFI directives


Modified:
    lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDefines.cpp
    lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDefines.h

Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDefines.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDefines.cpp?rev=343193&r1=343192&r2=343193&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDefines.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDefines.cpp Thu Sep 27 03:42:14 2018
@@ -504,9 +504,9 @@ const char *DW_MACINFO_value_to_name(uin
   return llvmstr.data();
 }
 
-const char *DW_CFA_value_to_name(uint32_t val) {
+const char *DW_CFA_value_to_name(uint32_t val, llvm::Triple::ArchType Arch) {
   static char invalid[100];
-  llvm::StringRef llvmstr = llvm::dwarf::CallFrameString(val);
+  llvm::StringRef llvmstr = llvm::dwarf::CallFrameString(val, Arch);
   if (llvmstr.empty()) {
     snprintf(invalid, sizeof(invalid), "Unknown DW_CFA constant: 0x%x", val);
     return invalid;

Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDefines.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDefines.h?rev=343193&r1=343192&r2=343193&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDefines.h (original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDefines.h Thu Sep 27 03:42:14 2018
@@ -64,7 +64,7 @@ const char *DW_LNE_value_to_name(uint32_
 
 const char *DW_MACINFO_value_to_name(uint32_t val);
 
-const char *DW_CFA_value_to_name(uint32_t val);
+const char *DW_CFA_value_to_eame(uint32_t val, llvm::Triple::ArchType Arch);
 
 const char *DW_GNU_EH_PE_value_to_name(uint32_t val);
 




More information about the lldb-commits mailing list