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