GDB (xrefs)
Functions
rsp-low.h File Reference
#include "common/byte-vector.h"

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)
 
const char * unpack_varlen_hex (const char *buff, ULONGEST *result)
 
int hex2bin (const char *hex, gdb_byte *bin, int count)
 
gdb::byte_vector hex2bin (const char *hex)
 
std::string hex2str (const char *hex)
 
int bin2hex (const gdb_byte *bin, char *hex, int count)
 
std::string bin2hex (const gdb_byte *bin, 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

◆ bin2hex() [1/2]

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

◆ bin2hex() [2/2]

std::string bin2hex ( const gdb_byte bin,
int  count 
)

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

References string, and tohex().

◆ fromhex()

int fromhex ( int  a)

◆ hex2bin() [1/2]

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

◆ hex2bin() [2/2]

gdb::byte_vector hex2bin ( const char *  hex)

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

References hex2bin().

◆ hex2str()

std::string hex2str ( const char *  hex)

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

References fromhex(), and string.

◆ pack_hex_byte()

char* pack_hex_byte ( char *  pkt,
int  byte 
)

◆ pack_nibble()

char* pack_nibble ( char *  buf,
int  nibble 
)

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

References hexchars.

Referenced by pack_threadlist_request().

◆ remote_escape_output()

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 
)

◆ remote_unescape_input()

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

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

References _, and error().

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

◆ tohex()

int tohex ( int  nib)

◆ unpack_varlen_hex()

const char* unpack_varlen_hex ( const char *  buff,
ULONGEST result 
)