GDB (xrefs)
Functions | Variables
rsp-low.c File Reference
#include "common-defs.h"
#include "rsp-low.h"

Go to the source code of this file.

Functions

int fromhex (int a)
 
int tohex (int nib)
 
static int ishex (int ch, int *val)
 
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)
 
static int needs_escaping (gdb_byte b)
 
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)
 

Variables

static const char hexchars [] = "0123456789abcdef"
 

Function Documentation

int bin2hex ( const gdb_byte bin,
char *  hex,
int  count 
)
int fromhex ( int  a)
int hex2bin ( const char *  hex,
gdb_byte bin,
int  count 
)
static int ishex ( int  ch,
int val 
)
static

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

Referenced by unpack_varlen_hex().

static int needs_escaping ( gdb_byte  b)
static

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

Referenced by remote_escape_output().

char* pack_hex_byte ( char *  pkt,
int  byte 
)
char* pack_nibble ( char *  buf,
int  nibble 
)

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

References hexchars.

Referenced by pack_threadlist_request().

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 
)

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

References _, error(), and len.

Referenced by remote_hostio_fstat(), remote_hostio_pread_vFile(), remote_hostio_readlink(), and remote_read_qxfer().

int tohex ( int  nib)
char* unpack_varlen_hex ( char *  buff,
ULONGEST result 
)

Variable Documentation

const char hexchars[] = "0123456789abcdef"
static

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

Referenced by pack_hex_byte(), and pack_nibble().