This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
[PATCH]: multi-arch tweak for sparclet-rom.c
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: [PATCH]: multi-arch tweak for sparclet-rom.c
- From: msnyder at cygnus dot com
- Date: Wed, 26 Apr 2000 18:10:18 -0700 (PDT)
To get away from using the REGISTER_NAMES macro, it's necessary to
initialize this local array of register names explicitly. I know it
is ugly to just duplicate the list of names found in the tm.h file,
but that is what most other existing rom modules do. The monitor
mechanism depends on having its own local copy of this array of
string names.
2000-04-26 Michael Snyder <msnyder@seadog.cygnus.com>
* sparclet-rom.c (sparclet_regnames): Initialize this array
explicitly rather than use the REGISTER_NAMES macro (which must
eventually go away for Multi-Arch).
Index: sparclet-rom.c
===================================================================
RCS file: /cvs/src/src/gdb/sparclet-rom.c,v
retrieving revision 1.1.1.2
diff -c -r1.1.1.2 sparclet-rom.c
*** sparclet-rom.c 1999/07/07 20:10:12 1.1.1.2
--- sparclet-rom.c 2000/04/27 01:07:58
***************
*** 61,67 ****
/* is wim part of psr?? */
/* monitor wants lower case */
! static char *sparclet_regnames[NUM_REGS] = REGISTER_NAMES;
/* Function: sparclet_supply_register
--- 61,92 ----
/* is wim part of psr?? */
/* monitor wants lower case */
! static char *sparclet_regnames[] = {
! "g0", "g1", "g2", "g3", "g4", "g5", "g6", "g7",
! "o0", "o1", "o2", "o3", "o4", "o5", "o6", "o7",
! "l0", "l1", "l2", "l3", "l4", "l5", "l6", "l7",
! "i0", "i1", "i2", "i3", "i4", "i5", "i6", "i7",
!
! "", "", "", "", "", "", "", "", /* no FPU regs */
! "", "", "", "", "", "", "", "",
! "", "", "", "", "", "", "", "",
! "", "", "", "", "", "", "", "",
! /* no CPSR, FPSR */
! "y", "psr", "wim", "tbr", "pc", "npc", "", "",
!
! "ccsr", "ccpr", "cccrcr", "ccor", "ccobr", "ccibr", "ccir", "",
!
! /* ASR15 ASR19 (don't display them) */
! "asr1", "", "asr17", "asr18", "", "asr20", "asr21", "asr22",
! /*
! "awr0", "awr1", "awr2", "awr3", "awr4", "awr5", "awr6", "awr7",
! "awr8", "awr9", "awr10", "awr11", "awr12", "awr13", "awr14", "awr15",
! "awr16", "awr17", "awr18", "awr19", "awr20", "awr21", "awr22", "awr23",
! "awr24", "awr25", "awr26", "awr27", "awr28", "awr29", "awr30", "awr31",
! "apsr",
! */
! };
!
/* Function: sparclet_supply_register