2004-07-20 Andrew Cagney <cagney@gnu.org>
* breakpoint.c (deprecated_read_memory_nobpt): Rename read_memory_nobpt. * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update. * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p) (s390_sigtramp_frame_sniffer): Update. * mn10300-tdep.c (mn10300_analyze_prologue): Update. * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update. * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction) (mips32_fetch_instruction): Update. * mcore-tdep.c (get_insn): Update. * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update. * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update. * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update. * i386-linux-tdep.c (i386_linux_sigtramp_start) (i386_linux_rt_sigtramp_start): Update. * i386-linux-nat.c (child_resume): Update. * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update. * hppa-linux-tdep.c (insns_match_pattern): Update. * gdbcore.h: Update. * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update. * frame.c (safe_frame_unwind_memory): Update. * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update. * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update. * alpha-tdep.c (alpha_read_insn): Update.
This commit is contained in:
parent
d27af829b8
commit
1f602b35ff
21 changed files with 82 additions and 50 deletions
|
@ -1,3 +1,30 @@
|
||||||
|
2004-07-20 Andrew Cagney <cagney@gnu.org>
|
||||||
|
|
||||||
|
* breakpoint.c (deprecated_read_memory_nobpt): Rename
|
||||||
|
read_memory_nobpt.
|
||||||
|
* sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
|
||||||
|
* s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
|
||||||
|
(s390_sigtramp_frame_sniffer): Update.
|
||||||
|
* mn10300-tdep.c (mn10300_analyze_prologue): Update.
|
||||||
|
* mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
|
||||||
|
* mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
|
||||||
|
(mips32_fetch_instruction): Update.
|
||||||
|
* mcore-tdep.c (get_insn): Update.
|
||||||
|
* m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
|
||||||
|
* i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
|
||||||
|
* i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
|
||||||
|
* i386-linux-tdep.c (i386_linux_sigtramp_start)
|
||||||
|
(i386_linux_rt_sigtramp_start): Update.
|
||||||
|
* i386-linux-nat.c (child_resume): Update.
|
||||||
|
* hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
|
||||||
|
* hppa-linux-tdep.c (insns_match_pattern): Update.
|
||||||
|
* gdbcore.h: Update.
|
||||||
|
* frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
|
||||||
|
* frame.c (safe_frame_unwind_memory): Update.
|
||||||
|
* amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
|
||||||
|
* alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
|
||||||
|
* alpha-tdep.c (alpha_read_insn): Update.
|
||||||
|
|
||||||
2004-07-20 Andrew Cagney <cagney@gnu.org>
|
2004-07-20 Andrew Cagney <cagney@gnu.org>
|
||||||
|
|
||||||
* tramp-frame.h (struct tramp_frame): Change "insn" to a struct
|
* tramp-frame.h (struct tramp_frame): Change "insn" to a struct
|
||||||
|
|
|
@ -628,7 +628,7 @@ alpha_read_insn (CORE_ADDR pc)
|
||||||
char buf[4];
|
char buf[4];
|
||||||
int status;
|
int status;
|
||||||
|
|
||||||
status = read_memory_nobpt (pc, buf, 4);
|
status = deprecated_read_memory_nobpt (pc, buf, 4);
|
||||||
if (status)
|
if (status)
|
||||||
memory_error (status, pc);
|
memory_error (status, pc);
|
||||||
return extract_unsigned_integer (buf, 4);
|
return extract_unsigned_integer (buf, 4);
|
||||||
|
|
|
@ -155,7 +155,7 @@ alphanbsd_sigtramp_offset (CORE_ADDR pc)
|
||||||
LONGEST off;
|
LONGEST off;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (read_memory_nobpt (pc, (char *) w, 4) != 0)
|
if (deprecated_read_memory_nobpt (pc, (char *) w, 4) != 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
for (i = 0; i < RETCODE_NWORDS; i++)
|
for (i = 0; i < RETCODE_NWORDS; i++)
|
||||||
|
@ -169,7 +169,7 @@ alphanbsd_sigtramp_offset (CORE_ADDR pc)
|
||||||
off = i * 4;
|
off = i * 4;
|
||||||
pc -= off;
|
pc -= off;
|
||||||
|
|
||||||
if (read_memory_nobpt (pc, (char *) ret, sizeof (ret)) != 0)
|
if (deprecated_read_memory_nobpt (pc, (char *) ret, sizeof (ret)) != 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (memcmp (ret, sigtramp_retcode, RETCODE_SIZE) == 0)
|
if (memcmp (ret, sigtramp_retcode, RETCODE_SIZE) == 0)
|
||||||
|
|
|
@ -97,7 +97,7 @@ amd64_linux_sigtramp_start (CORE_ADDR pc)
|
||||||
PC is not at the start of the instruction sequence, there will be
|
PC is not at the start of the instruction sequence, there will be
|
||||||
a few trailing readable bytes on the stack. */
|
a few trailing readable bytes on the stack. */
|
||||||
|
|
||||||
if (read_memory_nobpt (pc, (char *) buf, LINUX_SIGTRAMP_LEN) != 0)
|
if (deprecated_read_memory_nobpt (pc, (char *) buf, LINUX_SIGTRAMP_LEN) != 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (buf[0] != LINUX_SIGTRAMP_INSN0)
|
if (buf[0] != LINUX_SIGTRAMP_INSN0)
|
||||||
|
@ -107,7 +107,7 @@ amd64_linux_sigtramp_start (CORE_ADDR pc)
|
||||||
|
|
||||||
pc -= LINUX_SIGTRAMP_OFFSET1;
|
pc -= LINUX_SIGTRAMP_OFFSET1;
|
||||||
|
|
||||||
if (read_memory_nobpt (pc, (char *) buf, LINUX_SIGTRAMP_LEN) != 0)
|
if (deprecated_read_memory_nobpt (pc, (char *) buf, LINUX_SIGTRAMP_LEN) != 0)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -627,7 +627,7 @@ commands_command (char *arg, int from_tty)
|
||||||
shadow contents, not the breakpoints themselves. From breakpoint.c. */
|
shadow contents, not the breakpoints themselves. From breakpoint.c. */
|
||||||
|
|
||||||
int
|
int
|
||||||
read_memory_nobpt (CORE_ADDR memaddr, char *myaddr, unsigned len)
|
deprecated_read_memory_nobpt (CORE_ADDR memaddr, char *myaddr, unsigned len)
|
||||||
{
|
{
|
||||||
int status;
|
int status;
|
||||||
struct bp_location *b;
|
struct bp_location *b;
|
||||||
|
@ -695,7 +695,7 @@ read_memory_nobpt (CORE_ADDR memaddr, char *myaddr, unsigned len)
|
||||||
if (bp_addr > memaddr)
|
if (bp_addr > memaddr)
|
||||||
{
|
{
|
||||||
/* Copy the section of memory before the breakpoint. */
|
/* Copy the section of memory before the breakpoint. */
|
||||||
status = read_memory_nobpt (memaddr, myaddr, bp_addr - memaddr);
|
status = deprecated_read_memory_nobpt (memaddr, myaddr, bp_addr - memaddr);
|
||||||
if (status != 0)
|
if (status != 0)
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
@ -703,7 +703,7 @@ read_memory_nobpt (CORE_ADDR memaddr, char *myaddr, unsigned len)
|
||||||
if (bp_addr + bp_size < memaddr + len)
|
if (bp_addr + bp_size < memaddr + len)
|
||||||
{
|
{
|
||||||
/* Copy the section of memory after the breakpoint. */
|
/* Copy the section of memory after the breakpoint. */
|
||||||
status = read_memory_nobpt (bp_addr + bp_size,
|
status = deprecated_read_memory_nobpt (bp_addr + bp_size,
|
||||||
myaddr + bp_addr + bp_size - memaddr,
|
myaddr + bp_addr + bp_size - memaddr,
|
||||||
memaddr + len - (bp_addr + bp_size));
|
memaddr + len - (bp_addr + bp_size));
|
||||||
if (status != 0)
|
if (status != 0)
|
||||||
|
|
|
@ -2127,8 +2127,8 @@ int
|
||||||
safe_frame_unwind_memory (struct frame_info *this_frame,
|
safe_frame_unwind_memory (struct frame_info *this_frame,
|
||||||
CORE_ADDR addr, void *buf, int len)
|
CORE_ADDR addr, void *buf, int len)
|
||||||
{
|
{
|
||||||
/* NOTE: read_memory_nobpt returns zero on success! */
|
/* NOTE: deprecated_read_memory_nobpt returns zero on success! */
|
||||||
return !read_memory_nobpt (addr, buf, len);
|
return !deprecated_read_memory_nobpt (addr, buf, len);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Architecture method. */
|
/* Architecture method. */
|
||||||
|
|
|
@ -456,7 +456,7 @@ frv_gdbarch_adjust_breakpoint_address (struct gdbarch *gdbarch, CORE_ADDR bpaddr
|
||||||
char instr[frv_instr_size];
|
char instr[frv_instr_size];
|
||||||
int status;
|
int status;
|
||||||
|
|
||||||
status = read_memory_nobpt (addr, instr, sizeof instr);
|
status = deprecated_read_memory_nobpt (addr, instr, sizeof instr);
|
||||||
|
|
||||||
if (status != 0)
|
if (status != 0)
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -45,7 +45,12 @@ extern int have_core_file_p (void);
|
||||||
address out of bounds. If breakpoints are inserted, returns shadow
|
address out of bounds. If breakpoints are inserted, returns shadow
|
||||||
contents, not the breakpoints themselves. From breakpoint.c. */
|
contents, not the breakpoints themselves. From breakpoint.c. */
|
||||||
|
|
||||||
extern int read_memory_nobpt (CORE_ADDR memaddr, char *myaddr, unsigned len);
|
/* NOTE: cagney/2004-06-10: Code reading from a live inferior can use
|
||||||
|
the get_frame_memory methods, code reading from an exec can use the
|
||||||
|
target methods. */
|
||||||
|
|
||||||
|
extern int deprecated_read_memory_nobpt (CORE_ADDR memaddr, char *myaddr,
|
||||||
|
unsigned len);
|
||||||
|
|
||||||
/* Report a memory error with error(). */
|
/* Report a memory error with error(). */
|
||||||
|
|
||||||
|
|
|
@ -151,7 +151,7 @@ insns_match_pattern (CORE_ADDR pc,
|
||||||
{
|
{
|
||||||
char buf[4];
|
char buf[4];
|
||||||
|
|
||||||
read_memory_nobpt (npc, buf, 4);
|
deprecated_read_memory_nobpt (npc, buf, 4);
|
||||||
insn[i] = extract_unsigned_integer (buf, 4);
|
insn[i] = extract_unsigned_integer (buf, 4);
|
||||||
if ((insn[i] & pattern[i].mask) == pattern[i].data)
|
if ((insn[i] & pattern[i].mask) == pattern[i].data)
|
||||||
npc += 4;
|
npc += 4;
|
||||||
|
|
|
@ -1327,7 +1327,7 @@ restart:
|
||||||
old_save_sp = save_sp;
|
old_save_sp = save_sp;
|
||||||
old_stack_remaining = stack_remaining;
|
old_stack_remaining = stack_remaining;
|
||||||
|
|
||||||
status = read_memory_nobpt (pc, buf, 4);
|
status = deprecated_read_memory_nobpt (pc, buf, 4);
|
||||||
inst = extract_unsigned_integer (buf, 4);
|
inst = extract_unsigned_integer (buf, 4);
|
||||||
|
|
||||||
/* Yow! */
|
/* Yow! */
|
||||||
|
@ -1376,7 +1376,7 @@ restart:
|
||||||
while (reg_num >= (TARGET_PTR_BIT == 64 ? 19 : 23) && reg_num <= 26)
|
while (reg_num >= (TARGET_PTR_BIT == 64 ? 19 : 23) && reg_num <= 26)
|
||||||
{
|
{
|
||||||
pc += 4;
|
pc += 4;
|
||||||
status = read_memory_nobpt (pc, buf, 4);
|
status = deprecated_read_memory_nobpt (pc, buf, 4);
|
||||||
inst = extract_unsigned_integer (buf, 4);
|
inst = extract_unsigned_integer (buf, 4);
|
||||||
if (status != 0)
|
if (status != 0)
|
||||||
return pc;
|
return pc;
|
||||||
|
@ -1389,7 +1389,7 @@ restart:
|
||||||
reg_num = inst_saves_fr (inst);
|
reg_num = inst_saves_fr (inst);
|
||||||
save_fr &= ~(1 << reg_num);
|
save_fr &= ~(1 << reg_num);
|
||||||
|
|
||||||
status = read_memory_nobpt (pc + 4, buf, 4);
|
status = deprecated_read_memory_nobpt (pc + 4, buf, 4);
|
||||||
next_inst = extract_unsigned_integer (buf, 4);
|
next_inst = extract_unsigned_integer (buf, 4);
|
||||||
|
|
||||||
/* Yow! */
|
/* Yow! */
|
||||||
|
@ -1416,13 +1416,13 @@ restart:
|
||||||
while (reg_num >= 4 && reg_num <= (TARGET_PTR_BIT == 64 ? 11 : 7))
|
while (reg_num >= 4 && reg_num <= (TARGET_PTR_BIT == 64 ? 11 : 7))
|
||||||
{
|
{
|
||||||
pc += 8;
|
pc += 8;
|
||||||
status = read_memory_nobpt (pc, buf, 4);
|
status = deprecated_read_memory_nobpt (pc, buf, 4);
|
||||||
inst = extract_unsigned_integer (buf, 4);
|
inst = extract_unsigned_integer (buf, 4);
|
||||||
if (status != 0)
|
if (status != 0)
|
||||||
return pc;
|
return pc;
|
||||||
if ((inst & 0xfc000000) != 0x34000000)
|
if ((inst & 0xfc000000) != 0x34000000)
|
||||||
break;
|
break;
|
||||||
status = read_memory_nobpt (pc + 4, buf, 4);
|
status = deprecated_read_memory_nobpt (pc + 4, buf, 4);
|
||||||
next_inst = extract_unsigned_integer (buf, 4);
|
next_inst = extract_unsigned_integer (buf, 4);
|
||||||
if (status != 0)
|
if (status != 0)
|
||||||
return pc;
|
return pc;
|
||||||
|
@ -1647,7 +1647,7 @@ hppa_frame_cache (struct frame_info *next_frame, void **this_cache)
|
||||||
{
|
{
|
||||||
int reg;
|
int reg;
|
||||||
char buf4[4];
|
char buf4[4];
|
||||||
long status = read_memory_nobpt (pc, buf4, sizeof buf4);
|
long status = deprecated_read_memory_nobpt (pc, buf4, sizeof buf4);
|
||||||
long inst = extract_unsigned_integer (buf4, sizeof buf4);
|
long inst = extract_unsigned_integer (buf4, sizeof buf4);
|
||||||
|
|
||||||
/* Note the interesting effects of this instruction. */
|
/* Note the interesting effects of this instruction. */
|
||||||
|
|
|
@ -815,7 +815,7 @@ child_resume (ptid_t ptid, int step, enum target_signal signal)
|
||||||
that's about to be restored, and set the trace flag there. */
|
that's about to be restored, and set the trace flag there. */
|
||||||
|
|
||||||
/* First check if PC is at a system call. */
|
/* First check if PC is at a system call. */
|
||||||
if (read_memory_nobpt (pc, (char *) buf, LINUX_SYSCALL_LEN) == 0
|
if (deprecated_read_memory_nobpt (pc, (char *) buf, LINUX_SYSCALL_LEN) == 0
|
||||||
&& memcmp (buf, linux_syscall, LINUX_SYSCALL_LEN) == 0)
|
&& memcmp (buf, linux_syscall, LINUX_SYSCALL_LEN) == 0)
|
||||||
{
|
{
|
||||||
int syscall = read_register_pid (LINUX_SYSCALL_REGNUM,
|
int syscall = read_register_pid (LINUX_SYSCALL_REGNUM,
|
||||||
|
|
|
@ -130,7 +130,7 @@ i386_linux_sigtramp_start (CORE_ADDR pc)
|
||||||
PC is not at the start of the instruction sequence, there will be
|
PC is not at the start of the instruction sequence, there will be
|
||||||
a few trailing readable bytes on the stack. */
|
a few trailing readable bytes on the stack. */
|
||||||
|
|
||||||
if (read_memory_nobpt (pc, (char *) buf, LINUX_SIGTRAMP_LEN) != 0)
|
if (deprecated_read_memory_nobpt (pc, (char *) buf, LINUX_SIGTRAMP_LEN) != 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (buf[0] != LINUX_SIGTRAMP_INSN0)
|
if (buf[0] != LINUX_SIGTRAMP_INSN0)
|
||||||
|
@ -151,7 +151,7 @@ i386_linux_sigtramp_start (CORE_ADDR pc)
|
||||||
|
|
||||||
pc -= adjust;
|
pc -= adjust;
|
||||||
|
|
||||||
if (read_memory_nobpt (pc, (char *) buf, LINUX_SIGTRAMP_LEN) != 0)
|
if (deprecated_read_memory_nobpt (pc, (char *) buf, LINUX_SIGTRAMP_LEN) != 0)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -197,7 +197,7 @@ i386_linux_rt_sigtramp_start (CORE_ADDR pc)
|
||||||
PC is not at the start of the instruction sequence, there will be
|
PC is not at the start of the instruction sequence, there will be
|
||||||
a few trailing readable bytes on the stack. */
|
a few trailing readable bytes on the stack. */
|
||||||
|
|
||||||
if (read_memory_nobpt (pc, (char *) buf, LINUX_RT_SIGTRAMP_LEN) != 0)
|
if (deprecated_read_memory_nobpt (pc, (char *) buf, LINUX_RT_SIGTRAMP_LEN) != 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (buf[0] != LINUX_RT_SIGTRAMP_INSN0)
|
if (buf[0] != LINUX_RT_SIGTRAMP_INSN0)
|
||||||
|
@ -207,7 +207,7 @@ i386_linux_rt_sigtramp_start (CORE_ADDR pc)
|
||||||
|
|
||||||
pc -= LINUX_RT_SIGTRAMP_OFFSET1;
|
pc -= LINUX_RT_SIGTRAMP_OFFSET1;
|
||||||
|
|
||||||
if (read_memory_nobpt (pc, (char *) buf, LINUX_RT_SIGTRAMP_LEN) != 0)
|
if (deprecated_read_memory_nobpt (pc, (char *) buf, LINUX_RT_SIGTRAMP_LEN) != 0)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@ i386lynx_saved_pc_after_call (struct frame_info *frame)
|
||||||
static const unsigned char call_inst[] =
|
static const unsigned char call_inst[] =
|
||||||
{ 0x9a, 0, 0, 0, 0, 8, 0 }; /* lcall 0x8,0x0 */
|
{ 0x9a, 0, 0, 0, 0, 8, 0 }; /* lcall 0x8,0x0 */
|
||||||
|
|
||||||
read_memory_nobpt (frame->pc - 7, opcode, 7);
|
deprecated_read_memory_nobpt (frame->pc - 7, opcode, 7);
|
||||||
if (memcmp (opcode, call_inst, 7) == 0)
|
if (memcmp (opcode, call_inst, 7) == 0)
|
||||||
return read_memory_unsigned_integer (read_register (SP_REGNUM) + 4, 4);
|
return read_memory_unsigned_integer (read_register (SP_REGNUM) + 4, 4);
|
||||||
|
|
||||||
|
|
|
@ -138,7 +138,7 @@ i386nbsd_sigtramp_offset (CORE_ADDR pc)
|
||||||
LONGEST off;
|
LONGEST off;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (read_memory_nobpt (pc, &insn, 1) != 0)
|
if (deprecated_read_memory_nobpt (pc, &insn, 1) != 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
switch (insn)
|
switch (insn)
|
||||||
|
@ -150,7 +150,7 @@ i386nbsd_sigtramp_offset (CORE_ADDR pc)
|
||||||
case RETCODE_INSN2:
|
case RETCODE_INSN2:
|
||||||
/* INSN2 and INSN3 are the same. Read at the location of PC+1
|
/* INSN2 and INSN3 are the same. Read at the location of PC+1
|
||||||
to determine if we're actually looking at INSN2 or INSN3. */
|
to determine if we're actually looking at INSN2 or INSN3. */
|
||||||
if (read_memory_nobpt (pc + 1, &insn, 1) != 0)
|
if (deprecated_read_memory_nobpt (pc + 1, &insn, 1) != 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (insn == RETCODE_INSN3)
|
if (insn == RETCODE_INSN3)
|
||||||
|
@ -173,7 +173,7 @@ i386nbsd_sigtramp_offset (CORE_ADDR pc)
|
||||||
|
|
||||||
pc -= off;
|
pc -= off;
|
||||||
|
|
||||||
if (read_memory_nobpt (pc, (char *) ret, sizeof (ret)) != 0)
|
if (deprecated_read_memory_nobpt (pc, (char *) ret, sizeof (ret)) != 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (memcmp (ret, sigtramp_retcode, sizeof (ret)) == 0)
|
if (memcmp (ret, sigtramp_retcode, sizeof (ret)) == 0)
|
||||||
|
|
|
@ -66,7 +66,7 @@ m68k_linux_pc_in_sigtramp (CORE_ADDR pc, char *name)
|
||||||
char buf[12];
|
char buf[12];
|
||||||
unsigned long insn0, insn1, insn2;
|
unsigned long insn0, insn1, insn2;
|
||||||
|
|
||||||
if (read_memory_nobpt (pc - 4, buf, sizeof (buf)))
|
if (deprecated_read_memory_nobpt (pc - 4, buf, sizeof (buf)))
|
||||||
return 0;
|
return 0;
|
||||||
insn1 = extract_unsigned_integer (buf + 4, 4);
|
insn1 = extract_unsigned_integer (buf + 4, 4);
|
||||||
insn2 = extract_unsigned_integer (buf + 8, 4);
|
insn2 = extract_unsigned_integer (buf + 8, 4);
|
||||||
|
|
|
@ -1008,7 +1008,7 @@ static int
|
||||||
get_insn (CORE_ADDR pc)
|
get_insn (CORE_ADDR pc)
|
||||||
{
|
{
|
||||||
char buf[4];
|
char buf[4];
|
||||||
int status = read_memory_nobpt (pc, buf, 2);
|
int status = deprecated_read_memory_nobpt (pc, buf, 2);
|
||||||
if (status != 0)
|
if (status != 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
|
@ -973,7 +973,7 @@ mips_fetch_instruction (CORE_ADDR addr)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
instlen = MIPS_INSTLEN;
|
instlen = MIPS_INSTLEN;
|
||||||
status = read_memory_nobpt (addr, buf, instlen);
|
status = deprecated_read_memory_nobpt (addr, buf, instlen);
|
||||||
if (status)
|
if (status)
|
||||||
memory_error (status, addr);
|
memory_error (status, addr);
|
||||||
return extract_unsigned_integer (buf, instlen);
|
return extract_unsigned_integer (buf, instlen);
|
||||||
|
@ -988,7 +988,7 @@ mips16_fetch_instruction (CORE_ADDR addr)
|
||||||
|
|
||||||
instlen = MIPS16_INSTLEN;
|
instlen = MIPS16_INSTLEN;
|
||||||
addr = unmake_mips16_addr (addr);
|
addr = unmake_mips16_addr (addr);
|
||||||
status = read_memory_nobpt (addr, buf, instlen);
|
status = deprecated_read_memory_nobpt (addr, buf, instlen);
|
||||||
if (status)
|
if (status)
|
||||||
memory_error (status, addr);
|
memory_error (status, addr);
|
||||||
return extract_unsigned_integer (buf, instlen);
|
return extract_unsigned_integer (buf, instlen);
|
||||||
|
@ -1001,7 +1001,7 @@ mips32_fetch_instruction (CORE_ADDR addr)
|
||||||
int instlen;
|
int instlen;
|
||||||
int status;
|
int status;
|
||||||
instlen = MIPS_INSTLEN;
|
instlen = MIPS_INSTLEN;
|
||||||
status = read_memory_nobpt (addr, buf, instlen);
|
status = deprecated_read_memory_nobpt (addr, buf, instlen);
|
||||||
if (status)
|
if (status)
|
||||||
memory_error (status, addr);
|
memory_error (status, addr);
|
||||||
return extract_unsigned_integer (buf, instlen);
|
return extract_unsigned_integer (buf, instlen);
|
||||||
|
|
|
@ -198,7 +198,7 @@ mipsnbsd_sigtramp_offset (CORE_ADDR pc)
|
||||||
LONGEST off;
|
LONGEST off;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (read_memory_nobpt (pc, (char *) w, sizeof (w)) != 0)
|
if (deprecated_read_memory_nobpt (pc, (char *) w, sizeof (w)) != 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
for (i = 0; i < RETCODE_NWORDS; i++)
|
for (i = 0; i < RETCODE_NWORDS; i++)
|
||||||
|
@ -212,7 +212,7 @@ mipsnbsd_sigtramp_offset (CORE_ADDR pc)
|
||||||
off = i * 4;
|
off = i * 4;
|
||||||
pc -= off;
|
pc -= off;
|
||||||
|
|
||||||
if (read_memory_nobpt (pc, (char *) ret, sizeof (ret)) != 0)
|
if (deprecated_read_memory_nobpt (pc, (char *) ret, sizeof (ret)) != 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (memcmp (ret, retcode, RETCODE_SIZE) == 0)
|
if (memcmp (ret, retcode, RETCODE_SIZE) == 0)
|
||||||
|
|
|
@ -557,7 +557,7 @@ mn10300_analyze_prologue (struct frame_info *fi, CORE_ADDR pc)
|
||||||
|
|
||||||
/* Get the next two bytes into buf, we need two because rets is a two
|
/* Get the next two bytes into buf, we need two because rets is a two
|
||||||
byte insn and the first isn't enough to uniquely identify it. */
|
byte insn and the first isn't enough to uniquely identify it. */
|
||||||
status = read_memory_nobpt (pc, buf, 2);
|
status = deprecated_read_memory_nobpt (pc, buf, 2);
|
||||||
if (status != 0)
|
if (status != 0)
|
||||||
return pc;
|
return pc;
|
||||||
|
|
||||||
|
@ -597,7 +597,7 @@ mn10300_analyze_prologue (struct frame_info *fi, CORE_ADDR pc)
|
||||||
|
|
||||||
/* Suck in two bytes. */
|
/* Suck in two bytes. */
|
||||||
if (addr + 2 >= stop
|
if (addr + 2 >= stop
|
||||||
|| (status = read_memory_nobpt (addr, buf, 2)) != 0)
|
|| (status = deprecated_read_memory_nobpt (addr, buf, 2)) != 0)
|
||||||
{
|
{
|
||||||
fix_frame_pointer (fi, 0);
|
fix_frame_pointer (fi, 0);
|
||||||
return addr;
|
return addr;
|
||||||
|
@ -621,7 +621,7 @@ mn10300_analyze_prologue (struct frame_info *fi, CORE_ADDR pc)
|
||||||
if (buf[0] == 0xcf)
|
if (buf[0] == 0xcf)
|
||||||
{
|
{
|
||||||
/* Extract the register list for the movm instruction. */
|
/* Extract the register list for the movm instruction. */
|
||||||
status = read_memory_nobpt (addr + 1, buf, 1);
|
status = deprecated_read_memory_nobpt (addr + 1, buf, 1);
|
||||||
movm_args = *buf;
|
movm_args = *buf;
|
||||||
|
|
||||||
addr += 2;
|
addr += 2;
|
||||||
|
@ -639,7 +639,7 @@ mn10300_analyze_prologue (struct frame_info *fi, CORE_ADDR pc)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Get the next two bytes so the prologue scan can continue. */
|
/* Get the next two bytes so the prologue scan can continue. */
|
||||||
status = read_memory_nobpt (addr, buf, 2);
|
status = deprecated_read_memory_nobpt (addr, buf, 2);
|
||||||
if (status != 0)
|
if (status != 0)
|
||||||
{
|
{
|
||||||
/* Fix fi->frame since it's bogus at this point. */
|
/* Fix fi->frame since it's bogus at this point. */
|
||||||
|
@ -676,7 +676,7 @@ mn10300_analyze_prologue (struct frame_info *fi, CORE_ADDR pc)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Get two more bytes so scanning can continue. */
|
/* Get two more bytes so scanning can continue. */
|
||||||
status = read_memory_nobpt (addr, buf, 2);
|
status = deprecated_read_memory_nobpt (addr, buf, 2);
|
||||||
if (status != 0)
|
if (status != 0)
|
||||||
{
|
{
|
||||||
/* Fix fi->frame if it's bogus at this point. */
|
/* Fix fi->frame if it's bogus at this point. */
|
||||||
|
@ -698,7 +698,7 @@ mn10300_analyze_prologue (struct frame_info *fi, CORE_ADDR pc)
|
||||||
If none of the above was found, then this prologue has no
|
If none of the above was found, then this prologue has no
|
||||||
additional stack. */
|
additional stack. */
|
||||||
|
|
||||||
status = read_memory_nobpt (addr, buf, 2);
|
status = deprecated_read_memory_nobpt (addr, buf, 2);
|
||||||
if (status != 0)
|
if (status != 0)
|
||||||
{
|
{
|
||||||
/* Fix fi->frame if it's bogus at this point. */
|
/* Fix fi->frame if it's bogus at this point. */
|
||||||
|
@ -721,7 +721,7 @@ mn10300_analyze_prologue (struct frame_info *fi, CORE_ADDR pc)
|
||||||
{
|
{
|
||||||
/* Suck in imm_size more bytes, they'll hold the size of the
|
/* Suck in imm_size more bytes, they'll hold the size of the
|
||||||
current frame. */
|
current frame. */
|
||||||
status = read_memory_nobpt (addr + 2, buf, imm_size);
|
status = deprecated_read_memory_nobpt (addr + 2, buf, imm_size);
|
||||||
if (status != 0)
|
if (status != 0)
|
||||||
{
|
{
|
||||||
/* Fix fi->frame if it's bogus at this point. */
|
/* Fix fi->frame if it's bogus at this point. */
|
||||||
|
|
|
@ -922,12 +922,12 @@ s390_readinstruction (bfd_byte instr[], CORE_ADDR at)
|
||||||
static int s390_instrlen[] = { 2, 4, 4, 6 };
|
static int s390_instrlen[] = { 2, 4, 4, 6 };
|
||||||
int instrlen;
|
int instrlen;
|
||||||
|
|
||||||
if (read_memory_nobpt (at, &instr[0], 2))
|
if (deprecated_read_memory_nobpt (at, &instr[0], 2))
|
||||||
return -1;
|
return -1;
|
||||||
instrlen = s390_instrlen[instr[0] >> 6];
|
instrlen = s390_instrlen[instr[0] >> 6];
|
||||||
if (instrlen > 2)
|
if (instrlen > 2)
|
||||||
{
|
{
|
||||||
if (read_memory_nobpt (at + 2, &instr[2], instrlen - 2))
|
if (deprecated_read_memory_nobpt (at + 2, &instr[2], instrlen - 2))
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
return instrlen;
|
return instrlen;
|
||||||
|
@ -1724,19 +1724,19 @@ s390_in_function_epilogue_p (struct gdbarch *gdbarch, CORE_ADDR pc)
|
||||||
int d2;
|
int d2;
|
||||||
|
|
||||||
if (word_size == 4
|
if (word_size == 4
|
||||||
&& !read_memory_nobpt (pc - 4, insn, 4)
|
&& !deprecated_read_memory_nobpt (pc - 4, insn, 4)
|
||||||
&& is_rs (insn, op_lm, &r1, &r3, &d2, &b2)
|
&& is_rs (insn, op_lm, &r1, &r3, &d2, &b2)
|
||||||
&& r3 == S390_SP_REGNUM - S390_R0_REGNUM)
|
&& r3 == S390_SP_REGNUM - S390_R0_REGNUM)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
if (word_size == 4
|
if (word_size == 4
|
||||||
&& !read_memory_nobpt (pc - 6, insn, 6)
|
&& !deprecated_read_memory_nobpt (pc - 6, insn, 6)
|
||||||
&& is_rsy (insn, op1_lmy, op2_lmy, &r1, &r3, &d2, &b2)
|
&& is_rsy (insn, op1_lmy, op2_lmy, &r1, &r3, &d2, &b2)
|
||||||
&& r3 == S390_SP_REGNUM - S390_R0_REGNUM)
|
&& r3 == S390_SP_REGNUM - S390_R0_REGNUM)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
if (word_size == 8
|
if (word_size == 8
|
||||||
&& !read_memory_nobpt (pc - 6, insn, 6)
|
&& !deprecated_read_memory_nobpt (pc - 6, insn, 6)
|
||||||
&& is_rsy (insn, op1_lmg, op2_lmg, &r1, &r3, &d2, &b2)
|
&& is_rsy (insn, op1_lmg, op2_lmg, &r1, &r3, &d2, &b2)
|
||||||
&& r3 == S390_SP_REGNUM - S390_R0_REGNUM)
|
&& r3 == S390_SP_REGNUM - S390_R0_REGNUM)
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -2251,7 +2251,7 @@ s390_sigtramp_frame_sniffer (struct frame_info *next_frame)
|
||||||
CORE_ADDR pc = frame_pc_unwind (next_frame);
|
CORE_ADDR pc = frame_pc_unwind (next_frame);
|
||||||
bfd_byte sigreturn[2];
|
bfd_byte sigreturn[2];
|
||||||
|
|
||||||
if (read_memory_nobpt (pc, sigreturn, 2))
|
if (deprecated_read_memory_nobpt (pc, sigreturn, 2))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (sigreturn[0] != 0x0a /* svc */)
|
if (sigreturn[0] != 0x0a /* svc */)
|
||||||
|
|
|
@ -96,7 +96,7 @@ sparc_linux_sigtramp_start (CORE_ADDR pc, ULONGEST insn0, ULONGEST insn1)
|
||||||
sequence, there will be a few trailing readable bytes on the
|
sequence, there will be a few trailing readable bytes on the
|
||||||
stack. */
|
stack. */
|
||||||
|
|
||||||
if (read_memory_nobpt (pc, buf, sizeof buf) != 0)
|
if (deprecated_read_memory_nobpt (pc, buf, sizeof buf) != 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
word0 = extract_unsigned_integer (buf, 4);
|
word0 = extract_unsigned_integer (buf, 4);
|
||||||
|
@ -106,7 +106,7 @@ sparc_linux_sigtramp_start (CORE_ADDR pc, ULONGEST insn0, ULONGEST insn1)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
pc -= 4;
|
pc -= 4;
|
||||||
if (read_memory_nobpt (pc, buf, sizeof buf) != 0)
|
if (deprecated_read_memory_nobpt (pc, buf, sizeof buf) != 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
word0 = extract_unsigned_integer (buf, 4);
|
word0 = extract_unsigned_integer (buf, 4);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue