This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
pending/978: sh-elf disassembly broken (Was: Re: RFC: Moving disassembler_command to cli land and using newer disassembler code)
- From: Joern Rennecke <joern dot rennecke at superh dot com>
- To: gdb-gnats at sources dot redhat dot com
- Date: Mon, 13 Jan 2003 20:20:30 +0000
- Subject: pending/978: sh-elf disassembly broken (Was: Re: RFC: Moving disassembler_command to cli land and using newer disassembler code)
>Number: 978
>Category: pending
>Synopsis: sh-elf disassembly broken (Was: Re: RFC: Moving disassembler_command to
cli land and using newer disassembler code)
>Confidential: yes
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: unknown
>Arrival-Date: Thu Jan 30 16:38:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:
>Release:
>Organization:
>Environment:
>Description:
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
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: