public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* sh-elf disassembly broken (Was: Re: RFC: Moving disassembler_command to  cli land and using newer disassembler code)
@ 2003-01-13 20:20 Joern Rennecke
  2003-02-24 20:23 ` Joern Rennecke
  0 siblings, 1 reply; 6+ messages in thread
From: Joern Rennecke @ 2003-01-13 20:20 UTC (permalink / raw)
  To: Fernando Nasser, gdb

This patch:

2002-11-07  Fernando Nasser  <fnasser@redhat.com>

        * printcmd.c (disassemble_command): Remove obsolete function.
        (_initialize_printcmd): Do not create disassemble command here.
        * cli/cli-cmds.c (disassemble_command): New function.  Implements
        disassemble command.
        (init_cli_cmds): Create disassemble command here instead.

breaks disassembly for sh-elf (just try to disassemble any
function in any sh-elf object file).

gdb_disassembly uses TARGET_PRINT_INSN_INFO->mach to initialize
di.mach, but TARGET_PRINT_INSN_INFO->mach is never initialized.

Before your patch, print_insn had set TARGET_PRINT_INSN_INFO->mach
to TARGET_ARCHITECTURE->mach, which gets expanded to 
(gdbarch_bfd_arch_info (current_gdbarch))->mach .


-- 
--------------------------
SuperH (UK) Ltd.
2410 Aztec West / Almondsbury / BRISTOL / BS32 4QX
T:+44 1454 465658

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

end of thread, other threads:[~2003-03-07 18:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-13 20:20 sh-elf disassembly broken (Was: Re: RFC: Moving disassembler_command to cli land and using newer disassembler code) Joern Rennecke
2003-02-24 20:23 ` Joern Rennecke
2003-02-24 21:49   ` Elena Zannoni
2003-02-24 22:07     ` Joern Rennecke
2003-02-24 22:11       ` Elena Zannoni
2003-03-07 18:01         ` Joern Rennecke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).