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