Keep sun4os5 config files now that Sun says it's OK.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e360572c
JG
1Tue Mar 31 17:05:04 1992 John Gilmore (gnu at cygnus.com)
2
3 * breakpoint.c (breakpoint_1): Fix prototype, this time for sure!
4
fad3fc94
SG
5Tue Mar 31 11:01:06 1992 Stu Grossman (grossman at cygnus.com)
6
e360572c 7 * Makefile.in (VERSION): 4.4.8
5e8fdb82 8
fad3fc94
SG
9 * procfs.c (open_proc_file): Disable inherit-on-fork flag so that
10 commands in .cshrc/.profile won't get traced.
11
3b0b9220
JG
12Tue Mar 31 08:11:58 1992 John Gilmore (gnu at cygnus.com)
13
14 * elfread.c (elf_symtab_read): Use xmalloc, not bfd_xmalloc.
15 * exec.c (build_section_table): Don't abort if no sections.
16 * sparc-tdep.c (single_step): Lint.
17 * utils.c (mrealloc): Handle realloc (0, size) case here.
18
d1bb1d41
SG
19Mon Mar 30 16:50:43 1992 Stu Grossman (grossman at cygnus.com)
20
f8b4aa8e
SG
21 * Makefile.in (alldeps.mak): Config files are now *.m[ht] as
22 opposed to m[ht]-*!
23
9d4c62df
SG
24 * config/irix4.mh: Don't use coredep.o. It doesn't work with procfs.
25
d1bb1d41
SG
26 * mipsread.c (parse_symbol, parse_procedure): Re-do the way that
27 .gdbinfo. symbols are created. Move creation from parse_procedure
28 to parse_symbol, where it is fairly easy to grow the symtab. This
29 also fixes a symtab trashing bug on all mips-based systems.
30 * (got_numargs, lookup_numargs, free_numargs): Delete. Not
31 needed anymore.
32 * tm-mips.h, tm-iris3.h, mips-tdep.c, mipsread.c: Re-do struct
33 mips_extra_func_info, and all the PROC_xxx macros that look at it.
34
d26b50b7
PB
35Mon Mar 30 14:17:53 1992 Per Bothner (bothner@cygnus.com)
36
37 * c-exp.y: Add missing return type to yyparse() prototype.
38
be772100
JG
39Sat Mar 28 22:22:06 1992 John Gilmore (gnu at cygnus.com)
40
41 Create and use macros for iterating on symtabs, psymtabs, msymbols.
42
43 * minsyms.c (iterate_over_msymbols): Remove; clunky and slow.
44 * symfile.h, symtab.h (iterate_over_msymbols): Remove prototype
45 * coffread.c (coff_symfile_read): iterate_over_symtabs => ALL_SYMTABS.
46 (patch_opaque_types): Avoid dummy args and result.
47 * objfiles.c (have_partial_symbols, have_full_symbols,
48 have_minimal_symbols): explicit iteration => ALL_OBJFILES; simplify.
49 (iterate_over_objfiles, iterate_over_symtabs,
50 iterate_over_psymtabs): Remove, clunky and slow.
51 * objfiles.h: Replace iterate_over_* prototypes with ALL_SYMTABS,
52 ALL_PSYMTABS, and ALL_MSYMBOLS macros.
53 * symmisc.c (dump_symtab, dump_psymtab, dump_msymbols,
54 dump_objfile): Remove dummy args and results. Move filename
55 comparisons to callers.
56 (printsyms_command, printpsyms_command, printmsyms_command,
57 printobjfiles_command): iterate_over_* => ALL_*. Compare filenames.
58 * symtab.c (lookup_symtab_1, lookup_symtab, lookup_partial_symtab,
59 lookup_symbol, find_main_psymtab, find_pc_symtab, sources_info,
60 list_symbols, make_symbol_completion_list): Replace explicit
61 iteration with ALL_SYMTABS, ALL_PSYMTABS, or ALL_MSYMBOLS.
62 Eliminate Dijkstra flag crap, break out of loops with gotos.
63 (lookup_symtab_1): Protect '/' tests from short filenames.
64 (cplus_mangled_symbol): Move inline into lookup_symbol.
65 * xcoffexec.c (relocate_objfile_msymbols): Remove poor hack.
66 (relocate_minimal_symbol): Move inline to vmap_symtab.
67 (vmap_symtab): Replace iteration with ALL_OBJFILES,
68 iterate_over_msymbols with ALL_MSYMBOLS.
69
70 Misc cleanup prior to release.
71
72 * Makefile.in (VERSION): Roll to 4.4.7.
73 (HFILES): Add call-cmds.h.
74 * call-cmds.h: New header for command fns called by other files.
75 * breakpoint.c (watchpoints_info): Remove, same as breakpoints_info.
76 (breakpoint_1): Remove unused type arg. Change callers.
77
78 * dwarfread.c (dwarf_build_psymtabs): Remove mainline test.
79 * mipsread.c (compare_symtabs, compare_psymtabs): Remove, unused.
80 * mipsread.c: Add prototypes for all static functions.
81
82 * symmisc.c (dump_symtab_lines, dump_symtabs, dump_last_symtab,
83 dump_blockvector, dump_block, dump_addrchass, dump_namespace,
84 dump_symbol, dump_type, dump_linetable, dump_strtbl): Remove, unused.
85 * xcoffread.c (dump_symtab_lines, dump_symtabs, dump_last_symtab,
86 dump_blockvector, dump_block, dump_addrchass, dump_namespace,
87 dump_symbol, dump_type, dump_linetable, dump_strtbl): Remove 2nd
88 unused copy!
89
90 * buildsym.c (define_symbol): Handle global register variables
91 (from Pierre Willard). Complain if register numbers are too large.
92 * target.c (nomemory): Now that higher levels examine errno, give EIO.
93 * tm-sparc.h: Don't #include <sun4/reg.h>.
94 * sparc-tdep.c (sparc_frame_chain, frame_saved_pc): Remove
95 dependency on <sun4/reg.h>. Start to handle cross-byte-order.
96
97 * language.h: Avoid forward enum declaration.
98 * configure.in, tm-sun4os5.h, xm-sun4os5.h, config/sun4os5.mh,
99 config/sun4os5.mt: New host and target.
100 * defs.h (errno): #include <errno.h> rather than assuming int.
101 From Pierre Willard.
102
103 * breakpoint.c, breakpoint.h, buildsym.c, coffread.c, cplus-dem.c,
104 dbxread.c, dwarfread.c, elfread.c, infcmd.c, infrun.c, inftarg.c,
105 language.c, main.c, mem-break.c, mips-tdep.c, mipsread.c,
106 partial-stab.h, remote.c, saber.suppress, symfile.c, symtab.c,
107 valops.c, valprint.c, xcoffread.c, c-exp.y, m2-exp.y, blockframe.c,
108 command.c, core.c, exec.c, gdbtypes.h, parse.c, printcmd.c, solib.c,
109 sparc-xdep.c, utils.c, value.h, values.c: Lint.
110
111Sat Mar 28 02:43:26 1992 John Gilmore (gnu at cygnus.com)
112
113 * buildsym.c (read_range_type): Avoid int overflow by using unsigned.
114 * dbxread.c (dbx_symfile_init): Remove bogus `lvalue cast'.
115 * language.h (enum exp_opcode): Avoid forward enum def.
116 * main.c (define_command, user_defined_command): Lint.
117 * mem-break.c, xcoffread.c: Lint.
118 * solib.c: Only #include <a.out.h> on SunOS, not SVR4.
119
1eeba686
PB
120Sun Mar 29 14:16:22 1992 Per Bothner (bothner@cygnus.com)
121
122 * Merged in latest RS6000 diffs from Metin G. Ozisik.
123 * xcoffsolib.c, xcoffsolib.h: New files, from Metin.
124 * Various files: Changed #ifdef IBM6000 to IBM6000_HOST
125 or IBM6000_TARGET as (approximately) appropriate.
126
bf349b77
FF
127Sat Mar 28 13:00:10 1992 Fred Fish (fnf@cygnus.com)
128
129 * objfiles.h (OBJF_SYMS): Define flag bit for objfile flags.
130 * symfile.c (symbol_file_add): Use OBJF_SYMS to decide whether
131 or not to try reading symbols from a mapped objfile. Plugs memory
132 leak due to shared libraries generating no psymtabs or symtabs.
133
c2e4669f
JG
134Fri Mar 27 15:44:55 1992 John Gilmore (gnu at cygnus.com)
135
136 * buildsym.c (MAX_OF_C_TYPE, MIN_OF_C_TYPE): Unused, remove.
137 * copying.awk: Lint. Make stronger warning at top of copying.c.
138 * elfread.c (elf_symtab_read): Eliminate check of mainline.
139 * gdbtypes.c (smash_to_*): Remove FIXME comments.
140 (lookup_pointer_type): Add FIXME comment.
141 * main.c (set_history_size_command): Disallow negative size.
142 * partial-stab.h: Update copyright.
143 * rs6000-tdep.c (skip_trampoline_code): Better comments.
144
145Wed Mar 25 10:45:38 1992 John Gilmore (gnu at cygnus.com)
146
147 * main.c (set_history_size_command): Negative size is error.
148 (Reported by Peggy Fieland.)
149
3624c875
FF
150Thu Mar 26 17:01:18 1992 Fred Fish (fnf@cygnus.com)
151
152 * coffread.c (coff_symfile_init): Update comment.
153 * dbxread.c (DBX_SYMFILE_INFO, DBX_TEXT_SECT, DBX_SYMCOUNT,
154 DBX_STRINGTAB, DBX_STRINGTAB_SIZE, DBX_SYMTAB_OFFSET): Define
155 macros to access the dbx specific objfile information.
156 * dbxread.c (symfile_string_table, symfile_string_table_size):
157 Remove these local variables.
158 * dbxread.c (read_ofile_symtab, psymtab_to_symtab_1,
159 read_dbx_symtab): Remove the stringtab and stringtab_size params
160 from the function prototypes, the function definition, and the
161 function calls. These are now available via DBX_STRINGTAB and
162 DBX_STRINGTAB_SIZE using the objfile pointer.
163 * dbxread.c (dbx_symfile_read): Relocate addr before using as
164 an arg to read_dbx_symtab.
165 * dbxread.c (dbx_symfile_read): Remove code that free'd the
166 stringtab and the dbx specific per-objfile private info.
167 * dbxread.c (init_psymbol_list): Remove symbol count from passed
168 args in prototype, function definition, and function calls. It is
169 now available via the DBX_SYMCOUNT macro using the objfile
170 pointer.
171 * dbxread.c (dbx_symfile_read, dbx_symfile_init): Remove the
172 local instance of struct dbx_symfile_info and replace with DBX_*
173 macros.
174 * dbxread.c (dbx_symfile_read): Remove init's of now deleted
175 symfile_string_table and symfile_string_table_size.
176 * dbxread.c (dbx_symfile_finish): Remove now obsolete free of
177 symfile_string_table.
178 * dbxread.c (init_psymbol_list): Use DBX_SYMCOUNT.
179 * dbxread.c (dbx_psymtab_to_symtab): Remove local stringtab and
180 stringtab size variables. Remove all code that used to reread
181 the stringtab.
182 * objfiles.c (allocate_objfile): Move calls to init_malloc()
183 to prior to any calls to mmalloc for the objfile specific heap.
184 * utils.c (init_malloc): Document the requirement that for each
185 heap for which corruption checking is desired, that init_mmalloc
186 must be called prior to any mmalloc calls on the heap.
187
188Thu Mar 26 13:20:06 1992 Per Bothner (bothner@cygnus.com)
189
190 * rs6000-pinsn.c: Make dis-assembly output more like
191 other targets: Don't print instruction in hex before
192 the assembly; use print_address to print out jump
193 destinations.
194
04f27ddc
PB
195Wed Mar 25 16:52:35 1992 Per Bothner (bothner@cygnus.com)
196
197 * c-exp.y, gdbtypes.h: Add builtin_type_signed_char.
198 * cplus-dem.c: Support "Sc" meaning "signed char".
199
88f36033
SG
200Wed Mar 25 15:21:44 1992 Stu Grossman (grossman at cygnus.com)
201
202 * configure.in: fix iris/iris3.
203
5c71cf23
PB
204Wed Mar 25 14:55:48 1992 Per Bothner (bothner@cygnus.com)
205
206 * command.c, main.c (various places): Use ctype.h macros
207 (such as isupper(x)), instead of hard-wiring in ASCII-isms
208 (such as (x >= 'A' && x <= 'Z')).
209 (There are still more of these in other files.)
210 * main.c (defined_command): Lower-case the user's
211 new command before entering it. Needed because
212 command lookup is case-insensitive (and also lower-cases).
213 (Based on Metin's earlier patch.)
214
fd2329d7
RP
215Tue Mar 24 23:27:01 1992 K. Richard Pixley (rich@cygnus.com)
216
217 * config/irix4.mh: new file.
218
4f301966
SG
219Tue Mar 24 14:17:48 1992 Stu Grossman (grossman@cygnus.com)
220
0a22f63e
SG
221 * infcmd.c (step_1): Call disable_longjmp_breakpoint at the right
222 time.
223
224 * xm-mips.h: Declare strdup for ultrix.
9d53db1a 225
4f301966
SG
226 * mipsread.c (fixup_sigtramp): Make sure that current_objfile is setup
227 when calling new_symbol.
228 * mips-tdep.c (mips_frame_chain): Use symfile_objfile instead of
229 current_objfile.
230
5c8d3927
PB
231Tue Mar 24 13:26:25 1992 Per Bothner (bothner@rtl.cygnus.com)
232
233 * config/rs6000.mh: Update (for Fred's new mmalloc)
234 flags to disable use of GNU malloc/mmalloc.
235 * munch: Change SYSV rule to allow .text before the label,
236 as well as after, to work for AIX.
237 * gdbtypes.h: Minor clarifiction.
238
be1384b0
MT
239Tue Mar 24 07:26:19 1992 Michael Tiemann (tiemann@cygnus.com)
240
241 * buildsym.c (read_struct_type): Handle cretinous dbx symbol name
242 continuation in yet another place (between method declarations).
243
62a469e1
SG
244Mon Mar 23 23:01:41 1992 Stu Grossman (grossman at cygnus.com)
245
246 * mips-tdep.c: include symfile.h and objfiles.h to fix
247 compilation errors.
248
b3024b21
PB
249Mon Mar 23 15:49:14 1992 Per Bothner (bothner@cygnus.com)
250
251 * valops.c (value_struct_elt_for_reference): Added 'offset'
252 parameter to handle multiple inheritance.
253 * eval.c, value.h: Update accordingly.
254
5e2e79f8
FF
255Fri Mar 20 17:43:27 1992 Fred Fish (fnf@cygnus.com)
256
257 * objfiles.h: New file
258 * Makefile.in (HFILES): Add objfiles.h
259 * blockframe.c: Remove entry_scope_lowpc, entry_scope_highpc,
260 main_scope_lowpc, main_scope_highpc.
261 * blockframe.c, buildsym.c, coffread.c, dbxread.c, dwarfread.c,
262 elfread.c, gdbtypes.h, minsyms.c, mipsread.c, objfiles.c, solib.c,
263 source.c, symfile.c, symmisc.c, symtab.c, target.c, xcoffexec.c,
264 xcoffread.c, : Include objfiles.h.
265 * tm-29k.h, tm-i386v.h, tm-merlin.h, tm-rs6000.h, tm-sun386.h,
266 tm-symmetry.h, tm-tahoe.h, tm-umax.h, tm-vax.h, m88k-tdep.c,
267 mips-tdep.c (FRAME_CHAIN): Renamed outside_startup_file to
268 inside_entry_file() and logic changed appropriately.
269 * blockframe.c (outside_startup_file): Renamed to
270 inside_entry_file() and logic changed appropriately.
271 * blockframe.c (inside_main_scope): Renamed to inside_main_func()
272 and logic changed to use per-objfile specific fields.
273 * blockframe.c (inside_entry_scope): Renamed to
274 inside_entry_func() and logic changed to use per-objfile specific
275 fields.
276 * blockframe.c, buildsym.h, coffread.c, dwarfread.c, mipsread.c,
277 symfile.c, mips-tdep.c (startup_file_start, startup_file_end):
278 Remove extern decls.
279 * symfile.c, symfile.h (entry_point): Remove extern decl.
280 * coffread.c (coff_symfile_init): Common entry point init code
281 moved to symfiles.c, call init_entry_point_info().
282 * coffread.c (complete_symtab): Use new per-objfile entry info.
283 * mip-tdep.c (mips_frame_chain): Use new per-objfile entry info.
284 * mipsread.c (parse_partial_symbols): Use new per-objfile entry
285 info.
286 * dbxread.c (read_dbx_symtab): Use new per-objfile entry info.
287 * defs.h (inside_entry_scope, outside_startup_file,
288 inside_main_scope): Prototypes changed for renames to
289 inside_entry_func, inside_entry_file, inside_main_func,
290 respectively.
291 * symfile.c (syms_from_objfile): Common entry point init code
292 moved to init_entry_point_info() and call init_entry_point_info().
293 * symfile.h (init_entry_point_info): Include prototype.
294 * xcoffread.c (aixcoff_symfile_init): Common entry point init code
295 moved to symfiles.c and call init_entry_point_info().
296 * dwarfread.c (entry_scope_lowpc, entry_scope_highpc,
297 main_scope_lowpc, main_scope_highpc): Remove extern decls.
298 * dwarfread.c (read_func_scope, read_file_scope): Use new per-
299 objfile entry info.
300 * frame.h (FRAME_CHAIN_VALID): Provide default definition that
301 works for the majority of targets.
302 * tm-68k.h, tm-convex.h, tm-h8300.h, tm-i386v.h, tm-irix3.h,
303 tm-merlin.h, tm-mips.h, tm-pyr.h, tm-rs6000.h, tm-sparc.h,
304 tm-sun386.h, tm-tahoe.h, tm-umax.h, tm-vax.h (FRAME_CHAIN_VALID):
305 Use default definition in frame.h.
306 * frame.h (selected_frame_level): Make decl extern.
307 * objfiles.c, symfile.c (current_objfile): Moved to objfiles.c
308 * objfiles.c, symfile.c (symfile_objfile): Moved to objfiles.c
309 * partial-stab.h: Use new per-objfile entry info.
310 * symfile.h (struct objfile): Removed, moved to objfiles.h.
311 * symfile.h, objfiles.h (allocate_objfile, free_objfile,
312 free_all_objfiles, iterate_over_objfiles, iterate_over_symtabs,
313 iterate_over_psymtabs, have_partial_symbols, have_full_symbols,
314 have_minimal_symbols): Prototypes moved to objfiles.h.
315 * symfile.h, objfiles.h (ALL_OBJFILES, ALL_OBJFILES_SAFE):
316 Macros moved to objfiles.h.
317 * tm-h8300.h, tm-i386v4.h (FRAME_CHAIN_VALID_ALTERNATE): Define.
318
01be6913
PB
319Thu Mar 19 18:49:45 1992 Per Bothner (bothner@cygnus.com)
320
321 More C++ improvements (pointers to members, qualified names).
322 * c-exp.y: Support exp.type::name and exp->type::name
323 syntaxes. (Unfortunately, doesn't work for static members.)
324 * c-exp.y, eval.c: Make type::~type work better.
325 * eval.c (evaluate_subexp: OP_SCOPE): Replace use of
326 value_static_field by value_struct_elt_for_reference.
327 * eval.c (evaluate_subexp): Merge code for STRUCTOP_MEMBER
328 and STRUCTOP_MPTR; cast arg1 to domain-type of arg2.
329 * eval.c (evaluate_subexp): Remove special case for UNOP_ADDR
330 for OP_SCOPE operand; no point in it now that we use lazy
331 reading of values, and use "reference to member" objects.
332 * gdbtypes.h: Clarify comment.
333 * valops.c: Change value_struct_elt_for_address to return
334 a reference (or variable), rather than a pointer. Change
335 the name to value_struct_elt_for_reference to reflect this.
336 Returning a reference instead of a address provides a
337 generalization, since we can use the routine for both
338 class::name as well as &class::name.
339 Also, recurse to handle multiple inheritance properly.
340 * valprint.c: Moved code to print pointer-to-members
341 to new function point_class_member. This allows a
342 "reference-to-member" to be printed using the same code.
343 * valprint.c (type_print_varspec_prefix): Avoid printing
344 "struct " for domains of class-member types.
345 * valops.c (search_struct_field): Inline code for simplified
346 version of value_static_field (which can then be deleted).
347 * value.h: Rename value_struct_elt_for_address to
348 value_struct_elt_for_reference. Delete value_static_field.
349 * values.c: Remove no longer used function value_static_field.
350
80d68b1d
FF
351Thu Mar 19 13:54:11 1992 Fred Fish (fnf@cygnus.com)
352
353 * coffread.c, mipsread.c, xcoffread.c, coffread.c, dbxread.c,
354 elfread.c (coff_symfile_finish): Add function, prototype, and
355 add to the xxxx_sym_fns struct for each file type. Also reformat
356 the xxxx_sym_fns vector to a standard format and add comments.
357 * coffread.c, mipsread.c, xcoffread.c, coffread.c, dbxread.c,
358 elfread.c (xxx_symfile_new_init, xxx_symfile_init, xxx_symfile_read):
359 Pass pointer to struct objfile rather than pointer to sym_fns.
360 Change references inside each function accordingly. Allocate any
361 symbol file specific info in the per-objfile memory region.
362 * dbxread.c (free_and_init_header_files): Break function into
363 free_header_files(), called from dbx_symfile_finish(), and
364 init_header_files(), called from dbx_new_init().
365 * dbxread.c (dbx_new_init): Move deallocation things to new
366 dbx_symfile_finish function.
367 * elfread.c (elf_new_init): Call buildsym_new_init().
368 * objfiles.c (free_objfile): Call the appropriate symfile_finish()
369 routine for the objfile before deallocating other stuff.
370 * sparc-tdep.c (get_longjmp_target): Cast target_read_memory arg.
371 * symfile.h: Move struct sym_fns to before struct objfile def.
372 Add sym_finish function pointer and change prototypes of other
373 function pointers to reflect passing struct objfile pointer rather
374 than struct sym_fns pointer.
375 * symfile.c: Remove now obsolete symtab_fns pointer.
376 * symfile.c (symfile_init): Renamed to find_sym_fns, and now only
377 locates the correct sym_fns struct for the given objfile.
378 * symfile.c (syms_from_objfile, symbol_file_add): Restructured
379 for better support of mapped symbol tables.
380 * symfile.c (symbol_file_command): Remove obsolete code using
381 symfile_fns.
382 * symfile.h: Remove duplicate declarations for symfile_objfile,
383 entry_point, and object_files.
384 * target.c (target_info): Compare symfile_objfile to NULL.
385 * xcoffread.c (aixcoff_new_init): Move deallocation stuff to
386 aixcoff_symfile_finish().
387
dc52fc71
FF
388Wed Mar 18 18:22:46 1992 Fred Fish (fnf@cygnus.com)
389
390 * infrun.c (IN_SOLIB_TRAMPOLINE): Add default definition.
391 * infrun.c (wait_for_inferior): Use IN_SOLIB_TRAMPOLINE.
392 * tm-sysv4.h (IN_SOLIB_TRAMPOLINE): Add SVR4 definition.
393
2cd99985
PB
394Wed Mar 18 15:51:15 1992 Per Bothner (bothner@cygnus.com)
395
396 Some improvements to g++ debugging.
397 * symtab.c (list_symbols): demangle before pattern matching.
398 * symtab.c: Other fixes to improve handing of operators.
399 * valprint.c (type_print_base): Fix test for constructor.
400 * values.c (value_static_field): Allow evaluation of
401 CLASS::METHOD, returning a function pointer.
402
b0246b3b
FF
403Wed Mar 18 08:39:52 1992 Fred Fish (fnf@cygnus.com)
404
405 * Makefile.in (VERSION): Roll 4.4.6.
406 * exec.c (exec_file_command): Add code to ignore optional args
407 passed in by file_command() for use in symbol_file_command().
408 * main.c (main): Document -mapped and -readnow in help summary.
409 * objfiles.c (open_mapped_file): Cosmetic change, arg renamed.
410 * objfiles.c (allocate_objfile): Filename arg removed. Changes
411 to get filename from bfd with bfd_get_filename(). Test mapto
412 against 0, not NULL. Use mstrsave() to make copy of filename.
413 * remote-mm.c (mm_load): Symbol_file_add() takes an additional
414 arg.
415 * remote-vx.c (vx_load_command, add_symbol_stub):
416 Symbol_file_add() takes an additional arg.
417 * solib.c (symbol_add_stub): Symbol_file_add() takes an
418 additional arg.
419 * symfile.c (symfile_open): Renamed to symfile_bfd_open and
420 changed to return a bfd not an objfile pointer.
421 * symfile.c (syms_from_objfile): Eliminate local copy of bfd.
422 * symfile.c (symbol_file_add): Takes an additional arg (readnow).
423 Change to eliminate local bfd and use symfile_bfd_open() plus
424 allocate_objfile(). Add code to implement readnow option.
425 * symfile.c (symbol_file_command): Changes to option handling,
426 readnow functionality moved to symbol_file_add().
427 * symfile.c (symfile_init): Eliminate local copy of bfd.
428 * symfile.c (add_symbol_file_command): Changes to parse mapped
429 and readnow options.
430 * symfile.h (allocate_objfile): Arg removed from prototype.
431 * symtab.h (symbol_file_add): Arg added to prototype.
432 * xcoffexec.c (map_vmap): Allocate_objfile() takes an additional
433 arg.
434
318bf84f
FF
435Sat Mar 14 16:38:47 1992 Fred Fish (fnf@cygnus.com)
436
437 * gmalloc.c, gmalloc.h mcheck.c mmap-alloc.c mmap-sbrk.c mtrace.c,
5a4470de 438 mtrace.awk, state.c, state.h: Removed.
318bf84f
FF
439 * .gdbinit: Add ../malloc, ../libiberty, and ../bfd to list of
440 directories searched for source files.
441 * Makefile.in (GNU_MALLOC, MALLOC_CFLAGS, MALLOCSRC): Removed
442 * Makefile.in (MMALLOC_DIR, MMALLOC_DEP, MMALLOC_LIB,
443 MMALLOC_DISABLE, MMALLOC_CHECK, MMALLOC_CFLAGS): Add
444 * Makefile.in (CFLAGS): Replace MALLOC_CFLAGS with MMALLOC_CFLAGS.
445 * Makefile.in (CLIBS, CDEPS): Add MMALLOC_LIB
446 * Makefile.in (ADD_FILES, ADD_DEPS): Remove GNU_MALLOC.
447 * Makefile.in (SFILES_MAINDIR): Remove stat.c mmap-alloc.c, mmap-
448 sbrk.c
449 * Makefile.in (HFILES): Remove state.h
450 * Makefile.in (POSSLIBS_MAINDIR): Remove MALLOCSRC.
451 * Makefile.in (OBS): Remove state.o mmap-alloc.o mmap-sbrk.o
452 * Makefile.in (saber_gdb): Remove mcheck, mtrace. Add MMALLOC_DIR.
453 * Makefile.in (clean): Remove all object files.
454 * c-exp.y: Define malloc to xmalloc and realloc to xrealloc.
455 * cplus-dem.c: Remove prototypes definitions that are now done in
456 def.h.
457 * dbxread.c (throughout): Change from using per-objfile
458 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
459 * defs.h: Remove prototypes for mmap_* functions. Add prototypes
460 for xmmalloc, xmrealloc, mfree, mmcheck, mmtrace, mmalloc_attach,
461 mmalloc_detach, mmalloc_setkey, msavestring, and mstrsave, nomem.
462 * depend: Remove dependencies for state.o, state.h.
463 * dwarfread.c: Add declaration for warning_pre_print.
464 * dwarfread.c (dwarfwarn): Use warning_pre_print.
465 * dwarfread.c (throughout): Change from using per-objfile
466 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
467 * gdbtypes.c (lookup_fundamental_type): Fix init_type calls to
468 use supplied objfile.
469 * i386-xdep.c (print_387_status): Change to use warning() rather
470 than printfs.
471 * i387-tdep.c (print_387_control_word): Change to use warning()
472 rather than printfs.
473 * infrun.c (wait_for_inferior): Remove unreachable abort() call
474 that some compilers grumble about.
475 * language.c (throughout): Add declaration for warning_pre_print
476 and using warning() instead of printfs.
477 * m2-exp.y: Define malloc to xmalloc and realloc to xrealloc.
478 * main.c (main): Add declaration for warning_pre_print and set it
479 similarly to error_pre_print. Add declarations for
480 mapped_symbol_files and readnow_symbol_files. Add appropriate
481 definitions to long_options[].
482 * minsyms.c: Trivial fix to comment.
483 * objfiles.c (allocate_objfile): Substantially rewritten for
484 using mapped symbol files.
485 * objfiles.c (throughout): Change from using per-objfile
486 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
487 * objfiles.c (open_mapped_file, mapped_to_address): Add functions.
488 * source.c (throughout): Change from using per-objfile
489 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
490 * source.c (open_source_file): Use mstrsave to save file name in
491 mapped symbol region for objfile.
492 * symfile.c: Remove include for state.h.
493 include to local form.
494 * symfile.c (symbol_file_add_digested): Remove.
495 * symfile.c (symbol_file_add): Substantially rewritten for mapped
496 symbol files.
497 * symfile.h: Remove malloc/xrealloc/xmalloc/xrealloc/free members
498 from objfile structure. Add malloc descriptor pointer (md).
499 * symfile.h (OBJF_DUMPABLE): Changed name to OBJF_MAPPED.
500 * symm-xdep.c (print_fpu_status): Use warning() rather than
501 printfs.
502 * symmisc.c (free_symtab_block): Now takes and uses current
503 objfile pointer.
504 * symmisc.c (throughout): Change from using per-objfile
505 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
506 * symtab.c (cplus_mangled_symbol): Cast return value to avoid
507 Sun compiler grumblings when PTR is char *.
508 * symtab.c (lookup_symbol): Cast return value of iterate_over_
509 msymbols() to correct pointer type.
510 * utils.c (warning_pre_print): Initialize to "\nwarning: ".
511 * utils.c (fatal, fatal_dump_core): Ensure that the fatal
512 error always starts on a line of it's own.
513 * utils.c (init_malloc, malloc_botch, xmalloc, xrealloc):
514 Rewrite for new mapped malloc package use.
515 * utils.c (mmalloc, mrealloc, mfree): Stubs for configurations
516 that don't want to use the mapped malloc package; pass arguments
517 on to traditional malloc package functions.
518 * utils.c (nomem): Add for fatal virtual memory exhausted aborts.
519 * utils.c (xmmalloc, xmrealloc, xmalloc, xrealloc): Like mmalloc,
520 mrealloc, malloc, and realloc but get fatal error if runs out
521 of memory.
522 * utils.c (msavestring, mstrsave): Save a string in a specific
523 mapped malloc region.
524 * utils.c (print_spaces): Use xmalloc to get the buffer.
525 * xm-amix.h, xm-i386v4.h, xm-sun3os4.h, xm-sun4os4.h: Add defines
526 for MMAP_BASE_ADDRESS and MMAP_INCREMENT.
527 * config/i386v4.mh: Insignificant reorganization.
528
0750528a
FF
529Sat Mar 14 11:44:47 1992 Fred Fish (fnf@cygnus.com)
530
531 * xcoffread.c: Only enable compilation of debugging functions
532 if IBM6000 is defined. Fails to compile otherwise.
533
4db3902a
RP
534Fri Mar 13 15:51:11 1992 K. Richard Pixley (rich@cygnus.com)
535
536 * Makefile.in: pass MAKEINFO down on info.
537
bec9fad9
JG
538Fri Mar 13 12:56:36 1992 John Gilmore (gnu at cygnus.com)
539
540 * mipsread.c (mipscoff_symfile_read): Eliminate a lot of
541 useless code, including an lseek to an uninitialized variable.
542 Reported by Jim Williams <jimbo@wrs.com>.
543
6730b139
PB
544Thu Mar 12 11:56:46 1992 Per Bothner (bothner@cygnus.com)
545
4db3902a
RP
546 Merged in patches from metin@ibmpa.awdpa.ibm.com (Metin G.
547 Ozisik) (dated Fri, 6 Mar 92 17:51) for the rs6000.
548 * minsyms.c, symfile.c: Changes that may be generally
549 applicable, but are #ifdef IBM6000 for now.
550 * rs6000-xdep.c: Fixed typo in comment.
551 * rs6000-tdep.c: Non-substatial changes.
552 * xoffread.c: The main change here is addition of some
553 debugging functions.
554 * xoffexec.c: More changes.
555
556 * xcoffread.c: Fixed two too-few-parameters bugs.
557
6730b139
PB
558 * solib.h, infrun.c, tm-rs6000.h: Add a PID parameter
559 to SOLIB_CREATE_INFERIOR_HOOK macro.
560
a846ac55
FF
561Sun Mar 8 21:17:48 1992 Fred Fish (fnf@cygnus.com)
562
563 * symfile.h: Add prototype for iterate_over_msymbols().
564 * symtab.c (cplus_mangled_symbol): Add function.
565 * symtab.c (lookup_symbol): Call cplus_mangled_symbol via
566 iterate_over_msymbols to find demangled C++ symbol.
567 * xcoffexec.c (relocate_minimal_symbol): Return meaningful
568 value to iterate_over_msymbols().
569 * xcoffexec.c (vmap_symtab): Ignore return from iterate_over_
570 msymbols().
571
572Fri Mar 6 21:59:34 1992 K. Richard Pixley (rich@cygnus.com)
573
574 * Makefile.in: added check target.
575
a1106a1e
JG
576Thu Mar 5 23:56:01 1992 John Gilmore (gnu at cygnus.com)
577
578 * ecoff.c: Move to ../bfd/coff-msym.c.
579 * config/mt-*mips: Remove ecoff.o from the configuration.
53ccaf5f
JG
580 * remote.c (): Add newline to initial +.
581 (remote_resume): Mention how to cope with signals.
582 (remote_interrupt): Add debug msg.
583 (remote-wait): Implement new 'T' reply, which includes
584 status, PC, and FP all in a single short message.
585 (putpkt): Add further debugging of packet acks.
586 * mipsread.c (fixup_symtab): Also swap RFD's.
587 (parse_partial_symbols): Avoid bug on unknown symbol types.
b67cb9d5 588 * Makefile.in (VERSION): Roll to 4.4.5.
a846ac55
FF
589 * mips-tdep.c (heuristic_proc_start): Avoid long delays
590 for remote MIPS by limiting heuristic to 200 byte search.
591 (heuristic_proc_desc): Byte-swapping.
592 (mips_print_register): Cope with failure of
593 read_relative_register_raw_bytes. Byte-swap integers for
594 printing.
595 * mips-pinsn.c (print_insn): Byte-swap instruction.
a1106a1e 596
1170a046
SG
597Thu Mar 5 12:32:09 1992 Stu Grossman (grossman at cygnus.com)
598
599 * config.sub configure.in config/.Sanitize config/mh-irix4
600 gdb/.Sanitize gdb/configure.in gdb/mips-tdep.c gdb/mipsread.c
601 gdb/procfs.c gdb/signame.h gdb/tm-irix3.h gdb/tm-mips.h
602 gdb/xm-irix4.h gdb/config/.Sanitize gdb/config/mt-irix3
603 gdb/config/mh-irix4 texinfo/configure.in: Port to SGI Irix-4.x.
604
d7eddc51
FF
605Wed Mar 4 11:56:42 1992 Fred Fish (fnf@cygnus.com)
606
607 * defs.h, utils.c: xrealloc takes PTR as first arg.
608 * defs.h: Reword confusing comment about ANSI prototypes.
609 * defs.h: Some minor whitespace changes.
610 * infrun.c (wait_for_inferior): Compare int tmp to int 0,
611 not NULL, which can be (void *).
612 * tm-amix.h, tm-i386v4.h: Add defines for setjmp/longjmp handling.
613 * tm-i386v.h (SP_ARG0): Define
614 * xm-sysv4.h: Back out of change for missing prototypes.
615 * i386-tdep.c (get_longjmp_target): Add function.
616
a846ac55
FF
617Wed Mar 4 05:46:11 1992 K. Richard Pixley (rich@rtl.cygnus.com)
618
619 * Makefile.in: install man page too.
620
d747e0af
MT
621Tue Mar 3 15:11:52 1992 Michael Tiemann (tiemann@cygnus.com)
622
623 * All GDB files that #include defs.h: Removed stdio.h.
624 (defs.h): #include stdio.h.
625
96743d3c
SC
626Mon Mar 2 23:00:12 1992 Steve Chamberlain (sac@thepub.cygnus.com)
627
628 * gdbtypes.c (lookup_pointer_type): initialize the TYPE_LENGTH of
629 a ptype to reflect the setting of TARGET_PTR_BIT. Set the
630 TYPE_FLAGS of a ptype to TYPE_FLAG_UNSIGNED.
631 * tm-h8300.h, h8300-tdep.c, remote-hms.c: personal checkpoint
632 * printcmd.c (print_address): if ADDR_BITS_REMOVE is defined, use
633 it before printing out the hex shape of an address.
634
6c6afbb9
PB
635Sun Mar 1 17:41:09 1992 Per Bothner (bothner@cygnus.com)
636
bff1c97a
FF
637 * rs6000-xdep.c (frame_initial_stack_address): Move
638 code to set frame->cache_fsr into new separate function
639 frame_get_cacahe_fsr. This allows fixing a fatal error.
640 * xcoffexec.c: Turn previously suppressed error
641 message back on, after cleaning up BFD.
642
6c6afbb9
PB
643 * breakpoint.c (breakpoint_re_set): Removed (at least for now)
644 printing of blank line, since it cases printing of an
645 extra blank line. Is this intended? It does mess up
646 gdb test suite.
647 * defs.h: Put back declarations of malloc and realloc,
648 but protected by #ifndef MALLOC_INCOMPATIBLE.
649 * objfiles.c: Undo previous change: Use malloc/realloc
650 for objfile malloc/realloc fields (but add a cast).
651 * xcoffexec.c: Suppress an error message (for now).
652
653Sat Feb 29 14:43:02 1992 Per Bothner (bothner@cygnus.com)
654
655 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
656 [Mail dated Fri, 21 Feb 92 13:14:54 -0800]
657 * buildsym.c: Use smash_to_pointer_type() to handle forward type
658 references.
659 * xcoffread.c: Modifications to C_DECL storage class handling, and
660 introduction of an old smash_to_pointer_type() routine.
661
662 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
663 [Mail dated Thu, 20 Feb 92 13:57:16 -0800]
664 * rs6000-xdep.c, rs6000-tdep.c, tm-rs6000.h: function_frame_info()
665 parameters have been modified.
666
667 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
668 [Mail dated Thu, 20 Feb 92 10:10:05 -0800]
669 * rs6000-tdep.c: Before Feb 5 92, register_valid[] array was not used,
670 and fetch_inferior_registers() always fetched all the registers
671 resulting valid register values at hand all the time. Pushing a dummy
672 frame did not require validating all register values first. After
673 putting the above mechanism into action, we didn't have valid registers
674 values always ready. Thus, all registers need to be fetched before
675 pushing a dummy frame now.
676
677 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
678 [Mail dated Thu, 13 Feb 92 16:22:44 -0800]
679 * rs6000-xdep.c: frame_initial_stack_address() function to calculate
680 the starting address (actual frame address) of a frame.
681 * rs6000-tdep.c: modifications to function_frame_info() to see if
682 function reserves a frame pointer register (alloca register)
683 * tm-rs6000.h: EXTRA_FRAME_INFO, FRAME_ARGS_ADDRESS and
684 FRAME_LOCALS_ADDRESS has been updated to support debugging of
685 functions with alloca() calls.
686
4b8333de
FF
687Sun Mar 1 13:13:39 1992 Fred Fish (fnf@cygnus.com)
688
689 * xm-sysv4.h: Provide definitions/prototypes for host environment
690 functions for which no definitions or prototypes are provided in
691 any currently included gdb or host environment header files.
692 For SVR4, this currently includes malloc and realloc, which cannot
693 be portably prototyped in any gdb include file.
694
695Sat Feb 29 14:43:02 1992 Per Bothner (bothner@cygnus.com)
696
697 * buildsym.h: Remove obsolete variable file_stabs.
698
699 * Makefile.in: Move place where configure merges in host-
700 and target-dependent fragments later, so the latter
701 can override (say) GNU_MALLOC.
702 * config/mh-rs6000: Use system malloc. Otherwise, I
703 ended up with *two* incompatible versions of malloc
704 (functions in libc would call the malloc in libc).
705 I assume this is a shared library problem.
706
707 * remote.c: Fix (presumed) typo.
708 * objfiles.c: Use xmalloc/xrealloc instead of
709 malloc/realloc (since the latter are no longer declared).
710
711 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
712 [Mail dated Thu, 6 Feb 1992 10:22:02 -0800]
713 * rs6000-xdep.c: Improvements to fetch_inferior_registers() to
714 handle individual registers.
715 * tm-rs6000.h: Fix SAVED_PC_AFTER_CALL macro to handle pc value
716 correctly in case it wasn't cached yet. (A problem showed up
717 after fetching individual registers.)
718 * buildsym.c: Disable type_synonym_name's type name overwriting
719 in cases it is unnecesary. rs6000 portation doesn't use
720 type_synonym_name, and it used to nullify type names
721 * xcoffread.c: to handle g++'s typename abbreviation, fill in a
722 type's name as soon as space for that type is allocated.
723 * xcoffread.c: ignore a section's lineno information if it is
724 not `.text'. (In rs6000 bfd portation integration, skipping over
725 `.pad' sections are ignored since it was in machine independent
726 part of the code. Thus, a problem of fake sections with invalid
727 lineno information arised.)
728
729 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
730 [Mail dated Thu, 6 Feb 1992 13:26:22 -0800]
731 * rs6000-tdep.c: make function_frame_info() work whether or not
732 reading from a core file.
733 * tm-rs6000.h: Implementation of FRAME_FIND_SAVED_REGS macro.
734
735 * infrun.c. main.c, printcmd.c. symtab.c:
736 More changes from IBM for rs6000.
737
738
818de002
PB
739Thu Feb 27 22:57:19 1992 Per Bothner (bothner@cygnus.com)
740
741 * rs6k-opcode.h, tm-rs6000.h, xm-rs6000.h, rs6000-tdep.c,
742 rs6000-xdep.c, xcoffexec.c, xcoffread.c:
743 Merge in changes (mostly from IBM) for RS6000.
744 * breakpoint.c, buildsym.c, infptrace.c, stack.c, symtab.c:
745 More changes from IBM for RS6000. These are in machine-
746 independent code, and probably could do with some cleaning
747 up. The most questionable of these are #ifdef IBM6000.
748 * infrun.c, sparc-tdep.c: Pass a parameter (signal number)
749 to single_step() (for consistency with rs6000 and i860).
750 * utils.c: Allow the 1st arg to xrealloc to be NULL
751 (in which case do malloc). This removes the need for
752 some tests in xcoff code (and perhaps other places?).
753 * coffread.c: Removed variables last_source_file,
754 type_vector, and type_vector_length as these are now
755 defined by buildsym.[ch].
756 * defs.h: Remove prototypes for malloc and realloc, since
757 these should only be used to implement xmalloc and xrealloc,
758 and they conflict with <stdlib.h> in AIX - where they
759 return void* even when __STDC__ isn't defined. Sigh.
760 * munch: Recognize *initialize* in data as well as text
761 (AIX uses data). Also, incorporate a patch from Garrett
762 Wollman <wollman@uvm-gen.uvm.edu> to make the sed script
763 much more sensible, by only trying to match the name of
764 the initialize_foo function, and not the junk before it.
765
8537ba60
SG
766Thu Feb 27 20:07:43 1992 Stu Grossman (grossman at cygnus.com)
767
768 * breakpoint.c (breakpoint_re_set_one): Don't reset breakpoint
769 unless symbol table indicates that something has changed.
770
069bc454
JG
771Thu Feb 27 11:48:47 1992 John Gilmore (gnu at cygnus.com)
772
b543979c
JG
773 * remote.c: Make it work for embedded MIPS. Increase buffer
774 size, and use throughout. Round buffer size up if too many regs.
775 Support baud rate setting and try for an 8-bit path. If
776 interrupted while waiting for target, send a ^C down the wire.
777 Avoid single-byte reads.
778 * tm-mips.h: Add more embedded-system registers to REGISTER_NAMES
779 and NUM_REGS.
780 * mips-xdep.h: Avoid the embedded regs when on Unix.
781
d141f3e3
JG
782 * mipsread.c: Byte-swap the symbol table structures, using
783 routines from ecoff.c, to read a symbol table written in any
784 of the four possible byte orders.
069bc454
JG
785 * configure.in (mips-big-* target): Same as Sony News.
786 * config/mt-bigmips, config/mt-littlemips: Add ecoff.o.
787 * ecoff.c: New file for symbol swapping routines.
788
80ba48f5
SG
789Thu Feb 27 09:26:38 1992 Stu Grossman (grossman at cygnus.com)
790
791 * breakpoint.c (all_breakpoints_info, breakpoint_1): Add 'info
792 all-breakpoints' command.
793 * (get_number): Allow users to enter negative breakpoint numbers.
794 * (breakpoint_1): Reformat display of 'info break' to show new
795 fields.
796 * (create_longjmp_breakpoint, breakpoint_re_set,
797 breakpoint_re_set_one, enable/disable_longjmp_breakpoint),
798 symfile.c (syms_from_objfile): Re-do
799 insertion of longjmp breakpoints. Move all code into
800 breakpoint_re_set, and call that instead of
801 create_longjmp_breakpoint in symfile.c.
802
cba0d141
JG
803Thu Feb 27 06:11:05 1992 John Gilmore (gnu at cygnus.com)
804
805 * breakpoint.h (ALL_BREAKPOINTS_SAFE): Add.
806 * breakpoint.c (breakpoint_re_set): Use ALL_BREAKPOINTS_SAFE.
807 * symtab.c (find_pc_symtab): Handle having no objfiles.
808 * infcmd.c: Fix comment.
809 * objfiles.c (free_all_objfiles): Add.
810 * symfile.h (ALL_OBJFILES, ALL_OBJFILES_SAFE): Add.
811 * symfile.c (symbol_file_command): free all objfiles when
812 specifying a new symbol file.
813 (reread_symbols): Stat the file name, don't fstat the descriptor.
814
a846ac55
FF
815Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
816
817 * Makefile.in, configure.in: removed traces of namesubdir,
818 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
819 copyrights to '92, changed some from Cygnus to FSF.
820
cba0d141
JG
821Tue Feb 25 19:31:19 1992 Stu Grossman (grossman at cygnus.com)
822
823 * dbxread.c (end_psymtab): Delete empty psymtabs.
824 * symfile.c (allocate_psymtab): Recycle empty psymtabs.
825 * symfile.h (struct objfile): Add free_psymtabs.
826
35318110
JG
827Sat Feb 22 02:00:32 1992 John Gilmore (gnu at cygnus.com)
828
47890ed7
JG
829 * Makefile.in (VERSION): Roll to gdb-4.4.4.
830
35318110
JG
831 * symfile.c (symbol_file_command): strcmp => !strcmp.
832 * breakpoint.h: Move prototypes to follow enum definition they need.
833 * breakpoint.c, infrun.c: Lint.
834 * printcmd.c: Use `enum enable' rather than `enum
835 display_status'.
836 * mipsread.c: First pass at making it compile with the new
837 objfile changes. Probably seriously broken still, but it
838 compiles. FIXME.
839
30875e1c
SG
840Sat Feb 22 00:56:39 1992 Stu Grossman (grossman at cygnus.com)
841
842 * infrun.c, infcmd.c, breakpoint.c, main.c, symfile.c,
843 breakpoint.h, tm-sun4os4.h, tm-sparc.h, sparc-tdep.c, tm-mips.h,
844 mips-tdep.h, tm-sun3.h, tm-68k.h, m68k-tdep.h: Add support for
845 stepping (and nexting) through longjmp(). Also, cleanup
846 breakpoint handling quite a bit by creating explicit breakpoint
847 types instead of using magic breakpoint numbers.
848 Makefile.in: Update version to 4.4.3
849
021959e2
JG
850Sat Feb 22 00:08:50 1992 John Gilmore (gnu at cygnus.com)
851
93fe4e33
JG
852 * buildsym.c, dwarfread.c, gdbtypes.c, inflow.c, main.c,
853 minsyms.c, printcmd.c, remote.c, saber.suppress: Saberlint.
854 * symmisc.c, xcoffread.c: Move debug functions to symmisc.c.
855
021959e2
JG
856 * xm-sun3os4.h, xm-sun4os4.h: Enable HAVE_MMAP.
857
858 * minsyms.c (install_minimal_symbols): Add bunches to any
859 existing minsyms in the objfile. Avoid extra mallocation
860 by working directly in the obstack. Remove ignored `mainline' parm.
861 * coffread.c, dbxread.c, elfread.c, mipsread.c, solib.c, symtab.h,
862 xcoffread.c: Change all callers.
863 * FIXME: We should be able to eliminate MAINLINE from all the
864 symbol readers now, with a small bit of work.
865
866 * valops.c, value.h: Lint.
867 * remote-vx.c: Add missing break; statement. Bugfix by
868 Michael Sclafani, <sclafani@src.dec.com>.
869
bff1c97a
FF
870Fri Feb 21 17:29:54 1992 Fred Fish (fnf at cygnus.com)
871
872 * Makefile.in (VERSION): Update version to 4.4.2
873 * Makefile.in (SFILES_MAINDIR): Add gdbtypes.c, state.c, objfiles.c,
874 minsyms.c, mmap-alloc.c, mmap-sbrk.c
875 * Makefile.in (HFILES): Add gdbtypes.h, state.h, solib.h
876 * Makefile.in (OBS): Add gdbtypes.o, state.o, objfiles.o, minsyms.o,
877 mmap-alloc.o, mmap-sbrk.o
878
879 * altos-xdep.c: Minor whitespace change.
880 * am29k-tdep.c (examine_prologue): Convert from misc function vector
881 use to new minimal symbol table use.
882 * arm-xdep.c (fetch_inferior_registers): Document unused argument.
883 * arm-xdep.c (store_inferior_registers): Returns void.
884 * blockframe.c (get_pc_function_start, find_pc_partial_function):
885 Convert from misc function vector use to new minimal symbol table use.
886 Remove find_pc_misc_function(). Ifdef out block_innermost_frame().
887 * breakpoint.c: Add prototypes for local functions.
888 * breakpoint.c (catch_command_1): Change to static and remove unused
889 local "pc".
890 * breakpoint.c (map_breakpoint_numbers): Prototype arg "function".
891 * breakpoint.h: Change function decls to prototype form.
892 * buildsym.c: Add prototypes for local functions.
893 * buildsym.c: Moved hashname() function here from dbxread.c.
894 * buildsym.c (dbx_lookup_type): Cast args to xrealloc().
895 * buildsym.c: Remove dbx_create_type(), uses changed to alloc_type().
896 * buildsym.c (dbx_alloc_type): Change to static.
897 * buildsym.c (finish_block): Add objfile parameter.
898 * buildsym.c (misc): Change symbol_obstack to objfile version.
899 * buildsym.c (make_blockvector): Change to static.
900 * buildsym.c (start_subfile): Use strdup instead of obsavestring.
901 * buildsym.c (compare_line_numbers): Change to static, args are const,
902 cast args when used.
903 * buildsym.c (start_symtab): Inline new_object_header_files() call.
904 * buildsym.c (patch_block_stabs): Moved to this file from xcoffread
905 and made static. Add objfile parameter.
906 * buildsym.c (end_symtab): Simplify code using line table size.
907 Realloc the linetable on the objfile symbol_obstack and copy there.
908 * buildsym.c (scan_file_globals): Convert from misc function vector
909 use to new minimal symbol use.
910 * buildsym.c (define_symbol): Add objfile parameter. Make sure
911 strings get allocated in objfile's symbol_obstack. Convert references
912 to builtin types to lookup_fundamental_type().
913 * buildsym.c (read_type): Make static, add objfile parameter, convert
914 references to buildin types to lookup_fundamental_type().
915 * buildsym.c (read_struct_type): Add objfile parameter.
916 * buildsym.c (read_array_type): Make static, add objfile parameter.
917 * buildsym.c (read_enum_type): Make static, add objfile parameter.
918 * buildsym.c (read_huge_number): Make static.
919 * buildsym.c (read_range_type): Make static, add objfile parameter,
920 convert references to buildin types to lookup_fundamental_type ().
921 * buildsym.c (read_args): Make static, add objfile parameter.
922 * buildsym.h: Convert function decl's to prototype form.
923 * c-exp.y: Add prototypes for local functions, convert uses of misc
924 function vector to minimal symbol table. Reformat all builtin type
925 initializations and pass a NULL objfile to init_type() for them.
926 * coffread.c: Change context_stack ref's to coff_context_stack,
927 add local function prototypes. Cast uses of xrealloc arg 1.
928 * coffread.c (coff_alloc_type): Call alloc_type instead of hand-
929 crafting a new type.
930 * coffread.c (add_symbol_to_list): Change to coff_add_symbol_to_list.
931 * coffread.c (finish_block): Change name to coff_finish_block.
932 * coffread.c (make_blockvector): Add and use objfile parameter.
933 * coffread.c (record_line): Change name to coff_record_line.
934 * coffread.c (start_symtab): Change name to coff_start_symtab.
935 * coffread.c (end_symtab): Change name to coff_end_symtab.
936 * coffread.c (record_misc_function): Change name to record_minimal_
937 symbol and change to minimal symbol table use from misc func tbl.
938 * coffread.c (coff_symfile_read): Convert from misc function vector
939 use to minimal symbol table use.
940 * coffread.c (hashname): Remove; use common version in buildsym.c.
941 * coffread.c (decode_base_type): Change references to builtin types
942 to calls to lookup_fundamental_type().
943 * coffread.c (read_struct_type): Change name to coff_read_struct_type.
944 * coffread.c (read_enum_type): Change name to coff_read_enum_type.
945 * command.c: Add prototypes for local functions.
946 * command.c (add_cmd): Prototype the 'fun' parameter and use the
947 appropriate member of the function union for that type.
948 * command.c (add_abbrev_cmd): Prototype the 'fun' parameter and
949 ifdef out the function since it isn't currently used.
950 * command.c (add_alias_cmd): Pass correct function type to add_cmd.
951 * command.c (add_prefix_cmd): Prototype the 'fun' parameter.
952 * command.c (add_abbrev_prefix_cmd): Prototype the 'fun' parameter.
953 * command.c (help_cmd): Compare function pointer to NULL.
954 * command.c (help_cmd_list): Compare function pointer to NULL.
955 * command.c (lookup_cmd_1): Use correct member of function union.
956 * command.c (undef_cmd_error): Make static.
957 * command.c (complete_on_cmdlist): Use correct member of func union.
958 * command.c (do_setshow_command): Use correct member of func union.
959 * command.c (shell_escape): Convert rindex use to strrchr.
960 * command.h (COMMAND_H): Define if already included.
961 * command.h (cmd_list_element struct): Change 'function' to a union
962 and prototype args. Prototype completer function.
963 * command.h: Convert decl's to prototype form.
964 * convex-xdep.c (store_inferior_registers): Returns void.
965 * copying.c: Prototype local functions.
966 * coredep.c: Minor whitespace change.
967 * cplus-dem.c: Remove hack to use BSD equivalents of mem* and str*.
968 * cplus-dem.c: Prototype local functions.
969 * dbxread.c (hashname): Remove; moved to buildsym.c.
970 * dbxread.c (free_and_init_header_files): Make static.
971 * dbxread.c: Add prototypes for local functions.
972 * dbxread.c (new_object_header_files): Remove; inlined usages.
973 * dbxread.c (xrealloc usages): Cast args.
974 * dbxread.c (record_misc_function): Change to record_minimal_symbol
975 and change usages accordingly.
976 * dbxread.c (static_psymbols usages): Change to use per-objfile copy.
977 * dbxread.c (xmalloc usages): Use per-objfile copy when appropriate.
978 * dbxread.c (dbx_next_symbol_text): Make static.
979 * dbxread.c (init_psymbol_list): Convert to use per-objfile data.
980 * dbxread.c (init_bincl_list): Add and use objfile parameter.
981 * dbxread.c (free_bincl_list): Add and use objfile parameter.
982 * dbxread.c (compare_psymbols): Remove; use common symfile.c version.
983 * dbxread.c (end_psymtab): Convert to use per-objfile data.
984 * dwarfread.c (DEFUN/EXFUN): Remove all usages. Use PARAMS for
985 prototypes.
986 * dwarfread.c (record_misc_function): Change name to record_minimal_
987 symbol and use minimal symbol table throughout.
988 * dwarfread.c (compare_psymbols): Remove; use common symtab.c version.
989 * dwarfread.c: Convert all references to builtin types to use the new
990 lookup_fundamental_type function.
991 * dwarfread.c (read_enumeration): Add and use objfile parameter.
992 * elfread.c (DEFUN/EXFUN): Remove all usages. Use PARAMS for proto-
993 types.
994 * elfread.c (record_misc_function): Convert to use record_minimal_
995 symbol.
996 * elfread.c (elf_symtab_read): Add objfile parameter.
997 * eval.c: Add prototypes for local functions and move some decls
998 around to accomodate prototypes.
999 * expprint.c: Add prototypes for local functions. Change references
1000 to misc function vector to minimal symbol table.
1001 * findvar.c (read_memory usages): Cast args.
1002 * gdbtypes.h: New file, type info from symfile.h and symtab.h.
1003 * gmalloc.c: Use NOARGS where prototypes used hardwired void.
1004 * gmalloc.c (BLOCKSIZE): Constant to be shifted is unsigned.
1005 * gmalloc.h: Use NOARGS where prototypes used hardwired void.
1006 * gould-xdep.c: Minor whitespace change.
1007 * hp300ux-xdep.c (fetch_inferior_registers): Remove unused regno var.
1008 * hp300ux-xdep.c (store_inferior_registers): Returns void.
1009 * hp300ux-xdep.c (fetch_core_registers): Takes unused arg reg_addr.
1010 * i386-stub.c: Add prototypes, change "volatile" to NORETURN.
1011 * i386-tdep.c: Add prototypes for local functions.
1012 * i386-tdep.c (codestream_fill, codestream_seek, codestream_read,
1013 i386_get_frame_setup, i386_skip_prologue): Explicitly declare params
1014 that defaulted to int.
1015 * i386-tdep.c (i386_follow_jump, i386_frame_find_saved_regs,
1016 i386_push_dummy_frame): Returns void.
1017 * i386-xdep.c (i386_register_u_addr): Declare params that default to
1018 int and explicitly declare return type as int.
1019 * i387-tdep.c: Minor formatting changes.
1020 * i960-tdep.c (leafproc_return): Convert from misc function vector
1021 use to minimal symbol table use.
1022 * infcmd.c: Add prototypes for local functions.
1023 * infcmd.c (continue_command, until_next_command, until_command,
1024 path_info, path_command): Make static.
1025 * infcmd.c (step_1, until_next_command): Convert from misc func
1026 vector to minimal symbol table use.
1027 * inflow.c: Add prototypes for local functions.
1028 * infptrace.c (store_inferior_registers): Returns void, not int.
1029 * language.c (_initialize_language): Use proper member of function
1030 union.
1031 * m2-exp.y: Add prototypes for local functions, convert misc function
1032 vector uses to minimal symbol table uses.
1033 * m2-exp.y (make_qualname, yyerror): Make static.
1034 * m2-exp.y (_initialize_m2_exp): Call init_types with NULL objfile.
1035 * m68k-pinsn.c: Add prototypes for local functions.
1036 * m68k-pinsn.c (print_insn): Cast args to read_memory.
1037 * m68k-pinsn.c (fetch_arg): Make parameter 'code' and int.
1038 * m68k-stub.c: Add prototypes.
1039 * m88k-pinsn.c (sprint_address): Convert from misc function vector
1040 use to minimal symbol table use.
1041 * m88k-xdep.c (fetch_inferior_registers): Takes an unused parameter.
1042 * m88k-xdep.c (store_inferior_registers): Returns void.
1043 * mach386-xdep.c (fetch_inferior_registers): Takes an unused param.
1044 * mach386-xdep.c (store_inferior_registers): Returns void.
1045 * mach386-xdep.c (fetch_core_registers): Takes an unused parameter.
1046 * main.c: Add prototypes for local functions.
1047 * main.c (return_to_top_level): Is type NORETURN (volatile). Cast
1048 longjmp() result to (NORETURN void).
1049 * main.c (catch_errors): Prototype the 'func' parameter.
1050 * main.c (disconnect, stop_sig, do_nothin, float_handler):
1051 Takes an unused arg.
1052 * main.c (execute_command): Call the right member of the func union.
1053 * main.c (command_loop_marker, symbol_completion_function,
1054 command_loop): Make static.
1055 * main.c (command_line_input): Make linelength unsigned, cast arg
1056 to command_line_input().
1057 * main.c (add_info, add_com): Prototype the 'fun' parameter.
1058 * main.c (initialize_main): Call right member of function union.
1059 * mcheck.c (NOARGS): Change hardwired void in prototypes to NOARGS.
1060 * mem-break.c: Include symtab.h
1061 * mips-xdep.c (fetch_inferior_registers): Takes unused param.
1062 * mips-xdep.c (store_inferior_registers): Returns void.
1063 * mipsread.c (mipscoff_symfile_read): Change from misc function vector
1064 use to minimal symbol table use.
1065 * mipsread.c (symbol_obstack usages): Convert all to use per-objfile
1066 version.
1067 * mipsread.c (make_type): Remove, convert usages to init_type.
1068 * mipsread.c (_initialize_mipsread): Call init_type with NULL objfile.
1069 * nindy-tdep.c (nindy_frame_chain_valid): Convert from misc function
1070 vector use to minimal symbol table use.
1071 * parse.c: Add prototypes for local functions.
1072 * parse.c (xrealloc usages): Cast args.
1073 * parse.c (prefixify_expression, length_of_subexp): Make static.
1074 * parser-defs.h (PARSER_DEFS_H): Define when first included.
1075 * parser-defs.h: Convert function decls to prototype form.
1076 * partial-stab.h: Convert from misc function vector use to new minimal
1077 symbol table use.
1078 * partial-stab.h (global_psymbols, static_psymbols usages): Reference
1079 the per-objfile copies.
1080 * printcmd.c: Add prototypes for local functions. Move some struct
1081 definitions around to accomodate prototypes.
1082 * printcmd.c (decode_format): Make static, change args oformat and
1083 osize to int from char.
1084 * printcmd.c (print_formatted): Change 'format' and 'size' to int.
1085 * printcmd.c (print_scalar_formatted): Change arg 'format' to int.
1086 * printcmd.c (print_address_symbolic): Convert from misc function
1087 vector use to minimal symbol table use.
1088 * printcmd.c (address_info): Convert from misc function vector use
1089 to minimal symbol table use.
1090 * printcmd.c (delete_display, enable_display, disable_display_command):
1091 Make static.
1092 * procfs.c (EXFUN/DEFUN): Remove all usages, convert to PARAM.
1093 * procfs.c (fetch_core_registers): Add unused param reg_addr.
1094 * pyr-xdep.c (fetch_inferior_registers): Add unused param regno.
1095 * pyr-xdep.c (store_inferior_registers): Returns void.
1096 * remote-mm.c (mm_load): symbol_file_add return value unused.
1097 * remote-nindy.c: Minor format change.
1098 * remote-vx.c (vx_load_command): symbol_file_add result unused.
1099 * rs6000-xdep.c (fetch_inferior_registers): Add unused param regno.
1100 * rs6000-xdep.c (store_inferior_registers): Returns void.
1101 * rs6000-xdep.c (fetch_core_registers): add unused param reg_addr
1102 * rs6000-xdep.c (aixcoff_relocate_symtab): Convert from misc function
1103 vector use to minimal symbol table use.
1104 * solib.c: Add prototypes for local functions.
1105 * solib.c (solib_add_common_symbols, locate_base): Convert from misc
1106 function vector use to minimal symbol table use.
1107 * solib.c (EXFUN/DEFUN): Remove all usages, convert to PARAM.
1108 * solib.c (find_solib, shared_library_command): Make static
1109 * solib.c (read_memory, write_memory usages): Cast args.
1110 * solib.c (special_symbol_handling): Add function
1111 * source.c: Add prototypes for local functions.
1112 * source.c (select_source_symtab): Convert to scan objfiles.
1113 * source.c (open_source_file): Make static.
1114 * source.c (xrealloc usages): Cast args.
1115 * source.c (source_line_charpos): ifdef out, unused.
1116 * source.c (get_filename_and_charpos): Make static.
1117 * stack.c: Add prototypes for local functions.
1118 * stack.c (print_frame_info, frame_info): Convert from misc function
1119 vector use to minimal symbol table use.
1120 * symfile.c: Add prototypes for local functions.
1121 * symfile.c (compare_symbols): Make args const PTR's.
1122 * symfile.c (compare_psymbols, sort_pst_symbols) add.
1123 * symfile.c (sort_all_symtab_syms): Scan objfile list.
1124 * symfile.c (obsavestring): Add objfile parameter.
1125 * symfile.c (init_misc_bunches, prim_record_misc_function,
1126 compare_misc_functions, discard_misc_bunches, condense_misc_bunches,
1127 sort_misc_function_vector, compact_misc_function_vector): Remove
1128 * symfile.c (symbol_file_add_digested): Add function.
1129 * symfile.c (symbol_file_add): Returns struct objfile *.
1130 * symfile.c (symbol_file_command): Modify for state file use.
1131 * symfile.c (symfile_open): Add parameter "dumpable".
1132 * symfile.c (allocate_objfile, free_objfile): Moved to objfiles.c
1133 * symfile.c (load_command, add_symbol_file_command): Make static.
1134 * symfile.c (fill_in_vptr_fieldno): Moved to gdbtypes.c
1135 * symfile.c (rindex usages): Converted to strrchr.
1136 * symfile.c (allocate_psymtab): New
1137 * symfile.c (free_named_symtabs): Ifdef out code that needs to be
1138 converted to minimal symbol table usage, but no obvious conversion.
1139 * symfile.c (free_all_symtabs): Remove.
1140 * symfile.c (_initialize_symfile): Use per-objfile info.
1141 * symfile.h: Rework the objfile structure to add per-objfile data
1142 objects (psymbol_obstack, symbol_obstack, type_obstack,
1143 global_psymbols, static_psymbols, msymbols, minimal_symbol_count,
1144 fundamental_types, malloc, realloc, free, xmalloc, xrealloc, etc).
1145 Add prototypes to function declarations.
1146 * symm-tdep.c (symmetry_extract_return_value): Convert from misc
1147 function vector usage to minimal symbol table usage.
1148 * symmisc.c (DEV_TTY): Define if not defined.
1149 * symmisc.c: Add local function prototypes.
1150 * symmisc.c (dump_objfile, dump_msymbols, dump-symtab, print_syms,
1151 printpsyms_command, print_objfiles, print_objfiles_command):
1152 Rework to use iterate_over_*
1153 * symtab.c: Add prototypes for local functions.
1154 * symtab.c (lookup_symtab_1): Convert to look through objfiles.
1155 * symtab.c (lookup_partial_symtab): Scan through objfiles.
1156 * symtab.c (lookup_primitive_typename, lookup_typename, lookup_
1157 unsigned_typename, lookup_struct, lookup_union, lookup_enum,
1158 lookup_template_type, lookup_struct_elt_type, lookup_pointer_type,
1159 lookup_reference_type, lookup_member_type, allocate_stub_method,
1160 check_stub_method, create_array_type, smash_to_member_type,):
1161 Moved to gdbtypes.c
1162 * symtab.c (lookup_symbol): Some args are const.
1163 * symtab.h: All type related defs and structs moved to gdbtypes.h
1164 * symtab.h: Convert decls to prototypes.
1165 * target.c (noprocess): Make static.
1166 * target.h: Change decl's to prototypes.
1167 * tm-sunos.h: (CLEAR_SOLIB, SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK,
1168 DISABLE_UNSETTABLE_BREAK) Moved to solib.h.
1169 * utils.c (_initialize_utils): Use correct member of function union.
1170 * valarith.c: include gdbtypes.h
1171 * valops.c: include gdbtypes.h, add prototypes for local functions.
1172 * valops.c (value_push, value_arg_push, find_function_addr):
1173 Make static.
1174 * valops.c (value_string): Convert from misc function vector use
1175 to minimal symbol table use.
1176 * valops.c (check_field_in): Make arg const.
1177 * valprint.c: Add prototypes for local functions.
1178 * valprint.c (print_string): Make static
1179 * valprint.c (value_print, val_print_fields, val_print): Make arg int.
1180 * values.c: Add prototypes for local functions.
1181 * values.c (value_headof): Convert from misc function vector to
1182 minimal symbol table.
1183 * xcoffexec.c: Add prototypes for local functions.
1184 * xcoffexec.c (exec_close, file_command, add_to_section_table):
1185 Make static.
1186 * xcoffexec.c (relocate_minimal_symbol): Add.
1187 * xcoffread.c (patch_block_stabs): Moved to buildsyms.c.
1188 * xcoffread.c: Add prototypes for local functions.
1189 * xcoffread.c (sort_syms): Convert to scan objfiles.
1190 * xcoffread.c (read_xcoff_symtab): Make static.
1191 * xcoffread.c (various): Replace references to builtin types with
1192 calls to lookup_fundamental_type. Replace references to symbol_obstack
1193 and psymbol_obstack with pointers to the per-objfile copies.
1194 * xcoffread.c (dump_linetable, dump_type, dump_symbol, dump_namespace,
1195 dump_block, dump_blockvector, dump_last_symtab, dump_symtabs):
1196 Make static.
1197 * xcoffread.c (init_stringtab): Add objfile parameter.
1198 * gdbtypes.c: New file
1199 * minsyms.c: New file
1200 * mmap-alloc.c: New file
1201 * mmap-sbrk.c: New file
1202 * objfiles.c: New file
1203 * state.c: New file
1204 * state.h: New file
1205
021959e2
JG
1206Fri Feb 21 17:29:54 1992 John Gilmore (gnu at cygnus.com)
1207
1208 * Check in Fred Fish's changes in these modules. Fred
93fe4e33
JG
1209 will make ChangeLog entries for all of them. Update VERSION
1210 to 4.4.2.
021959e2 1211
7919c3ed
JG
1212Thu Feb 20 18:10:17 1992 Fred Fish (fnf at cygnus.com)
1213
1214 * tm-sparc.h, tm-sysv4.h, solib.h: Move shared lib definitions
1215 into solib.h.
1216 * sparc-pinsn.c, sparc-tdep.c, standalonec, sun3-xdep.c,
1217 sun386-xdep.c, symm-xdep.c, target.c, ultra3-xdep.c, utils.c,
1218 value.h: Prototypes for static functions; lint.
1219 * gdbtypes.h: Empty file to ease transition.
1220
75af490b
JG
1221Thu Feb 20 16:43:13 1992 Fred Fish (fnf at cygnus.com)
1222
1223 * environ.h, expression.h, frame.h, gdbcmd.h, gdbcore.h,
1224 inferior.h, language.h, signame.h, target.h, terminal.h,
1225 tm-68k.h, tm-i386v.h, tm-sparc.h, tm-sun386.h, tm-symmetry.h,
1226 xm-i386v.h, xm-sparc.h: Prototypes for all external functions.
1227 Lint.
1228 * core.c, exec.c, infrun.c, inftarg.c, language.c, remote.c,
1229 signame.c, sparc-xdep.c: Prototypes for all static functions.
1230 Lint.
1231 * core.c, eval.c, exec.c, inftarg.c, remote-adapt.c, remote-eb.c,
1232 remote-hms.c, remote-mm.c, remote-nindy.c, remote-vx.c, remote.c,
1233 target.c, target.h, valarith.c, valops.c, value.h, xcoffexec.c:
1234 Remove to_call_function and target_call_function, since it
1235 always calls the same thing (call_function_by_hand).
1236 * core.c, exec.c, solib.c: Rename target_ops sections =>
1237 to_sections, etc.
1238 * infcmd.c, inflow.c, infptrace.c, infrun.c, main.c, target.c,
1239 target.h: target_kill takes no args.
1240 * language.c (language_info): Scaffolding to allow briefer
1241 messages when the current language changes. FIXME.
1242 * xm-amix.h, xm-i386v4.h, xm-stratus.h: Define NORETURN to avoid
1243 complaints about volatile functions.
1244 * xm-sysv4.h (HAVE_MMAP): Define.
1245
1246Thu Feb 20 09:04:18 1992 Fred Fish (fnf at cygnus.com)
088c3a0b
JG
1247
1248 * defs.h: Include ansidecl.h and PARAMS macro. Use PARAMS
1249 to make prototypes for all functions declared here.
1250 * cplus-dem.c: Avoid declaring xmalloc and xrealloc.
1251 * c-exp.y: Rename SIGNED, OR, and AND to avoid conflict.
1252 * environ.c: Include <stdio.h> before defs.h. Minor cleanup.
1253 * ieee-float.h: Use PARAMS for prototypes; make some params const.
1254 * ieee-float.c, valarith.c: Include <stdio.h>. Lint. b*=>mem*.
1255 * m2-exp.y: Remove unused CONST; Rename OR and AND.
1256 * utils.c: Avoid declaring malloc and realloc. Lint.
1257 (request_quit): Accept signal-number parameter.
1258
af213624
FF
1259Mon Feb 17 07:13:27 1992 Fred Fish (fnf at cygnus.com)
1260
9e4c1921
FF
1261 * dwarfread.c (process_dies): Add case to handle TAG_pointer_type
1262 DIE's. Add new function read_tag_pointer_type() to read them.
1263
af213624
FF
1264 * dwarfread.c (dwarf_read_array_type, read_subroutine_type):
1265 When creating a new user defined type, check to see if a partial
1266 type already exists, and if so, bash it to fit.
1267
be8303da
JG
1268Fri Feb 14 19:00:17 1992 John Gilmore (gnu at cygnus.com)
1269
1270 * coffread.c (decode_base_type): Pass long, not union.
1271 Fix by Eric Valette, ev@chorus.fr.
1272
d35bf52d
FF
1273Thu Feb 13 17:14:28 1992 Fred Fish (fnf at cygnus.com)
1274
1275 * elfread.c (elf_symtab_read): Fix code to correctly track
1276 changes in bfd for absolute symbols.
1277
5b620e75
SG
1278Thu Feb 13 12:43:29 1992 Stu Grossman (grossman at cygnus.com)
1279
1280 * xm-vaxbsd.h: Close off comment.
1281
0a663e9e
FF
1282Thu Feb 13 07:45:19 1992 Fred Fish (fnf at cygnus.com)
1283
1284 * xm-sysv4.h: Define NEED_POSIX_SETPGID.
1285
1286Fri Feb 7 11:51:12 1992 Per Bothner (bothner at cygnus.com)
1287
1288 * mips-tdep.c (mips_print_registers): Print correct register
1289 number for double pseudo-registers.
1290
ef9b1bc9
JG
1291Fri Feb 7 07:56:05 1992 John Gilmore (gnu at cygnus.com)
1292
256269fc
JG
1293 * buildsym.c (read_struct_type): Avoid double-bump of parse ptr
1294 in the op$::OPERATOR. case. From Steven McCanne,
1295 <mccanne@horse.ee.lbl.gov>.
1296
ef9b1bc9
JG
1297 * exec.c (set_section_name): Pass arg to exec_files_info;
1298 only call it if interactive. From Francis Kauth <fk@tv.tv.tek.com>.
1299
195853fc
JG
1300Thu Feb 6 17:41:32 1992 John Gilmore (gnu at cygnus.com)
1301
1302 * main.c (print_gdb_version): Copyright msg: only this year.
1303 (cd_command): Avoid changing current_directory on error.
1304
ee17fd34
PB
1305Thu Feb 6 15:14:01 1992 Per Bothner (bothner at cygnus.com)
1306
1307 * mipsread.c (parse_partial_symbols): Handle dependencies
1308 between partial symbol tables (when not doing stabs-in-ecoff).
1309 (This used to be handled by parse_fdr, but parse_fdr was
1310 incompatible with handling stabs-in-ecoff, so the code
1311 was re-written to not use parse_fdr. Unfortunately,
1312 the logic to handle dependencies was overlooked.)
1313
1f46923f
SC
1314Thu Feb 6 11:51:39 1992 Steve Chamberlain (sac at rtl.cygnus.com)
1315
1316 * coffread.c (read_enum_type): Use the size of a target int when
1317 describing enum.
1318 * defs.h: added new #define for TARGET_PTR_BIT, defaults to size
1319 of target int.
1320 * h8300-tdep.c, remote-hms.c, tm-h8300.h: too many changes to count
1321 * symtab.c (lookup_reference_type, lookup_ptr_type): use
1322 TARGET_PTR_BIT to determine size of a pointer
1323 * values.c (unpack_long): when unpacking a REF or a PTR don't
1324 assume the size of the type.
1325
778c358d
JG
1326Wed Feb 5 22:29:59 1992 John Gilmore (gnu at cygnus.com)
1327
1328 * mipsread.c (parse_symbol): Avoid clobbering enum pointer when
1329 looking at its members. Improve guess between struct and union,
1330 only assuming union if multiple members have offsets of zero.
1331
bd49ef36
PB
1332Tue Feb 4 18:05:44 1992 Per Bothner (bothner at cygnus.com)
1333
1334 * mipsread.c: Use (FP0_REGNUM-32) instead of magic number 6.
1335 (This is just for clarity - and one day permitting us to
1336 change FP0_REGNUM from 38 to 32, which would make more sense.)
1337 * tm-mips.h: Added STAB_REG_TO_REGNUM macro, so that
1338 register numbers in stabs-in-ecoff get handled correctly.
1339
1340Sat Feb 1 04:45:10 1992 Stu Grossman (grossman at cygnus.com)
1341
1342 * xm-vax.h, xm-vaxult.h, xm-vaxbsd.h, config/mh-vaxult,
1343 config/mh-vaxbsd, configure.in: Split up config stuff for Vaxen
1344 into BSD and Ultrix.
1345
96499e96
JG
1346Sat Feb 1 04:39:41 1992 John Gilmore (gnu at cygnus.com)
1347
1348 * dbxread.c (dbx_symfile_init): Call malloc, not xmalloc.
1349
98f03b91
SG
1350Sat Feb 1 04:15:41 1992 Stu Grossman (grossman at cygnus.com)
1351
dafe57bc 1352 * Makefile.in: Increment version to 4.4.1.
98f03b91
SG
1353 * main.c (print_gdb_version): Update copyright notice.
1354
1355Sat Feb 1 01:43:11 1992 Per Bothner (bothner at cygnus.com)
1356
1357 * mipsread.c: Prepend "struct " to the names of structure
1358 types, and similarly for enums and unions. (This used
1359 to be done, but got lost in the re-write to "guess" the
1360 difference between enum/struct/union.)
1361 Also, guess that a tag is an enum if the first member
1362 has type btNil.
1363
3671f1fd
SG
1364Fri Jan 31 21:45:51 1992 Stu Grossman (grossman at cygnus.com)
1365
1366 * xm-vax.h: #ifndef ultrix around #include of endian.h and
1367 limits.h (sigh).
1368
0c6efbcc
JG
1369Fri Jan 31 00:05:01 1992 John Gilmore (gnu at cygnus.com)
1370
ee7270cd
JG
1371 * Projects: Patching executables is done.
1372 * Makefile.in (VERSION): Roll to gdb-4.4.
75c86b57 1373 * README, WHATS.NEW: Update for gdb-4.4.
ee7270cd 1374
4a1dcb7f
JG
1375 * symfile.c (reread_symbols): Whenever we reread one object
1376 file's symbols, we must restart the scan, because the object_files
1377 chain has been permuted.
1378
0c6efbcc
JG
1379 * exec.c (exec_files_info): Split out into print_section_info.
1380 Print BFD filename of each section if it's not the default one.
1381 * core.c (core_files_info): Call print_section_info.
1382
1383 * xm-vax.h: Include a few system header files whose definitions
1384 must precede defs.h.
1385 * language.c, language.h: Make some things const.
1386 * expression.h, main.c: const spreads like ooze.
1387
1388 * mem-break.c (break_insn, break_insn_size): Use unsigned chars,
1389 since BREAKPOINT values can be >0x80.
1390
d58ea996
SG
1391Thu Jan 30 17:21:14 1992 Stu Grossman (grossman at cygnus.com)
1392
1393 * infrun.c, xm-i386sco.h: SCO needs to use setpgid().
1394
0c6efbcc
JG
1395Thu Jan 30 01:04:23 1992 John Gilmore (gnu at cygnus.com)
1396
1397 * sparc-pinsn.c: Remove kludge for preferring architectures.
1398 Remove #ifdef's for SORT_NEEDED. We need to sort the table, now
1399 and forever. Add `add' instruction to the set that get checked
1400 for a preceding `sethi' in order to print an absolute address.
1401 Corresponding changes in ../include/opcode/sparc.h needed
1402 to eliminate garbage instructions.
1403
d4ea2aba
PB
1404Wed Jan 29 19:24:34 1992 Per Bothner (bothner at cygnus.com)
1405
1406 * mipsread.c (parse_partial_symbols): Make sure partial
1407 symbols are created for external symbols (as used to be
1408 the case). This is a bit of a pain with the mips-coff.
1409 It uses a table which points to all of the external
1410 symbols belonging to a particular FDR or psymtab.
1411 Once we've generated this table, we might as well save
1412 it, and then use it in psymtab_to_symtab_1 to find
1413 the symbols to pass to parse_external().
1414 * symfile.c, symfile.c: New function start_psymtab_common
1415 to share the common parts of allocating a new psymtab
1416 for dbxread, mipsread (and later dwarfread). Its code
1417 was pulled out from start_psymtab in dbxread.c.
1418 * dbxread.c (start_psymtab): Use start_psymtab_common().
1419
1420 * valprint.c (val_print): If there is an error when trying
1421 to print a string, check to see if there really is a problem
1422 by reading just one character. If that works, assume
1423 things are ok.
1424
05151637
SG
1425Wed Jan 29 18:58:43 1992 Stu Grossman (grossman at cygnus.com)
1426
1427 * sparc-pinsn.c (compare_opcodes): Make it prefer v6, v7,
1428 cypress, v8 mnemonics in that order.
1429
4a074bea
PB
1430Tue Jan 28 17:32:13 1992 Per Bothner (bothner at cygnus.com)
1431
1432 * sparc-pinsn.c: Put the qsort() back in.
1433
c55e6167 1434Mon Jan 27 18:51:03 1992 John Gilmore (gnu at cygnus.com)
1aa560b2 1435
eae1a261
JG
1436 * findvar.c (read_register, write_register): Handle machines
1437 where REGISTER_TYPE is not the same size as "int".
1438
c55e6167 1439 Handle debug symbols in dynamically loaded (relocated) code:
3c03b5de 1440
c55e6167
JG
1441 * dbxread.c (read_ofile_symtab): Fix up N_CATCH better. Pass
1442 offset to process_one_symbol.
1443 (process_one_symbol): Take new offset parameter. Add it into
1444 appropriate symbol types to relocate symbols to loaded addresses.
1445 Handle all possible symbol types, and complain() about types that
1446 we don't expect to see.
1447 * mipsread.c (psymtab_to_symtab_1): Pass offset of zero to
1448 process_one_symbol (FIXME, should pass real offset).
1aa560b2 1449
c55e6167
JG
1450 Misc bugfixes:
1451
1452 * breakpoint.c (resolve_sal_pc): Split out code to resolve a
1453 sal's PC value.
1454 (set_breakpoint, break_command_1, until_break_command,
1455 catch_command_1, breakpoint_re_set_one): Use it.
c55e6167
JG
1456 * symtab.h (resolve_sal_pc): Declare.
1457 * infcmd.c (jump_command): Use resolve_sal_pc.
1458
4cc9f7e2 1459 * source.c (list_command): Shorten "FILE, line N" to "FILE:N".
c55e6167
JG
1460
1461 * putenv.c (putenv): Avoid unportably casting pointers to unsigneds.
3818ed33 1462
5a4e7215
JG
1463 * c-exp.y (yylex): `this' and `template' are only tokens in C++.
1464
3818ed33
JG
1465 * xm-convex.h, xm-hp300bsd.h, xm-isi.h, xm-merlin.h, xm-news.h,
1466 xm-np1.h, xm-pn.h, xm-pyr.h, xm-rtbsd.h, xm-symmetry.h, xm-umax.h:
1467 Remove MISSING_VPRINTF declaration, and superfluous "kgdb" defines.
1468
c55e6167
JG
1469Mon Jan 27 15:46:21 1992 Stu Grossman (grossman at cygnus.com)
1470
1471 * dbxread.c (process_one_symbol): Make a first cut at handling
1472 symbol tables generated by Sun's acc. (#ifdef'd out, FIXME.)
1473
1474 * symtab.c (find_pc_line): Fix stepping into and out of #included
1475 files.
1476
71f49876
SG
1477Mon Jan 27 13:00:55 1992 Stu Grossman (grossman at cygnus.com)
1478
1479 * Makefile.in (OPCODES): Remove OPCODES defs and refs. There is
1480 no longer any need to copy ../include/opcode/* into gdb.
1481
fd8db897
JG
1482Mon Jan 27 12:30:38 1992 John Gilmore (gnu at cygnus.com)
1483
1484 * ChangeLog, ChangeLog-9091: Split ChangeLog at 1992.
1485
24b2fbdc
PB
1486Sun Jan 26 19:05:40 1992 Per Bothner (bothner at cygnus.com)
1487
1488 * valprint.c (type_print_base, type_print_method_args):
1489 Print C++ constructor methods without bogus "return type."
1490
cdb90e99
FF
1491Sat Jan 25 15:57:59 1992 Fred Fish (fnf at cygnus.com)
1492
1493 * infptrace.c (child_xfer_memory): Parameter "target" should
1494 be a pointer to a structure, not the entire structure.
1495
1b07e406
FF
1496Fri Jan 24 01:30:27 1992 Fred Fish (fnf at cygnus.com)
1497
1498 * depend: Convert the couple of references to ansidecl.h that
1499 used the local gdb version to use the ../include version.
1500
9a1ae235
FF
1501Thu Jan 23 22:24:43 1992 Fred Fish (fnf at cygnus.com)
1502
f66f459f
FF
1503 * procfs.c
1504 (child_xfer_memory): Takes pointer to a struct, not entire struct.
1505 (inferior_proc_init): Fix non-ANSI version of args.
1506 (attach): Call print_sys_errmsg with correct number of args.
1507 (mappingflags): Make static, does not need to be global.
1508
fc1f8646
FF
1509 * i386-tdep.c (i386_frame_num_args): Takes a pointer to a struct
1510 not the entire struct itself.
1511
1b7a420e
FF
1512 * valops.c (value_assign): Cast some args to modify_field() and
1513 {read,write}_register_bytes() correctly.
1514
9a1ae235
FF
1515 * ansidecl.h: Removed, is duplicate of ../include/ansidecl.h
1516
99140c31
FF
1517 * Makefile.in (MALLOCSRC): Removed reference to removed local
1518 copy of ansidecl.h.
1519
1520 * dwarfread.c (list_in_scope): Needs an initial value, use file
1521 scope.
1522
9a1ae235
FF
1523Mon Jan 20 19:06:28 1992 Stu Grossman (grossman at cygnus.com)
1524
1525 * main.c (main): Make option_index local to keep new getopt happy.
1526 main.c, solib.c, Makefile.in: Update copyright notices.
1527
0eb0a820
MT
1528Mon Jan 20 08:54:00 1992 Michael Tiemann (tiemann at cygnus.com)
1529
1530 * cplus-dem.c (cplus_demangle): Correctly demangle destructors.
1531
313085cb
SG
1532Sat Jan 18 17:17:45 1992 Stu Grossman (grossman at cygnus.com)
1533
1534 * Makefile.in (HFILES): Add partial-stab.h.
1535
be9a2362
FF
1536Sat Jan 18 16:45:01 1992 Fred Fish (fnf at cygnus.com)
1537
24e7d5ba
JG
1538 * config/mh-stratus, config/mt-stratus, tm-stratus.h, xm-stratus.h:
1539 New files for stratus. Not complete enough to actually build
1540 on the Stratus machine; that awaits copyright assignment for
1541 i860 changes.
be9a2362
FF
1542
1543 * Makefile.in (USER_CFLAGS): Add macro specifically reserved
1544 for getting custom flags into CFLAGS when doing makes.
1545
1546 * configure.in: Add config information for stratus.
1547
cdce29ee
FF
1548Thu Jan 16 00:51:46 1992 Fred Fish (fnf at cygnus.com)
1549
1550 * dbxread.c (process_one_symbol): Pass address of structure
1551 to complain(), rather than the whole structure.
1552
7f435241
FF
1553Wed Jan 15 09:56:16 1992 Fred Fish (fnf at cygnus.com)
1554
1555 * solib.c (solib_add_common_symbols): Only compile in when not
1556 using SVR4 style shared libraries.
1557
a5bd5ba6
FF
1558Tue Jan 14 22:34:00 1992 Fred Fish (fnf at cygnus.com)
1559
1560 * dwarfread.c (locval): Add offreg flag to indicate location
1561 values that are computed off a base register.
1562
1563 * dwarfread.c (new_symbol): Rework TAG_global_variable and
1564 TAG_local_variable cases to account for static variables
1565 within function scopes.
1566
7e97eb28
SG
1567Tue Jan 14 12:28:52 1992 Stu Grossman (grossman at cygnus.com)
1568
8c3d2a53
SG
1569 * inflow.c: remove #include <sys/dir.h>. Not necessary, and
1570 doesn't exist on some systems.
1571
5e746644
SG
1572 * infrun.c (wait_for_inferior!!!!): Prevent gdb from hanging when
1573 nexting over recursive function calls.
1574
d261ece7
SG
1575 * target.c (target_read_string): Create this routine to read null
1576 terminated strings from the target. It deals with running off the
1577 end of memory elegantly as well. solib.c (find_solib): Use
1578 target_read_string() to avoid problems with running off the end of
1579 memory.
1580
7e97eb28
SG
1581 * inflow.c (child_terminal_info): #ifdef TIOCPGRP around lines
1582 that reference pgrp_inferior.
1583
0cf9329b
PB
1584Mon Jan 13 14:57:11 1992 Per Bothner (bothner at cygnus.com)
1585
1586 * tm-mips.h: Removed BLOCK_ADDRESS_ABSOLUTE, now that
1587 mips-tfile has been hacked to act more "traditionally."
1588 * dbxread.c: Fixed typo in comment.
1589
488d2691
PB
1590Sun Jan 12 13:08:36 1992 Per Bothner (bothner at cygnus.com)
1591
1592 * mips-tdep.c (mips_skip_prologue): Add some number of
1593 'sw' instructions before 'addiu' adjusts the stack.
1594
4d315a07
FF
1595Fri Jan 10 13:47:06 1992 Fred Fish (fnf at cygnus.com)
1596
1597 * dwarfread.c (start_symtab, end_symtab, scopecount, openscope,
1598 freescope, buildblock closescope, record_line, add_symbol_to_list,
1599 gatherblocks, make_blockvector): Extensive changes to switch
1600 to generic symbol table building code in buildsym.c. Remove
1601 scope tree structures and functions, symbol table building
1602 functions, and lots of other small changes.
1603
1604 * dwarfread.c: Add new macros GCC_PRODUCER and STREQN. Remove
1605 GCC_COMPILED_FLAG_SYMBOL and GCC2_COMPILED_FLAG_SYMBOL.
1606
1607Tue Jan 7 13:09:57 1992 Stu Grossman (grossman at cygnus.com)
1608
1609 * buildsym.c (cleanup_undefined_types): Add support for enums.
1610 This fixes the 'GDB internal error. cleanup_undefined_types with
1611 bad type' problem.
1612
1613Sun Jan 5 09:47:50 1992 Stu Grossman (grossman at cygnus.com)
1614
1615 * dbxread.c: detect gcc2 compilations.
1616
1a4d253c
JG
1617Thu Jan 2 15:07:41 1992 John Gilmore (gnu at cygnus.com)
1618
1619 * sparc-pinsn.c: Rename bitfields that overlap with macro names
1620 in ../include/opcode/sparc.h.
1621
1d4c28c5
FF
1622Wed Jan 1 04:29:00 1992 Fred Fish (fnf at cygnus.com)
1623
1624 * Makefile.in: Change tm-svr4.h to tm-sysv4.h. Change xm-svr4.h
1625 to xm-sysv4.h. Split OPCODE_DIR into OPCODE_DIR1 and OPCODE_DIR2
1626 to reflect actual locations of opcode files, so TAGS target will
1627 be buildable.
1628
1629 * i386-tdep.c: Change an erroneous 'm68k' reference to 'i386'.
1630
1631 * i386-tdep.c (supply_fpregset, fill_fpregset): Remove m68k
1632 code.
1633
1634 * m68k-tdep.c (supply_fpregset, fill_fpregset): Fix array
1635 dereferencing to access the correct elements.
1636
1637 * valops.c (value_addr): Declare return type of external func
1638 value_copy().
1639
1640 * xcoffread.c: Undefine next_symbol_text before redefining it.
1641
fd8db897 1642For older changes see ChangeLog-9091
bd5635a1
RP
1643\f
1644Local Variables:
1645mode: indented-text
1646left-margin: 8
1647fill-column: 74
1648version-control: never
1649End:
This page took 0.153863 seconds and 4 git commands to generate.