diff options
author | Stan Shebs <shebs@codesourcery.com> | 1994-09-03 00:32:08 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 1994-09-03 00:32:08 +0000 |
commit | 7f4c859520eb131486e73c298b45a88d87c3be89 (patch) | |
tree | 41efcee64e3d387846ea7e8c52a6efcd6ba9fad9 /gdb/objfiles.c | |
parent | ed617881e344716a2e8177ae59ee3d4b8e596e93 (diff) | |
download | gdb-7f4c859520eb131486e73c298b45a88d87c3be89.zip gdb-7f4c859520eb131486e73c298b45a88d87c3be89.tar.gz gdb-7f4c859520eb131486e73c298b45a88d87c3be89.tar.bz2 |
* objfiles.c (allocate_objfile): Add the newly-created objfile to
the end of the list of objfiles, instead of at the beginning.
* xcoffread.c (allocate_include_entry): New function, abstracted
from code in record_include_begin.
(record_include_begin, record_include_end): Call it.
* blockframe.c (reinit_frame_cache): Test inferior_pid instead of
target_has_stack to decide whether to create a real stack frame
for the cache.
* coffread.c (process_coff_symbol) [CXUX_TARGET]: Ignore vendor
section.
* config/m88k/tm-cxux.h (CXUX_TARGET): Define.
* h8300-tdep.c: Include "dis-asm.h" instead of <dis-asm.h>.
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r-- | gdb/objfiles.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c index 5e9e354..22c96ed 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -123,6 +123,7 @@ allocate_objfile (abfd, mapped) int mapped; { struct objfile *objfile = NULL; + struct objfile *last_one = NULL; mapped |= mapped_symbol_files; @@ -257,11 +258,18 @@ allocate_objfile (abfd, mapped) objfile -> name, bfd_errmsg (bfd_get_error ())); } - /* Push this file onto the head of the linked list of other such files. */ - - objfile -> next = object_files; - object_files = objfile; + /* Add this file onto the tail of the linked list of other such files. */ + objfile -> next = NULL; + if (object_files == NULL) + object_files = objfile; + else + { + for (last_one = object_files; + last_one -> next; + last_one = last_one -> next); + last_one -> next = objfile; + } return (objfile); } |