aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
diff options
context:
space:
mode:
authorAlex Langford <alangford@apple.com>2023-08-17 10:57:05 -0700
committerAlex Langford <alangford@apple.com>2023-08-21 12:44:17 -0700
commit58fe7b751dc4a611a013a7708c1c0cac159b5f1e (patch)
treeea806210909b17533c086da7a6740de5c5edf54b /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
parent4d04baeca5d8ce0f098e4d19317c26c30e773747 (diff)
downloadllvm-58fe7b751dc4a611a013a7708c1c0cac159b5f1e.zip
llvm-58fe7b751dc4a611a013a7708c1c0cac159b5f1e.tar.gz
llvm-58fe7b751dc4a611a013a7708c1c0cac159b5f1e.tar.bz2
[lldb] Change UnixSignals::GetSignalAsCString to GetSignalAsStringRef
This is in preparation to remove the uses of ConstString from UnixSignals. Differential Revision: https://reviews.llvm.org/D158209
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
index 68c3439..5391187 100644
--- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -3384,10 +3384,10 @@ void ProcessGDBRemote::MonitorDebugserverProcess(
stream.Format(DEBUGSERVER_BASENAME " died with an exit status of {0:x8}",
exit_status);
else {
- const char *signal_name =
- process_sp->GetUnixSignals()->GetSignalAsCString(signo);
+ llvm::StringRef signal_name =
+ process_sp->GetUnixSignals()->GetSignalAsStringRef(signo);
const char *format_str = DEBUGSERVER_BASENAME " died with signal {0}";
- if (signal_name)
+ if (!signal_name.empty())
stream.Format(format_str, signal_name);
else
stream.Format(format_str, signo);