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