From: Jim Blandy Date: Thu, 12 Jun 2003 23:30:40 +0000 (+0000) Subject: * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f8c592535f6186d1a46e8270ddff7b71e867d927;p=binutils-gdb.git * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ isn't #defined, assume the register doesn't exist: act as if tdep->ppc_mq_regnum were -1. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index bdeab021a80..d7029fa7f76 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2003-06-12 Jim Blandy + * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ + isn't #defined, assume the register doesn't exist: act as if + tdep->ppc_mq_regnum were -1. + * configure.host, configure.tgt: Add entries for powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and powerpc/linux.mt. diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c index d320499fecf..e1649197e8f 100644 --- a/gdb/ppc-linux-nat.c +++ b/gdb/ppc-linux-nat.c @@ -147,8 +147,10 @@ ppc_register_u_addr (int regno) u_addr = PT_XER * 4; if (regno == tdep->ppc_ctr_regnum) u_addr = PT_CTR * 4; +#ifdef PT_MQ if (regno == tdep->ppc_mq_regnum) u_addr = PT_MQ * 4; +#endif if (regno == tdep->ppc_ps_regnum) u_addr = PT_MSR * 4; if (regno == tdep->ppc_fpscr_regnum) @@ -503,9 +505,11 @@ fill_gregset (gdb_gregset_t *gregsetp, int regno) regcache_collect (tdep->ppc_xer_regnum, regp + PT_XER); if ((regno == -1) || regno == tdep->ppc_ctr_regnum) regcache_collect (tdep->ppc_ctr_regnum, regp + PT_CTR); +#ifdef PT_MQ if (((regno == -1) || regno == tdep->ppc_mq_regnum) && (tdep->ppc_mq_regnum != -1)) regcache_collect (tdep->ppc_mq_regnum, regp + PT_MQ); +#endif if ((regno == -1) || regno == tdep->ppc_ps_regnum) regcache_collect (tdep->ppc_ps_regnum, regp + PT_MSR); }