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