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