1 Wed Sep 28 00:35:23 1994 Jeff Law (law@snake.cs.utah.edu)
3 * hpread.c (struct hpread_symfile_info): Delete have_module field
4 and accessor macro. Minor indentation fix.
5 (hpread_build_psymtabs, case K_MODULE): Only start a new psymtab
6 and reset state variables have_name & texthigh if pst is NULL.
7 (hpread_build_psymtabs, case K_SRCFILE): Only reset the name of a
8 partial symbol table if pst is non-NULL. If pst is NULL, then
10 (hpread_process_one_debug_symbol, case K_MODULE): Now empty.
11 (hpread_process_one_debug_symbol, case K_SRCFILE): Simplify and
12 correct handling of subfiles.
14 Fri Aug 19 10:36:15 1994 Jeff Law (law@snake.cs.utah.edu)
16 * Makefile.in (ALLDEPFILES): Add hpread.c.
17 (hpread.o): Add dependencies.
19 * somread.c: Do not include "aout/aout64.h". SOM has nothing to
21 (BYTES_IN_WORD): Delete.
22 (som_symfile_read): Call hpread_build_psymtabs to build any
23 minimal symbols based on the HP C native debug symbols.
24 (som_symfile_finish): Call hpread_symfile_finish.
25 (som_symfile_init): Call hpread_symfile_init.
26 * config/pa/tm-hppa.h (HPREAD_ADJUST_STACK_ADDRESS): Define.
27 * hppa-tdep.c (hpread_adjust_stack_address): New function.
29 * config/pa/hppabsd.mh (NATDEPFILES): Add hpread.o
30 * config/pa/hppahpux.mh (NATDEPFILES): Likewise.
33 Fri Aug 12 19:30:53 1994 Jeff Law (law@snake.cs.utah.edu)
35 * hpread.c: Delete rest of TODO list. Do not include "libbfd.h",
36 <time.h>, <sys/types.h>, "demangle.h", <sys/file.h>,
37 "expression.h", "language.h", "gdbtypes.h", "demangleh".
38 Move all global variables into the private symbol table structure
39 and add accessor macros. Update some comments.
40 (hpread_build_psymtabs): Delete dbsubc_addr, we don't need it.
41 (hpread_end_psymtab): New function to end a partial symbol table,
42 all callers changed (no more bogus sharing with dbxread.c).
44 Mon Aug 08 15:34:13 1994 Jeff Law (law@snake.cs.utah.edu)
46 * hpread.c (hpread_process_one_debug_symbol): Fix block scoping
47 problem (losing localvars on the close-brace instead of after
50 Wed Jul 06 12:39:07 1994 Jeff Law (law@snake.cs.utah.edu)
52 * hpread.c: More cleanups. Delete lots of trailing whitespace.
53 Remove some items from the TODO list and notes throughout code
54 for things which need fixing. Add more comments.
55 Document bogus struct symloc sharing with dbxread.c. Delete more
56 useless variables. Add more PARAM prototypes. Fixup more
57 indention problems that have crept in.
58 (SET_NAMESTRING): Accept new namep and objfile arguments so that
59 it doesn't depend on the variable names on the procedures it's
61 (hpread_symfile_init): Delete incorrect checks for bogus sizes of
64 Mon Jul 04 19:48:03 1994 Jeff Law (law@snake.cs.utah.edu)
66 * hpread.c (hpread_symfile_init): Make sure to initialize all the
67 private data to zero. Not having any HP C debug symbols is not an
70 Fri Jul 01 19:50:21 1994 Jeff Law (law@snake.cs.utah.edu)
72 * hpread.c: Change contribution notice to the Cygnus/Utah agreed
73 upon notice. Delete some stuff from the TODO list. Rework
74 many comments to be clearer. Major cleanups. Consistently
75 use "hpread_" prefix. Delete unnecessary macros, structures
76 variables, fiels, functions and #if 0 code. Mark code which
77 still needs to be cleaned up. PARAMize and make most functions
78 static. Fix error checking when reading in the debug section
79 contents. No more minimal symbol table handling in this code!
81 Mon Mar 21 10:09:06 1994 Jeff Law (law@snake.cs.utah.edu)
83 * hpread.c (_initialize_hpuxread): Don't call add_symtab_fns if
84 HPREAD is not defined.
86 Sun Mar 13 17:19:03 1994 Jeff Law (law@snake.cs.utah.edu)
88 * hpread.c (read_hpux_symtab: Correctly determine the namespace
89 and address class of SVAR, DVAR, TYPEDEF, TAGDEF, CONST, and
90 MEMENUM symbols. Do not include function-scoped variables in
91 the partial symbol table.
93 Sun Feb 6 15:56:09 1994 Jeff Law (law@wild.cs.utah.edu)
95 * hpread.c (hpux_symfile_init): Use obj_som_* rather than obj_* to
96 access BFD private data. Search for the "$TEXT$" space rather
98 (hppa_sym_fns): Add bfd target flavour to initializer.
100 Thu Dec 16 09:14:58 1993 Jeff Law (law@snake.cs.utah.edu)
102 * hpread.c (read_hp_function_type): Correctly handle
103 pass-by-value structures > 64bits in size.
104 (process_one_debug_symbol): Likewise.
106 Tue Nov 2 03:01:01 1993 Jeff Law (law@snake.cs.utah.edu)
108 * hpread.c: Include <time.h> and <sys/types.h>. Change include
109 of "libhppa.h" to "som.h".
110 (BYTES_IN_WORD): Define.
111 (hppa_sym_fns): "hppa" is 4 characters, not 5.
113 Wed Sep 29 17:20:54 1993 Jeff Law (law@snake.cs.utah.edu)
115 * hpread.c (read_hpux_symtab): When a K_END is found for a
116 K_MODULE, clear the have_module and have_name flags.
118 Sun Aug 22 22:50:32 1993 Jeff Law (law@snake.cs.utah.edu)
120 * hpread.c (get_textlow): Don't go past a K_END when looking for a
121 K_FUNCTION. Avoids losing on source files with no functions.
123 Wed Aug 18 21:42:52 1993 Jeff Law (law@snake.cs.utah.edu)
125 * hpread.c (read_hpux_symtab): Call SET_NAMESTRING for K_MODULE
128 Mon Aug 16 09:52:33 1993 Jeff Law (law@snake.cs.utah.edu)
130 * hpread.c: Add U Utah contribution notice. Add TODO list.
131 (hp_type_lookup): Use TYPE_NAME and TYPE_TAG_NAME.
132 (process_one_debug_symbol): Likewise.
134 Tue Jul 20 14:14:59 1993 Jeff Law (law@snake.cs.utah.edu)
136 * hpread.c (read_hp_array_type): Handle "char foo[]".
138 Thu Jul 1 15:46:10 1993 Jeff Law (law@snake.cs.utah.edu)
140 * hpread.c: Run through gnu-indent.
142 Mon Jun 28 19:00:21 1993 Jeff Law (law@snake.cs.utah.edu)
144 * hpread.c: Do not include libhppax. Instead include libhppa.h
145 and hpux-symtab.h. Misc indention fixes.
146 (find_unwind_entry): Add PARAM prototype.
147 (read_hpux_symtab): More fixes for names and sizes of structs,
148 unions, enums, typedefs, and tagdefs.
149 (read_hp_enum_type, read_hp_struct_type): Likewise.
150 (read_hp_set_type, read_hp_subrange_type): Likewise.
151 (hp_type_lookup, process_one_debug_symbol): Likewise.
152 (process_one_debug_symbol): Search forward from the K_FUNCTION for
153 the first K_BEGIN when setting the line number associated with a
154 function. Avoid unnecessary calls to savestring.
155 (hp_alloc_type): Initialize TYPE_CPLUS_SPECIFIC here. Remove
156 most cases where we set it elsewhere.
157 (hppa_sym_fns): Use "hppa" instead of hppax since hpread.c and
158 paread.c use the same BFD backend now. All references changed.
159 (hpux_symfile_init): Allocate space to hold the debugging section
160 contents on the symbol obstack.
162 Wed Jun 23 16:33:36 1993 Jeff Law (law@snake.cs.utah.edu)
164 * hpread.c: Document a few functions, misc cleanups. Update
165 copyright to reflect the first "release" of this file.
166 (struct hpux_symfile_info): Delete unneeded fields. Keep pointers
167 to the contents of the debug sections rather than offsets within
168 the file itself. Corresponding changes to the accessor macros.
169 (sl_symbol_size, slt_symbuf): Delete unneeded global variables.
170 (slt_symbuf_start, slt_symbuf_end, lntt_symbuf): Likewise.
171 (lntt_symbuf_start, lntt_symbuf_end, gntt_symbuf): Likewise.
172 (gntt_symbuf_start, gntt_symbuf_end): Likewise.
173 (fill_slt_symbuf, fill_lntt_symbuf): Delete unneeded functions.
174 (fill_gntt_symbuf): Likewise.
175 (get_lntt, get_gntt, get_slt): Simplify.
176 (hpux_symfile_init): Read and store the contents of the debugging
177 sections. Do error checking on memory allocation and BFD calls.
178 (read_hpux_symtab): Delete KERNELDEBUG crud. Ignore debug symbols
179 which are not needed for building partial symbol tables. Handle
180 K_CONST, K_TYPEDEF, and K_TAGDEF just like K_SVAR and K_DVAR.
181 (read_ofile_symtab): Delete useless processing_gcc_compilation stuff.
182 (read_hp_struct_type): Initialize TYPE_CPLUS_SPECIFIC.
183 (read_hp_set_type, read_hp_array_type): Likewise.
184 (read_hp_subrange_type, hp_type_lookup): Likewise.
186 Tue Jun 22 11:03:13 1993 Jeff Law (law@snake.cs.utah.edu)
188 * hpread.c: Delete useless #if 1 statements.
189 (hp_type_translate): Use T_LONG, T_UNS_LONG, and T_DOUBLE instead
190 of magic integers. Fix handling for T_UNS_INT. Abort if the type
191 passed in is not an "immediate" type.
192 (read_hp_enum_type): Properly compute the size of the type.
193 (read_hp_array_type): Likewise.
194 (hp_type_lookup): Prefix the names of structs, unions and enums
195 with "struct", "union", and "enum" as appropriate.
197 Mon Jun 21 10:13:42 1993 Jeff Law (law@snake.cs.utah.edu)
199 * hpread.c: Include "demangle.h".
200 (process_one_debug_symbol): Set the SYMBOL_LANGUAGE and
201 SYMBOL_INIT_DEMANGLED_NAME for the current symbol. Adjust
202 SYMBOL_VALUE for local variables in the stack by the size of the
203 current function's stack (found in unwind descriptor). Keep
204 better track of the current unwind descriptor.
206 Wed Jun 16 14:34:10 1993 Jeff Law (law@snake.cs.utah.edu)
208 * hpread.c (hp_type_translate): Fix promotion bugs from
209 char to short and short to int.
211 Thu Jun 10 11:27:34 1993 Jeff Law (law@snake.cs.utah.edu)
213 * hpread.c (read_hp_function_type): Adjust SYMBOL_VALUE for
214 arguments in the stack by the size of the current function's stack
215 (found in the unwind descriptor).
216 (process_one_debug_symbol): Likewise. Keep track of the current
217 function's unwind descriptor.