diff options
-rw-r--r-- | meta-microblaze/recipes-devtools/gdb/gdb-microblaze.inc | 1 | ||||
-rw-r--r-- | meta-microblaze/recipes-devtools/gdb/gdb/0009-gdb-gdserver-Fix-ABI-settings-for-gdbserver.patch | 33 |
2 files changed, 34 insertions, 0 deletions
diff --git a/meta-microblaze/recipes-devtools/gdb/gdb-microblaze.inc b/meta-microblaze/recipes-devtools/gdb/gdb-microblaze.inc index 5eae0577..d3618229 100644 --- a/meta-microblaze/recipes-devtools/gdb/gdb-microblaze.inc +++ b/meta-microblaze/recipes-devtools/gdb/gdb-microblaze.inc | |||
@@ -13,4 +13,5 @@ SRC_URI:append:microblaze = " \ | |||
13 | file://0006-Patch-MicroBlaze-these-changes-will-make-64-bit-vect.patch \ | 13 | file://0006-Patch-MicroBlaze-these-changes-will-make-64-bit-vect.patch \ |
14 | file://0007-Patch-MicroBlaze-Added-m64-abi-for-64-bit-target-des.patch \ | 14 | file://0007-Patch-MicroBlaze-Added-m64-abi-for-64-bit-target-des.patch \ |
15 | file://0008-Patch-MicroBlaze.patch \ | 15 | file://0008-Patch-MicroBlaze.patch \ |
16 | file://0009-gdb-gdserver-Fix-ABI-settings-for-gdbserver.patch \ | ||
16 | " | 17 | " |
diff --git a/meta-microblaze/recipes-devtools/gdb/gdb/0009-gdb-gdserver-Fix-ABI-settings-for-gdbserver.patch b/meta-microblaze/recipes-devtools/gdb/gdb/0009-gdb-gdserver-Fix-ABI-settings-for-gdbserver.patch new file mode 100644 index 00000000..93f67800 --- /dev/null +++ b/meta-microblaze/recipes-devtools/gdb/gdb/0009-gdb-gdserver-Fix-ABI-settings-for-gdbserver.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From 53b76bb548720367032a51a6d604c975b10bb30e Mon Sep 17 00:00:00 2001 | ||
2 | From: Aayush Misra <aayushm@amd.com> | ||
3 | Date: Fri, 29 Mar 2024 14:59:16 +0530 | ||
4 | Subject: [PATCH] gdb/gdserver: Fix ABI settings for gdbserver | ||
5 | |||
6 | --- | ||
7 | gdb/microblaze-tdep.c | 7 ++++--- | ||
8 | 1 file changed, 4 insertions(+), 3 deletions(-) | ||
9 | |||
10 | diff --git a/gdb/microblaze-tdep.c b/gdb/microblaze-tdep.c | ||
11 | index 38ba38e8c7d..35cec286d8f 100644 | ||
12 | --- a/gdb/microblaze-tdep.c | ||
13 | +++ b/gdb/microblaze-tdep.c | ||
14 | @@ -1120,12 +1120,13 @@ void _initialize_microblaze_tdep (); | ||
15 | void | ||
16 | _initialize_microblaze_tdep () | ||
17 | { | ||
18 | + //Setting abi to auto manually, should be able to modify in 'arch'_gdbarch_init function | ||
19 | + microblaze_abi_string = microblaze_abi_strings[0]; | ||
20 | + | ||
21 | register_gdbarch_init (bfd_arch_microblaze, microblaze_gdbarch_init); | ||
22 | -// static struct cmd_list_element *setmicroblazecmdlist = NULL; | ||
23 | -// static struct cmd_list_element *showmicroblazecmdlist = NULL; | ||
24 | |||
25 | - /* Add root prefix command for all "set microblaze"/"show microblaze" commands. */ | ||
26 | |||
27 | + /* Add root prefix command for all "set microblaze"/"show microblaze" commands. */ | ||
28 | add_setshow_prefix_cmd ("microblaze", no_class, | ||
29 | _("Various microblaze specific commands."), | ||
30 | _("Various microblaze specific commands."), | ||
31 | -- | ||
32 | 2.34.1 | ||
33 | |||