[Lldb-commits] [lldb] r349473 - Update CallFrameString API to account for r349472

Luke Cheeseman via lldb-commits lldb-commits at lists.llvm.org
Tue Dec 18 02:39:19 PST 2018


Author: lukecheeseman
Date: Tue Dec 18 02:39:19 2018
New Revision: 349473

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

- 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=349473&r1=349472&r2=349473&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDefines.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDefines.cpp Tue Dec 18 02:39:19 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=349473&r1=349472&r2=349473&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDefines.h (original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDefines.h Tue Dec 18 02:39:19 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