* ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
with a call to internal_error.
This commit is contained in:
parent
383f0f5b9a
commit
d0b57c3ab1
2 changed files with 8 additions and 26 deletions
|
@ -1,5 +1,8 @@
|
||||||
2004-05-10 Jim Blandy <jimb@redhat.com>
|
2004-05-10 Jim Blandy <jimb@redhat.com>
|
||||||
|
|
||||||
|
* ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
|
||||||
|
with a call to internal_error.
|
||||||
|
|
||||||
* ppc-tdep.h (struct gdbarch_tdep): Change definition of
|
* ppc-tdep.h (struct gdbarch_tdep): Change definition of
|
||||||
ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
|
ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
|
||||||
processor variant lacks those registers.
|
processor variant lacks those registers.
|
||||||
|
|
|
@ -156,20 +156,10 @@ bdm_ppc_fetch_registers (int regno)
|
||||||
{
|
{
|
||||||
struct gdbarch_tdep *tdep = gdbarch_tdep (current_gdbarch);
|
struct gdbarch_tdep *tdep = gdbarch_tdep (current_gdbarch);
|
||||||
int i;
|
int i;
|
||||||
unsigned char *regs, *beginregs, *endregs, *almostregs;
|
unsigned char *regs;
|
||||||
unsigned char midregs[32];
|
|
||||||
unsigned char mqreg[1];
|
|
||||||
int first_regno, last_regno;
|
int first_regno, last_regno;
|
||||||
int first_bdm_regno, last_bdm_regno;
|
int first_bdm_regno, last_bdm_regno;
|
||||||
int reglen, beginreglen, endreglen;
|
int reglen;
|
||||||
|
|
||||||
#if 1
|
|
||||||
for (i = 0; i < ppc_num_fprs; i++)
|
|
||||||
{
|
|
||||||
midregs[i] = -1;
|
|
||||||
}
|
|
||||||
mqreg[0] = -1;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (regno == -1)
|
if (regno == -1)
|
||||||
{
|
{
|
||||||
|
@ -224,20 +214,9 @@ bdm_ppc_fetch_registers (int regno)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
/* want all regs */
|
internal_error (__FILE__, __LINE__,
|
||||||
{
|
"ppc_bdm_fetch_registers: "
|
||||||
/* printf("Asking for registers %d to %d\n", first_regno, last_regno); */
|
"'all registers' case not implemented");
|
||||||
beginregs = ocd_read_bdm_registers (first_bdm_regno,
|
|
||||||
tdep->ppc_fp0_regnum - 1,
|
|
||||||
&beginreglen);
|
|
||||||
endregs
|
|
||||||
= (strcat (midregs,
|
|
||||||
ocd_read_bdm_registers (tdep->ppc_fp0_regnum + ppc_num_fprs,
|
|
||||||
last_bdm_regno - 1, &endreglen)));
|
|
||||||
almostregs = (strcat (beginregs, endregs));
|
|
||||||
regs = (strcat (almostregs, mqreg));
|
|
||||||
reglen = beginreglen + 32 + endreglen + 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
#if 0
|
#if 0
|
||||||
|
|
Loading…
Reference in a new issue