diff options
author | Joel Brobecker <brobecker@gnat.com> | 2011-03-17 13:19:23 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2011-03-17 13:19:23 +0000 |
commit | eb3e6936e0c1076e0b97e0bad55083503cf82d88 (patch) | |
tree | a1e94829399b8687dadb868f381c55a7bf346304 /gdb/coffread.c | |
parent | 8cf9d7bc2daf04b1f2c826325a2dd45a12d34fe6 (diff) | |
download | gdb-eb3e6936e0c1076e0b97e0bad55083503cf82d88.tar.gz |
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 8ec87c14a4b..b11dd7387c1 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) { |