* 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".
This commit is contained in:
parent
70742cd831
commit
609fd03384
13 changed files with 145 additions and 24 deletions
|
@ -1975,6 +1975,7 @@ read_file_scope (dip, thisdie, enddie, objfile)
|
|||
memset (utypes, 0, numutypes * sizeof (struct type *));
|
||||
memset (ftypes, 0, FT_NUM_MEMBERS * sizeof (struct type *));
|
||||
start_symtab (dip -> at_name, dip -> at_comp_dir, dip -> at_low_pc);
|
||||
record_debugformat ("DWARF 1");
|
||||
decode_line_numbers (lnbase);
|
||||
process_dies (thisdie + dip -> die_length, enddie, objfile);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue