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