arm_gdbstub_query.c File Reference

#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"

Data Structures

Defines

Functions

Variables


Detailed Description


Define Documentation

#define XML_FEATURE_STRING
#define XML_CORTEX_FEATURE_STRING
#define XML_MAX_FEATURE_LEN

Function Documentation

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]
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]
static void gdb_query_rcmd ( char *  query_str,
char *  response_str,
struct reg_set raw_regs 
) [static]
void gdb_query ( char *  query_str,
char *  response_str,
struct reg_set raw_regs 
)

All queries starting with 'q' will be handled here

  • support for Supported
  • support for Xfer:memory-map:read
  • support for Xfer:features:read
  • support for Symbol
  • support for Rcmd <using gdb_monitor_Rcmd()>
  • support for Search:memory
  • support for f/sThreadInfo
  • support for ThreadExtraInfo
  • support for GetTLSAddr:THREAD-ID,OFFSET,LM
Parameters:
query_str pointer to rest of query string (without 'q')
response_str pointer to reponse message
raw_regs current CPU register set
Returns:
-

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

  • support for StartNoAckMode
Parameters:
query_str pointer to rest of query string (without 'Q')
response_str pointer to reponse message
Returns:
-

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.

  • support for FlashErase
  • support for FlashWrite
  • support for FlashDone
Parameters:
query_str pointer to rest of query string (without 'v')
response_str pointer to reponse message
Returns:
-

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().


Variable Documentation

struct SymbolInfo symbolMain = {0,0,0,0}

Referenced by gdb_monitor_Rcmd().

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]

This file is part of the documentation for JTAG-GDB Server for ARM .

Generated on Mon Feb 15 21:23:21 2010 by doxygen 1.6.2.