25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: debugger_gdb.c,v 1.11 2006/04/08 16:47:18 debug Exp $ |
* $Id: debugger_gdb.c,v 1.12 2006/06/24 19:52:28 debug Exp $ |
29 |
* |
* |
30 |
* Routines used for communicating with the GNU debugger, using the GDB |
* Routines used for communicating with the GNU debugger, using the GDB |
31 |
* remote serial protocol. |
* remote serial protocol. |
41 |
#include <unistd.h> |
#include <unistd.h> |
42 |
|
|
43 |
#include "cpu.h" |
#include "cpu.h" |
44 |
|
#include "debugger.h" |
45 |
#include "debugger_gdb.h" |
#include "debugger_gdb.h" |
46 |
#include "machine.h" |
#include "machine.h" |
47 |
#include "memory.h" |
#include "memory.h" |
223 |
machine->gdb.rx_buf_checksum = 0x00; |
machine->gdb.rx_buf_checksum = 0x00; |
224 |
} else if (ch == 0x03) { |
} else if (ch == 0x03) { |
225 |
fatal("[ GDB break ]\n"); |
fatal("[ GDB break ]\n"); |
226 |
single_step = 1; |
single_step = ENTER_SINGLE_STEPPING; |
227 |
ch = '+'; |
ch = '+'; |
228 |
write(machine->gdb.socket, &ch, 1); |
write(machine->gdb.socket, &ch, 1); |
229 |
send_packet(machine, "S02"); |
send_packet(machine, "S02"); |