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: RFA: remove regoff array
Date: Tue, 01 Jun 2004 22:27:00 -0000	[thread overview]
Message-ID: <vt2oeo2zzi6.fsf@zenia.home> (raw)


Since we're not using a legacy regcache any more, the regoff member of
the PPC's 'struct gdbarch_tdep' is unused.

2004-05-28  Jim Blandy  <jimb@redhat.com>

	* ppc-tdep.h: Delete unused 'regoff' member.
	* rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.

Index: gdb/ppc-tdep.h
===================================================================
RCS file: /cvs/src/src/gdb/ppc-tdep.h,v
retrieving revision 1.35
diff -c -p -r1.35 ppc-tdep.h
*** gdb/ppc-tdep.h	22 May 2004 06:03:26 -0000	1.35
--- gdb/ppc-tdep.h	28 May 2004 22:01:50 -0000
*************** extern void ppc_collect_fpregset (const 
*** 142,148 ****
  struct gdbarch_tdep
    {
      int wordsize;              /* size in bytes of fixed-point word */
-     int *regoff;               /* byte offsets in register arrays */
      const struct reg *regs;    /* from current variant */
      int ppc_gp0_regnum;		/* GPR register 0 */
      int ppc_toc_regnum;		/* TOC register */
--- 142,147 ----
Index: gdb/rs6000-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/rs6000-tdep.c,v
retrieving revision 1.210
diff -c -p -r1.210 rs6000-tdep.c
*** gdb/rs6000-tdep.c	28 May 2004 21:59:37 -0000	1.210
--- gdb/rs6000-tdep.c	28 May 2004 22:01:51 -0000
*************** rs6000_gdbarch_init (struct gdbarch_info
*** 2896,2909 ****
    else
      tdep->lr_frame_offset = 8;
  
-   /* Calculate byte offsets in raw register array.  */
-   tdep->regoff = xmalloc (v->num_tot_regs * sizeof (int));
-   for (i = off = 0; i < v->num_tot_regs; i++)
-     {
-       tdep->regoff[i] = off;
-       off += regsize (v->regs + i, wordsize);
-     }
- 
    if (v->arch == bfd_arch_powerpc)
      switch (v->mach)
        {
--- 2896,2901 ----


             reply	other threads:[~2004-06-01 22:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-01 22:27 Jim Blandy [this message]
2004-06-01 22:35 ` Kevin Buettner
2004-06-02 17:11   ` Jim Blandy

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=vt2oeo2zzi6.fsf@zenia.home \
    --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