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