diff options
author | Per Bothner <per@bothner.com> | 1992-02-29 06:03:43 +0000 |
---|---|---|
committer | Per Bothner <per@bothner.com> | 1992-02-29 06:03:43 +0000 |
commit | 818de002b62ebfec9132b0089528f278a3ae88af (patch) | |
tree | c71713a6b291f42daf28abc8e5e7c01199ce7d90 /gdb/symtab.c | |
parent | 8eb8b9aaa36fbe087793ef0beda32060c8bdb745 (diff) | |
download | gdb-818de002b62ebfec9132b0089528f278a3ae88af.zip gdb-818de002b62ebfec9132b0089528f278a3ae88af.tar.gz gdb-818de002b62ebfec9132b0089528f278a3ae88af.tar.bz2 |
Mostly rs6000 changes from IBM.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index 9d1bf3f..407a608 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -517,6 +517,17 @@ lookup_symbol (name, block, namespace, is_a_field_of_this, symtab) bv = BLOCKVECTOR (s); block = BLOCKVECTOR_BLOCK (bv, GLOBAL_BLOCK); sym = lookup_block_symbol (block, msymbol -> name, namespace); +#if 0 /* defined(IBM6000) */ + /* we kept static functions in misc_function_vector as well as + in static scope. We want to find them in the symbol table. */ + + if (!sym) { + block = BLOCKVECTOR_BLOCK (bv, STATIC_BLOCK); + sym = lookup_block_symbol (block, misc_function_vector[ind].name, + namespace); + } +#endif + /* sym == 0 if symbol was found in the minimal symbol table but not in the symtab. Return 0 to use the msymbol definition of "foo_". |