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