Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* print_insn and streams
@ 2001-08-17 14:37 Keith Seitz
  2001-08-17 15:15 ` John R. Moore
  2001-08-20 22:58 ` Andrew Cagney
  0 siblings, 2 replies; 3+ messages in thread
From: Keith Seitz @ 2001-08-17 14:37 UTC (permalink / raw)
  To: gdb

Hi,

printcmd.c currently defines print_insn as:

static int
print_insn (CORE_ADDR memaddr, struct ui_file *stream)
{
  if (TARGET_BYTE_ORDER == BIG_ENDIAN)
    TARGET_PRINT_INSN_INFO->endian = BFD_ENDIAN_BIG;
  else
    TARGET_PRINT_INSN_INFO->endian = BFD_ENDIAN_LITTLE;

  if (TARGET_ARCHITECTURE != NULL)
    TARGET_PRINT_INSN_INFO->mach = TARGET_ARCHITECTURE->mach;
  /* else: should set .mach=0 but some disassemblers don't grok this */

  return TARGET_PRINT_INSN (memaddr, TARGET_PRINT_INSN_INFO);
}

Is there some reason that it is ignoring the parameter stream? Can it not
just be set in the disasm info? (TARGET_PRINT_INSN_INFO->stream = stream;)

Curious.
Keith



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

end of thread, other threads:[~2001-08-20 22:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-17 14:37 print_insn and streams Keith Seitz
2001-08-17 15:15 ` John R. Moore
2001-08-20 22:58 ` Andrew Cagney

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