Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@redhat.com>
To: gdb-patches@sources.redhat.com
Cc: Eli Zaretskii <eliz@elta.co.il>
Subject: Re: [patch rfc] Dummy deprecate deluge
Date: Mon, 05 May 2003 17:58:00 -0000	[thread overview]
Message-ID: <3EB6A63F.3020506@redhat.com> (raw)
In-Reply-To: <3405-Mon05May2003061649+0300-eliz@elta.co.il>

> Hello,
> 
> This deprecates all but one of the now defunct dummy methods.  I need to investigate call_dummy_address to see if it two is no longer needed.
> 
> One, REGISTER_SIZE deserves a few comments.
> 
> In infcall.c, the dummy frame code uses REGISTER_SIZE to figure out how to convert the dummy frame words from host to target byte order:
> 
>   /* CALL_DUMMY is an array of words (REGISTER_SIZE), but each word is
>      in host byte order.  Before calling FIX_CALL_DUMMY, we byteswap
>      it and remove any extra bytes which might exist because ULONGEST
>      is bigger than REGISTER_SIZE.  */
>   /* NOTE: This is pretty wierd, as the call dummy is actually a
>      sequence of instructions.  But CISC machines will have to pack
>      the instructions into REGISTER_SIZE units (and so will RISC
>      machines for which INSTRUCTION_SIZE is not REGISTER_SIZE).  */
>   /* NOTE: This is pretty stupid.  CALL_DUMMY should be in strict
>      target byte order. */
> 
> The whole dummy mess is replaced by push_dummy_code().  I also found mi/mi-main.c:
> 
>   /* Get the value into an array */
>   buffer = xmalloc (REGISTER_SIZE);
>   old_chain = make_cleanup (xfree, buffer);
>   store_signed_integer (buffer, REGISTER_SIZE, value);
>   /* Write it down */
>   deprecated_write_register_bytes (REGISTER_BYTE (regnum), buffer, REGIS
> TER_RAW_SIZE (regnum));
> 
> I'm not sure what this one is smoking, it suspect that it should have used REGISTER_RAW_SIZE().

I've checked this in.

Andrew


> 2003-05-03  Andrew Cagney  <cagney@redhat.com>
> 
> 	* gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
> 	(DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
> 	SIZEOF_CALL_DUMMY_WORDS.
> 	(DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
> 	(DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
> 	(DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
> 	CALL_DUMMY_BREAKPOINT_OFFSET.
> 	(DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
> 	CALL_DUMMY_START_OFFSET.
> 	(DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
> 	* gdbarch.h, gdbarch.c: Re-generate.
> 	* alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
> 	* arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
> 	* dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
> 	* gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
> 	* i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
> 	* m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
> 	* mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
> 	* rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
> 	* sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
> 	* vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
> 	* config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
> 	* config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
> 	* config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
> 	* config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
> 	* config/sparc/tm-sparc.h: Update.
> 	
> Index: doc/ChangeLog
> 2003-05-03  Andrew Cagney  <cagney@redhat.com>
> 
> 	* gdbint.texinfo (Target Architecture Definition): Make
> 	CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_LENGTH,
> 	FIX_CALL_DUMMY, CALL_DUMMY_BREAKPOINT_OFFSET and
> 	CALL_DUMMY_BREAKPOINT_OFFSET deprecated.
> 
> Index: mi/ChangeLog
> 2003-05-03  Andrew Cagney  <cagney@redhat.com>
> 
> 	* mi-main.c (mi_cmd_data_write_register_values): Replace
> 	REGISTER_SIZE with DEPRECATED_REGISTER_SIZE.
> 
> Index: testsuite/ChangeLog
> 2003-05-03  Andrew Cagney  <cagney@redhat.com>
> 
> 	* gdb.base/watchpoint.exp: Rename CALL_DUMMY_BREAKPOINT_OFFSET to
> 	DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET in comments.
> 



      reply	other threads:[~2003-05-05 17:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-04  3:49 Andrew Cagney
2003-05-05  3:20 ` Eli Zaretskii
2003-05-05 17:58   ` Andrew Cagney [this message]

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=3EB6A63F.3020506@redhat.com \
    --to=ac131313@redhat.com \
    --cc=eliz@elta.co.il \
    --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