aboutsummaryrefslogtreecommitdiff
path: root/gdb/dbxread.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2011-03-17 13:19:24 +0000
committerJoel Brobecker <brobecker@gnat.com>2011-03-17 13:19:24 +0000
commitd4862372c6a47c5d2e5abfed59a0c757bc494343 (patch)
tree4d943de37c556f7a2a44603d4b9679f8edcfad8e /gdb/dbxread.c
parentd645e32eb8b60a84a2b0bf8a02e782289e992641 (diff)
downloadgdb-d4862372c6a47c5d2e5abfed59a0c757bc494343.zip
gdb-d4862372c6a47c5d2e5abfed59a0c757bc494343.tar.gz
gdb-d4862372c6a47c5d2e5abfed59a0c757bc494343.tar.bz2
delete target_ops.to_lookup_symbol
gdb/ChangeLog: * target.h (struct target_ops): Remove to_lookup_symbol field. (target_lookup_symbol): Delete macro. * target.c (nosymbol, debug_to_lookup_symbol): Delete. (update_current_target, setup_target_debug): Remove handling of to_lookup_symbol target_ops field. * ada-tasks.c (get_known_tasks_addr): Remove use of target_lookup_symbol. * coffread.c (coff_symtab_read): Likewise. * dbxread.c (read_dbx_symtab): Ditto.
Diffstat (limited to 'gdb/dbxread.c')
-rw-r--r--gdb/dbxread.c28
1 files changed, 10 insertions, 18 deletions
diff --git a/gdb/dbxread.c b/gdb/dbxread.c
index 9f9317d..8242cf8 100644
--- a/gdb/dbxread.c
+++ b/gdb/dbxread.c
@@ -1401,24 +1401,16 @@ read_dbx_symtab (struct objfile *objfile)
goto record_it;
case N_UNDF | N_EXT:
- if (nlist.n_value != 0)
- {
- /* This is a "Fortran COMMON" symbol. See if the target
- environment knows where it has been relocated to. */
-
- CORE_ADDR reladdr;
-
- namestring = set_namestring (objfile, &nlist);
- if (target_lookup_symbol (namestring, &reladdr))
- {
- continue; /* Error in lookup; ignore symbol for now. */
- }
- nlist.n_type ^= (N_BSS ^ N_UNDF); /* Define it as a
- bss-symbol. */
- nlist.n_value = reladdr;
- goto bss_ext_symbol;
- }
- continue; /* Just undefined, not COMMON. */
+ /* The case (nlist.n_value != 0) is a "Fortran COMMON" symbol.
+ We used to rely on the target to tell us whether it knows
+ where the symbol has been relocated to, but none of the
+ target implementations actually provided that operation.
+ So we just ignore the symbol, the same way we would do if
+ we had a target-side symbol lookup which returned no match.
+
+ All other symbols (with nlist.n_value == 0), are really
+ undefined, and so we ignore them too. */
+ continue;
case N_UNDF:
if (processing_acc_compilation && nlist.n_strx == 1)