Skip to content

Commit

Permalink
fix regression from rr-debugger#3867
Browse files Browse the repository at this point in the history
missing CXX string escape for \n
  • Loading branch information
GitMensch authored Nov 4, 2024
1 parent bb65164 commit 9f7c2fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/launch_debugger.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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')"
<< "python gdb.execute('define restart\\nrun c$arg0\\nend')"
<< "document restart\n"
<< "restart at checkpoint N\n"
<< "checkpoints are created with the 'checkpoint' command\n"
Expand Down

0 comments on commit 9f7c2fc

Please sign in to comment.