aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicard Wanderlof <ricard@sourceware.org>2013-09-06 08:23:46 +0000
committerRicard Wanderlof <ricard@sourceware.org>2013-09-06 08:23:46 +0000
commit18b3c2f515f3b759b43b4b147f368c238694e883 (patch)
tree0740b324815b0860cf23d4861c2453305623c074
parentdc8636efde7aac89f967f196b48456ad1d218cd8 (diff)
downloadgdb-18b3c2f515f3b759b43b4b147f368c238694e883.zip
gdb-18b3c2f515f3b759b43b4b147f368c238694e883.tar.gz
gdb-18b3c2f515f3b759b43b4b147f368c238694e883.tar.bz2
Cosmetic clean up of names of *elf_greg_t types for CRIS/CRISv32.
2013-09-06 Ricard Wanderlof <ricardw@axis.com> * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t. (cris_elf_gregset_t): Rename from elf_gregset_t. (crisv32_elf_gregset_t): Adjust. (cris_supply_gregset, fetch_core_registers): Adjust.
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/cris-tdep.c18
2 files changed, 16 insertions, 9 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 88474ba..eb023b1 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,12 @@
2013-09-06 Ricard Wanderlof <ricardw@axis.com>
+ * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
+ (cris_elf_gregset_t): Rename from elf_gregset_t.
+ (crisv32_elf_gregset_t): Adjust.
+ (cris_supply_gregset, fetch_core_registers): Adjust.
+
+2013-09-06 Ricard Wanderlof <ricardw@axis.com>
+
* cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
2013-09-05 Andrew Burgess <aburgess@broadcom.com>
diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c
index 80ab1b8..1b0e3cd 100644
--- a/gdb/cris-tdep.c
+++ b/gdb/cris-tdep.c
@@ -3819,25 +3819,25 @@ cris_delayed_get_disassembler (bfd_vma addr, struct disassemble_info *info)
return print_insn (addr, info);
}
-/* Copied from <asm/elf.h>. */
-typedef unsigned char elf_greg_t[4];
+/* Originally from <asm/elf.h>. */
+typedef unsigned char cris_elf_greg_t[4];
/* Same as user_regs_struct struct in <asm/user.h>. */
#define CRISV10_ELF_NGREG 35
-typedef elf_greg_t elf_gregset_t[CRISV10_ELF_NGREG];
+typedef cris_elf_greg_t cris_elf_gregset_t[CRISV10_ELF_NGREG];
#define CRISV32_ELF_NGREG 32
-typedef elf_greg_t crisv32_elf_gregset_t[CRISV32_ELF_NGREG];
+typedef cris_elf_greg_t crisv32_elf_gregset_t[CRISV32_ELF_NGREG];
-/* Unpack an elf_gregset_t into GDB's register cache. */
+/* Unpack a cris_elf_gregset_t into GDB's register cache. */
static void
-cris_supply_gregset (struct regcache *regcache, elf_gregset_t *gregsetp)
+cris_supply_gregset (struct regcache *regcache, cris_elf_gregset_t *gregsetp)
{
struct gdbarch *gdbarch = get_regcache_arch (regcache);
struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
int i;
- elf_greg_t *regp = *gregsetp;
+ cris_elf_greg_t *regp = *gregsetp;
static char zerobuf[4] = {0};
/* The kernel dumps all 32 registers as unsigned longs, but supply_register
@@ -3868,12 +3868,12 @@ fetch_core_registers (struct regcache *regcache,
char *core_reg_sect, unsigned core_reg_size,
int which, CORE_ADDR reg_addr)
{
- elf_gregset_t gregset;
+ cris_elf_gregset_t gregset;
switch (which)
{
case 0:
- if (core_reg_size != sizeof (elf_gregset_t)
+ if (core_reg_size != sizeof (cris_elf_gregset_t)
&& core_reg_size != sizeof (crisv32_elf_gregset_t))
{
warning (_("wrong size gregset struct in core file"));