From 58e9cc13e24f668a33abdae201d59a02e10c22c0 Mon Sep 17 00:00:00 2001 From: Muhammad Omair Javaid Date: Mon, 19 Dec 2022 13:50:31 +0500 Subject: Revert "[lldb] Remove redundant .c_str() and .get() calls" This reverts commit fbaf48be0ff6fb24b9aa8fe9c2284fe88a8798dd. This has broken all LLDB buildbots: https://lab.llvm.org/buildbot/#/builders/68/builds/44990 https://lab.llvm.org/buildbot/#/builders/96/builds/33160 --- lldb/source/Commands/CommandObjectBreakpoint.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lldb/source/Commands/CommandObjectBreakpoint.cpp') diff --git a/lldb/source/Commands/CommandObjectBreakpoint.cpp b/lldb/source/Commands/CommandObjectBreakpoint.cpp index 72da81f..62e46c5 100644 --- a/lldb/source/Commands/CommandObjectBreakpoint.cpp +++ b/lldb/source/Commands/CommandObjectBreakpoint.cpp @@ -130,10 +130,10 @@ public: m_bp_opts.SetThreadID(thread_id); } break; case 'T': - m_bp_opts.GetThreadSpec()->SetName(option_arg.str()); + m_bp_opts.GetThreadSpec()->SetName(option_arg.str().c_str()); break; case 'q': - m_bp_opts.GetThreadSpec()->SetQueueName(option_arg.str()); + m_bp_opts.GetThreadSpec()->SetQueueName(option_arg.str().c_str()); break; case 'x': { uint32_t thread_index = UINT32_MAX; -- cgit v1.1