diff options
author | Steve Chamberlain <sac@cygnus> | 1996-01-04 04:21:57 +0000 |
---|---|---|
committer | Steve Chamberlain <sac@cygnus> | 1996-01-04 04:21:57 +0000 |
commit | e02a2ad9d420fe35fa2f93ec5869a81a7b5a1e5f (patch) | |
tree | 57a1365b227db50b619b12b97839e8d38b9bceaa /gdb/symtab.h | |
parent | 9e64063e1c12ed957738547502e18b9da7a1748e (diff) | |
download | gdb-e02a2ad9d420fe35fa2f93ec5869a81a7b5a1e5f.zip gdb-e02a2ad9d420fe35fa2f93ec5869a81a7b5a1e5f.tar.gz gdb-e02a2ad9d420fe35fa2f93ec5869a81a7b5a1e5f.tar.bz2 |
* symtab.h (namespace enum): becomes typedef to avoid namespace
collision in C++.
* infcmd.c (path_command): Use empty string if PATH name not set.
* i386-tdep.c (skip_trampoline_code): New function.
* srec.c: Renamed dsrec.c to avoid filename collision.
* Makefile.in: Cope with renaming.
Update copyrights to 1996.
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r-- | gdb/symtab.h | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h index 777b107..0a20db5 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -1,5 +1,5 @@ /* Symbol table definitions for GDB. - Copyright 1986, 1989, 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc. + Copyright 1986, 1989, 1991, 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc. This file is part of GDB. @@ -432,8 +432,8 @@ struct block /* Different name spaces for symbols. Looking up a symbol specifies a namespace and ignores symbol definitions in other name spaces. */ - -enum namespace + +typedef enum { /* UNDEF_NAMESPACE is used when a namespace has not been discovered or none of the following apply. This usually indicates an error either @@ -456,7 +456,7 @@ enum namespace currently it is not used and labels are not recorded at all. */ LABEL_NAMESPACE -}; +} namespace_enum; /* An address-class says where to find the value of a symbol. */ @@ -559,6 +559,18 @@ enum address_class LOC_BASEREG_ARG, + /* Value is at fixed address, but the address of the variable has + to be determined from the minimal symbol table whenever the + variable is referenced. + This happens if debugging information for a global symbol is + emitted and the corresponding minimal symbol is defined + in another object file or runtime common storage. + The linker might even remove the minimal symbol if the global + symbol is never referenced, in which case the symbol remains + unresolved. */ + + LOC_UNRESOLVED, + /* The variable does not actually exist in the program. The value is ignored. */ @@ -578,7 +590,7 @@ struct symbol /* Name space code. */ - enum namespace namespace BYTE_BITFIELD; + namespace_enum namespace BYTE_BITFIELD; /* Address class */ @@ -623,7 +635,7 @@ struct partial_symbol /* Name space code. */ - enum namespace namespace BYTE_BITFIELD; + namespace_enum namespace BYTE_BITFIELD; /* Address class (for info_symbols) */ @@ -961,11 +973,11 @@ lookup_symtab PARAMS ((char *)); extern struct symbol * lookup_symbol PARAMS ((const char *, const struct block *, - const enum namespace, int *, struct symtab **)); + const namespace_enum, int *, struct symtab **)); extern struct symbol * lookup_block_symbol PARAMS ((const struct block *, const char *, - const enum namespace)); + const namespace_enum)); extern struct type * lookup_struct PARAMS ((char *, struct block *)); |