diff options
author | Joel Brobecker <brobecker@gnat.com> | 2011-03-17 13:19:24 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2011-03-17 13:19:24 +0000 |
commit | d4862372c6a47c5d2e5abfed59a0c757bc494343 (patch) | |
tree | 4d943de37c556f7a2a44603d4b9679f8edcfad8e /gdb/coffread.c | |
parent | d645e32eb8b60a84a2b0bf8a02e782289e992641 (diff) | |
download | gdb-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/coffread.c')
-rw-r--r-- | gdb/coffread.c | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/gdb/coffread.c b/gdb/coffread.c index 8ec87c1..b11dd73 100644 --- a/gdb/coffread.c +++ b/gdb/coffread.c @@ -902,22 +902,14 @@ coff_symtab_read (long symtab_offset, unsigned int nsyms, if (cs->c_secnum == N_UNDEF) { - /* This is a common symbol. See if the target - environment knows where it has been relocated to. */ - CORE_ADDR reladdr; - - if (target_lookup_symbol (cs->c_name, &reladdr)) - { - /* Error in lookup; ignore symbol. */ - break; - } - tmpaddr = reladdr; - /* The address has already been relocated; make sure that - objfile_relocate doesn't relocate it again. */ - sec = -2; - ms_type = cs->c_sclass == C_EXT - || cs->c_sclass == C_THUMBEXT ? - mst_bss : mst_file_bss; + /* This is a 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. */ + break; } else if (cs->c_secnum == N_ABS) { |