Moved the position of the #### lines so that the makefile fragments
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
3053b9f2
FF
1Fri Nov 29 16:59:25 1991 Fred Fish (fnf at cygnus.com)
2
8c6e9f05
FF
3 * configure.in: Add SVR4 i386 configurations.
4
5 * config/mh-i386v4, config/mt-i386v4, tm-i386v4.h, xm-i386v4.h:
6 New files for i386/SVR4.
7
8 * tm-i386v.h: Allow START_INFERIOR_TRAPS_EXPECTED and
9 DECR_PC_AFTER_BREAK to be predefined by files including
10 tm-i386v.h.
11
12 * i386-tdep.c: Add supply_gregset(), fill_gregset(),
13 supply_fpregset(), and fill_fpregset() functions, which are
14 target dependent support functions for the SVR4 /proc register
15 interface.
16
17 * dwarfread.c (enum_type, struct_type): Expand recognized
18 compiler generated tags to include symbols beginning with '.' as
19 well as '~'.
20
3053b9f2
FF
21 * symtab.c (sources_info): Change simple printf of error message
22 to call to error().
23
4b195f9a
RP
24Fri Nov 29 16:04:21 1991 Roland H. Pesch (pesch at cygnus.com)
25
26 * doc/gdb.texinfo: remove leading comments that survived M4 but
27 described its role in the doc; add one more font to colophon;
28 strengthen disclaimer about unsupported configs.
29
f1d77e90
JG
30Wed Nov 27 01:23:41 1991 John Gilmore (gnu at cygnus.com)
31
32 Fix bugs in C++ debugging.
33
34 * symtab.h: target_type is not used in record types.
35 Eliminate TYPE_MAIN_VARIANT and TYPE_NEXT_VARIANT. Eliminate
67c29f75 36 lookup_method_type. Add TYPE_TYPE_SPECIFIC macro.
f1d77e90
JG
37
38 * symtab.c (lookup_member_type): Don't chain them up, just
39 allocate one in symbol_obstack when we need one.
40 (allocate_stub_method): Build stub in symbol_obstack.
41 (check_stub_method): Move here from values.c. Don't deallocate
42 stub; overwrite it.
43 (lookup_method_type): Gone now.
44
45 * buildsym.c: Handle g++ v1 stabs a little bit better.
46 Change some C++ parsing error()s to complain()ts.
47 * buildsym.c, findvar.c, printcmd.c, symtab.c: Make unions and
48 structs have the same representation and work the same as far as
49 C++ is concerned.
50 * buildsym.c, symtab.c, values.c: Remove all references to
51 TYPE_MAIN_VARIANT and TYPE_NEXT_VARIANT.
52
53 * valops.c: Improve comments and indentation. Only call
54 check_stub_method when the stub flag is on.
55 * valprint.c: Fix or mark minor bugs and unportabilities.
56
57 * coffread.c (anonymous unions): Allocate a cplus structure.
58
59 * mipsread.c: Eliminate "template" types. Build new, real
60 types whenever we need them. Allocate cplus structures as needed.
61 Bulletproof the type parsing a bit more. Mark storage leaks.
67c29f75
JG
62 (parse_type): Copy TYPE_TYPE_SPECIFIC when copying a real type
63 on top of a partial type.
f1d77e90 64
b68da3b8
JG
65Fri Nov 22 16:39:57 1991 John Gilmore (gnu at cygnus.com)
66
378d8e73
JG
67 * inflow.c (terminal_inferior): Check the results of ioctl's, and
68 print a message if any of them fail.
69 (terminal_ours_1): Store result of ioctl's for debugging, but
70 don't print (the terminal isn't ours...).
71
b68da3b8
JG
72 * tm-tahoe.h (FRAME_ARGS_ADDRESS): No need to offset from frame
73 pointer.
74
75 * m2-exp.y (MAX, MIN): Rename to MAX_FUNC, MIN_FUNC to avoid
76 conflicts with system header files.
77
8013e170
JG
78Fri Nov 22 08:27:40 1991 John Gilmore (gnu at cygnus.com)
79
2dd074f4
JG
80 * Roll VERSION to 4.2.95.
81
3ae444f8
JG
82 * buildsym.c, coredep.c, mem-break.c, xcoffread.c: Put <stdio.h>
83 first, before defs.h.
84 * config/mh-i386sco: Override compiler to gcc, print warning.
2b61280a 85 * configure.in: Handle i386-none-aout rather than i386-aout-none.
3ae444f8 86 * infptrace.c, language.h, utils.c: Lint.
1a5a8f2a
JG
87 * m2-exp.y: #undef MAX and MIN in case system includes set them.
88 * xm-tahoe.h: Set HOST_BYTE_ORDER. Include system versions of
89 {BIG,LITTLE}_ENDIAN and the INT_MAX family first, to avoid
90 redefinition warnings.
91 * defs.h: Reorder things so that the xm-file gets first crack
92 at #define's, followed by defs.h and then the tm-file.
93 * Makefile.in: Remove spaces after 'ignore exit code' - flags.
94 Late-model BSD 'make's don't cope with them.
8013e170 95
3cb0d72d
JG
96Thu Nov 21 23:48:56 1991 John Gilmore (gnu at cygnus.com)
97
98 * Makefile.in: Roll new files into various lists.
99
4cfd3c49
FF
100Thu Nov 21 18:26:11 1991 Fred Fish (fnf at cygnus.com)
101
102 * dwarfread.c (struct_type): Must initialize the c++ specific
103 portion of union types as well as struct types, since gdb attempts
104 to reference the c++ specific info for both types.
105
7d9884b9
JG
106Thu Nov 21 10:23:52 1991 John Gilmore (gnu at cygnus.com)
107
2e8521a9
JG
108 * Makefile.in: Roll VERSION to 4.2.90.
109
110 * defs.h: Incorporate param.h into defs.h. All users changed.
7d9884b9
JG
111 * param-no-tm.h: Change users to define TM_FILE_OVERRIDE instead.
112 * param.h, param-no-tm.h: Removed.
113 * Update copyrights in all changed files.
114 * dbxread.c, dwarfread.c, inflow.c, infrun.c, m2-exp.y, putenv.c,
115 solib.c, symtab.h, tm-umax.h, valprint.c: Lint.
116 * tm-convex.h, tm-hp300hpux.h, tm-merlin.h, tm-sparc.h,
117 xm-merlin.h: Avoid host include files in target descriptions.
118 * getpagesize.h: Removed, libiberty copes now.
21f62bbd 119 * Makefile.in: Remove getpagesize.h, param.h, param-no-tm.h.
7d9884b9 120
3db0634c
JG
121 * exec.c (exec_files_info): If `verbose' is set, show file offset
122 as well.
123
f7402c04
JG
124 * main.c: Use getcwd rather than getwd.
125 * standalone.c: Fake getcwd rather than getwd.
126 * xm-*.h: Remove fake values of MAXPATHLEN.
127
76b28d05
JG
128 * xcoffexec.c: Add /* */ to #if 0'd thing to help ANSI.
129
6373dbe3
JG
130Wed Nov 20 18:35:56 1991 John Gilmore (gnu at cygnus.com)
131
49faf3b6
JG
132 * Remove gdb/hp-include. Support for HP a.out oddities should be
133 in BFD, not in GDB. Move gdb/hp-include/a.out.h to include/a.out.hp.h.
134
44ff4c96
JG
135 * infptrace.c, tm-sun386.h: Cashier <a.out.gnu.h>, remove refs.
136
f318d221
JG
137 * configure.in, xconfig, tconfig, Makefile.in, doc/gdbint.texinfo:
138 Makefile fragments for various hosts and targets now come from
139 gdb/config/mh-* and gdb/config/mt-*. This is for consistency with
140 other config setups.
3978d059 141
6373dbe3
JG
142 * rs6000-pinsn.c, rs6k-opcode.h: Clean up.
143 * rs6k-opcode.def: Delete.
144
768be6e1
FF
145Wed Nov 20 05:04:40 1991 Fred Fish (fnf at cygnus.com)
146
147 * dwarfread.c: Recognize obsolete form of AT_element_list
148 attribute still used by at least one AT&T compiler, and possibly
149 more.
150
d018c8a6
FF
151Tue Nov 19 07:53:55 1991 Fred Fish (fnf at cygnus.com)
152
0db97eed
FF
153 * dwarfread.c (enum_type, struct_type): Ignore names invented by
154 helpful compilers for anonymous structs, unions, and enums.
155
d018c8a6
FF
156 * c-exp.y, m2-exp.y: Add defines for yymaxdepth, yy_yys, and
157 yy_yyv, so multiple parsers produced by SVR4 versions of yacc
158 can coexist in the same executable without collision.
159
160 * symtab.h: Add declaration for lookup_template_type() to kill
161 compiler warnings about conversions from int to pointer.
162
b6666a5d
FF
163Mon Nov 18 17:45:18 1991 Fred Fish (fnf at cygnus.com)
164
5129100c
FF
165 * procfs.c: Move inclusion of defs.h to before param.h, as in
166 all the other source files that include both. This is required
167 to supply some typedefs that are used in files included by param.h.
168
b6666a5d
FF
169 * m68k-tdep.c (m68k_skip_prologue): Add generic m68k support for
170 skipping function prologues, ala the other cpu families (i386,
171 mips, m88k, etc). Add the ability to skip movm and fmovm
172 instructions in the prologues. Still needs support for profile
173 (-p compiled) prologue sequences (FIXME).
174
175 * tm-68k.h: Change SKIP_PROLOGUE macro to use the new generic
176 m68k prologue skipping function by default.
177
178 * tm-altos.h, tm-isi.h: Continue to use the old definition of
179 SKIP_PROLOGUE.
180
e140f1da
JG
181Mon Nov 18 15:12:45 1991 John Gilmore (gnu at cygnus.com)
182
b9fd1330 183 * Makefile.in: Remove tdesc stuff, and extra blanks before colons.
e140f1da 184 * blockframe.c: Remove tdesc-related code. Default
b9fd1330 185 FRAME_CHAIN_COMBINE.
e140f1da
JG
186 * infrun.c: Remove tdesc-related code.
187 * m88k-tdep.c (frame_chain_combine, init_frame_pc): Remove copies
188 of defaultable things.
189 * tm-m88k.h: New file, common to all Moto 88k target configs.
190 Derived from tm-delta88.h.
191 * tm-delta88.h: Use it.
192 * xm-m88k.h: Common file for 88K hosts. Remove obsolete stuff.
193 * xm-delta88.h: Use it.
194 * tm-*.h: Remove FRAME_CHAIN_COMBINE macros, since all are
195 default.
196 * coffread.c: Remove tdesc stuff.
5e2569e6
JG
197 * tconfig/delta88, tconfig/m88k: Remove tdesc stuff.
198 * xconfig/m88k: Rename tm-88k.h to tm-m88k.h.
e140f1da
JG
199
200Mon Nov 18 13:51:37 1991 Per Bothner (bothner at cygnus.com)
201
202 * source.c (open_source_file): If openp fails, try again
203 using just the base (non-directory) part of the filename.
204 This solves various annoying problems, such as when the
205 source was compiled with an absolute pathname - and the
206 source files have moved. Or if the source was compiled
207 using a relative pathname, it can be more convenient
208 to just specific the source directory to the dir command.
209
2d6186f4
FF
210Mon Nov 18 00:04:41 1991 Fred Fish (fnf at cygnus.com)
211
1a18a185
FF
212 * cplus-dem.c (munge_function_name): Add missing third arg to
213 instance of call to do_type().
214
2d6186f4
FF
215 * dwarfread.c: Changes to match new dwarf.h. Remove
216 AT_deriv_list, AT_loclist, AT_incomplete, AT_const_data,
217 and AT_is_external.
218
572acbbe
MT
219Sun Nov 17 16:20:53 1991 Michael Tiemann (tiemann at rtl.cygnus.com)
220
221 * symtab.h (struct type): Moved C++-specific fields into new type
222 `struct cplus_struct_type'. Now takes 10% less memory. Many
223 macros changed.
224 * symtab.c (init_type): Don't set fields belonging to
225 TYPE_CPLUS_SPECIFIC unless TYPE is TYPE_CODE_STRUCT.
226 * buildsym.c (read_type): Allocate TYPE_CPLUS_SPECIFIC for
227 TYPE_CODE_STRUCT.
228 (read_struct_type): Ditto. Also, add comments about how we can
229 deduce TYPE_VPTR_FIELDNO from inheritance info and fieldname info.
230 * coffread.c (decode_base_type): Allocate TYPE_CPLUS_SPECIFIC for
231 TYPE_CODE_STRUCT.
232 (read_struct_type): Ditto.
233 * dwarfread.c (struct_type): Ditto.
234
235 * symtab.c (read_range_type): Don't set TYPE_MAIN_VARIANT.
236 (lookup_pointer_type): Don't use or set TYPE_MAIN_VARIANT.
237 (lookup_reference_type): Ditto.
238
239 * cplus-dem.c: Many changes made to handle decoding of
240 ANSI-mangled names.
241 * symtab.c (gdb_mangle_name): Mangle/demangle ANSI-mangled names
242 as well.
243
cd71911e
SG
244Fri Nov 15 17:57:59 1991 Stu Grossman (grossman at cygnus.com)
245
246 * mipsread.c (parse_partial_symbols): patch to keep DEC C
247 compiler from making gdb bomb out. Thanks to Ed Santiago!
248
a7446af6
FF
249Thu Nov 14 19:27:30 1991 Fred Fish (fnf at cygnus.com)
250
5a5a3b0f
FF
251 * symfile.c: Add function compact_misc_function_vector() to
252 remove duplicate misc function vector entries. See comments
253 in source for why this is necessary/desirable.
254
a7446af6
FF
255 * dwarfread.c: Add misc function type parameter to internal
256 record_misc_function(). Remove calls to init_misc_bunches()
257 and condense_misc_bunches(), these are now done in elfread.c.
258
259 * elfread.c: Add support for reading bfd canonical symbol tables
260 and generating misc function vector entries for global and
261 absolute symbols. Do calls to init_misc_bunches() and
262 condense_misc_bunches() where they will enclose all calls to
263 record_misc_function(), including those in dwarfread.c.
264
265Thu Nov 14 17:02:11 1991 Roland H. Pesch (pesch at cygnus.com)
266
267 * doc/Makefile.in: new targets gdb.me, gdb.ms, gdb.mm
268 (roffable documentation).
269 * doc/gdb.texinfo: embedded hints (as comments) for better
270 texi2roff conversion.
271
430923f3
JG
272Thu Nov 14 13:18:25 1991 John Gilmore (gnu at cygnus.com)
273
274 * m88k-tdep.c (examine_prologue): Deal with OR instructions
275 that shuffle parameters into other regs.
276 * symtab.c (decode_line_1): Fix bug introduced in Per's change
277 of Nov 12th.
278
a219b090
SC
279Wed Nov 13 19:51:11 1991 Steve Chamberlain (sac at cygnus.com)
280
281 * Makefile.in, xconfig/delta88 made it install a sysV manual page;
282 gdb.z into the right place.
283
ea3c0839
JG
284Wed Nov 13 16:45:13 1991 John Gilmore (gnu at cygnus.com)
285
286 Motorola 88000 port without tears, I mean without tdescs.
287
288 * m88k-tdep.c: Blow away all tdesc stuff.
289 Provide functions for all the frame-related macros in
290 tm-delta88.h. Adopt i960-style EXTRA_FRAME_INFO.
291 (examine_prologue, frame_find_saved_regs, skip_prologue): borrow
292 from i960-tdep.c and adapt to the function prologues on the 88k.
293 (read_next_frame_reg): Borrow from mips-tdep.c.
294 FIXME: frame_locals_address should go away.
295
296 * tm-delta88.h: Dump all the tdesc stuff.
297 Macros for all frame-related stuff call fns of same name.
298 Remove duplicated definitions. FP_REGNUM becomes same as
299 SP_REGNUM.
300
301 * xm-88k.h: Eliminate lots of library dependencies, now handled
302 in libiberty. Eliminate KDB nonsupport.
303
304 * doc/gdbint.texinfo: Add rudiments on frames. FIXME, add more.
305
306
307 * stack.c (frame_info): Mark frameless functions.
308 Print locals address (FIXME, remove if same).
309 * blockframe.c: Comment changes, FIXME after.
310 * coffread.c: Even without TDESC, need to zap "@" symbols.
311 Don't register for wierd format names; change the names in BFD.
312
313 * alloca.c, language.c, tdesc.c: Lint.
314 * tdesc.c, tdesc-lib: FIXME: remove these.
315
19230be6
JG
316Tue Nov 12 19:30:22 1991 John Gilmore (gnu at cygnus.com)
317
318 * Makefile.in: Add tdesc library support. Fixups to lint,
319 copying.c rules.
320
0e2a896c
PB
321Tue Nov 12 13:43:26 1991 Per Bothner (bothner at cygnus.com)
322
323 * symtab.c (decode_line_1): Remove spurious call to operator_chars.
324
325 Allow setting breakpoints on C++ destructors.
326 * valops.c (destructor_name_p): Don't check TYPE_HAS_DESTRUCTOR,
327 since it lies. Rely on callers to catch missing destructors.
328 * symtab.c (decode_line_1): For example (see above), here.
329 * buildsym.c, symtab.h: Remove TYPE_FLAGS_HAS{CON,DE}STRUCTOR
330 flags since they are no longer used.
331
332 Fixes to support C++ methods with functional parameters.
333 * c-exp.y (func_mod rule): Allow (and ignore) list of parameter
334 types in a function type.
335 * eval.c (parse_and_eval_type), value.h: New function,
336 parse_and_eval_type, is based on old code from check_stub_method.
337 But don't actually evaluate the cast, since that calls
338 value_cast(), whcih may fail. Just extract the type
339 from the parsed expression.
340 * values.c (check_stub_method): While looping through the
341 arguments, adjust depth *after* parameter has been handled.
342 Replace call and setup of parse_and_eval with new function
343 parse_and_eval_type.
344
58ae87f6
FF
345Tue Nov 12 09:40:07 1991 Fred Fish (fnf at cygnus.com)
346
347 * utils.c, rem-multi.shar: Remove fixed arg count version of
348 concat().
349
350 * altos-xdep.c, arm-xdep.c, coffread.c, command.c, convex-xdep.c,
351 core.c, dwarfread.c, gould-xdep.c, infcmd.c, language.c,
352 m88k-xdep.c, main.c, printcmd.c, pyr-xdep.c, source.c,
353 sun386-xdep.c, symm-xdep.c, umax-xdep.c, values.c, xcoffread.c:
354 Change all instances of use of fixed args concat() to variable
355 args concat() now located in libiberty.
356
74f6fb08
JG
357Tue Nov 12 07:23:46 1991 John Gilmore (gnu at cygnus.com)
358
359 * Makefile.in: Add xcoffread.c, xcoffexec.c.
360 * xcoffread.c: New file for handling AIX mangled-coff files.
361 * xconfig/rs6000, tconfig/rs6000: New files.
362 * buildsym.c: Add hooks for xcoffread.c.
363 * rs6000-pinsn.c, rs6000-tdep.c, rs6000-xdep.c, tm-rs6000.h,
cd56d314 364 xm-rs6000.h, rs6k-opcode.def, rs6k-opcode.h: New files.
74f6fb08
JG
365 * xcoffexec.c: New file for handling AIX shared libraries.
366
fb182850
FF
367Mon Nov 11 19:14:31 1991 Fred Fish (fnf at cygnus.com)
368
369 * core.c: Minor rewording of message to user containing name of
370 (and possibly arguments to) the program that generated a core
371 file.
372
373 * elfread.c: Remove the register_addr() stub now that it is no
374 longer needed.
375
376 * procfs.c: Move misplaced #endif for ATTACH_DETACH. Add new
377 fetch_core_registers() function for core file support.
378
8aca810c
FF
379Sat Nov 9 13:37:57 1991 Fred Fish (fnf at cygnus.com)
380
b662efed
FF
381 * dwarfread.c (dwarf_psymtab_to_symtab): Remove leftover call
382 to do_cleanups() which resulted from a previous change.
383
8aca810c
FF
384 * elfread.c: Re-enable compilation of register_addr() stub
385 whenever it is not supplied by coredep.c
386
a048c8f5
JG
387Sat Nov 9 00:40:32 1991 John Gilmore (gnu at cygnus.com)
388
389 Add tracking of object files (that contain symbols) to gdb.
390 This includes a "struct objfile" that owns symtabs and psymtabs
391 that were read in from that binary file.
392
393 * symfile.h: Add struct objfile. Add pointer to the objfile
394 into the struct sym_fns.
395 Replace global `symfile' and `symfile_mtime' with
396 `symfile_objfile'. Add global object_files chain.
397
398 * symfile.c: Move param.h above symtab.h.
399 (sort_misc_function_vector): Add.
400 (syms_from_objfile): Was syms_from_bfd.
401 (symfile_open): Now returns objfile.
402 (allocate_objfile): New.
403 (free_objfile): New, replacing free_all_.*symtabs.
404 (symfile_init): Takes objfile arg, puts it in sym_fns result.
405 (reread_symbols): Searches whole chain of objfiles.
406 (allocate_symtab): Takes objfile as new parameter, chains them.
407 Handle INIT_EXTRA_SYMTAB_INFO.
408 (free_all_psymtabs, free_all_symtabs): Move here from symmisc.c.
409
410 * dbxread.c: Make more errors into complaints.
411 (push_subfile, pop_subfile): Move to buildsym.c.
412 (dbx_symfile_read, dbx_symfile_init, fill_symbuf, read_dbx_symtab,
413 start_psymtab, psymtab_to_symtab_1, read_ofile_symtab,
414 dbx_psymtab_to_symtab, ): Use bfd ops, don't use file descriptor.
415 Pass objfile. Change callers.
416 (fill_symbuf, SWAP_SYMBOL): Take bfd as arg.
417 (read_dbx_symtab): Just wipe out new symbols, not all, on error.
418 (end_psymtab): Blow away psymtab if empty.
419 (process_symbol_pair): Swallow into read_ofile_symtab.
420 (process_one_symbol): Use push_context and pop_context.
421 (virtual_context): Delete #if 0'd obsolete stuff.
422
423 * buildsym.c (end_symtab): Pass objfile.
424 (dbx_lookup_type): Handle null typevector.
425 (dbx_alloc_type): Check file number, not sym number, for -1.
426 (find_symbol_in_list): Add for xcoffread.
427 (start_symtab): Default typevector is empty. Keep reusing same
428 context_stack.
429 (end_symtab): Take objfile argument and pass it to
430 allocate_symtab. Don't make a symtab if no blocks or symbols.
431 Handle empty typevector.
432 (push_context): New function for context stack nesting.
433 (read_type): Mark FIXME where we need to reintroduce type smashing.
434
435 * buildsym.h (pop_context): Macro, paired with push_context.
436 (subfile_stack): Move here from dbxread.c.
437
438 * coffread.c (end_symtab, read_coff_symtab): Take and use objfile arg.
439 (read_coff_symtab): Cleanup by freeing objfile, not all symtabs.
440
441 * mipsread.c (read_mips_symtab, parse_partial_symbols, parse_fdr,
442 new_psymtab, new_symtab): Take and use objfile arg.
443
444 * dwarfread.c (scan_compilation_units, start_psymtab,
445 process_dies, end_symtab, dwarf_build_psymtabs,
446 read_lexical_block_scope, read_func_scope, read_file_scope): Take
447 and use objfile argument.
448 (psymtab_to_symtab_1, read_ofile_symtab): Don't take or use file
449 descriptor. Use BFD internal functions instead.
450 (end_symtab): Call global allocate_symtab.
451
1d82d3dc 452 * elfread.c, target.c: Minor changes to accommodate objfiles.
a048c8f5
JG
453 * symtab.h: partial_symbol_table has no symfile_name member now.
454 (fn_fieldlists voffset): avoid non-int bitfield.
455 (struct symtab): Add objfile * and objfile_chain * of symtabs.
456 (struct partial_symtab): Add objfile * and objfile_chain * of
457 psymtabs. Remove symfile_name.
458
1d82d3dc
JG
459 * symmisc.c: Lose free_all_symtabs, free_all_psymtabs.
460 (printsyms_command): Rename from print_symtabs. Add selective
461 listing if 2nd argument given. Print objfile info.
462 (printpsyms_command): Rename from print_partial_symtabs. Ditto all.
463 (printobjfiles_command): New; prints objfiles lists, and checks
464 for consistency of symtab, psymtab, and objfile lists.
465
a048c8f5
JG
466 * symfile.h, symfile.c, symtab.h: Lint
467
c4668207
JG
468Fri Nov 8 23:38:48 1991 John Gilmore (gnu at cygnus.com)
469
470 * command.c: Include param.h.
471 * defs.h (warning_setup, warning): Declare.
472 * expprint.c (print_subexp, UNOP_MEMVAL case): Lint.
473 * inflow.c (new_tty): Use USE_O_NOCTTY #define.
474 * language.c, printcmd.c (print_scalar_formatted), signame.c,
475 stack.c: lint.
476
b92c774e
SC
477Thu Nov 7 18:26:15 1991 Steve Chamberlain (sac at rtl.cygnus.com)
478
b715d5b4
SC
479 * Makefile.in: link with libiberty after libreadline, since
480 readline might want something in libiberty.
b92c774e
SC
481 * m88k-xdep.c: Fixed the register offsets in the ptrace_user
482 struct for BCS 88k machines.
483 * xm-m88k.h: don't define USIZE if already defined.
484 * configure.in: Added delta88 target.
485
fbcb5095
JG
486Thu Nov 7 04:51:19 1991 John Gilmore (gnu at cygnus.com)
487
1bf068b8
JG
488 * am29k-pinsn.c, am29k-opcode.h: Fix decoding of mtacc, dmac, fmac.
489
fbcb5095
JG
490 * tm-*.h: Remove READ_DBX_FORMAT, COFF_FORMAT, and
491 READ_MIPS_FORMAT, which have been unused since BFD. Still
492 remaining is COFF_NO_LONG_FILE_NAMES.
493 * tm-sun3.h, tm-altos.h: Remove detritus accidentally left from
494 function calling code moved to m68k-tdep.c.
495
e64fbb3a
JG
496Wed Nov 6 17:21:59 1991 John Gilmore (gnu at cygnus.com)
497
498 * coffread.c: Eliminate c_nsyms in favor of c_naux.
499 Complain if no auxents on .bf and .ef FCN symbols, and assume
500 lots of line numbers.
501 (init_linenos, enter_linenos): Use a sentinel at the end of the
502 read-in linenos, to make for a fast, safe loop-end test.
503
504Wed Nov 6 02:54:08 1991 Steve Chamberlain (sac at cygnus.com)
505
506 * coffread.c (read_coff_symtab): coffread used to rely on the
507 x_sym.x_misc.x_lnsz.x_lnno field giving the # of linnos in a
508 function. Two of the formats I'm using (29k and 88k) don't seem to
509 set it. Ths patch to fcn_last_line and (enter_linenos) is an
510 attempt to use the actual size of the linno table in the file to set
511 the number of linenos to process.
512
0aaa124f
SC
513Tue Nov 5 22:47:46 1991 Steve Chamberlain (sac at cygnus.com)
514
515 * Makefile.in: put a - infront of the mv y.tab.c c-exp.tab.c and
516 mv y.tab.c m2-exp.tab.c, so that if bison is used, and the files
517 are created in place, so the mv fails, then the make continues.
518
545af6ce
PB
519Tue Nov 5 16:47:47 1991 Per Bothner (bothner at cygnus.com)
520
521 Add C++ as a separate language.
522 * defs.h (enum language): Add language_cplus.
523 * dwarfread.c (end_symtab): Support language_cplus.
524 * c-exp.y: Add new struct language_defn cplus_language_defn.
525 Don't set c to be the default language (see main.c).
526 * c-exp.y (yylex): Only look for field of this if
527 language is C++. (First difference from C!)
528 * language.c: Add case branches for C++ (currently, all
529 the same as C). Also, add c++ to "usage" note for "set lang".
530 * valprint.c (typedef_print). Add case branches for C++.
531 * main.c (main): New way to set initial language: Look at
532 file extension of psymtab containing main(). (Same as we
533 do for symtabs, but avoid loading the symtab yet.)
534 * symtab.c: New routine find_main_psymtab(), used by main()
535 to set initial language.
536 * symfile.c (allocate_symtab): Move code for mapping file
537 extensions-> languages to new deduce_language_from_filename().
538
539 Fix a C++ problem when looking for methods in super-classes.
540 There was confusion between base and derived types.
541 * valops.c (value_fn_field): Change function interface.
542 * values.c: Use new value_fn_field interface.
543
abefb1f1
PB
544Mon Nov 4 10:49:33 1991 Per Bothner (bothner at cygnus.com)
545
546 * infrun.c: Fixed typo in comment.
547 * utils.c: All the v*fprintf emulation is now in libiberty,
548 so we can get rid of some junk.
549 * xm-sun3os4.h, xm-sun4os4.h, xconfig/decstation, xconfig/i386sco,
550 xconfig/sun3os4, xconfig/sun4os4: Don`t need HAVE_STRSTR any more.
551 * m68k-pinsn.c (print_insn_arg): Support BB/BW/BL
552 type operands, as used by branch instructions.
553 * gmalloc.c: Fix prototype of memcpy.
554 * elfread.c: Comment out register_addr, since it conflicts
555 with the one in coredep.c.
556 * buildsym.h: Remove extern declarations of two functions
557 that are really static in buildsym.c.
558 * tm-mips.h: Add symbolic names for more registers.
559 * mips-xdep.c (store_inferior_registers): Use new register names.
560 * xm-mips.h: Simplify REGISTER_U_ADDR, since it is now
561 only used for core files, not ptrace. Therefore,
562 the KERNEL_U_ADDR hack is no longer needed.
563 The mapping to ptrace number is now in in mips-xdep.c.
564 * mips-xdep.c: Define REGISTER_PTRACE_ADDR (using the
565 mapping from the old REGISTER_U_ADDR), and use it
566 in {fetch,store}_inferior_registers.
567 * mipsread.c: Rename #include ecoff.h to new name coff-mips.h.
568 * mips-tdep.c (mips_push_dummy_frame, mips_pop_frame):
569 Save/restore FP regs correctly (?).
570 * dbxread.c: Remove duplicate define_symbol and type_synonym_name
571 (these had been previously moved to buildsym.c).
572 Hence, define_symbol becomes extern instead of static.
573 * buildsym.c (read_struct_type): Comment out bogus handling
574 of C++ operator methods. Minor hacking of reading of class
575 contexts. Make define_symbol non-static, so dbxread.c can call it.
576
c9bd6710
JG
577Fri Nov 1 11:05:47 1991 John Gilmore (gnu at cygnus.com)
578
579 * mipsread.c (read_mips_symtab, read_the_mips_symtab): Use real
580 filename with error messages.
581 * stack.c (frame_select_command): Rename to select_frame_command
582 to avoid "fr" and "fra" having nonunique completions.
583 * symfile.c (sort_symtab_syms): Ignore sort of zero symtab *.
584 (symfile_init): Print file format name when unable to handle it.
585 (free_named_symtabs): Use BLOCKVECTOR rather than obsolete BLOCKLIST.
586 * symmisc.c (free_symtab): Only free linetable if nonzero.
587 * symtab.h: Remove obsolete BLOCKLIST macros.
588
d7d1098d
SG
589Thu Oct 31 18:12:43 1991 Stu Grossman (grossman at cygnus.com)
590
591 * infrun.c (wait_for_inferior): another stepi/nexti fix. Ensure
592 that stop_step is 1 at bottom of main loop. I don't know why this
593 needs to be done, but it helps me sleep better at night.
594
8b3c897a
SG
595Sun Oct 27 18:18:39 1991 Stu Grossman (grossman at cygnus.com)
596
597 * main.c (initialize_history): Read history after reading all
598 init files.
599
4137c5fc
JG
600Sun Oct 27 14:09:25 1991 John Gilmore (gnu at cygnus.com)
601
602 * buildsym.c: Break out initial malloc sizes.
603 (record_line): Record directly in a subfile. Alloc on demand.
604 (compare_line_numbers): Add from xcoffread.c.
605 (end_symtab): New params say whether to sort pendings and
606 linetable. Patch block stabs if defined. Shrink linetable before
607 allocating the symtab.
608 * buildsym.h: Delete line_vector* and prev_line_number. Add
609 global_stabs and file_stabs for xcoffread.
610 * dbxread.c (start_subfile): Move to buildsym. Change above calls.
611 * symtab.h: LINETABLE(symtab) can now be null. Zap LINELIST.
612 * symmisc.c, symtab.c: Cope with null LINETABLEs.
613
614 * blockframe.c: Pass fromleaf to INIT_EXTRA_FRAME_INFO.
615 * tm-29k.h, tm-88k.h, tm-i960.h, tm-irix3.h, tm-mips.h, tm-pyr.h,
616 tm-sparc.h: Accept fromleaf parameter.
617 * c-exp.y (yyerror): Pass error message if given.
618 * configure.in: Add rs6000 host and target.
619 * inflow.c (new_tty): O_NOCTTY kludge for RS/6000.
620 * symfile.h (entry_point): Add.
621
c0302457
JG
622Sat Oct 26 00:16:32 1991 John Gilmore (gnu at cygus.com)
623
624 * buildsym.c: New file. Breaks out symbol-table-building routines
625 from dbxread.c, so they can be shared with xcoffread.c.
626 * buildsym.h: New file. Declarations for buildsym.c users.
627 * dbxread.c: Remove large chunks into buildsym.c.
d47d5315
JG
628 * Makefile.in: Add buildsym.c and buildsym.h.
629
630 * symfile.c (syms_from_bfd): New routine.
631 (add_symbol_file): Call it to do the real work.
632 (syms_from_bfd): Initialize entry_point before calling symfile_init.
633 * symtab.h, symfile.c, coffread.c, mipsread.c, dwarfread.c:
634 Avoid declaring or setting entry_point (symfile.h & symfile.c cope).
c0302457 635
4c53d9ca
DHW
636Fri Oct 25 10:58:16 1991 Mark Eichin (eichin at cygnus.com)
637
638 * cplus-dem.c (cplus-demangle): added support for templates, static
639 data, and the new (correct) mangling for destructors.
640
641 * dwarfread.c: (dwarfwarn): created a varargs version of
642 dwarfwarn, for non __STDC__ compilers.
643
644 * c-exp.y: (yylex): added match for "template" token.
645 (typebase): added TEMPLATE name '<' type '>' clause, for explicit
646 specification of template types.
647
648 * symtab.c: (lookup_template_type): new function for finding
649 templates in symbol table.
650 (type_name_no_tag): changed to explicitly check for s/u/e at the
651 beginning of the symbol - if it is a template, none of these will
652 be there (but the name will still contain spaces.)
653
bcccec8c
PB
654Fri Oct 25 18:59:32 1991 Per Bothner (bothner at cygnus.com)
655
656 Various fixes to improve g++ debugging.
657 * symtab.h: Add is_const and is_volatile flags for each method.
658 These are bit fields - take their space from voffset,
659 which shrinks to 30 bits. Since voffset is now a bitfield,
660 make it unsigned for portability. This changes its interpretation
661 slightly: Static methods now have voffset 1 instead of -1,
662 and virtual offsets start at 2, not 1.
663 * symtab.c: Renamed gdb_mangle_typename to gdb_mangle_name,
664 since it now returns an entire magled method name, not just
665 the type part. This avoids some duplication.
666 It also allows us to correctly mangle const and volatile
667 methods (using the new is_const and is_volatile bit fields
668 mentioned above).
669 * valprint.c (type_print_base), values.c (check_stub_method):
670 Simplify by using new gdb_mangle_name.
671 * values.c (value_headof): Fix to correctly handle single
672 inheritance (actually two fixes, either of which suffices).
673 * dbxread.c (read_struct_type): Handle const and volatile
674 method specifiers.
675 * dbxread.c (read_struct_type): Yet one more place where
676 we must handle '\\' continuations.
677 * valprint.c (vtbl_ptr_name): Add final '\0'.
678
eb3f3e5c
SG
679Fri Oct 25 16:06:38 1991 Stu Grossman (grossman at cygnus.com)
680
5ab580cc
SG
681 * tm-sparc.h, tm-68k.h (EXTRACT_RETURN_VALUE): fix output of
682 short return values for sparc and 68k. Patch from Paul Eggert.
683
eb3f3e5c
SG
684 * coffread.c, coredep.c, i386-xdep.c: install patches for
685 SysV/386 3.2 from Mauro DePalma.
686
9cb602e1
JG
687Fri Oct 25 02:02:13 1991 John Gilmore (gnu at cygnus.com)
688
c58215f2
JG
689 * core.c (core_file_info), exec.c (exec_file_info): Print file
690 type. Use printf_filtered.
691
9cb602e1
JG
692 * valops.c (value_fetch_lazy): Avoid 0-length fetches.
693
b662acae
FF
694Thu Oct 24 23:06:40 1991 Fred Fish (fnf at cygnus.com)
695
c8c0a2bd
FF
696 * dwarfread.c: Add casts to remove compiler warnings.
697
84d82b1c
FF
698 * tm-3b1.h, tm-68k.h, tm-altos.h, tm-amix.h, tm-hp300bsd.h,
699 tm-hp300hpux.h, tm-isi.h, tm-news.h, tm-pn.h, tm-sun2.h,
700 tm-sun3.h: Remove locally duplicated code for calling functions
701 in the inferior. The only differences were in the specific trap
702 vectors used and whether or not an fpu was present. These are
703 now handled by appropriate definitions of BPT_VECTOR and
704 HAVE_68881 respectively. Other minor obvious cleanups.
705
706 * valops.c: Correct a minor misspelling.
707
ed317bb3
FF
708 * utils.c: Remove local BSD/USG hacks that are now in libiberty.
709
b662acae
FF
710 * dwarfread.c: Remove prototype for dwarfwarn. Does not work
711 with <varargs.h>.
712
313fdead
JG
713Thu Oct 24 09:33:44 1991 John Gilmore (gnu at cygnus.com)
714
b0077123
JG
715 * stack.c (frame_command): Always print. Use new
716 frame_select_command to select a frame without printing.
717
313fdead
JG
718 * dwarfread.c: Use <varargs.h>, since <stdarg.h> is not portable.
719
4a35d6e9
FF
720Thu Oct 24 01:32:51 1991 Fred Fish (fnf at cygnus.com)
721
35f5886e
FF
722 * dwarfread.c: New file for DWARF debugging format support.
723
724 * elfread.c: New file for ELF object file format support.
725
726 * procfs.c: New file for SVR4 /proc (process file system) support.
727
728 * tm-amix.h, xm-amix.h, tconfig/amix, xconfig/amix: New files for
729 Amiga UNIX support.
730
731 * xm-svr4.h, tm-svr4.h: New files for SVR4 support.
732
733 * xm-m68k.h: New file for host machines with m68k cpu.
734
bb4ff694
FF
735 * Makefile.in: Add elfread.c and dwarfread.c to SFILES_MAINDIR.
736 Add elfread.o and dwarfread.o to OBS.
737
738 * symfile.h: Add "elf" to list of supported formats in comment.
739
e2aab031
FF
740 * c-exp.y, defs.h, symtab.h, valprint.c: Add three new builtin
741 types to gdb, builtin_type_long_double, builtin_type_complex, and
742 builtin_type_double_complex. Add and use new TARGET_SHORT_BIT,
743 TARGET_INT_BIT, TARGET_LONG_BIT, TARGET_FLOAT_BIT,
744 TARGET_DOUBLE_BIT, TARGET_LONG_DOUBLE_BIT, TARGET_COMPLEX_BIT, and
745 TARGET_DOUBLE_COMPLEX_BIT, as the sizes in bits of the indicated
746 types on the target machine (ala the existing TARGET_LONG_LONG_BIT).
747
02070680
FF
748 * infrun.c: When using SVR4 /proc interface instead of ptrace(),
749 call proc_set_exec_trap() to setup child to stop at first instruction.
750
751 * inftarg.c: When using SVR4 /proc interface, call proc_wait()
752 rather than wait().
753
754 * m68k-tdep.c: Add new routines supply_gregset(), fill_gregset(),
755 supply_fpregset(), and fill_fpregset(), which are machine
756 dependent support routines for SVR4 /proc interface.
757
2bc2e684
FF
758 * utils.c: Add warning_setup() and warning(). Warning() behaves
759 the same as error() except that it returns normally rather than
760 jumping back to command level. Modules that don't want to call
761 warning() for some reason, but want to produce their own warnings,
762 can call warning_setup() to ensure compatibility with the way
763 warning() and error() deal with the terminal.
764
eaa1ef1d
FF
765 * symtab.c: Make internal errors produce more useful messages.
766
dcd15e5e
FF
767 * tm-68k.h: Move code that is duplicated in almost every single
768 m68k based machine's configuration files to this common file.
769 Duplications in the configuration files still need to be removed
770 (FIXME).
771
150f5436
FF
772 * infrun.c (child_create_inferior): System V versions must call
773 setpgrp() with no arguments, to comply with prototyping typically
774 in <unistd.h>.
775
cb17dfb1
FF
776 * munch: Add support for SVR4 style nm output.
777
4a35d6e9
FF
778 * dbxread.c, mipsread.c symmisc.c, symtab.c: Remove the object
779 file specific fields from the partial symbol table structure and
780 replace them with a pointer to private data for each different
781 flavor of object file reader to initialize appropriately.
782
b0077123
JG
783Wed Oct 23 09:38:20 1991 John Gilmore (gnu at cygnus.com)
784
785 * xconfig/sun[34]os4: Add note about strstr botch on sunos4.0.3c
786 and previous.
787
788 * mipsread.c (fixup_undef_type): New function. If a struct /
789 union / enum is defined in a header file but nowhere else used,
790 (by typedefing, pointer referencing or declaration) the mipsread code
791 builds the complete tree for the structure but leaves its code as
792 TYPE_CODE_UNDEF as it doesn't know what kind of aggregate it is.
793 Guess its type based on the details of the members.
794
0d3e7f60
SG
795Tue Oct 22 18:04:32 1991 Stu Grossman (grossman at cygnus.com)
796
797 * infrun.c (wait_for_inferior): Check return value from
798 find_pc_line.
799
bc6c937d
SG
800Mon Oct 21 17:47:03 1991 Stu Grossman (grossman at cygnus.com)
801
802 * infrun.c (wait_for_inferior): fix stepi/nexti that was broken
803 by my last edit to this routine.
804
b0077123
JG
805Mon Oct 21 14:27:43 1991 John Gilmore (gnu at cygnus.com)
806
807 * tm-sun3.h (FIX_CALL_DUMMY): problem with cross debugging.
808 FIX_CALL_DUMMY does unaligned accesses and/or forgets to byte swap
809 the values before putting them into the dummy code. (From Peter
810 Schauer)
811
44e4e473
SC
812Mon Oct 21 10:04:39 1991 Steve Chamberlain (steve at rtl.cygnus.com)
813
814 * configure.in: added ebmon target.
815
785ce19c 816Wed Oct 16 22:49:58 1991 John Gilmore (gnu at cygnus.com)
a1b8c5d6
JG
817
818 GDB-4.2 release!
819
820 * Makefile.in: Roll VERSION to 4.2.
44e4e473 821 * README, TODO, WHATS.NEW: Update.
a1b8c5d6
JG
822
823 * core.c (core_open): Improve error message for bad file.
824 Pass .reg virtual memory address to fetch_core_registers to help
825 it find the registers in the core-file header.
826 * coredep.c (fetch_core_registers): Take new argument, use it,
827 and pass it to register_addr to locate the block of registers.
785ce19c 828 * xm-mips.h: Update KERNEL_U_ADDR for new scheme. Cleanup a bit.
a1b8c5d6
JG
829
830 * dbxread.c (read_dbx_symtab, process_one_symbol): Handle
831 Sequent N_FN_SEQ like everybody else's N_FN.
832
833 * main.c: Circumvent SCO cc bug with #if !!defined(USG).
834 * tm-i386v.h: #endif guck.
835 * xconfig/i386*: Remove -Dgetpagesize()=4096 kludge.
785ce19c
JG
836 * xconfig/i386sco: Add HAVE_STRSTR to avoid ANSI bdeath.
837 * xconfig/tahoe: Add REGEX, which seems to be missing.
838
839 * coredep.c: Add <sys/types.h> for SCOnix.
840 * dbxread.c (read_dbx_symntab): Avoid coredump on malformed file.
841 * printcmd.c (print_formatted): Flush output before disassembly.
a1b8c5d6 842
93ae2e88
RP
843Tue Oct 15 20:12:32 1991 Roland H. Pesch (pesch at fowanton.cygnus.com)
844
9e0906a6
RP
845 * doc/refcard.tex (sec "Working Files"): consistent metavars and