X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fsymtab.h;h=d85add3b3e86ed0b3fb5ecc41bde45472a51723f;hb=1f8cc6dbc0da3d3248de330289713ab6cebb21f2;hp=a4f224d68725d1976118fe28907e2bb3960a6458;hpb=5565b5569bf75adccb29b590f5433aeb9dda3314;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/symtab.h b/gdb/symtab.h index a4f224d687..d85add3b3e 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -1046,30 +1046,6 @@ struct partial_symtab #define VTBL_FNADDR_OFFSET 2 -/* Macro that yields non-zero value iff NAME is the prefix for C++ operator - names. If you leave out the parenthesis here you will lose! */ -#define OPNAME_PREFIX_P(NAME) \ - (!strncmp (NAME, "operator", 8)) - -/* Macro that yields non-zero value iff NAME is the prefix for C++ vtbl - names. Note that this macro is g++ specific (FIXME). - '_vt$' is the old cfront-style vtables; '_VT$' is the new - style, using thunks (where '$' is really CPLUS_MARKER). */ - -#define VTBL_PREFIX_P(NAME) \ - (((NAME)[0] == '_' \ - && (((NAME)[1] == 'V' && (NAME)[2] == 'T') \ - || ((NAME)[1] == 'v' && (NAME)[2] == 't')) \ - && is_cplus_marker ((NAME)[3])) || ((NAME)[0]=='_' && (NAME)[1]=='_' \ - && (NAME)[2]=='v' && (NAME)[3]=='t' && (NAME)[4]=='_')) - -/* Macro that yields non-zero value iff NAME is the prefix for C++ destructor - names. Note that this macro is g++ specific (FIXME). */ - -#define DESTRUCTOR_PREFIX_P(NAME) \ - ((NAME)[0] == '_' && is_cplus_marker ((NAME)[1]) && (NAME)[2] == '_') - - /* External variables and functions for the objects described above. */ /* This symtab variable specifies the current file for printing source lines */ @@ -1096,7 +1072,7 @@ extern int asm_demangle; /* lookup a symbol table by source file name */ -extern struct symtab *lookup_symtab (char *); +extern struct symtab *lookup_symtab (const char *); /* lookup a symbol by name (optional block, optional symtab) */ @@ -1146,7 +1122,7 @@ find_pc_sect_partial_function (CORE_ADDR, asection *, /* lookup partial symbol table by filename */ -extern struct partial_symtab *lookup_partial_symtab (char *); +extern struct partial_symtab *lookup_partial_symtab (const char *); /* lookup partial symbol table by address */ @@ -1383,8 +1359,12 @@ extern void select_source_symtab (struct symtab *); extern char **make_symbol_completion_list (char *, char *); +extern char **make_file_symbol_completion_list (char *, char *, char *); + extern struct symbol **make_symbol_overload_list (struct symbol *); +extern char **make_source_files_completion_list (char *, char *); + /* symtab.c */ extern struct partial_symtab *find_main_psymtab (void);