aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-07-04 12:21:01 +0000
committerJohn Gilmore <gnu@cygnus>1992-07-04 12:21:01 +0000
commit3a16d640660712183f9b130a38fdba768076cce2 (patch)
tree7f65387906a4f1699a74799ced122cc93742df82 /gdb/symtab.c
parentbc718e874a91d852bfd49e9d31bb35b4fecd93d1 (diff)
downloadbinutils-3a16d640660712183f9b130a38fdba768076cce2.zip
binutils-3a16d640660712183f9b130a38fdba768076cce2.tar.gz
binutils-3a16d640660712183f9b130a38fdba768076cce2.tar.bz2
* main.c (main): Read the $HOME/.gdbinit file before processing
the argv arguments (e.g. reading symbol files or core files). This allows global parameters to be set, which will apply during the symbol reading. The ./.gdbinit is still read after argv processing. * symtab.c (list_symbols): `i variables' shouldn't show enum values.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index e4678b8..0097d1b 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -2043,7 +2043,8 @@ name_match (name)
#define NAME_MATCH(NAME) name_match(NAME)
/* List all symbols (if REGEXP is 0) or all symbols matching REGEXP.
- If CLASS is zero, list all symbols except functions and type names.
+ If CLASS is zero, list all symbols except functions, type names, and
+ constants (enums).
If CLASS is 1, list only functions.
If CLASS is 2, list only type names.
If CLASS is 3, list only method names.
@@ -2221,7 +2222,8 @@ list_symbols (regexp, class, bpt)
sym = BLOCK_SYM (b, j);
if ((regexp == 0 || NAME_MATCH (SYMBOL_NAME (sym)))
&& ((class == 0 && SYMBOL_CLASS (sym) != LOC_TYPEDEF
- && SYMBOL_CLASS (sym) != LOC_BLOCK)
+ && SYMBOL_CLASS (sym) != LOC_BLOCK
+ && SYMBOL_CLASS (sym) != LOC_CONST)
|| (class == 1 && SYMBOL_CLASS (sym) == LOC_BLOCK)
|| (class == 2 && SYMBOL_CLASS (sym) == LOC_TYPEDEF)
|| (class == 3 && SYMBOL_CLASS (sym) == LOC_BLOCK)))