diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2024-11-04 13:27:51 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2024-11-25 22:07:04 -0500 |
commit | 6a9a1e7fb9b19639e331ae8c2962f05b7e7e92d0 (patch) | |
tree | e06f7ba4df5517f64b1283fceb93a13149a7e05f /gdb/testsuite/gdb.gdb | |
parent | 56246f3099f918409627e71705724d94bbeeeb52 (diff) | |
download | binutils-6a9a1e7fb9b19639e331ae8c2962f05b7e7e92d0.zip binutils-6a9a1e7fb9b19639e331ae8c2962f05b7e7e92d0.tar.gz binutils-6a9a1e7fb9b19639e331ae8c2962f05b7e7e92d0.tar.bz2 |
Convert all_bfds to new hash table
This converts gdb_bfd.c to use the new hash table for all_bfds.
This patch slightly changes the htab_t pretty-printer test, which was
relying on all_bfds. Note that with the new hash table, gdb-specific
printers aren't needed; the libstdc++ printers suffice -- in fact,
they are better, because the true types of the contents are available.
Change-Id: I48b7bd142085287b34bdef8b6db5587581f94280
Co-Authored-By: Tom Tromey <tom@tromey.com>
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/testsuite/gdb.gdb')
-rw-r--r-- | gdb/testsuite/gdb.gdb/python-helper.exp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.gdb/python-helper.exp b/gdb/testsuite/gdb.gdb/python-helper.exp index c17523a..d136d68 100644 --- a/gdb/testsuite/gdb.gdb/python-helper.exp +++ b/gdb/testsuite/gdb.gdb/python-helper.exp @@ -261,7 +261,8 @@ proc test_python_helper {} { } # Test the htab_t pretty-printer. - gdb_test -prompt $outer_prompt_re "print all_bfds" "htab_t with ${::decimal} elements = \\{${::hex}.*\\}" + gdb_test -prompt $outer_prompt_re "print varobj_table" \ + "htab_t with ${::decimal} elements" # Test the intrusive_list pretty-printer. A bug occurred in the # pretty-printer for lists with more than one element. Verify that |