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