From 7f8da359a85c040f6b22960eba8e8785a5576251 Mon Sep 17 00:00:00 2001 From: Per Bothner Date: Mon, 7 Oct 1996 17:45:29 +0000 Subject: Replace header_files global by per-objfile field. * gdb-stabs.h (struct dbx_symfile_info): Add fields header_files, n_header_files, n_allocated_header_files. * stabsread.h (header_files, n_header_files, n_allocated_header_files): Replace externs by macros HEADER_FILES, N_HEADER_FILES, and N_ALLOCATED_HEADER_FILES. * dbxread.c (dbx_symfile_finish): Free HEADER_FILES. (free_header_files, init_header-files): Don't free/init headerfiles. (various functions): Use macros instead of header_files globals. * stabsread.c (various functions): Likewise. --- gdb/gdb-stabs.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gdb/gdb-stabs.h') diff --git a/gdb/gdb-stabs.h b/gdb/gdb-stabs.h index cb7b621..fabe17c 100644 --- a/gdb/gdb-stabs.h +++ b/gdb/gdb-stabs.h @@ -64,6 +64,11 @@ struct dbx_symfile_info { int symbol_size; /* Bytes in a single symbol */ struct stab_section_info *stab_section_info; /* section starting points of the original .o files before linking. */ + + /* See stabsread.h for the use of the following. */ + struct header_file *header_files; + int n_header_files; + int n_allocated_header_files; }; #define DBX_SYMFILE_INFO(o) ((struct dbx_symfile_info *)((o)->sym_stab_info)) -- cgit v1.1