GDB (API)
Defines | Functions | Variables
/home/stan/gdb/src/gdb/charset.c File Reference
#include "defs.h"
#include "charset.h"
#include "gdbcmd.h"
#include "gdb_assert.h"
#include "gdb_obstack.h"
#include "gdb_wait.h"
#include "charset-list.h"
#include "vec.h"
#include "environ.h"
#include "arch-utils.h"
#include "gdb_vecs.h"
#include <stddef.h>
#include "gdb_string.h"
#include <ctype.h>

Go to the source code of this file.

Defines

#define GDB_DEFAULT_HOST_CHARSET   "ISO-8859-1"
#define GDB_DEFAULT_TARGET_CHARSET   "ISO-8859-1"
#define GDB_DEFAULT_TARGET_WIDE_CHARSET   "ISO-8859-1"
#define DEFAULT_CHARSET_NAMES   GDB_DEFAULT_HOST_CHARSET ,
#define iconv_t   int
#define iconv_open   phony_iconv_open
#define iconv   phony_iconv
#define iconv_close   phony_iconv_close
#define ICONV_CONST   const
#define EILSEQ   ENOENT

Functions

const char * host_charset (void)
const char * target_charset (struct gdbarch *gdbarch)
const char * target_wide_charset (struct gdbarch *gdbarch)
char host_letter_to_control_character (char c)
int host_hex_value (char c)
void convert_between_encodings (const char *from, const char *to, const gdb_byte *bytes, unsigned int num_bytes, int width, struct obstack *output, enum transliterations translit)
struct wchar_iterator * make_wchar_iterator (const gdb_byte *input, size_t bytes, const char *charset, size_t width)
struct cleanup * make_cleanup_wchar_iterator (struct wchar_iterator *iter)
int wchar_iterate (struct wchar_iterator *iter, enum wchar_iterate_result *out_result, gdb_wchar_t **out_chars, const gdb_byte **ptr, size_t *len)
const char * default_auto_charset (void)
const char * default_auto_wide_charset (void)
void _initialize_charset (void)

Variables

initialize_file_ftype _initialize_charset

Define Documentation

Definition at line 88 of file charset.c.

#define EILSEQ   ENOENT

Definition at line 108 of file charset.c.

#define GDB_DEFAULT_HOST_CHARSET   "ISO-8859-1"

Definition at line 84 of file charset.c.

#define GDB_DEFAULT_TARGET_CHARSET   "ISO-8859-1"

Definition at line 85 of file charset.c.

#define GDB_DEFAULT_TARGET_WIDE_CHARSET   "ISO-8859-1"

Definition at line 86 of file charset.c.

#define iconv   phony_iconv

Definition at line 95 of file charset.c.

#define iconv_close   phony_iconv_close

Definition at line 97 of file charset.c.

#define ICONV_CONST   const

Definition at line 100 of file charset.c.

#define iconv_open   phony_iconv_open

Definition at line 93 of file charset.c.

#define iconv_t   int

Definition at line 91 of file charset.c.


Function Documentation

void _initialize_charset ( void  )

Definition at line 1004 of file charset.c.

void convert_between_encodings ( const char *  from,
const char *  to,
const gdb_byte bytes,
unsigned int  num_bytes,
int  width,
struct obstack *  output,
enum transliterations  translit 
)

Definition at line 469 of file charset.c.

const char* default_auto_charset ( void  )

Definition at line 927 of file charset.c.

const char* default_auto_wide_charset ( void  )

Definition at line 933 of file charset.c.

const char* host_charset ( void  )

Definition at line 392 of file charset.c.

int host_hex_value ( char  c)

Definition at line 446 of file charset.c.

Definition at line 435 of file charset.c.

struct cleanup* make_cleanup_wchar_iterator ( struct wchar_iterator *  iter) [read]

Definition at line 621 of file charset.c.

struct wchar_iterator* make_wchar_iterator ( const gdb_byte input,
size_t  bytes,
const char *  charset,
size_t  width 
) [read]

Definition at line 588 of file charset.c.

const char* target_charset ( struct gdbarch *  gdbarch)

Definition at line 400 of file charset.c.

const char* target_wide_charset ( struct gdbarch *  gdbarch)

Definition at line 408 of file charset.c.

int wchar_iterate ( struct wchar_iterator *  iter,
enum wchar_iterate_result out_result,
gdb_wchar_t **  out_chars,
const gdb_byte **  ptr,
size_t *  len 
)

Definition at line 627 of file charset.c.


Variable Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines