aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorJiong Wang <jiong.wang@arm.com>2017-04-05 17:22:47 +0100
committerJiong Wang <jiong.wang@arm.com>2017-04-06 10:31:27 +0100
commit0f65a5d84d0a83e5594cf17d04e9f98ab66652a4 (patch)
treead501422fdad0be04998024eb840220a24cc750c /gdb/python
parent9014582538e38055e438b6cce28d165a73abcc60 (diff)
downloadgdb-0f65a5d84d0a83e5594cf17d04e9f98ab66652a4.zip
gdb-0f65a5d84d0a83e5594cf17d04e9f98ab66652a4.tar.gz
gdb-0f65a5d84d0a83e5594cf17d04e9f98ab66652a4.tar.bz2
[objcopy] Fix quadratic-time when handling --redefine-syms
objcopy/ * objcopy.c (struct redefine_node): Delete the field "next". (redefine_sym_list): Deleted. (redefine_specific_htab): New hash table. (redefine_specific_reverse_htab): Likewise. (eq_string_redefnode): New function. (htab_hash_redefnode): Likewise. (create_symbol2redef_htab): Likewise. (add_specific_symbol_node): Likewise. (create_symbol_htabs): Create redefine_specific_htab and redefine_specific_reverse_htab. (lookup_sym_redefinition): Use hash table instead of list. (redefine_list_append): Likewise, and rename to add_redefine_and_check. (copy_main): Use redefine_specific_htab instead of redefine_sym_list. Update comments.
Diffstat (limited to 'gdb/python')
0 files changed, 0 insertions, 0 deletions