[Lldb-commits] [lldb] 88eb4cb - Remove #if guards from AppendBounds to fix compile on old POSIX.

Daniel Thornburgh via lldb-commits lldb-commits at lists.llvm.org
Thu Mar 16 16:16:29 PDT 2023


Author: Daniel Thornburgh
Date: 2023-03-16T16:16:21-07:00
New Revision: 88eb4cbbfe7ded9556131c3bd4228ee9e9d01b4d

URL: https://github.com/llvm/llvm-project/commit/88eb4cbbfe7ded9556131c3bd4228ee9e9d01b4d
DIFF: https://github.com/llvm/llvm-project/commit/88eb4cbbfe7ded9556131c3bd4228ee9e9d01b4d.diff

LOG: Remove #if guards from AppendBounds to fix compile on old POSIX.

Added: 
    

Modified: 
    lldb/source/Plugins/Process/POSIX/CrashReason.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/Process/POSIX/CrashReason.cpp b/lldb/source/Plugins/Process/POSIX/CrashReason.cpp
index 058ec6ad2d975..2ae7f8390575d 100644
--- a/lldb/source/Plugins/Process/POSIX/CrashReason.cpp
+++ b/lldb/source/Plugins/Process/POSIX/CrashReason.cpp
@@ -54,7 +54,6 @@ static void AppendFaultAddr(std::string &str, lldb::addr_t addr) {
   str += ss.str();
 }
 
-#if defined(si_lower) && defined(si_upper)
 static void AppendBounds(std::string &str, lldb::addr_t lower_bound,
                          lldb::addr_t upper_bound, lldb::addr_t addr) {
   llvm::raw_string_ostream stream(str);
@@ -71,7 +70,6 @@ static void AppendBounds(std::string &str, lldb::addr_t lower_bound,
   stream << ")";
   stream.flush();
 }
-#endif
 
 static CrashReason GetCrashReasonForSIGSEGV(int code) {
   switch (code) {


        


More information about the lldb-commits mailing list