Only embed gdb script on ELF targets, and add missing gdb symlink

This commit is contained in:
Maxime Coste 2019-01-23 20:59:32 +11:00
parent ebc9f7703b
commit 90dd084993
2 changed files with 3 additions and 0 deletions

1
share/kak/gdb Symbolic link
View File

@ -0,0 +1 @@
../../gdb/

View File

@ -1140,6 +1140,7 @@ int main(int argc, char* argv[])
return 0; return 0;
} }
#if defined(__ELF__)
asm(R"( asm(R"(
.pushsection ".debug_gdb_scripts", "MS",@progbits,1 .pushsection ".debug_gdb_scripts", "MS",@progbits,1
.byte 4 .byte 4
@ -1151,3 +1152,4 @@ asm(R"(
.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"
.popsection .popsection
)"); )");
#endif