This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] Fix CRISv32 compilation
- From: Ricard Wanderlof <ricard dot wanderlof at axis dot com>
- To: <gdb-patches at sourceware dot org>
- Date: Fri, 30 Aug 2013 15:12:54 +0200
- Subject: [PATCH] Fix CRISv32 compilation
- Authentication-results: sourceware.org; auth=none
The following patch fixes gdbserver compilation for CRISv32. I've done
a quick test that the resulting gdbserver can be used to do at least
rudimentary debugging.
Patch included inline for review and as attachement for use.
Signed-off-by: Ricard Wanderlof <ricardw@axis.com>
2013-08-30 Ricard Wanderlof <ricardw@axis.com>
gdbserver
* linux-crisv32-low.c: Fix compilation errors.
diff --git a/gdb/gdbserver/linux-crisv32-low.c b/gdb/gdbserver/linux-crisv32-low.c
index efe50a7..2849d02 100644
--- a/gdb/gdbserver/linux-crisv32-low.c
+++ b/gdb/gdbserver/linux-crisv32-low.c
@@ -369,8 +369,6 @@ cris_arch_setup (void)
current_process ()->tdesc = tdesc_crisv32;
}
-typedef unsigned long elf_gregset_t[cris_num_regs];
-
static struct regset_info cris_regsets[] = {
{ PTRACE_GETREGS, PTRACE_SETREGS, 0, cris_num_regs * 4,
GENERAL_REGS, cris_fill_gregset, cris_store_gregset },
@@ -426,7 +424,7 @@ struct linux_target_ops the_low_target = {
void
initialize_low_arch (void)
{
- init_register_crisv32 ();
+ init_registers_crisv32 ();
initialize_regsets_info (&cris_regsets_info);
}
/Ricard
--
Ricard Wolf WanderlÃf ricardw(at)axis.com
Axis Communications AB, Lund, Sweden www.axis.com
Phone +46 46 272 2016 Fax +46 46 13 61 30
diff --git a/gdb/gdbserver/linux-crisv32-low.c b/gdb/gdbserver/linux-crisv32-low.c
index efe50a7..2849d02 100644
--- a/gdb/gdbserver/linux-crisv32-low.c
+++ b/gdb/gdbserver/linux-crisv32-low.c
@@ -369,8 +369,6 @@ cris_arch_setup (void)
current_process ()->tdesc = tdesc_crisv32;
}
-typedef unsigned long elf_gregset_t[cris_num_regs];
-
static struct regset_info cris_regsets[] = {
{ PTRACE_GETREGS, PTRACE_SETREGS, 0, cris_num_regs * 4,
GENERAL_REGS, cris_fill_gregset, cris_store_gregset },
@@ -426,7 +424,7 @@ struct linux_target_ops the_low_target = {
void
initialize_low_arch (void)
{
- init_register_crisv32 ();
+ init_registers_crisv32 ();
initialize_regsets_info (&cris_regsets_info);
}