Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [ob] initialize info->insn_sets to zero
@ 2003-08-14 21:40 Michael Snyder
  2003-08-15 15:17 ` Andrew Cagney
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Snyder @ 2003-08-14 21:40 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 88 bytes --]

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



[-- Attachment #2: disasm --]
[-- Type: text/plain, Size: 659 bytes --]

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;
  }
  

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ob] initialize info->insn_sets to zero
  2003-08-14 21:40 [ob] initialize info->insn_sets to zero Michael Snyder
@ 2003-08-15 15:17 ` Andrew Cagney
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Cagney @ 2003-08-15 15:17 UTC (permalink / raw)
  To: Michael Snyder; +Cc: gdb-patches

> 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;
>   }
>   



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-08-15 15:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-14 21:40 [ob] initialize info->insn_sets to zero Michael Snyder
2003-08-15 15:17 ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox