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