GDB (xrefs)
Loading...
Searching...
No Matches
Functions | Variables
go-lang.c File Reference
#include "defs.h"
#include "gdbsupport/gdb_obstack.h"
#include "block.h"
#include "symtab.h"
#include "language.h"
#include "varobj.h"
#include "go-lang.h"
#include "c-lang.h"
#include "parser-defs.h"
#include "gdbarch.h"
#include <ctype.h>

Go to the source code of this file.

Functions

const char * go_main_name (void)
 
static int gccgo_string_p (struct type *type)
 
static int sixg_string_p (struct type *type)
 
enum go_type go_classify_struct_type (struct type *type)
 
static void unpack_package_and_object (char *buf, const char **packagep, const char **objectp)
 
static gdb::unique_xmalloc_ptr< char > unpack_mangled_go_symbol (const char *mangled_name, const char **packagep, const char **objectp, const char **method_type_packagep, const char **method_type_objectp, int *method_type_is_pointerp)
 
gdb::unique_xmalloc_ptr< char > go_symbol_package_name (const struct symbol *sym)
 
gdb::unique_xmalloc_ptr< char > go_block_package_name (const struct block *block)
 
static struct builtin_go_typebuild_go_types (struct gdbarch *gdbarch)
 
const struct builtin_go_type * builtin_go_type (struct gdbarch *gdbarch)
 

Variables

static const char GO_MAIN_MAIN [] = "main.main"
 
static go_language go_language_defn
 
static const registry< gdbarch >::key< struct builtin_go_typego_type_data
 

Function Documentation

◆ build_go_types()

static struct builtin_go_type * build_go_types ( struct gdbarch * gdbarch)
static

◆ builtin_go_type()

const struct builtin_go_type * builtin_go_type ( struct gdbarch * gdbarch)

◆ gccgo_string_p()

static int gccgo_string_p ( struct type * type)
static

◆ go_block_package_name()

gdb::unique_xmalloc_ptr< char > go_block_package_name ( const struct block * block)

Definition at line 437 of file go-lang.c.

References block::function(), go_symbol_package_name(), and block::superblock().

Referenced by classify_name().

◆ go_classify_struct_type()

enum go_type go_classify_struct_type ( struct type * type)

◆ go_main_name()

const char * go_main_name ( void )

Definition at line 56 of file go-lang.c.

References GO_MAIN_MAIN, lookup_minimal_symbol(), and bound_minimal_symbol::minsym.

Referenced by find_main_name().

◆ go_symbol_package_name()

gdb::unique_xmalloc_ptr< char > go_symbol_package_name ( const struct symbol * sym)

◆ sixg_string_p()

static int sixg_string_p ( struct type * type)
static

Definition at line 107 of file go-lang.c.

References type::name(), and type::num_fields().

Referenced by go_classify_struct_type().

◆ unpack_mangled_go_symbol()

static gdb::unique_xmalloc_ptr< char > unpack_mangled_go_symbol ( const char * mangled_name,
const char ** packagep,
const char ** objectp,
const char ** method_type_packagep,
const char ** method_type_objectp,
int * method_type_is_pointerp )
static

Definition at line 181 of file go-lang.c.

References unpack_package_and_object().

Referenced by go_language::demangle_symbol(), and go_symbol_package_name().

◆ unpack_package_and_object()

static void unpack_package_and_object ( char * buf,
const char ** packagep,
const char ** objectp )
static

Definition at line 140 of file go-lang.c.

Referenced by unpack_mangled_go_symbol().

Variable Documentation

◆ go_language_defn

go_language go_language_defn
static

Definition at line 503 of file go-lang.c.

◆ GO_MAIN_MAIN

const char GO_MAIN_MAIN[] = "main.main"
static

Definition at line 48 of file go-lang.c.

Referenced by go_main_name().

◆ go_type_data

const registry<gdbarch>::key<struct builtin_go_type> go_type_data
static

Definition at line 550 of file go-lang.c.

Referenced by builtin_go_type().