GDB (xrefs)
|
#include "defs.h"
#include "symtab.h"
#include "gdbtypes.h"
#include "expression.h"
#include "parser-defs.h"
#include "language.h"
#include "varobj.h"
#include "c-lang.h"
#include "c-support.h"
#include "valprint.h"
#include "macroscope.h"
#include "charset.h"
#include "demangle.h"
#include "cp-abi.h"
#include "cp-support.h"
#include "gdbsupport/gdb_obstack.h"
#include <ctype.h>
#include "gdbcore.h"
#include "gdbarch.h"
#include "c-exp.h"
Go to the source code of this file.
Classes | |
class | c_language |
class | cplus_language |
class | asm_language |
class | minimal_language |
Namespaces | |
namespace | expr |
Macros | |
#define | ADVANCE |
Functions | |
static const char * | charset_for_string_type (c_string_type str_type, struct gdbarch *gdbarch) |
static c_string_type | classify_type (struct type *elttype, struct gdbarch *gdbarch, const char **encoding) |
void | c_get_string (struct value *value, gdb::unique_xmalloc_ptr< gdb_byte > *buffer, int *length, struct type **char_type, const char **charset) |
static const char * | convert_ucn (const char *p, const char *limit, const char *dest_charset, struct obstack *output, int length) |
static void | emit_numeric_character (struct type *type, unsigned long value, struct obstack *output) |
static const char * | convert_octal (struct type *type, const char *p, const char *limit, struct obstack *output) |
static const char * | convert_hex (struct type *type, const char *p, const char *limit, struct obstack *output) |
static const char * | convert_escape (struct type *type, const char *dest_charset, const char *p, const char *limit, struct obstack *output) |
static void | parse_one_string (struct obstack *output, const char *data, int len, const char *dest_charset, struct type *type) |
bool | c_is_string_type_p (struct type *type) |
gdb::unique_xmalloc_ptr< char > | c_canonicalize_name (const char *name) |
void | c_language_arch_info (struct gdbarch *gdbarch, struct language_arch_info *lai) |
Variables | |
static c_language | c_language_defn |
static cplus_language | cplus_language_defn |
static asm_language | asm_language_defn |
static minimal_language | minimal_language_defn |
#define ADVANCE |
Definition at line 487 of file c-lang.c.
Referenced by convert_escape().
gdb::unique_xmalloc_ptr< char > c_canonicalize_name | ( | const char * | name | ) |
Definition at line 727 of file c-lang.c.
References cp_canonicalize_string(), and name.
Referenced by define_symbol(), cooked_index_shard::do_finalize(), dwarf2_canonicalize_name(), read_dbx_symtab(), and read_type().
void c_get_string | ( | struct value * | value, |
gdb::unique_xmalloc_ptr< gdb_byte > * | buffer, | ||
int * | length, | ||
struct type ** | char_type, | ||
const char ** | charset ) |
Definition at line 242 of file c-lang.c.
References value::address, type::arch(), c_textual_element_type(), check_typedef(), classify_type(), type::code(), value::contents(), err, extract_unsigned_integer(), type::field(), get_discrete_bounds(), type::length(), value::lval(), lval_internalvar, lval_memory, memory_error(), not_lval, type::num_fields(), target_read_string(), type::target_type(), TARGET_XFER_E_IO, field::type(), value::type(), type_byte_order(), type_to_string(), value_as_address(), and xmalloc().
Referenced by gdbscm_value_to_string(), and valpy_string().
bool c_is_string_type_p | ( | struct type * | type | ) |
Definition at line 689 of file c-lang.c.
References c_textual_element_type(), check_typedef(), type::code(), type::length(), and type::target_type().
Referenced by language_defn::is_string_type_p(), printf_c_string(), and printf_wide_c_string().
void c_language_arch_info | ( | struct gdbarch * | gdbarch, |
struct language_arch_info * | lai ) |
Definition at line 739 of file c-lang.c.
References language_arch_info::add_primitive_type(), builtin_type::builtin_char, builtin_type::builtin_complex, builtin_type::builtin_decdouble, builtin_type::builtin_decfloat, builtin_type::builtin_declong, builtin_type::builtin_double, builtin_type::builtin_double_complex, builtin_type::builtin_float, builtin_type::builtin_int, builtin_type::builtin_long, builtin_type::builtin_long_double, builtin_type::builtin_long_long, builtin_type::builtin_short, builtin_type::builtin_signed_char, builtin_type(), builtin_type::builtin_unsigned_char, builtin_type::builtin_unsigned_int, builtin_type::builtin_unsigned_long, builtin_type::builtin_unsigned_long_long, builtin_type::builtin_unsigned_short, builtin_type::builtin_void, language_arch_info::set_bool_type(), and language_arch_info::set_string_char_type().
Referenced by c_language::language_arch_info(), asm_language::language_arch_info(), minimal_language::language_arch_info(), and objc_language::language_arch_info().
|
static |
Definition at line 45 of file c-lang.c.
References C_CHAR, C_STRING, C_STRING_16, C_STRING_32, C_WIDE_STRING, gdbarch_byte_order(), target_charset(), and target_wide_charset().
Referenced by classify_type(), and expr::c_string_operation::evaluate().
|
static |
Definition at line 76 of file c-lang.c.
References C_CHAR, C_CHAR_16, C_CHAR_32, C_WIDE_CHAR, charset_for_string_type(), check_typedef(), type::code(), name, type::name(), and type::target_type().
Referenced by c_get_string(), language_defn::emitchar(), language_defn::printchar(), and language_defn::printstr().
|
static |
Definition at line 502 of file c-lang.c.
References ADVANCE, convert_hex(), convert_octal(), convert_ucn(), and type::length().
Referenced by parse_one_string().
|
static |
Definition at line 471 of file c-lang.c.
References emit_numeric_character().
Referenced by convert_escape().
|
static |
Definition at line 446 of file c-lang.c.
References emit_numeric_character().
Referenced by convert_escape().
|
static |
Definition at line 404 of file c-lang.c.
References convert_between_encodings(), type::length(), and translit_none.
Referenced by convert_escape().
|
static |
Definition at line 430 of file c-lang.c.
References type::length(), and pack_long().
Referenced by convert_hex(), and convert_octal().
|
static |
Definition at line 555 of file c-lang.c.
References convert_between_encodings(), convert_escape(), host_charset(), and translit_none.
Referenced by expr::c_string_operation::evaluate().
|
static |
|
static |
|
static |
|
static |