Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@cygnus.com>
To: Elena Zannoni <ezannoni@cygnus.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA] Multiarch tm_print_insn
Date: Tue, 21 Aug 2001 17:33:00 -0000	[thread overview]
Message-ID: <3B82FDD5.7000306@cygnus.com> (raw)
In-Reply-To: <15234.61471.459368.455580@krustylu.cygnus.com>

> This patch multiarches tm_print_insn.
> I changed all the direct callers to (*tm_print_insn), to use
> the multiarch macro TARGET_PRINT_INSN.
> 
> If a target doesn't set the multiarch function, gdb falls back to
> using the global, via an access function called legacy_print_insn.

Er, wow, yes it works!  Long ago when I first started multi-arching 
stuff I put that one in the too hard basket.

Any way, ok by me.

--

Several things I noticed if you're looking for a second pass.

Both chris-tdep.c and d10v-tdep.c might as well initialize the 
multi-arch field?

Should I add ``/tm_print_insn = /'' to the ARI?

The d10v-tdep.c, at least, has the same bug that Keith just fixed in 
printcmd.c!!

	Andrew

> Elena
> 
> 2001-08-01  Elena Zannoni  <ezannoni@redhat.com>
> 
> * gdbarch.sh: Move include of dis-asm.h so it is generated earlier
> 	in gdbarch.h. 
> 	(TARGET_PRINT_INSN): Multiarch.
> 	* gdbarch.h: Regenerate.	
> 	* gdbarch.c: Regenerate.	
> 
> 	* arch-utils.c (legacy_print_insn): New function.
> 	* arch-utils.h (legacy_print_insn): Export.
> 
> 	* cris-tdep.c (cris_delayed_get_disassembler): Use
> 	TARGET_PRINT_INSN, instead of tm_print_insn.
> 	* d10v-tdep.c (print_insn): Ditto.
> 	* d30v-tdep.c (print_insn): Ditto.
> 	* m32r-tdep.c (dump_insn): Ditto.
> 	* v850-tdep.c (v850_scan_prologue): Ditto.
> 	* mcore-tdep.c (mcore_dump_insn): Ditto.
> 	* sh-tdep.c (sh_gdbarch_init): Set print_insn gdbarch field.
> 
> 



  reply	other threads:[~2001-08-21 17:33 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-21 16:26 Elena Zannoni
2001-08-21 17:33 ` Andrew Cagney [this message]
2001-09-05 17:07   ` Elena Zannoni
     [not found] ` <3405-Wed22Aug2001084554+0300-eliz@is.elta.co.il>
     [not found]   ` <15236.12258.330506.371048@krustylu.cygnus.com>
     [not found]     ` <9003-Thu23Aug2001085323+0300-eliz@is.elta.co.il>
2001-09-04 21:00       ` Elena Zannoni
2001-09-05  3:12         ` Eli Zaretskii
2001-09-05 11:58           ` Elena Zannoni
2001-09-06  0:47             ` Eli Zaretskii
2001-09-06  5:02               ` Elena Zannoni

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=3B82FDD5.7000306@cygnus.com \
    --to=ac131313@cygnus.com \
    --cc=ezannoni@cygnus.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