summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2018-10-01 13:20:15 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2018-10-01 13:20:15 +0000
commite43be156ebd9eb61d75285eae35696097cb046e5 (patch)
treef9fca47d5a9673c4728da029debf5ec8ceca6888
parentabda7ee8e75bb79630edd0e213033a55178da64d (diff)
downloadbcm5719-llvm-e43be156ebd9eb61d75285eae35696097cb046e5.tar.gz
bcm5719-llvm-e43be156ebd9eb61d75285eae35696097cb046e5.zip
Escape newlines in default disassembly format.
We can safely escape newlines in format strings because they will be ignored by the format entity parser. llvm-svn: 343470
-rw-r--r--lldb/source/Core/Debugger.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp
index b7bf76be4ff..1c2d69cb58a 100644
--- a/lldb/source/Core/Debugger.cpp
+++ b/lldb/source/Core/Debugger.cpp
@@ -163,8 +163,8 @@ static constexpr OptionEnumValueElement g_language_enumerators[] = {
// address <+offset>:
#define DEFAULT_DISASSEMBLY_FORMAT \
"{${function.initial-function}{${module.file.basename}`}{${function.name-" \
- "without-args}}:\n}{${function.changed}\n{${module.file.basename}`}{${" \
- "function.name-without-args}}:\n}{${current-pc-arrow} " \
+ "without-args}}:\\n}{${function.changed}\\n{${module.file.basename}`}{${" \
+ "function.name-without-args}}:\\n}{${current-pc-arrow} " \
"}${addr-file-or-load}{ " \
"<${function.concrete-only-addr-offset-no-padding}>}: "
OpenPOWER on IntegriCloud