From: "Kei Sakamoto" <sakamoto.kei@renesas.com>
To: <gdb-patches@sources.redhat.com>
Subject: [PATCH] fix gdb_disassemble_info
Date: Fri, 04 Jul 2003 02:28:00 -0000 [thread overview]
Message-ID: <00f801c341d4$44875d60$5169910a@KEI> (raw)
[-- Attachment #1: Type: text/plain, Size: 413 bytes --]
The attached patch fixes "gdb_disassemble_info" in "disasm.c".
Some targets (m32r, xstormy16, etc.) uses "info->arch" at
"print_insn_*" in "opcodes/*-dis.c". "info" is initialized by
"gdb_disassemble_info" but it does not set "info->arch". So
these targets sometimes abort during dissassemble.
2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>
* disasm.c (gdb_disassemble_info): Initilize di.arch.
[-- Attachment #2: disasm.c.patch --]
[-- Type: application/octet-stream, Size: 510 bytes --]
--- insight-20030703.orig/src/gdb/disasm.c Fri May 23 08:00:15 2003
+++ insight-20030703/src/gdb/disasm.c Fri Jul 4 09:17:15 2003
@@ -328,6 +328,7 @@
Further, it has been supperseeded by trust-read-only-sections
(although that should be superseeded by target_trust..._p()). */
di.read_memory_func = dis_asm_read_memory;
+ di.arch = gdbarch_bfd_arch_info (gdbarch)->arch;
di.mach = gdbarch_bfd_arch_info (gdbarch)->mach;
di.endian = gdbarch_byte_order (gdbarch);
return di;
next reply other threads:[~2003-07-04 2:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-04 2:28 Kei Sakamoto [this message]
2003-07-18 20:17 ` Andrew Cagney
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='00f801c341d4$44875d60$5169910a@KEI' \
--to=sakamoto.kei@renesas.com \
--cc=gdb-patches@sources.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