diff options
author | Fred Fish <fnf@specifix.com> | 1997-06-28 06:10:06 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1997-06-28 06:10:06 +0000 |
commit | 609fd03384f8c43977732aac6385c3f7b7298579 (patch) | |
tree | 0c8278ef3b17c12b4ffcecf31639115077b3c16e /gdb/xcoffread.c | |
parent | 70742cd83193a0f11047a5158a60217cfe99dadd (diff) | |
download | gdb-609fd03384f8c43977732aac6385c3f7b7298579.zip gdb-609fd03384f8c43977732aac6385c3f7b7298579.tar.gz gdb-609fd03384f8c43977732aac6385c3f7b7298579.tar.bz2 |
* buildsym.h (struct subfile): Add debugformat member.
(record_debugformat): Declare global function.
* buildsym.c (start_subfile): Initialize debugformat member
to NULL.
(record_debugformat): New function to record the format.
(end_symtab): Copy format into symtab debugformat member.
(end_symtab): Free subfile debugformat member.
* symmisc.c (free_symtab): Free debugformat when freeing
symtab.
* symfile.c (allocate_symtab): Initialize the new debugformat
member for new symtabs.
* symtab.h (struct symtab): Add debugformat member.
* source.c (source_info): Print the debug format.
* os9kread.c (os9k_process_one_symbol): Call record_debugformat
with "OS9".
* hpread.c (hpread_expand_symtab): Call record_debugformat
with "HP".
(hpread_process_one_debug_symbol): Ditto.
* dbxread.c (process_one_symbol): Call record_debugformat
with "stabs".
* coffread.c (coff_start_symtab): Call record_debugformat
with "COFF".
* xcoffread.c (read_xcoff_symtab): Call record_debugformat
with "XCOFF".
* dwarfread.c (read_file_scope): Call record_debugformat
with "DWARF 1".
* dwarf2read.c (read_file_scope): Call record_debugformat
with "DWARF 2".
* dstread.c (dst_end_symtab): Set debugformat to be
"Apollo DST".
* mdebugread.c (new_symtab): Set debugformat to be "ECOFF".
Diffstat (limited to 'gdb/xcoffread.c')
-rw-r--r-- | gdb/xcoffread.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index 49814c3..5ec0638 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -997,6 +997,7 @@ read_xcoff_symtab (pst) start_stabs (); start_symtab (filestring, (char *)NULL, file_start_addr); + record_debugformat ("XCOFF"); symnum = ((struct symloc *)pst->read_symtab_private)->first_symnum; max_symnum = symnum + ((struct symloc *)pst->read_symtab_private)->numsyms; @@ -1090,6 +1091,7 @@ read_xcoff_symtab (pst) start_stabs (); start_symtab ("_globals_", (char *)NULL, (CORE_ADDR)0); + record_debugformat ("XCOFF"); cur_src_end_addr = first_object_file_end; /* done with all files, everything from here on is globals */ } @@ -1154,6 +1156,7 @@ read_xcoff_symtab (pst) /* Give all csects for this source file the same name. */ start_symtab (filestring, NULL, (CORE_ADDR)0); + record_debugformat ("XCOFF"); } /* If this is the very first csect seen, @@ -1282,6 +1285,7 @@ read_xcoff_symtab (pst) start_stabs (); start_symtab (filestring, (char *)NULL, (CORE_ADDR)0); + record_debugformat ("XCOFF"); last_csect_name = 0; /* reset file start and end addresses. A compilation unit with no text |