From 609fd03384f8c43977732aac6385c3f7b7298579 Mon Sep 17 00:00:00 2001 From: Fred Fish Date: Sat, 28 Jun 1997 06:10:06 +0000 Subject: * 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". --- gdb/buildsym.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdb/buildsym.h') diff --git a/gdb/buildsym.h b/gdb/buildsym.h index b50f9d8..5f572b2 100644 --- a/gdb/buildsym.h +++ b/gdb/buildsym.h @@ -60,6 +60,7 @@ struct subfile struct linetable *line_vector; int line_vector_length; enum language language; + char *debugformat; }; EXTERN struct subfile *subfiles; @@ -264,6 +265,9 @@ extern void record_pending_block PARAMS ((struct objfile *, struct block *, struct pending_block *)); +extern void +record_debugformat PARAMS ((char *)); + #undef EXTERN #endif /* defined (BUILDSYM_H) */ -- cgit v1.1