Null terminate gdb auto-load script

Fixes #2929
This commit is contained in:
Maxime Coste 2019-05-29 22:40:16 +10:00
parent 14f45c0020
commit 7efdbb456d

View File

@ -1167,7 +1167,7 @@ asm(R"(
.ascii "sys.path.insert(0, os.path.dirname(gdb.current_objfile().filename) + '/../share/kak/gdb/')\n" .ascii "sys.path.insert(0, os.path.dirname(gdb.current_objfile().filename) + '/../share/kak/gdb/')\n"
.ascii "import gdb.printing\n" .ascii "import gdb.printing\n"
.ascii "import kakoune\n" .ascii "import kakoune\n"
.ascii "gdb.printing.register_pretty_printer(gdb.current_objfile(), kakoune.build_pretty_printer())\n" .ascii "gdb.printing.register_pretty_printer(gdb.current_objfile(), kakoune.build_pretty_printer())\n\0"
.popsection .popsection
)"); )");
#endif #endif