]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ChangeLog
Change dbxread.c to use type-safe registry
authorTom Tromey <tromey@adacore.com>
Wed, 26 Jun 2019 19:12:13 +0000 (13:12 -0600)
committerTom Tromey <tromey@adacore.com>
Wed, 10 Jul 2019 18:43:38 +0000 (12:43 -0600)
commit22a20dca3a96c481093bdff5e17f1feb0f9e345c
tree63871027e7d8f72c66b9726d17f0bc9503721744
parentcb60f4208b2b920614306937b62bf15700824ee0
Change dbxread.c to use type-safe registry

This changes dbxread.c to use the type-safe registry.  In a couple of
spots, you'll see that dbx_objfile_data_key.emplace is called but the
result is not used; this is because those functions refer to the key
via the various DBX_* macros.

2019-07-10  Tom Tromey  <tromey@adacore.com>

* gdb-stabs.h (struct dbx_symfile_info): Add initializers and
destructor.
(dbx_objfile_data_key): Change type and declare later.
(DBX_SYMFILE_INFO): Rewrite.
* dbxread.c (dbx_objfile_data_key): Change type.
(dbx_symfile_init): Update.
(~dbx_symfile_info): Rename from dbx_free_symfile_info.  Update.
(coffstab_build_psymtabs, elfstab_build_psymtabs)
(stabsect_build_psymtabs, _initialize_dbxread): Update.
gdb/ChangeLog
gdb/dbxread.c
gdb/gdb-stabs.h