Skip to content

Commit

Permalink
fix regression from #3867
Browse files Browse the repository at this point in the history
missing CXX string escape for \n
  • Loading branch information
GitMensch committed Nov 4, 2024
1 parent bb65164 commit e0153bc
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')\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"
Expand Down

0 comments on commit e0153bc

Please sign in to comment.