Added
Link Here
|
0 |
- |
1 |
--- src/main.cc.orig 2021-10-25 11:31:24 UTC |
|
|
2 |
+++ src/main.cc |
3 |
@@ -1249,8 +1249,12 @@ int main(int argc, char* argv[]) |
4 |
} |
5 |
|
6 |
#if defined(__ELF__) |
7 |
-asm(R"( |
8 |
-.pushsection ".debug_gdb_scripts", "MS",@progbits,1 |
9 |
+#ifdef __arm__ |
10 |
+# define PROGBITS "%progbits" |
11 |
+#else |
12 |
+# define PROGBITS "@progbits" |
13 |
+#endif |
14 |
+asm(".pushsection \".debug_gdb_scripts\", \"MS\"," PROGBITS ",1" R"( |
15 |
.byte 4 |
16 |
.ascii "kakoune-inline-gdb.py\n" |
17 |
.ascii "import os.path\n" |