Fix to dwarfread.c to target pointer and target long sizes, fixes for

mapped symbol file handling, and a couple of other misc small fixes.
This commit is contained in:
Fred Fish
1992-04-17 02:59:43 +00:00
parent d453b386ac
commit 2d6d969c61
6 changed files with 103 additions and 25 deletions

View File

@ -124,7 +124,18 @@ struct objfile
/* All struct objfile's are chained together by their next pointers.
The global variable "object_files" points to the first link in this
chain. */
chain.
FIXME: There is a problem here if the objfile is reusable, and if
multiple users are to be supported. The problem is that the objfile
list is linked through a member of the objfile struct itself, which
is only valid for one gdb process. The list implementation needs to
be changed to something like:
struct list {struct list *next; struct objfile *objfile};
where the list structure is completely maintained separately within
each gdb process. */
struct objfile *next;
@ -205,6 +216,12 @@ struct objfile
PTR md;
/* The file descriptor that was used to obtain the mmalloc descriptor
for this objfile. If we call mmalloc_detach with the malloc descriptor
we should then close this file descriptor. */
int mmfd;
/* Structure which keeps track of functions that manipulate objfile's
of the same type as this objfile. I.E. the function to read partial
symbols for example. Note that this structure is in statically