* remote.c: Fix doc for C' and S' commands to indicate full

address.
	* (remote_ops extended_remote_ops remote_desc remote_write_size):
	Make static.
	* (remote_fetch_registers remote_write_bytes remote_read_bytes):
	Record size of response to fetch registers command, use this to
	limit size of memory read and write commands.
	* (push_remote_target):  New function to make it possible to have
	another target switch to the remote target.
	* target.h:  Add prototype for push_remote_target.
	* sh-tdep.c (sh_frame_find_saved_regs):  Fix sign extension bugs
	for hosts which default to unsigned chars (such as SGI's).
	* (_initialize_sh_tdep):  Don't set remote_write_size.  It's now
	handled automatically in remote.c.
This commit is contained in:
Stu Grossman
1997-04-04 16:52:55 +00:00
parent ab83171da5
commit 0a325463ed
3 changed files with 142 additions and 53 deletions

View File

@@ -262,7 +262,7 @@ sh_frame_find_saved_regs (fi, fsr)
}
else if (IS_MOV_R3 (insn))
{
r3_val = (char) (insn & 0xff);
r3_val = ((insn & 0xff) ^ 0x80) - 0x80;
pc += 2;
insn = read_memory_integer (pc, 2);
}
@@ -281,7 +281,7 @@ sh_frame_find_saved_regs (fi, fsr)
else if (IS_ADD_SP (insn))
{
pc += 2;
depth += -((char) (insn & 0xff));
depth -= ((insn & 0xff) ^ 0x80) - 0x80;
insn = read_memory_integer (pc, 2);
}
else
@@ -706,9 +706,4 @@ Set this to be able to access processor-type-specific registers.\n\
sh_set_processor_type_command (strsave (DEFAULT_SH_TYPE), 0);
add_com ("regs", class_vars, sh_show_regs, "Print all registers");
/* Reduce the remote write size because some CMONs can't take
more than 400 bytes in a packet. 300 seems like a safe bet. */
remote_write_size = 300;
}