@@ -294,19 +294,19 @@ bool Debugger::GetAutoConfirm() const {
294294 idx, g_debugger_properties[idx].default_uint_value != 0 );
295295}
296296
297- const FormatEntity::Entry * Debugger::GetDisassemblyFormat () const {
297+ FormatEntity::Entry Debugger::GetDisassemblyFormat () const {
298298 constexpr uint32_t idx = ePropertyDisassemblyFormat;
299- return GetPropertyAtIndexAs<const FormatEntity::Entry * >(idx);
299+ return GetPropertyAtIndexAs<FormatEntity::Entry>(idx, {} );
300300}
301301
302- const FormatEntity::Entry * Debugger::GetFrameFormat () const {
302+ FormatEntity::Entry Debugger::GetFrameFormat () const {
303303 constexpr uint32_t idx = ePropertyFrameFormat;
304- return GetPropertyAtIndexAs<const FormatEntity::Entry * >(idx);
304+ return GetPropertyAtIndexAs<FormatEntity::Entry>(idx, {} );
305305}
306306
307- const FormatEntity::Entry * Debugger::GetFrameFormatUnique () const {
307+ FormatEntity::Entry Debugger::GetFrameFormatUnique () const {
308308 constexpr uint32_t idx = ePropertyFrameFormatUnique;
309- return GetPropertyAtIndexAs<const FormatEntity::Entry * >(idx);
309+ return GetPropertyAtIndexAs<FormatEntity::Entry>(idx, {} );
310310}
311311
312312uint64_t Debugger::GetStopDisassemblyMaxSize () const {
@@ -350,14 +350,14 @@ void Debugger::SetPrompt(llvm::StringRef p) {
350350 GetCommandInterpreter ().UpdatePrompt (new_prompt);
351351}
352352
353- const FormatEntity::Entry * Debugger::GetThreadFormat () const {
353+ FormatEntity::Entry Debugger::GetThreadFormat () const {
354354 constexpr uint32_t idx = ePropertyThreadFormat;
355- return GetPropertyAtIndexAs<const FormatEntity::Entry * >(idx);
355+ return GetPropertyAtIndexAs<FormatEntity::Entry>(idx, {} );
356356}
357357
358- const FormatEntity::Entry * Debugger::GetThreadStopFormat () const {
358+ FormatEntity::Entry Debugger::GetThreadStopFormat () const {
359359 constexpr uint32_t idx = ePropertyThreadStopFormat;
360- return GetPropertyAtIndexAs<const FormatEntity::Entry * >(idx);
360+ return GetPropertyAtIndexAs<FormatEntity::Entry>(idx, {} );
361361}
362362
363363lldb::ScriptLanguage Debugger::GetScriptLanguage () const {
@@ -492,9 +492,9 @@ bool Debugger::GetShowStatusline() const {
492492 idx, g_debugger_properties[idx].default_uint_value != 0 );
493493}
494494
495- const FormatEntity::Entry * Debugger::GetStatuslineFormat () const {
495+ FormatEntity::Entry Debugger::GetStatuslineFormat () const {
496496 constexpr uint32_t idx = ePropertyStatuslineFormat;
497- return GetPropertyAtIndexAs<const FormatEntity::Entry * >(idx);
497+ return GetPropertyAtIndexAs<FormatEntity::Entry>(idx, {} );
498498}
499499
500500bool Debugger::SetStatuslineFormat (const FormatEntity::Entry &format) {
@@ -1536,8 +1536,11 @@ bool Debugger::FormatDisassemblerAddress(const FormatEntity::Entry *format,
15361536 FormatEntity::Entry format_entry;
15371537
15381538 if (format == nullptr ) {
1539- if (exe_ctx != nullptr && exe_ctx->HasTargetScope ())
1540- format = exe_ctx->GetTargetRef ().GetDebugger ().GetDisassemblyFormat ();
1539+ if (exe_ctx != nullptr && exe_ctx->HasTargetScope ()) {
1540+ format_entry =
1541+ exe_ctx->GetTargetRef ().GetDebugger ().GetDisassemblyFormat ();
1542+ format = &format_entry;
1543+ }
15411544 if (format == nullptr ) {
15421545 FormatEntity::Parse (" ${addr}: " , format_entry);
15431546 format = &format_entry;
0 commit comments