* remote-mips.c (rockhopper_ops): New target_ops struct.
authorKevin Buettner <kevinb@redhat.com>
Mon, 8 Mar 2010 19:06:34 +0000 (19:06 +0000)
committerKevin Buettner <kevinb@redhat.com>
Mon, 8 Mar 2010 19:06:34 +0000 (19:06 +0000)
commitbbd2783ec0022b28f822573e81cd019a91a3b981
tree7090795cdd3c5b543de1df41e3900c939fa97828
parent566f3d17348b01884b286fc9cb7eb79c11e55635
* 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