This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 15/20] Multi-process + multiarch: GDBserver: GNU/Linux TI C6x
On 04/11/2012 07:49 AM, Pedro Alves wrote:
> This adjusts the GNU/Linux TI C6x port to new interfaces.
>
> Completely untested.
This patch attached fixed build failures. I'll have a test on a c64xp
board later.
--
Yao (éå)
diff --git a/gdb/gdbserver/linux-tic6x-low.c b/gdb/gdbserver/linux-tic6x-low.c
index 2f4ce5f..98ee1cb 100644
--- a/gdb/gdbserver/linux-tic6x-low.c
+++ b/gdb/gdbserver/linux-tic6x-low.c
@@ -21,6 +21,7 @@
#include "server.h"
#include "linux-low.h"
+#include "tdesc.h"
#include <sys/ptrace.h>
#include <endian.h>
@@ -38,15 +39,15 @@
/* Defined in auto-generated file tic6x-c64xp-linux.c. */
void init_registers_tic6x_c64xp_linux (void);
-extern target_desc *tdesc_tic6x_c64xp_linux;
+extern struct target_desc *tdesc_tic6x_c64xp_linux;
/* Defined in auto-generated file tic6x-c64x-linux.c. */
void init_registers_tic6x_c64x_linux (void);
-extern target_desc *tdesc_tic6x_c64x_linux;
+extern struct target_desc *tdesc_tic6x_c64x_linux;
/* Defined in auto-generated file tic62x-c6xp-linux.c. */
void init_registers_tic6x_c62x_linux (void);
-extern target_desc *tdesc_tic6x_c62x_linux;
+extern struct target_desc *tdesc_tic6x_c62x_linux;
union tic6x_register
{
@@ -343,7 +344,7 @@ static struct regsets_info tic6x_regsets_info =
static struct usrregs_info tic6x_usrregs_info =
{
TIC6X_NUM_REGS,
- tic6x_regmap,
+ NULL, /* Set in tic6x_read_description. */
};
static struct regs_info regs_info =
@@ -360,6 +361,7 @@ tic6x_regs_info (void)
}
struct linux_target_ops the_low_target = {
+ tic6x_arch_setup,
tic6x_regs_info,
tic6x_cannot_fetch_register,
tic6x_cannot_store_register,