projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
c_value_print: Revert 'val' to a reference for TYPE_CODE_STRUCT
[deliverable/binutils-gdb.git]
/
gdb
/
gdbserver
/
linux-ia64-low.c
diff --git
a/gdb/gdbserver/linux-ia64-low.c
b/gdb/gdbserver/linux-ia64-low.c
index deedb21fea689bf30995a19e125c64ddc4dd7d2b..30699088d1d66a4a533ec6a4d3760459cd8bf880 100644
(file)
--- a/
gdb/gdbserver/linux-ia64-low.c
+++ b/
gdb/gdbserver/linux-ia64-low.c
@@
-1,5
+1,5
@@
/* GNU/Linux/IA64 specific low level interface, for the remote server for GDB.
/* GNU/Linux/IA64 specific low level interface, for the remote server for GDB.
- Copyright (C) 1995-201
3
Free Software Foundation, Inc.
+ Copyright (C) 1995-201
6
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-25,6
+25,7
@@
/* Defined in auto-generated file reg-ia64.c. */
void init_registers_ia64 (void);
/* Defined in auto-generated file reg-ia64.c. */
void init_registers_ia64 (void);
+extern const struct target_desc *tdesc_ia64;
#define ia64_num_regs 462
#define ia64_num_regs 462
@@
-290,7
+291,7
@@
ia64_fetch_register (struct regcache *regcache, int regnum)
{
const gdb_byte zero[8] = { 0 };
{
const gdb_byte zero[8] = { 0 };
- gdb_assert (sizeof (zero) == register_size (regnum));
+ gdb_assert (sizeof (zero) == register_size (reg
cache->tdesc, reg
num));
supply_register (regcache, regnum, zero);
return 1;
}
supply_register (regcache, regnum, zero);
return 1;
}
@@
-300,7
+301,7
@@
ia64_fetch_register (struct regcache *regcache, int regnum)
{
const gdb_byte f_zero[16] = { 0 };
{
const gdb_byte f_zero[16] = { 0 };
- gdb_assert (sizeof (f_zero) == register_size (regnum));
+ gdb_assert (sizeof (f_zero) == register_size (reg
cache->tdesc, reg
num));
supply_register (regcache, regnum, f_zero);
return 1;
}
supply_register (regcache, regnum, f_zero);
return 1;
}
@@
-311,7
+312,7
@@
ia64_fetch_register (struct regcache *regcache, int regnum)
const gdb_byte f_one[16] =
{ 0, 0, 0, 0, 0, 0, 0, 0x80, 0xff, 0xff, 0, 0, 0, 0, 0, 0 };
const gdb_byte f_one[16] =
{ 0, 0, 0, 0, 0, 0, 0, 0x80, 0xff, 0xff, 0, 0, 0, 0, 0, 0 };
- gdb_assert (sizeof (f_one) == register_size (regnum));
+ gdb_assert (sizeof (f_one) == register_size (reg
cache->tdesc, reg
num));
supply_register (regcache, regnum, f_one);
return 1;
}
supply_register (regcache, regnum, f_one);
return 1;
}
@@
-319,12
+320,41
@@
ia64_fetch_register (struct regcache *regcache, int regnum)
return 0;
}
return 0;
}
+static struct usrregs_info ia64_usrregs_info =
+ {
+ ia64_num_regs,
+ ia64_regmap,
+ };
+
+static struct regs_info regs_info =
+ {
+ NULL, /* regset_bitmap */
+ &ia64_usrregs_info
+ };
+
+static const struct regs_info *
+ia64_regs_info (void)
+{
+ return ®s_info;
+}
+
+static void
+ia64_arch_setup (void)
+{
+ current_process ()->tdesc = tdesc_ia64;
+}
+
+
struct linux_target_ops the_low_target = {
struct linux_target_ops the_low_target = {
- init_registers_ia64,
- ia64_num_regs,
- ia64_regmap,
- NULL,
+ ia64_arch_setup,
+ ia64_regs_info,
ia64_cannot_fetch_register,
ia64_cannot_store_register,
ia64_fetch_register,
};
ia64_cannot_fetch_register,
ia64_cannot_store_register,
ia64_fetch_register,
};
+
+void
+initialize_low_arch (void)
+{
+ init_registers_ia64 ();
+}
This page took
0.025482 seconds
and
4
git commands to generate.