From 1340861c99fc5ca7f4acacbdaa449f1d4c57eb80 Mon Sep 17 00:00:00 2001 From: Kung Hsu Date: Tue, 1 Mar 1994 23:13:56 +0000 Subject: Modified Files: ChangeLog objfiles.c objfiles.h symfile.c target.c main.c Makefile.in configure.in Added Files: os9kread.c os9kstab.c remote-os9k.c * os9kread.c: New file to read os9000 style symbo table. * os9kstab.c: new file to read os9000 style stabs. * remote-os9k.c: remote protocol talking to os9000 rombug monitor. * objfiles.c (find_pc_objfile): new function to search objfile from pc. * objfiles.c (objfile_relocate_data): new function to relocate data symbols in symbol table. * objfiles.h: Add two aux fields in struct objfile to handle multiple symbol table files situation like in os9000. * symfile.c: Change so 'symbol-file' command can handle multiple files. Also call target_link() to get relocation infos. * target.c (target_link): new function to get relocation info when a symbol file is requested to load. * main.c (quit_command): take out 'inferior_pid != 0' condition, because in cross mode there's no inferior pid, bit they need to be detached. Makefile.in: add os9kread.c os9kstab.c and .o's. configure.in: add i386os9k target. config/i386/i386os9k.mt: new add. config/i386/tm-i386os9k.h: new add. --- gdb/objfiles.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gdb/objfiles.h') diff --git a/gdb/objfiles.h b/gdb/objfiles.h index 6cff2ca..381a6d6 100644 --- a/gdb/objfiles.h +++ b/gdb/objfiles.h @@ -310,6 +310,9 @@ struct objfile struct obj_section *sections, *sections_end; + + /* two auxiliary fields, used to hold the fp of separate symbol files */ + FILE *auxf1, *auxf2; }; /* Defines for the objfile flag word. */ @@ -370,6 +373,8 @@ extern void free_objfile PARAMS ((struct objfile *)); extern void free_all_objfiles PARAMS ((void)); +extern struct objfile * find_pc_objfile PARAMS ((CORE_ADDR)); + extern void objfile_relocate PARAMS ((struct objfile *, struct section_offsets *)); -- cgit v1.1