Skip to content

Commit

Permalink
gdb_c.mako: fix the handling of quotes and backslashes in dirnames
Browse files Browse the repository at this point in the history
For GitHub issue #643
  • Loading branch information
pmderodat committed May 23, 2022
1 parent 9e5e924 commit 84c46fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion langkit/templates/gdb_c.mako
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
asm(
".pushsection \".debug_gdb_scripts\", \"MS\",@progbits,1\n"
".byte 1 /* Python */\n"
".asciz \"${gdbinit_path}\"\n"
".asciz \"${gdbinit_path.replace("\\", "\\\\").replace('"', '\\\\\\"')}\"\n"
".popsection\n"
);
#endif

0 comments on commit 84c46fc

Please sign in to comment.