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