#include <stdlib.h>#include <stdio.h>#include <string.h>#include <stdint.h>#include <errno.h>#include <unistd.h>#include <signal.h>#include <sys/wait.h>#include <ctype.h>#include "dbg_msg.h"#include "jt_instr.h"#include "jt_arm.h"#include "jt_mmu.h"#include "jt_flash.h"#include "arm_gdbstub.h"#include "arm_memory_mmap.h"#include "arm_gdbstub_break.h"#include "convert.h"| #define XML_FEATURE_STRING |
| #define XML_CORTEX_FEATURE_STRING |
| #define XML_MAX_FEATURE_LEN |
| static void gdb_query_ReadMemoryMap | ( | char * | query_str, | |
| char * | response_str | |||
| ) | [static] |
References hexToInt().
Referenced by gdb_query().
| static void gdb_query_ReadFeatures | ( | char * | query_str, | |
| char * | response_str | |||
| ) | [static] |
References hexToInt(), feature::xml_buf, and feature::xml_len.
Referenced by gdb_query().
| static void gdb_query_symbol | ( | char * | query_str, | |
| char * | response_str | |||
| ) | [static] |
References symbolTableEntry::addr, SymbolInfo::addr, SymbolInfo::breakIsActive, DBG_LEVEL_GDB_ARM_INFO, dbgPrintf(), symbolTableHead::firstEntry, gdb_invalidate_Rom_Buffer(), hex2mem(), hexToInt(), SymbolInfo::isThumb, mem2hex(), symbolTableEntry::nextSymbol, symbolTableHead::numberOfSymbols, SymbolInfo::state, symbolTableEntry::stringLen, symbolTableEntry::stringName, SYM_PRESENT, SYM_UNKNOWN, and symbolTableEntry::valid.
Referenced by gdb_query().
| static void gdb_query_threadInfo | ( | char * | response_str, | |
| int | start, | |||
| struct reg_set * | raw_regs | |||
| ) | [static] |
References gdb_osabi_threadList(), and RCMDPKTSIZE.
Referenced by gdb_query().
| static void gdb_query_threadExtraInfo | ( | char * | query_str, | |
| char * | response_str, | |||
| struct reg_set * | raw_regs | |||
| ) | [static] |
References gdb_osabi_threadExtraInfo(), hexToInt(), and mem2hex().
Referenced by gdb_query().
| static void gdb_query_getTLSAddr | ( | char * | query_str, | |
| char * | response_str, | |||
| struct reg_set * | raw_regs | |||
| ) | [static] |
References symbolTableEntry::addr, gdb_osabi_getTLSAddr(), and hexToInt().
Referenced by gdb_query().
| static void gdb_query_rcmd | ( | char * | query_str, | |
| char * | response_str, | |||
| struct reg_set * | raw_regs | |||
| ) | [static] |
References DBG_LEVEL_GDB_ARM_INFO_LOW, dbgPrintf(), gdb_monitor_Rcmd(), hex2mem(), and mem2hex().
Referenced by gdb_query().
| void gdb_query | ( | char * | query_str, | |
| char * | response_str, | |||
| struct reg_set * | raw_regs | |||
| ) |
All queries starting with 'q' will be handled here
| query_str | pointer to rest of query string (without 'q') | |
| response_str | pointer to reponse message | |
| raw_regs | current CPU register set |
References BUFMAX, DBG_LEVEL_GDB_ARM_INFO, dbgPrintf(), gdb_query_getTLSAddr(), gdb_query_rcmd(), gdb_query_ReadFeatures(), gdb_query_ReadMemoryMap(), gdb_query_symbol(), gdb_query_threadExtraInfo(), gdb_query_threadInfo(), and RCMDPKTSIZE.
Referenced by gdb_handle_exception().
| void gdb_Q_query | ( | char * | query_str, | |
| char * | response_str | |||
| ) |
All queries starting with 'Q' will be handled here
| query_str | pointer to rest of query string (without 'Q') | |
| response_str | pointer to reponse message |
References DBG_LEVEL_GDB_ARM_INFO, and dbgPrintf().
Referenced by gdb_handle_exception().
| void gdb_vquery | ( | char * | query_str, | |
| char * | response_str | |||
| ) |
Most queries starting with 'v' will be handled here. e.g. "vCont" might be handled else where.
| query_str | pointer to rest of query string (without 'v') | |
| response_str | pointer to reponse message |
References symbolTableEntry::addr, DBG_LEVEL_GDB_ARM_INFO, dbgPrintf(), gdb_flush_Flash(), gdbstub_write_binmem(), hexToInt(), and jtag_arm_mmu_virt2phys().
Referenced by gdb_handle_exception().
| struct SymbolInfo symbolMain = {0,0,0,0} |
Referenced by gdb_handle_exception(), gdb_main_loop(), gdb_monitor_Rcmd(), and InsertBreakpoint().
Referenced by gdb_monitor_Rcmd().
| struct symbolTableHead symbolTable |
struct feature feature_arm = {sizeof(XML_FEATURE_STRING)-1, XML_FEATURE_STRING} [static] |
struct feature feature_cortex = {sizeof(XML_CORTEX_FEATURE_STRING)-1, XML_CORTEX_FEATURE_STRING} [static] |