GDB (xrefs)
Loading...
Searching...
No Matches
Macros | Functions | Variables
gdb-demangle.c File Reference
#include "defs.h"
#include "cli/cli-utils.h"
#include "command.h"
#include "gdbcmd.h"
#include "demangle.h"
#include "gdb-demangle.h"
#include "language.h"

Go to the source code of this file.

Macros

#define DEFAULT_DEMANGLING_STYLE   AUTO_DEMANGLING_STYLE_STRING
 

Functions

static void show_demangle (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static void show_asm_demangle (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static void show_demangling_style_names (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static void set_demangling_command (const char *ignore, int from_tty, struct cmd_list_element *c)
 
bool is_cplus_marker (int c)
 
static void demangle_command (const char *args, int from_tty)
 
void _initialize_gdb_demangle ()
 

Variables

bool demangle = true
 
bool asm_demangle = false
 
static const char * current_demangling_style_string
 
static const char ** demangling_style_names
 
static char cplus_markers [] = {'$', '.', '\0'}
 

Macro Definition Documentation

◆ DEFAULT_DEMANGLING_STYLE

#define DEFAULT_DEMANGLING_STYLE   AUTO_DEMANGLING_STYLE_STRING

Definition at line 43 of file gdb-demangle.c.

Function Documentation

◆ _initialize_gdb_demangle()

void _initialize_gdb_demangle ( )

Definition at line 214 of file gdb-demangle.c.

Referenced by initialize_all_files().

◆ demangle_command()

static void demangle_command ( const char * args,
int from_tty )
static

◆ is_cplus_marker()

bool is_cplus_marker ( int c)

◆ set_demangling_command()

static void set_demangling_command ( const char * ignore,
int from_tty,
struct cmd_list_element * c )
static

Definition at line 107 of file gdb-demangle.c.

References current_demangling_style_string, and demangling_style_names.

◆ show_asm_demangle()

static void show_asm_demangle ( struct ui_file * file,
int from_tty,
struct cmd_list_element * c,
const char * value )
static

Definition at line 63 of file gdb-demangle.c.

References gdb_printf().

◆ show_demangle()

static void show_demangle ( struct ui_file * file,
int from_tty,
struct cmd_list_element * c,
const char * value )
static

Definition at line 50 of file gdb-demangle.c.

References gdb_printf().

◆ show_demangling_style_names()

static void show_demangling_style_names ( struct ui_file * file,
int from_tty,
struct cmd_list_element * c,
const char * value )
static

Definition at line 83 of file gdb-demangle.c.

References gdb_printf().

Variable Documentation

◆ asm_demangle

bool asm_demangle = false

Definition at line 60 of file gdb-demangle.c.

Referenced by build_address_symbolic(), disassemble_command(), and print_address().

◆ cplus_markers

char cplus_markers[] = {'$', '.', '\0'}
static

Definition at line 148 of file gdb-demangle.c.

Referenced by is_cplus_marker().

◆ current_demangling_style_string

const char* current_demangling_style_string
static

Definition at line 76 of file gdb-demangle.c.

Referenced by set_demangling_command().

◆ demangle

bool demangle = true

◆ demangling_style_names

const char** demangling_style_names
static

Definition at line 81 of file gdb-demangle.c.

Referenced by set_demangling_command().