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