Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jim Blandy <jimb@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: [ppc64-linux] Cope with non-existent MQ register
Date: Wed, 28 May 2003 19:08:00 -0000	[thread overview]
Message-ID: <vt2u1beg9tp.fsf@zenia.red-bean.com> (raw)


2003-05-14  James Blandy  <jimb@redhat.com>

	* 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.

Index: gdb/ppc-linux-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/ppc-linux-nat.c,v
retrieving revision 1.21
retrieving revision 1.21.6.1
diff -c -r1.21 -r1.21.6.1
*** gdb/ppc-linux-nat.c	8 May 2003 20:52:48 -0000	1.21
--- gdb/ppc-linux-nat.c	28 May 2003 16:51:21 -0000	1.21.6.1
***************
*** 147,154 ****
--- 147,156 ----
      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,511 ****
--- 505,515 ----
      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);
  }


             reply	other threads:[~2003-05-28 19:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-28 19:08 Jim Blandy [this message]
2003-06-11  0:34 ` Kevin Buettner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=vt2u1beg9tp.fsf@zenia.red-bean.com \
    --to=jimb@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox