OSDN Git Service

* remote-mips.c (rockhopper_ops): New target_ops struct.
authorkevinb <kevinb>
Tue, 9 Mar 2010 04:06:33 +0000 (04:06 +0000)
committerkevinb <kevinb>
Tue, 9 Mar 2010 04:06:33 +0000 (04:06 +0000)
commit174fcce68b31e4ae49cb88b0be8b492cbbaf3bf8
tree0a8e91fc563278c0e498d99fd4be3905e0a32e62
parente3801c9d032e29b7d47e3af03fb9b3d4240adacf
* remote-mips.c (rockhopper_ops): New target_ops struct.
(MON_ROCKHOPPER): New mips_monitor_type.
(read_hex_value): New function.
(mips_request): Send 8-byte values with a 'T' packet.  Read the
packet argument as a string and use read_hex_value to parse it.
(mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
(rockhopper_open): New function.
(mips_wait): Read the PC, FP and SP fields as strings.  Use
read_hex_value to parse them and mips_set_register to commit them.
(mips_set_register): New function.
(mips_fetch_registers): Do not cast register value to "unsigned"
when reading a MON_ROCKHOPPER 't' packet.  Use mips_set_register.
(mips_store_registers): Use a 'T' packet to set registers when
using MON_ROCKHOPPER.
(pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
and expect the total to be printed before the entry address.
(_initialize_remote_mips): Initialize and add rockhopper_ops.
gdb/ChangeLog
gdb/remote-mips.c