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