GDBserver
Functions
rsp-low.h File Reference

Go to the source code of this file.

Functions

int fromhex (int a)
 
int tohex (int nib)
 
char * pack_nibble (char *buf, int nibble)
 
char * pack_hex_byte (char *pkt, int byte)
 
char * unpack_varlen_hex (char *buff, ULONGEST *result)
 
int hex2bin (const char *hex, gdb_byte *bin, int count)
 
int bin2hex (const gdb_byte *bin, char *hex, int count)
 
int remote_escape_output (const gdb_byte *buffer, int len_units, int unit_size, gdb_byte *out_buf, int *out_len_units, int out_maxlen_bytes)
 
int remote_unescape_input (const gdb_byte *buffer, int len, gdb_byte *out_buf, int out_maxlen)
 

Function Documentation

int bin2hex ( const gdb_byte bin,
char *  hex,
int  count 
)
int fromhex ( int  a)

Definition at line 26 of file rsp-low.c.

References _, and error().

Referenced by decode_address(), decode_m_packet(), decode_M_packet(), decode_X_packet(), decode_xfer_write(), getpkt(), and hex2bin().

int hex2bin ( const char *  hex,
gdb_byte bin,
int  count 
)
char* pack_hex_byte ( char *  pkt,
int  byte 
)

Definition at line 86 of file rsp-low.c.

References hexchars.

char* pack_nibble ( char *  buf,
int  nibble 
)

Definition at line 77 of file rsp-low.c.

References hexchars.

int remote_escape_output ( const gdb_byte buffer,
int  len_units,
int  unit_size,
gdb_byte out_buf,
int *  out_len_units,
int  out_maxlen_bytes 
)

Definition at line 160 of file rsp-low.c.

References needs_escaping().

Referenced by write_qxfer_response().

int remote_unescape_input ( const gdb_byte buffer,
int  len,
gdb_byte out_buf,
int  out_maxlen 
)

Definition at line 215 of file rsp-low.c.

References _, and error().

Referenced by decode_search_memory_packet(), decode_X_packet(), and decode_xfer_write().

int tohex ( int  nib)

Definition at line 41 of file rsp-low.c.

Referenced by bin2hex(), outreg(), prepare_resume_reply(), and putpkt_binary_1().

char* unpack_varlen_hex ( char *  buff,
ULONGEST result 
)