OSDN Git Service

* remote-mips.c (rockhopper_ops): New target_ops struct.
authorkevinb <kevinb>
Mon, 8 Mar 2010 19:06:33 +0000 (19:06 +0000)
committerkevinb <kevinb>
Mon, 8 Mar 2010 19:06:33 +0000 (19:06 +0000)
commit3e3673bd25cba9882bb2faf92f4e2d431a230587
tree61b988d2e69b8b91df38e07bec1810547e26336d
parent7ded8a9370a31fb4d670b220abf1f745d8319453
* 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