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