diff options
author | Tom Tromey <tom@tromey.com> | 2019-03-10 06:56:33 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-12-12 15:50:55 -0700 |
commit | d0801dd8f22a3e739c6a7d126d45829df981794d (patch) | |
tree | be0659729b37d9464c10d7991b1d250b4a785465 /gdb/objfiles.h | |
parent | 13bff72615e5a93a6e5f28e83a594125e66ccced (diff) | |
download | gdb-d0801dd8f22a3e739c6a7d126d45829df981794d.zip gdb-d0801dd8f22a3e739c6a7d126d45829df981794d.tar.gz gdb-d0801dd8f22a3e739c6a7d126d45829df981794d.tar.bz2 |
Store objfiles on a std::list
This removes objfile::next and changes objfiles to be stored in a
std::list.
gdb/ChangeLog
2019-12-12 Tom Tromey <tom@tromey.com>
* progspace.c (program_space::add_objfile)
(program_space::remove_objfile): Update.
(program_space::multi_objfile_p): Remove.
* objfiles.h (struct objfile) <next>: Remove.
* objfiles.c (objfile::objfile): Update.
(put_objfile_before): Update.
(unlink_objfile): Update.
* progspace.h (object_files): Remove.
(struct program_space) <objfiles_head>: Remove.
<objfiles_list>: New member.
<objfiles_range, objfiles_safe_range>: Change type.
(objfiles): Change return type.
(objfiles_safe): Update.
(multi_objfile_p): Rewrite and inline.
(object_files): Remove macro.
Change-Id: Ib4430e3db6f9a390399924379a5c10426c514853
Diffstat (limited to 'gdb/objfiles.h')
-rw-r--r-- | gdb/objfiles.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h index 0656cfe..f9bf102 100644 --- a/gdb/objfiles.h +++ b/gdb/objfiles.h @@ -486,12 +486,6 @@ public: } - /* All struct objfile's are chained together by their next pointers. - The program space field "objfiles" (frequently referenced via - the macro "object_files") points to the first link in this chain. */ - - struct objfile *next = nullptr; - /* The object file's original name as specified by the user, made absolute, and tilde-expanded. However, it is not canonicalized (i.e., it has not been passed through gdb_realpath). |