Skip to content

Commit e4ad71d

Browse files
committed
[lldb] Highlight basenames in backtraces instead of PC value
1 parent 7a977eb commit e4ad71d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lldb/source/Core/CoreProperties.td

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ let Definition = "debugger" in {
112112
Desc<"The default disassembly format string to use when disassembling instruction sequences.">;
113113
def FrameFormat: Property<"frame-format", "FormatEntity">,
114114
Global,
115-
DefaultStringValue<"frame #${frame.index}: ${ansi.fg.yellow}${frame.pc}${ansi.normal}{ ${module.file.basename}{`${function.name-with-args}{${frame.no-debug}${function.pc-offset}}}}{ at ${ansi.fg.cyan}${line.file.basename}${ansi.normal}:${ansi.fg.yellow}${line.number}${ansi.normal}{:${ansi.fg.yellow}${line.column}${ansi.normal}}}{${function.is-optimized} [opt]}{${frame.is-artificial} [artificial]}\\\\n">,
115+
DefaultStringValue<"frame #${frame.index}: ${ansi.fg.cyan}${frame.pc}${ansi.normal}{ ${module.file.basename}{`${function.name-with-args}{${frame.no-debug}${function.pc-offset}}}}{ at ${ansi.fg.cyan}${line.file.basename}${ansi.normal}:${ansi.fg.yellow}${line.number}${ansi.normal}{:${ansi.fg.yellow}${line.column}${ansi.normal}}}{${function.is-optimized} [opt]}{${frame.is-artificial} [artificial]}\\\\n">,
116116
Desc<"The default frame format string to use when displaying stack frame information for threads.">;
117117
def NotiftVoid: Property<"notify-void", "Boolean">,
118118
Global,
@@ -268,7 +268,7 @@ let Definition = "debugger" in {
268268
Desc<"If true, LLDB will automatically escape non-printable and escape characters when formatting strings.">;
269269
def FrameFormatUnique: Property<"frame-format-unique", "FormatEntity">,
270270
Global,
271-
DefaultStringValue<"frame #${frame.index}: ${ansi.fg.yellow}${frame.pc}${ansi.normal}{ ${module.file.basename}{`${function.name-without-args}{${frame.no-debug}${function.pc-offset}}}}{ at ${ansi.fg.cyan}${line.file.basename}${ansi.normal}:${ansi.fg.yellow}${line.number}${ansi.normal}{:${ansi.fg.yellow}${line.column}${ansi.normal}}}{${function.is-optimized} [opt]}{${frame.is-artificial} [artificial]}\\\\n">,
271+
DefaultStringValue<"frame #${frame.index}: ${ansi.fg.cyan}${frame.pc}${ansi.normal}{ ${module.file.basename}{`${function.name-without-args}{${frame.no-debug}${function.pc-offset}}}}{ at ${ansi.fg.cyan}${line.file.basename}${ansi.normal}:${ansi.fg.yellow}${line.number}${ansi.normal}{:${ansi.fg.yellow}${line.column}${ansi.normal}}}{${function.is-optimized} [opt]}{${frame.is-artificial} [artificial]}\\\\n">,
272272
Desc<"The default frame format string to use when displaying stack frame information for threads from thread backtrace unique.">;
273273
def ShowAutosuggestion: Property<"show-autosuggestion", "Boolean">,
274274
Global,

lldb/source/Plugins/Language/CPlusPlus/LanguageCPlusPlusProperties.td

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ include "../../../../include/lldb/Core/PropertiesBase.td"
33
let Definition = "language_cplusplus" in {
44
def FunctionNameFormat: Property<"function-name-format", "FormatEntity">,
55
Global,
6-
DefaultStringValue<"${function.return-left}${function.scope}${function.basename}${function.template-arguments}${function.formatted-arguments}${function.return-right}${function.qualifiers}">,
6+
DefaultStringValue<"${function.return-left}${function.scope}${ansi.fg.yellow}${function.basename}${ansi.normal}${function.template-arguments}${function.formatted-arguments}${function.return-right}${function.qualifiers}">,
77
Desc<"C++ specific frame format string to use when displaying stack frame information for threads.">;
88
}

0 commit comments

Comments
 (0)