simulavr
1.1.0
|
GDB server instance to give the possibility to debug target by debugger. More...
#include <gdb.h>
Public Member Functions | |
int | Step (bool &trueHwStep, SystemClockOffset *timeToNextStepIn_ns=0) |
Return nonzero if a breakpoint was hit. More... | |
int | InternalStep (bool &trueHwStep, SystemClockOffset *timeToNextStepIn_ns=0) |
void | TryConnectGdb () |
void | SendPosition (int signal) |
int | SleepStep () |
GdbServer (AvrDevice *, int port, int debugOn, int WaitForGdbConnection=true) | |
virtual | ~GdbServer () |
void | Run () |
![]() | |
virtual | ~SimulationMember () |
Protected Member Functions | |
bool | avr_core_flash_read (int addr, word &val) |
void | avr_core_flash_write (int addr, word val) |
void | avr_core_flash_write_hi8 (int addr, byte val) |
void | avr_core_flash_write_lo8 (int addr, byte val) |
void | avr_core_remove_breakpoint (dword pc) |
void | avr_core_insert_breakpoint (dword pc) |
int | signal_has_occurred (int signo) |
void | signal_watch_start (int signo) |
void | signal_watch_stop (int signo) |
int | avr_core_step () |
int | hex2nib (char hex) |
const char * | gdb_last_reply (const char *reply) |
void | gdb_send_ack () |
void | gdb_send_reply (const char *reply) |
void | gdb_send_hex_reply (const char *reply, const char *reply_to_encode) |
void | gdb_read_registers () |
void | gdb_write_registers (const char *pkt) |
int | gdb_extract_hex_num (const char **pkt, char stop) |
void | gdb_read_register (const char *pkt) |
void | gdb_write_register (const char *pkt) |
int | gdb_get_addr_len (const char *pkt, char a_end, char l_end, unsigned int *addr, int *len) |
void | gdb_read_memory (const char *pkt) |
void | gdb_write_memory (const char *pkt) |
void | gdb_break_point (const char *pkt) |
void | gdb_select_thread (const char *pkt) |
void | gdb_is_thread_alive (const char *pkt) |
void | gdb_get_thread_list (const char *pkt) |
int | gdb_get_signal (const char *pkt) |
int | gdb_parse_packet (const char *pkt) |
int | gdb_receive_and_process_packet (int blocking) |
void | gdb_main_loop () |
void | gdb_interact (int port, int debug_on) |
void | IdleStep () |
Protected Attributes | |
AvrDevice * | core |
GdbServerSocket * | server |
the server socket wrapper More... | |
bool | connState |
result of server->Connect() More... | |
time_t | oldTime |
int | global_debug_on |
debugging the debugger interface More... | |
int | waitForGdbConnection |
bool | exitOnKillRequest |
flag for regression test to shutdown simulator on kill request from gdb More... | |
int | runMode |
bool | lastCoreStepFinished |
char * | last_reply |
char | buf [MAX_BUF] |
int | m_gdb_thread_id |
For queries by GDB. First thread ID is 1. See http://sources.redhat.com/gdb/current/onlinedocs/gdb/Packets.html#thread-id. More... | |
Static Protected Attributes | |
static std::vector< GdbServer * > | allGdbServers |
GDB server instance to give the possibility to debug target by debugger.
GdbServer::GdbServer | ( | AvrDevice * | , |
int | port, | ||
int | debugOn, | ||
int | WaitForGdbConnection = true |
||
) |
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
int GdbServer::InternalStep | ( | bool & | trueHwStep, |
SystemClockOffset * | timeToNextStepIn_ns = 0 |
||
) |
void GdbServer::Run | ( | ) |
void GdbServer::SendPosition | ( | int | signal | ) |
|
protected |
|
protected |
|
protected |
int GdbServer::SleepStep | ( | ) |
|
virtual |
Return nonzero if a breakpoint was hit.
Implements SimulationMember.
void GdbServer::TryConnectGdb | ( | ) |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
For queries by GDB. First thread ID is 1. See http://sources.redhat.com/gdb/current/onlinedocs/gdb/Packets.html#thread-id.
|
protected |
|
protected |