mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-06 07:28:44 +08:00
* sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
read the instruction at PC.
This commit is contained in:
@ -1,5 +1,8 @@
|
|||||||
2004-01-24 Mark Kettenis <kettenis@gnu.org>
|
2004-01-24 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
|
* sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
|
||||||
|
read the instruction at PC.
|
||||||
|
|
||||||
* sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
|
* sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
|
||||||
value of GDB_OSABI_DEFAULT.
|
value of GDB_OSABI_DEFAULT.
|
||||||
(sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
|
(sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
|
||||||
|
@ -96,7 +96,9 @@ sparc_fetch_instruction (CORE_ADDR pc)
|
|||||||
unsigned long insn;
|
unsigned long insn;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
read_memory (pc, buf, sizeof (buf));
|
/* If we can't read the instruction at PC, return zero. */
|
||||||
|
if (target_read_memory (pc, buf, sizeof (buf)))
|
||||||
|
return 0;
|
||||||
|
|
||||||
insn = 0;
|
insn = 0;
|
||||||
for (i = 0; i < sizeof (buf); i++)
|
for (i = 0; i < sizeof (buf); i++)
|
||||||
|
Reference in New Issue
Block a user