From e0153bc05478a0dc39c5458946b5fefb1f14674c Mon Sep 17 00:00:00 2001 From: Simon Sobisch Date: Mon, 4 Nov 2024 08:41:50 +0000 Subject: [PATCH] fix regression from #3867 missing CXX string escape for \n --- src/launch_debugger.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/launch_debugger.cc b/src/launch_debugger.cc index 02cef9c15a9..2598c675f8e 100644 --- a/src/launch_debugger.cc +++ b/src/launch_debugger.cc @@ -50,8 +50,8 @@ static const string& gdb_rr_macros() { ss << DebuggerExtensionCommandHandler::gdb_macros() // gdb warns about redefining inbuilt commands, silence that by // wrapping it in python code - << "python gdb.execute('define jump\nrr-denied jump\nend')" - << "python gdb.execute('define restart\nrun c$arg0\nend')" + << "python gdb.execute('define jump\\nrr-denied jump\\nend')\n" + << "python gdb.execute('define restart\\nrun c$arg0\\nend')\n" << "document restart\n" << "restart at checkpoint N\n" << "checkpoints are created with the 'checkpoint' command\n"