Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@redhat.com>
To: Michael Snyder <msnyder@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [ob] initialize info->insn_sets to zero
Date: Fri, 15 Aug 2003 15:17:00 -0000	[thread overview]
Message-ID: <3F3CF992.8010001@redhat.com> (raw)
In-Reply-To: <3F3C01CB.7000703@redhat.com>

> I trust no one will object to this.  Frv target reacts badly if it's un-initialized.

Isn't this really a bug in INIT_DISASSEMBLE_INFO_NO_ARCH?

Andrew


> 2003-08-14  Michael Snyder  <msnyder@redhat.com>
> 
> 	* disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
> 
> Index: disasm.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/disasm.c,v
> retrieving revision 1.12
> diff -p -r1.12 disasm.c
> *** disasm.c	18 Jul 2003 20:16:23 -0000	1.12
> --- disasm.c	14 Aug 2003 21:37:46 -0000
> *************** gdb_disassemble_info (struct gdbarch *gd
> *** 334,339 ****
> --- 334,340 ----
>     di.arch = gdbarch_bfd_arch_info (gdbarch)->arch;
>     di.mach = gdbarch_bfd_arch_info (gdbarch)->mach;
>     di.endian = gdbarch_byte_order (gdbarch);
> +   di.insn_sets = 0;
>     return di;
>   }
>   



      reply	other threads:[~2003-08-15 15:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-14 21:40 Michael Snyder
2003-08-15 15:17 ` 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=3F3CF992.8010001@redhat.com \
    --to=ac131313@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=msnyder@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