Only compile in solib_add_common_symbols for non-SVR4 (SunOS) shared libs.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 Wed Jan 15 09:56:16 1992 Fred Fish (fnf at cygnus.com)
2
3 * solib.c (solib_add_common_symbols): Only compile in when not
4 using SVR4 style shared libraries.
5
6 Tue Jan 14 22:34:00 1992 Fred Fish (fnf at cygnus.com)
7
8 * dwarfread.c (locval): Add offreg flag to indicate location
9 values that are computed off a base register.
10
11 * dwarfread.c (new_symbol): Rework TAG_global_variable and
12 TAG_local_variable cases to account for static variables
13 within function scopes.
14
15 Tue Jan 14 12:28:52 1992 Stu Grossman (grossman at cygnus.com)
16
17 * inflow.c: remove #include <sys/dir.h>. Not necessary, and
18 doesn't exist on some systems.
19
20 * infrun.c (wait_for_inferior!!!!): Prevent gdb from hanging when
21 nexting over recursive function calls.
22
23 * target.c (target_read_string): Create this routine to read null
24 terminated strings from the target. It deals with running off the
25 end of memory elegantly as well. solib.c (find_solib): Use
26 target_read_string() to avoid problems with running off the end of
27 memory.
28
29 * inflow.c (child_terminal_info): #ifdef TIOCPGRP around lines
30 that reference pgrp_inferior.
31
32 Mon Jan 13 14:57:11 1992 Per Bothner (bothner at cygnus.com)
33
34 * tm-mips.h: Removed BLOCK_ADDRESS_ABSOLUTE, now that
35 mips-tfile has been hacked to act more "traditionally."
36 * dbxread.c: Fixed typo in comment.
37
38 Sun Jan 12 13:08:36 1992 Per Bothner (bothner at cygnus.com)
39
40 * mips-tdep.c (mips_skip_prologue): Add some number of
41 'sw' instructions before 'addiu' adjusts the stack.
42
43 Fri Jan 10 13:47:06 1992 Fred Fish (fnf at cygnus.com)
44
45 * dwarfread.c (start_symtab, end_symtab, scopecount, openscope,
46 freescope, buildblock closescope, record_line, add_symbol_to_list,
47 gatherblocks, make_blockvector): Extensive changes to switch
48 to generic symbol table building code in buildsym.c. Remove
49 scope tree structures and functions, symbol table building
50 functions, and lots of other small changes.
51
52 * dwarfread.c: Add new macros GCC_PRODUCER and STREQN. Remove
53 GCC_COMPILED_FLAG_SYMBOL and GCC2_COMPILED_FLAG_SYMBOL.
54
55 Tue Jan 7 13:09:57 1992 Stu Grossman (grossman at cygnus.com)
56
57 * buildsym.c (cleanup_undefined_types): Add support for enums.
58 This fixes the 'GDB internal error. cleanup_undefined_types with
59 bad type' problem.
60
61 Sun Jan 5 09:47:50 1992 Stu Grossman (grossman at cygnus.com)
62
63 * dbxread.c: detect gcc2 compilations.
64
65 Thu Jan 2 15:07:41 1992 John Gilmore (gnu at cygnus.com)
66
67 * sparc-pinsn.c: Rename bitfields that overlap with macro names
68 in ../include/opcode/sparc.h.
69
70 Wed Jan 1 04:29:00 1992 Fred Fish (fnf at cygnus.com)
71
72 * Makefile.in: Change tm-svr4.h to tm-sysv4.h. Change xm-svr4.h
73 to xm-sysv4.h. Split OPCODE_DIR into OPCODE_DIR1 and OPCODE_DIR2
74 to reflect actual locations of opcode files, so TAGS target will
75 be buildable.
76
77 * i386-tdep.c: Change an erroneous 'm68k' reference to 'i386'.
78
79 * i386-tdep.c (supply_fpregset, fill_fpregset): Remove m68k
80 code.
81
82 * m68k-tdep.c (supply_fpregset, fill_fpregset): Fix array
83 dereferencing to access the correct elements.
84
85 * valops.c (value_addr): Declare return type of external func
86 value_copy().
87
88 * xcoffread.c: Undefine next_symbol_text before redefining it.
89
90 Mon Dec 30 10:57:02 1991 Per Bothner (bothner at cygnus.com)
91
92 Mainly stuff to improve handling of TYPE_CODE_REF values.
93 * valops.c (value_addr): If taking the addres of a
94 TYPE_CODE_REF, just cast the object to the corresponding
95 TYPE_CODE_PTR. This yields correct C++ semantics, and
96 preserves the location information, which has the nice effect
97 that &(&R) given the location containing R.
98 * values.c (value_copy): Make non-static (used by value_addr).
99 * eval.c (evaluate_subexp_for_address): Use the default
100 scheme (with value_addr) for a variable if it has TYPE_CODE_REF.
101 * valops.c (value_addr), eval.c (evaluate_subexp_for_address,
102 evaluate_subexp_with_coercion): Factor out some common
103 expressions into variables, for easier reading.
104 * findvar.c (locate_var_value): Remove code to handle
105 TYPE_CODE_REF - it should no longer be needed.
106 * valops.c (value_assign): Do a COERCE_REF on the
107 destination operand, for correct C++ semantics.
108 * valarith.c (value_x_binop): Ditto: De-reference C++
109 references in the arguments.
110 * valops.c: ANSI-fy: bcopy->memcpy, bzero->memset.
111
112 Sat Dec 28 11:30:26 1991 Per Bothner (bothner at cygnus.com)
113
114 * dwarfread.c, coffread.c: Use INIT_CPLUS_SPECIFIC.
115 * symtab.c (gdb_mangle_name): Recognize and handle
116 constructors specially.
117 * symtab.c (check_stub_method): Test for failure from
118 cplus-demangle by calling error() instead of seg-faulting ...
119
120 Fri Dec 27 22:21:30 1991 Fred Fish (fnf at cygnus.com)
121
122 * defs.h: Add definition of null_cleanup()
123
124 * procfs.c: Many small changes to add base support for a new
125 "info proc" command (currently only printing of the address
126 space mapping is implemented) and allow iteration over the
127 address space mapping, calling an arbitrary function for each
128 mapping (used for shared library support).
129
130 * solib.c: Change all ifdefs that checked for "sun" to check
131 for "!SVR4_SHARED_LIBS" instead. Rewrite lookup_base() to
132 handle locating the debug base address even when not currently
133 stopped at the dynamic linker entry point.
134
135 * utils.c: Add null_cleanup() as a known function that does
136 nothing to serve as a base for possibly long cleanup chains
137 with no specific "first cleanup" to serve as an anchor.
138
139 * xm-sysv4.h: Add define of SVR4_SHARED_LIBS
140
141 Fri Dec 27 10:11:33 1991 Per Bothner (bothner at cygnus.com)
142
143 * arm-opcode.h, m88k-opcode.h, pn-opcode.h, np1-opcode.h,
144 pyr-opcode.h, tahoe-opcode, vax-opcode.h: Removed -
145 these are all essentially the same as the versions
146 in ../include/opcode. The remaining *-opcode.h here
147 are not quite so obviously the same, and need study.
148 * arm-pinsn.c, gould-pinsn.c, m88k-pinsn.c, pyr-pinsn.c,
149 tahoe-pinsn.c, vax-pinsn.c: Change so these include
150 opcode/FOO.h (actually ../include/opcode/FOO.h)
151 instead of the recenntly departed opcode-FOO.h files.
152 * sparc-pinsn.c: Now that we're using the much tighter
153 opcode table in ../include/opcode/sparc.h, we shouldn't
154 need to sort the opcodes before dis-assembly.
155
156 * symtab.h, symmisc.c: Make cplus_struct_default be const.
157 * symtab.h, buildsym.c: Add and use INIT_CPLUS_SPECIFIC macro.
158 * symmisc.c: Remove unused 'nfields' variable.
159 * buildsym.h: Add extern decl of unknown_symtype_complaint,
160 since it used used by partial-stab.h (included two places).
161 * partial-stab.h: Re-arrange DBXREAD_ONLY #ifdefs so that
162 we should never hit the default case (until new stab codes
163 are added). Hence, we can leave the complaint in the
164 default case in even when DBXREAD_ONLY is off.
165 * partial_stab.h: Recognize a pair of N_SO stabs (one for the
166 directory, one for the filename proper) without peeking ahead.
167 * dbxread.c, mipsread.c: Because of previous change, don't need
168 ugly CHECK_SECOND_N_SO macro.
169 * buildsym.h, dbxread.c, mipsread.c: Make next_symbol_text a
170 macro that invokes a function pointer in next_symbol_text_func.
171 * mipsread.c: Added comments various places to
172 explain what is going on.
173 * mipsread.c (parse_symbol): Support the new (SGI-specific?)
174 symbol types stStruct, stUnion, and stEnum.
175 Also, some fixes in the code for dealing with tags.
176 * mipsread.c: Change handling of startup_file_start and _end
177 - now just use the textlow and texhigh of a psymtab
178 to check if we've found the startup-file.
179 * mipsread.c: Replace s_idx by global cur_sdx in many places.
180 This is so mips_next_symbol_text can get at it.
181
182 Thu Dec 26 19:52:01 1991 Fred Fish (fnf at cygnus.com)
183
184 * dbxread.c, symmisc.c: Move add_psymbol_to_plist() from
185 dbxread.c to symmisc and change name to add_psymbol_to_list.
186 Ditto for add_psymbol_addr_to_plist(). Also expand their
187 body to not use ADD_PSYMBOL_VT_TO_LIST.
188
189 * dwarfread.c: Remove add_psymbol_to_list() and convert usages
190 to the ADD_PSYMBOL_TO_LIST macro.
191
192 * ieee-float.c: Change "#ifdef DEBUG" to "#ifdef IEEE_DEBUG"
193 to avoid collision with the DEBUG for ADD_PSYMBOL_VT_TO_LIST.
194
195 * partial-stab.h, symfile.h: Move definitions of the macros
196 ADD_PSYMBOL_TO_LIST and ADD_PSYMBOL_ADDR_TO_LIST from
197 partial-stab.h to symfile.h. They aren't stab specific.
198 Change ADD_PSYMBOL_VT_TO_LIST to use memcpy rather than strncpy.
199
200 Tue Dec 24 11:38:08 1991 John Gilmore (gnu at cygnus.com)
201
202 * Makefile.in: Roll VERSION to 4.3.2.
203
204 Mon Dec 23 13:54:35 1991 Per Bothner (bothner at cygnus.com)
205
206 * m68k-opcode.h, mips-opcode.h, sparc-opcode.h: Deleted.
207 * m68k-pinsn.c, mips-pinsn.c, sparc-pinsn.c:
208 Include <opcode/FOO.h> instead of <FOO-opcode.h>.
209
210 * symtab.h, symtab.c, coffread.c, dwarfread.c, symmisc.c,
211 dbxread.c: The TYPE_CPLUS_SPECIFIC structure is now only
212 allocated when it is needed. Until it is needed, it points
213 to a shared statically allocated structure.
214
215 * buildsym.h, buildsym.c, dbxread.c: Remove the kludgy code
216 in read_ofile_symtab to recognize two initial N_SO stabs,
217 and let process_on_symbol handle it. This is cleaner, more
218 efficient, and lets mipsread.c share the same code.
219
220 * symfile.h, partial-stab.h: Move ADD_PSYMBOL_VT_TO_LIST
221 and related macros to here ...
222 * dbxread.c: ... from here.
223 * symmisc.c: Move the "overflow" handling from
224 ADD_PSYMBOL_VT_TO_LIST macro into new function extend_psymbol_list.
225 * dwarfread.c: Re-write add_psymbol_to_list to use
226 ADD_PSYMBOL_VT_TO_LIST macro.
227
228 * mipsread.c: Extend mipsread.c to handle stabs-style symbols
229 encapsulated in ecoff symbols. This enable full g++ debugging.
230 * partial-stab.h: Move the code for pre-scanning symbols
231 and building psymtabs to an include file, out from dbxread.c.
232 This way, the same code can also be used by mipsread.c.
233 * dbxread.c, buildsym.h: Various changes to allow some functions
234 to be used by mipsread.c (also some arguable stylistic changes).
235
236 * tm-mips.h: Define BLOCK_ADDRESS_ABSOLUTE, at least for now,
237 since mips-tfile puts relocatable addresses into LBRAC/RBRAC
238 stabs.
239
240 * mipsread.c: Replace code to handle ambiguous tag blocks.
241 Instead of allocating a TYPE_CODE_UNDEF, guess (by looking
242 at types and offsets) if a tag is a struct, union, or enum.
243 Still patch it later if we find out for sure.
244 * mipsread.c: In various ways, replace Forin's
245 ideo-syncratic code by code that fits better with the
246 rest of gdb, for both stabs-based and ecoff-based symtabs.
247 E.g. use end_psymtab; don't do extra passes over FDR table to
248 pre-partition global data; don't use external symbols to
249 create static/global symbols (just put them in the
250 misc_vector); use ADD_PSYMBOL_TO_LIST macro; don't
251 sort psymtabs or symtabs; use obstacks more.
252
253 * symtab.c, mipsread.c, dbxread.c, buildsym.c:
254 ANSIfy: Replace bcopy by memcpy, bzero by memset.
255
256 Sun Dec 22 19:31:04 1991 Fred Fish (fnf at cygnus.com)
257
258 * solib.c (locate_base): Fix uninitialized variable that was
259 causing return of random value to callee.
260
261 * config/mh-amix, config/mh-i386v4: Change to find alloca by
262 compiling and linking alloca.c, even when it is not strictly
263 required. Also arrange to link with -ltermlib rather than
264 -ltermcap.
265
266 * Makefile.in: Move TERMCAP definition to prior to inclusion
267 of host makefile fragments so it can be overridden.
268
269 Fri Dec 20 16:33:39 1991 John Gilmore (gnu at cygnus.com)
270
271 * xcoffread.c (read_symbol_lineno): Logic error in incrementing
272 symbol table entry number. (From Metin Ozisik.)
273
274 Fri Dec 20 11:36:38 1991 Fred Fish (fnf at cygnus.com)
275
276 * config/mh-i386v4: Change XM_CLIBS to "-lc /usr/ucblib/libucb.a"
277 so compiles with native compilers (without builtin alloca) can
278 pick up the version from the bsd emulation library. However, we
279 search the standard C library first so we don't pick up lots of
280 other broken stuff from libucb.a, that we *don't* want.
281
282 * configure.in, tm-amix.h, tm-i386v4.h, xm-amix.h, xm-i386v4.h:
283 Change svr4 references to sysv4.
284
285 * source.c: Move declaration of external function index to
286 front of file so it is in scope for all references.
287
288 * utils.c (error, fatal): Make definitions consistent with
289 defs.h declarations (declared as "volatile void").
290
291 Fri Dec 20 10:55:36 1991 John Gilmore (gnu at cygnus.com)
292
293 * rs6k-opcode.h: Bugfix sfe and stbrx. By Al Kossow.
294
295 Wed Dec 18 17:09:06 1991 Stu Grossman (grossman at cygnus.com)
296
297 * command.h, defs.h, eval.h, expression.h, remote-sa.sparc.c,
298 sparc-tdep.c, symtab.h, target.h, value.h, vx-share/ptrace.h,
299 vx-share/xdr_ptrace.h, vx-share/xdr_rdb.h: ANSIfy enums.
300
301 Mon Dec 16 12:31:46 1991 Fred Fish (fnf at cygnus.com)
302
303 * config/mt-amix, config/mt-i386v4: Add solib.o to TDEPFILES
304 for these SVR4 systems.
305
306 * symfile.c (symbol_file_add): When verbose is set, print
307 the names of files from which symbols are being loaded, as
308 when from_tty is true.
309
310 * solib.c: Completely reorganized (rewritten) to support
311 SVR4 shared libraries in a manner very close to the original
312 SunOS implementation. This support is expected to change and
313 become more general at some future time. The SVR4 version
314 does not yet work for attached processes, for example.
315
316 * dwarfread.c: Arrange in dwarf_build_psymtabs() for the
317 relocation address to be valid whether or not symbols are
318 being read from a shared library or an executable. Use the
319 relocation address recorded in the psymtab when reading
320 full symbol tables (in read_ofile_symtab). Ensure that the
321 relocated address ranges are recorded in partial symtabs.
322
323 * elfread.c: Add new function elf_interpreter() to return the
324 string from the ELF ".interp" section. This is the interpreter
325 that the kernel tries to run and feed the executable to.
326 Expand arguments to record_misc_function to include a type arg.
327 Modify elf_symtab_read() to supply the type arg, and to do symbol
328 relocations for symbols read in from shared libraries.
329
330 * procfs.c: Add new functions proc_base_address() and
331 proc_address_to_fd(), used by shared library support.
332
333 * tm-svr4.h: Add macros to support SVR4 shared libraries.
334 Definitions for SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK,
335 CLEAR_SOLIB, and DISABLE_UNSETTABLE_BREAK.
336
337 Fri Dec 13 20:11:26 1991 John Gilmore (gnu at cygnus.com)
338
339 * infrun.c, remote-eb.c, remote-nindy.c, remote-vx.c: Remove
340 unused START_INFERIOR_HOOK.
341
342 * remote-eb.c: Change timeout to 24 seconds (*10 fits in byte)
343 to account for slow loading from floppies.
344 (eb_create_inferior): New fn, from eb_start and
345 nindy_create_inferior.
346 (eb_close): Only use log_file if nonzero.
347 (eb_xfer_inferior_memory): If not writing, then read!
348 (eb_read_inferior_memory, eb_write_inferior_memory): Return length.
349 (eb_kill): A new no-op.
350 (eb_mourn_inferior): Remove breakpoints, then generically weep.
351
352 Fri Dec 13 16:09:23 1991 Fred Fish (fnf at cygnus.com)
353
354 * breakpoint.c, findvar.c, infrun.c, putenv.c, stack.c: Fix
355 miscellaneous comparisons of integer with NULL that elicit
356 compiler warnings about comparison of integer with pointer, when
357 NULL is ((void *) 0) rather than just a bare 0.
358
359 Wed Dec 11 13:02:58 1991 John Gilmore (gnu at cygnus.com)
360
361 * breakpoint.c (breakpoint_re_set_one): Disable each breakpoint
362 while we reset it, in case of problems. Print breakpoint number
363 in error messages.
364
365 * buildsym.c (read_struct_type): Avoid sun3 compiler bug with
366 foo[--n].
367
368 * source.c (find_source_lines): If getting file mod time fails,
369 don't warn.
370
371 * target.c (target_xfer_memory): If errno is set, return it,
372 rather than EIO.
373
374 Tue Dec 10 04:07:22 1991 K. Richard Pixley (rich at rtl.cygnus.com)
375
376 * Makefile.in: infodir belongs in datadir.
377
378 Sun Dec 8 21:13:33 1991 Michael Tiemann (tiemann at sphagnum.cygnus.com)
379
380 * symtab.h (struct fn_field): Add new fields `is_private',
381 `is_protected', `is_stub', making room by reducing the size of
382 `voffset'.
383 (struct fn_fieldlist): Delete the fields `private_fn_field_bits'
384 and `protected_fn_field_bits'.
385 (TYPE_FN_{PRIVATE,PROTECTED}_BITS): Deleted.
386 (SET_TYPE_FN_{PRIVATE,PROTECTED}): Deleted.
387 (TYPE_FN_{PRIVATE,PROTECTED}): Deleted.
388 (TYPE_FN_FIELD_{STUB,PRIVATE,PROTECTED}): New macros.
389 * valops.c, valprint.c, symtab.c: All callers updated.
390
391 * buildsym.c (read_struct_type): Delete the `visibility' field
392 from `struct next_fnfield', and rework code so that visibility
393 info is stored into the fn_field directly. Also, hacked to set
394 TYPE_FN_FIELD_STUB for both static and normal member functions.
395
396 Sat Dec 7 18:13:11 1991 Fred Fish (fnf at cygnus.com)
397
398 * i386-tdep.c: Fix a problem on i386 systems where buffered code
399 stream access was failing to take into account the minimum size
400 granularity of the code section. For now, the buffering is simply
401 disabled. There is a similar problem in the i386 disassember code
402 that has not yet been fixed (FIXME).
403
404 * gmalloc.c: Use macros to hide some of the ugly casting required
405 in the previously applied fix for pointers with high bits set.
406
407 Sat Dec 7 16:49:35 1991 John Gilmore (gnu at cygnus.com)
408
409 * Makefile.in: Roll VERSION to 4.3.1.
410
411 Sat Dec 7 04:12:35 1991 John Gilmore (gnu at cygnus.com)
412
413 GDB-4.3 release!
414
415 * Makefile.in: Roll VERSION to 4.3
416 * README, TODO, WHATS.NEW, depend: Update.
417
418 * inflow.c (terminal_inferior): Avoid error msg if attached.
419
420 * gmalloc.c: Fix bug that causes malloc & free to
421 fail on systems where pointers have the high bit set (0x800efcf0
422 for example). The problem is that the difference between two
423 pointers is a signed integer, so the computation
424
425 (char *) 0x800efcf0 - (char *) 0
426
427 yields a negative value. The sign of the result of the modulus
428 operator is machine dependent for negative operands, thus it is
429 possible for it to end up negative. From Fred Fish.
430
431 Sat Dec 7 00:00:15 1991 K. Richard Pixley (rich at rtl.cygnus.com)
432
433 * Makefile.in: install using INSTALL_PROGRAM and INSTALL_DATA.
434 added clean-info. added some standards.text support and made it
435 look like our other Makefiles.
436
437 * configure.in: mark this directory target dependent. configure
438 now runs entirely in objdir so make existence tests and
439 references against ${srcdir}.
440
441 Fri Dec 6 08:30:36 1991 Fred Fish (fnf at cygnus.com)
442
443 * dwarfread.c (enum_type, struct_type): Fixes for opaque and
444 anonymous enumerations, structures, and unions. Now passes all
445 the current gdb test suite tests.
446
447 Thu Dec 5 22:46:13 1991 K. Richard Pixley (rich at rtl.cygnus.com)
448
449 * Makefile.in: idestdir and ddestdir go away. Added copyrights
450 and shift gpl to v2. Added ChangeLog if it didn't exist. docdir
451 and mandir now keyed off datadir by default.
452
453 Thu Dec 5 21:53:21 1991 John Gilmore (gnu at cygnus.com)
454
455 * symtab.c (decode_line_1): If SKIP_PROLOGUE leaves us in
456 mid-line, be more careful about possibly advancing to the next line.
457
458 Thu Dec 5 18:59:51 1991 Michael Tiemann (tiemann at cygnus.com)
459
460 * cplus-dem.c (cplus_demangle): Call `string_need' when
461 null-terminating a partially-computed string.
462
463 Thu Dec 5 18:19:43 1991 Fred Fish (fnf at cygnus.com)
464
465 * dwarfread.c (enum_type): Build a correct TYPE_NAME, add a
466 symbol to the symbol table for each member of the enum.
467
468 * dwarfread.c (struct_type): Build a correct TYPE_NAME.
469
470 * dwarfread.c (add_enum_psymbol): New function to extract enum
471 member names and add them to the partial symbol table while
472 building partial symbol tables.
473
474 Thu Dec 5 17:31:05 1991 John Gilmore (gnu at cygnus.com)
475
476 * symtab.c (check_stub_method): Must allocate two extra argument
477 slots (one for `this', one for arglist terminator).
478
479 Thu Dec 5 10:51:05 1991 Fred Fish (fnf at cygnus.com)
480
481 * inflow.c (child_terminal_info): Supply missing '"' character.
482
483 * buildsym.c (define_symbol): Supply missing parenthesis.
484
485 Thu Dec 5 03:34:21 1991 John Gilmore (gnu at cygnus.com)
486
487 * coredep.c (fetch_core_registers): Fencepost error. Fixed by
488 Jay Lepreau <lepreau@cs.utah.edu>.
489
490 * inflow.c: Remember whether GDB has a terminal. Avoid switching
491 terminals back and forth if we don't have one.
492
493 * c-exp.y (parse_number): Zero is not an unsigned int constant!
494 * dbxread.c (read_dbx_symtab): Enum type numbers can be in (1,2) form.
495
496 Improve type parsing.
497 * buildsym.c (define_symbol, read_range_type): Add
498 long_kludge_name that passes the names of range types being
499 defined, down to where we must choose between 'int' and 'long'
500 variants. This fails on Sun C anyway since the compiler itself is
501 confused between int and long.
502 (read_array_type, cleanup_undefined_types): Correct the size of
503 array type whose element-type size isn't immediately known.
504
505 Early preparation to blow away many builtin types, building them
506 on the fly as needed. Don't compare types to builtin types with
507 ==; examine the relevant fields instead.
508 * coffread.c (process_coff_symbol: C_ARG, C_REGPARM): Avoid ==.
509 * buildsym.c (define_symbol, case 'p'): Avoid ==.
510 * valops.c (value_arg_coerce): Avoid ==. Don't assume host and
511 target types are the same.
512 * valprint.c (val_print): I finally understand arrays, remove FIXME.
513
514 * symmisc.c (printpsyms_command): Reduce redundancy, and put all
515 addresses in GDB itself into parens for easy cleanup and diffing.
516
517 Wed Dec 4 21:05:30 1991 Fred Fish (fnf at cygnus.com)
518
519 * dwarfread (enum_type): Arrange for the order of enumeration
520 members to match the source code order; not the order in the
521 Dwarf information, which is explicitly reverse order.
522
523 Wed Dec 4 18:24:39 1991 John Gilmore (gnu at cygnus.com)
524
525 * main.c (input_from_terminal_p): Check whether GDB has a
526 terminal at all.
527 (initialize_main): Revise doc for `set editing'.
528
529 Wed Dec 4 15:36:39 1991 Fred Fish (fnf at cygnus.com)
530
531 * dwarfread.c (struct_type): Handle structures and unions which
532 contain DIE's other than just member dies.
533
534 Wed Dec 4 01:59:05 1991 John Gilmore (gnu at cygnus.com)
535
536 * symfile.c (reread_symbols): Avoid kludging mtime_set, now that
537 BFD is fixed.
538
539 Tue Dec 3 17:24:57 1991 John Gilmore (gnu at cygnus.com)
540
541 * Makefile.in: VERSION 4.2.96.
542
543 * main.c (initialize_main): Revise command descriptions.
544 * command.c (show_user): `info user' -> `show user'.
545 * symtab.c (_initialize_symtab): Typo in `info types' desc.
546
547 * coffread.c (coff_symfile_read): Avoid select_source_symtab,
548 since it is not needed and can cause errors when examining ".o"s.
549 (read_coff_symtab, decode_base_type): Use complain, not printf.
550 Print symbol name, not its number.
551 Remove "#if defined(clipper) #define BELIEVE_PCC_PROMOTION", which
552 someday should go in a clipper target config file.
553
554 * symfile.c (compact_misc_function_vector): Handle empty vector.
555 (complain, clear_complaints, syms_from_objfile): Fix complaint
556 formatting.
557 * xcoffexec.c: Change syms_from_objfile caller.
558
559 * sparc-xdep.c: Force tm-file as tm-sparc.h, to make it compile
560 when configured for cross debugging. FIXME, this needs a more
561 general solution.
562
563 Mon Dec 2 11:04:05 1991 Per Bothner (bothner at cygnus.com)
564
565 * mips-tdep.c (init_extra_frame_info): Float register
566 'i' has gdb-internal number 'FP0+i', not '32+i'.
567 * mipsread.c (new_symbol): Translate g++ special
568 symbol "$t" to "this".
569
570 Sat Nov 30 21:29:55 1991 Steve Chamberlain (sac at cygnus.com)
571 Changes due to include file renaming:
572
573 * xcoffread.c: internalcoff.h ->coff/internal.c,
574 coff-rs6000.h ->coff/rs6000.h
575 * mipsread.c: coff-mips.h ->coff/mips.h
576 * elfread.c: elf-common.h ->elf/common.h
577 elf-external.h ->elf/external.h,
578 elf-internal.h ->elf/internal.h
579 * dwarfread.c dwarf.h ->elf/dwarf.h
580 * dbxread.c: aout64.h ->aout/aout64.h
581 stab.gnu.h ->aout/stab_gnu.h
582
583 * coffread.c: internalcoff.h ->coff/internal.h
584 * buildsym.c: stab.gnu.h ->aout/stab_gnu.h
585 * depend Updated to take the above into account.
586
587 Fri Nov 29 16:59:25 1991 Fred Fish (fnf at cygnus.com)
588
589 * configure.in: Add SVR4 i386 configurations.
590
591 * config/mh-i386v4, config/mt-i386v4, tm-i386v4.h, xm-i386v4.h:
592 New files for i386/SVR4.
593
594 * tm-i386v.h: Allow START_INFERIOR_TRAPS_EXPECTED and
595 DECR_PC_AFTER_BREAK to be predefined by files including
596 tm-i386v.h.
597
598 * i386-tdep.c: Add supply_gregset(), fill_gregset(),
599 supply_fpregset(), and fill_fpregset() functions, which are
600 target dependent support functions for the SVR4 /proc register
601 interface.
602
603 * dwarfread.c (enum_type, struct_type): Expand recognized
604 compiler generated tags to include symbols beginning with '.' as
605 well as '~'.
606
607 * symtab.c (sources_info): Change simple printf of error message
608 to call to error().
609
610 Fri Nov 29 16:04:21 1991 Roland H. Pesch (pesch at cygnus.com)
611
612 * doc/gdb.texinfo: remove leading comments that survived M4 but
613 described its role in the doc; add one more font to colophon;
614 strengthen disclaimer about unsupported configs.
615
616 Wed Nov 27 01:23:41 1991 John Gilmore (gnu at cygnus.com)
617
618 Fix bugs in C++ debugging.
619
620 * symtab.h: target_type is not used in record types.
621 Eliminate TYPE_MAIN_VARIANT and TYPE_NEXT_VARIANT. Eliminate
622 lookup_method_type. Add TYPE_TYPE_SPECIFIC macro.
623
624 * symtab.c (lookup_member_type): Don't chain them up, just
625 allocate one in symbol_obstack when we need one.
626 (allocate_stub_method): Build stub in symbol_obstack.
627 (check_stub_method): Move here from values.c. Don't deallocate
628 stub; overwrite it.
629 (lookup_method_type): Gone now.
630
631 * buildsym.c: Handle g++ v1 stabs a little bit better.
632 Change some C++ parsing error()s to complain()ts.
633 * buildsym.c, findvar.c, printcmd.c, symtab.c: Make unions and
634 structs have the same representation and work the same as far as
635 C++ is concerned.
636 * buildsym.c, symtab.c, values.c: Remove all references to
637 TYPE_MAIN_VARIANT and TYPE_NEXT_VARIANT.
638
639 * valops.c: Improve comments and indentation. Only call
640 check_stub_method when the stub flag is on.
641 * valprint.c: Fix or mark minor bugs and unportabilities.
642
643 * coffread.c (anonymous unions): Allocate a cplus structure.
644
645 * mipsread.c: Eliminate "template" types. Build new, real
646 types whenever we need them. Allocate cplus structures as needed.
647 Bulletproof the type parsing a bit more. Mark storage leaks.
648 (parse_type): Copy TYPE_TYPE_SPECIFIC when copying a real type
649 on top of a partial type.
650
651 Fri Nov 22 16:39:57 1991 John Gilmore (gnu at cygnus.com)
652
653 * inflow.c (terminal_inferior): Check the results of ioctl's, and
654 print a message if any of them fail.
655 (terminal_ours_1): Store result of ioctl's for debugging, but
656 don't print (the terminal isn't ours...).
657
658 * tm-tahoe.h (FRAME_ARGS_ADDRESS): No need to offset from frame
659 pointer.
660
661 * m2-exp.y (MAX, MIN): Rename to MAX_FUNC, MIN_FUNC to avoid
662 conflicts with system header files.
663
664 Fri Nov 22 08:27:40 1991 John Gilmore (gnu at cygnus.com)
665
666 * Roll VERSION to 4.2.95.
667
668 * buildsym.c, coredep.c, mem-break.c, xcoffread.c: Put <stdio.h>
669 first, before defs.h.
670 * config/mh-i386sco: Override compiler to gcc, print warning.
671 * configure.in: Handle i386-none-aout rather than i386-aout-none.
672 * infptrace.c, language.h, utils.c: Lint.
673 * m2-exp.y: #undef MAX and MIN in case system includes set them.
674 * xm-tahoe.h: Set HOST_BYTE_ORDER. Include system versions of
675 {BIG,LITTLE}_ENDIAN and the INT_MAX family first, to avoid
676 redefinition warnings.
677 * defs.h: Reorder things so that the xm-file gets first crack
678 at #define's, followed by defs.h and then the tm-file.
679 * Makefile.in: Remove spaces after 'ignore exit code' - flags.
680 Late-model BSD 'make's don't cope with them.
681
682 Thu Nov 21 23:48:56 1991 John Gilmore (gnu at cygnus.com)
683
684 * Makefile.in: Roll new files into various lists.
685
686 Thu Nov 21 18:26:11 1991 Fred Fish (fnf at cygnus.com)
687
688 * dwarfread.c (struct_type): Must initialize the c++ specific
689 portion of union types as well as struct types, since gdb attempts
690 to reference the c++ specific info for both types.
691
692 Thu Nov 21 10:23:52 1991 John Gilmore (gnu at cygnus.com)
693
694 * Makefile.in: Roll VERSION to 4.2.90.
695
696 * defs.h: Incorporate param.h into defs.h. All users changed.
697 * param-no-tm.h: Change users to define TM_FILE_OVERRIDE instead.
698 * param.h, param-no-tm.h: Removed.
699 * Update copyrights in all changed files.
700 * dbxread.c, dwarfread.c, inflow.c, infrun.c, m2-exp.y, putenv.c,
701 solib.c, symtab.h, tm-umax.h, valprint.c: Lint.
702 * tm-convex.h, tm-hp300hpux.h, tm-merlin.h, tm-sparc.h,
703 xm-merlin.h: Avoid host include files in target descriptions.
704 * getpagesize.h: Removed, libiberty copes now.
705 * Makefile.in: Remove getpagesize.h, param.h, param-no-tm.h.
706
707 * exec.c (exec_files_info): If `verbose' is set, show file offset
708 as well.
709
710 * main.c: Use getcwd rather than getwd.
711 * standalone.c: Fake getcwd rather than getwd.
712 * xm-*.h: Remove fake values of MAXPATHLEN.
713
714 * xcoffexec.c: Add /* */ to #if 0'd thing to help ANSI.
715
716 Wed Nov 20 18:35:56 1991 John Gilmore (gnu at cygnus.com)
717
718 * Remove gdb/hp-include. Support for HP a.out oddities should be
719 in BFD, not in GDB. Move gdb/hp-include/a.out.h to include/a.out.hp.h.
720
721 * infptrace.c, tm-sun386.h: Cashier <a.out.gnu.h>, remove refs.
722
723 * configure.in, xconfig, tconfig, Makefile.in, doc/gdbint.texinfo:
724 Makefile fragments for various hosts and targets now come from
725 gdb/config/mh-* and gdb/config/mt-*. This is for consistency with
726 other config setups.
727
728 * rs6000-pinsn.c, rs6k-opcode.h: Clean up.
729 * rs6k-opcode.def: Delete.
730
731 Wed Nov 20 05:04:40 1991 Fred Fish (fnf at cygnus.com)
732
733 * dwarfread.c: Recognize obsolete form of AT_element_list
734 attribute still used by at least one AT&T compiler, and possibly
735 more.
736
737 Tue Nov 19 07:53:55 1991 Fred Fish (fnf at cygnus.com)
738
739 * dwarfread.c (enum_type, struct_type): Ignore names invented by
740 helpful compilers for anonymous structs, unions, and enums.
741
742 * c-exp.y, m2-exp.y: Add defines for yymaxdepth, yy_yys, and
743 yy_yyv, so multiple parsers produced by SVR4 versions of yacc
744 can coexist in the same executable without collision.
745
746 * symtab.h: Add declaration for lookup_template_type() to kill
747 compiler warnings about conversions from int to pointer.
748
749 Mon Nov 18 17:45:18 1991 Fred Fish (fnf at cygnus.com)
750
751 * procfs.c: Move inclusion of defs.h to before param.h, as in
752 all the other source files that include both. This is required
753 to supply some typedefs that are used in files included by param.h.
754
755 * m68k-tdep.c (m68k_skip_prologue): Add generic m68k support for
756 skipping function prologues, ala the other cpu families (i386,
757 mips, m88k, etc). Add the ability to skip movm and fmovm
758 instructions in the prologues. Still needs support for profile
759 (-p compiled) prologue sequences (FIXME).
760
761 * tm-68k.h: Change SKIP_PROLOGUE macro to use the new generic
762 m68k prologue skipping function by default.
763
764 * tm-altos.h, tm-isi.h: Continue to use the old definition of
765 SKIP_PROLOGUE.
766
767 Mon Nov 18 15:12:45 1991 John Gilmore (gnu at cygnus.com)
768
769 * Makefile.in: Remove tdesc stuff, and extra blanks before colons.
770 * blockframe.c: Remove tdesc-related code. Default
771 FRAME_CHAIN_COMBINE.
772 * infrun.c: Remove tdesc-related code.
773 * m88k-tdep.c (frame_chain_combine, init_frame_pc): Remove copies
774 of defaultable things.
775 * tm-m88k.h: New file, common to all Moto 88k target configs.
776 Derived from tm-delta88.h.
777 * tm-delta88.h: Use it.
778 * xm-m88k.h: Common file for 88K hosts. Remove obsolete stuff.
779 * xm-delta88.h: Use it.
780 * tm-*.h: Remove FRAME_CHAIN_COMBINE macros, since all are
781 default.
782 * coffread.c: Remove tdesc stuff.
783 * tconfig/delta88, tconfig/m88k: Remove tdesc stuff.
784 * xconfig/m88k: Rename tm-88k.h to tm-m88k.h.
785
786 Mon Nov 18 13:51:37 1991 Per Bothner (bothner at cygnus.com)
787
788 * source.c (open_source_file): If openp fails, try again
789 using just the base (non-directory) part of the filename.
790 This solves various annoying problems, such as when the
791 source was compiled with an absolute pathname - and the
792 source files have moved. Or if the source was compiled
793 using a relative pathname, it can be more convenient
794 to just specific the source directory to the dir command.
795
796 Mon Nov 18 00:04:41 1991 Fred Fish (fnf at cygnus.com)
797
798 * cplus-dem.c (munge_function_name): Add missing third arg to
799 instance of call to do_type().
800
801 * dwarfread.c: Changes to match new dwarf.h. Remove
802 AT_deriv_list, AT_loclist, AT_incomplete, AT_const_data,
803 and AT_is_external.
804
805 Sun Nov 17 16:20:53 1991 Michael Tiemann (tiemann at rtl.cygnus.com)
806
807 * symtab.h (struct type): Moved C++-specific fields into new type
808 `struct cplus_struct_type'. Now takes 10% less memory. Many
809 macros changed.
810 * symtab.c (init_type): Don't set fields belonging to
811 TYPE_CPLUS_SPECIFIC unless TYPE is TYPE_CODE_STRUCT.
812 * buildsym.c (read_type): Allocate TYPE_CPLUS_SPECIFIC for
813 TYPE_CODE_STRUCT.
814 (read_struct_type): Ditto. Also, add comments about how we can
815 deduce TYPE_VPTR_FIELDNO from inheritance info and fieldname info.
816 * coffread.c (decode_base_type): Allocate TYPE_CPLUS_SPECIFIC for
817 TYPE_CODE_STRUCT.
818 (read_struct_type): Ditto.
819 * dwarfread.c (struct_type): Ditto.
820
821 * symtab.c (read_range_type): Don't set TYPE_MAIN_VARIANT.
822 (lookup_pointer_type): Don't use or set TYPE_MAIN_VARIANT.
823 (lookup_reference_type): Ditto.
824
825 * cplus-dem.c: Many changes made to handle decoding of
826 ANSI-mangled names.
827 * symtab.c (gdb_mangle_name): Mangle/demangle ANSI-mangled names
828 as well.
829
830 Fri Nov 15 17:57:59 1991 Stu Grossman (grossman at cygnus.com)
831
832 * mipsread.c (parse_partial_symbols): patch to keep DEC C
833 compiler from making gdb bomb out. Thanks to Ed Santiago!
834
835 Thu Nov 14 19:27:30 1991 Fred Fish (fnf at cygnus.com)
836
837 * symfile.c: Add function compact_misc_function_vector() to
838 remove duplicate misc function vector entries. See comments
839 in source for why this is necessary/desirable.
840
841 * dwarfread.c: Add misc function type parameter to internal
842 record_misc_function(). Remove calls to init_misc_bunches()
843 and condense_misc_bunches(), these are now done in elfread.c.
844
845 * elfread.c: Add support for reading bfd canonical symbol tables
846 and generating misc function vector entries for global and
847 absolute symbols. Do calls to init_misc_bunches() and
848 condense_misc_bunches() where they will enclose all calls to
849 record_misc_function(), including those in dwarfread.c.
850
851 Thu Nov 14 17:02:11 1991 Roland H. Pesch (pesch at cygnus.com)
852
853 * doc/Makefile.in: new targets gdb.me, gdb.ms, gdb.mm
854 (roffable documentation).
855 * doc/gdb.texinfo: embedded hints (as comments) for better
856 texi2roff conversion.
857
858 Thu Nov 14 13:18:25 1991 John Gilmore (gnu at cygnus.com)
859
860 * m88k-tdep.c (examine_prologue): Deal with OR instructions
861 that shuffle parameters into other regs.
862 * symtab.c (decode_line_1): Fix bug introduced in Per's change
863 of Nov 12th.
864
865 Wed Nov 13 19:51:11 1991 Steve Chamberlain (sac at cygnus.com)
866
867 * Makefile.in, xconfig/delta88 made it install a sysV manual page;
868 gdb.z into the right place.
869
870 Wed Nov 13 16:45:13 1991 John Gilmore (gnu at cygnus.com)
871
872 Motorola 88000 port without tears, I mean without tdescs.
873
874 * m88k-tdep.c: Blow away all tdesc stuff.
875 Provide functions for all the frame-related macros in
876 tm-delta88.h. Adopt i960-style EXTRA_FRAME_INFO.
877 (examine_prologue, frame_find_saved_regs, skip_prologue): borrow
878 from i960-tdep.c and adapt to the function prologues on the 88k.
879 (read_next_frame_reg): Borrow from mips-tdep.c.
880 FIXME: frame_locals_address should go away.
881
882 * tm-delta88.h: Dump all the tdesc stuff.
883 Macros for all frame-related stuff call fns of same name.
884 Remove duplicated definitions. FP_REGNUM becomes same as
885 SP_REGNUM.
886
887 * xm-88k.h: Eliminate lots of library dependencies, now handled
888 in libiberty. Eliminate KDB nonsupport.
889
890 * doc/gdbint.texinfo: Add rudiments on frames. FIXME, add more.
891
892
893 * stack.c (frame_info): Mark frameless functions.
894 Print locals address (FIXME, remove if same).
895 * blockframe.c: Comment changes, FIXME after.
896 * coffread.c: Even without TDESC, need to zap "@" symbols.
897 Don't register for wierd format names; change the names in BFD.
898
899 * alloca.c, language.c, tdesc.c: Lint.
900 * tdesc.c, tdesc-lib: FIXME: remove these.
901
902 Tue Nov 12 19:30:22 1991 John Gilmore (gnu at cygnus.com)
903
904 * Makefile.in: Add tdesc library support. Fixups to lint,
905 copying.c rules.
906
907 Tue Nov 12 13:43:26 1991 Per Bothner (bothner at cygnus.com)
908
909 * symtab.c (decode_line_1): Remove spurious call to operator_chars.
910
911 Allow setting breakpoints on C++ destructors.
912 * valops.c (destructor_name_p): Don't check TYPE_HAS_DESTRUCTOR,
913 since it lies. Rely on callers to catch missing destructors.
914 * symtab.c (decode_line_1): For example (see above), here.
915 * buildsym.c, symtab.h: Remove TYPE_FLAGS_HAS{CON,DE}STRUCTOR
916 flags since they are no longer used.
917
918 Fixes to support C++ methods with functional parameters.
919 * c-exp.y (func_mod rule): Allow (and ignore) list of parameter
920 types in a function type.
921 * eval.c (parse_and_eval_type), value.h: New function,
922 parse_and_eval_type, is based on old code from check_stub_method.
923 But don't actually evaluate the cast, since that calls
924 value_cast(), whcih may fail. Just extract the type
925 from the parsed expression.
926 * values.c (check_stub_method): While looping through the
927 arguments, adjust depth *after* parameter has been handled.
928 Replace call and setup of parse_and_eval with new function
929 parse_and_eval_type.
930
931 Tue Nov 12 09:40:07 1991 Fred Fish (fnf at cygnus.com)
932
933 * utils.c, rem-multi.shar: Remove fixed arg count version of
934 concat().
935
936 * altos-xdep.c, arm-xdep.c, coffread.c, command.c, convex-xdep.c,
937 core.c, dwarfread.c, gould-xdep.c, infcmd.c, language.c,
938 m88k-xdep.c, main.c, printcmd.c, pyr-xdep.c, source.c,
939 sun386-xdep.c, symm-xdep.c, umax-xdep.c, values.c, xcoffread.c:
940 Change all instances of use of fixed args concat() to variable
941 args concat() now located in libiberty.
942
943 Tue Nov 12 07:23:46 1991 John Gilmore (gnu at cygnus.com)
944
945 * Makefile.in: Add xcoffread.c, xcoffexec.c.
946 * xcoffread.c: New file for handling AIX mangled-coff files.
947 * xconfig/rs6000, tconfig/rs6000: New files.
948 * buildsym.c: Add hooks for xcoffread.c.
949 * rs6000-pinsn.c, rs6000-tdep.c, rs6000-xdep.c, tm-rs6000.h,
950 xm-rs6000.h, rs6k-opcode.def, rs6k-opcode.h: New files.
951 * xcoffexec.c: New file for handling AIX shared libraries.
952
953 Mon Nov 11 19:14:31 1991 Fred Fish (fnf at cygnus.com)
954
955 * core.c: Minor rewording of message to user containing name of
956 (and possibly arguments to) the program that generated a core
957 file.
958
959 * elfread.c: Remove the register_addr() stub now that it is no
960 longer needed.
961
962 * procfs.c: Move misplaced #endif for ATTACH_DETACH. Add new
963 fetch_core_registers() function for core file support.
964
965 Sat Nov 9 13:37:57 1991 Fred Fish (fnf at cygnus.com)
966
967 * dwarfread.c (dwarf_psymtab_to_symtab): Remove leftover call
968 to do_cleanups() which resulted from a previous change.
969
970 * elfread.c: Re-enable compilation of register_addr() stub
971 whenever it is not supplied by coredep.c
972
973 Sat Nov 9 00:40:32 1991 John Gilmore (gnu at cygnus.com)
974
975 Add tracking of object files (that contain symbols) to gdb.
976 This includes a "struct objfile" that owns symtabs and psymtabs
977 that were read in from that binary file.
978
979 * symfile.h: Add struct objfile. Add pointer to the objfile
980 into the struct sym_fns.
981 Replace global `symfile' and `symfile_mtime' with
982 `symfile_objfile'. Add global object_files chain.
983
984 * symfile.c: Move param.h above symtab.h.
985 (sort_misc_function_vector): Add.
986 (syms_from_objfile): Was syms_from_bfd.
987 (symfile_open): Now returns objfile.
988 (allocate_objfile): New.
989 (free_objfile): New, replacing free_all_.*symtabs.
990 (symfile_init): Takes objfile arg, puts it in sym_fns result.
991 (reread_symbols): Searches whole chain of objfiles.
992 (allocate_symtab): Takes objfile as new parameter, chains them.
993 Handle INIT_EXTRA_SYMTAB_INFO.
994 (free_all_psymtabs, free_all_symtabs): Move here from symmisc.c.
995
996 * dbxread.c: Make more errors into complaints.
997 (push_subfile, pop_subfile): Move to buildsym.c.
998 (dbx_symfile_read, dbx_symfile_init, fill_symbuf, read_dbx_symtab,
999 start_psymtab, psymtab_to_symtab_1, read_ofile_symtab,
1000 dbx_psymtab_to_symtab, ): Use bfd ops, don't use file descriptor.
1001 Pass objfile. Change callers.
1002 (fill_symbuf, SWAP_SYMBOL): Take bfd as arg.
1003 (read_dbx_symtab): Just wipe out new symbols, not all, on error.
1004 (end_psymtab): Blow away psymtab if empty.
1005 (process_symbol_pair): Swallow into read_ofile_symtab.
1006 (process_one_symbol): Use push_context and pop_context.
1007 (virtual_context): Delete #if 0'd obsolete stuff.
1008
1009 * buildsym.c (end_symtab): Pass objfile.
1010 (dbx_lookup_type): Handle null typevector.
1011 (dbx_alloc_type): Check file number, not sym number, for -1.
1012 (find_symbol_in_list): Add for xcoffread.
1013 (start_symtab): Default typevector is empty. Keep reusing same
1014 context_stack.
1015 (end_symtab): Take objfile argument and pass it to
1016 allocate_symtab. Don't make a symtab if no blocks or symbols.
1017 Handle empty typevector.
1018 (push_context): New function for context stack nesting.
1019 (read_type): Mark FIXME where we need to reintroduce type smashing.
1020
1021 * buildsym.h (pop_context): Macro, paired with push_context.
1022 (subfile_stack): Move here from dbxread.c.
1023
1024 * coffread.c (end_symtab, read_coff_symtab): Take and use objfile arg.
1025 (read_coff_symtab): Cleanup by freeing objfile, not all symtabs.
1026
1027 * mipsread.c (read_mips_symtab, parse_partial_symbols, parse_fdr,
1028 new_psymtab, new_symtab): Take and use objfile arg.
1029
1030 * dwarfread.c (scan_compilation_units, start_psymtab,
1031 process_dies, end_symtab, dwarf_build_psymtabs,
1032 read_lexical_block_scope, read_func_scope, read_file_scope): Take
1033 and use objfile argument.
1034 (psymtab_to_symtab_1, read_ofile_symtab): Don't take or use file
1035 descriptor. Use BFD internal functions instead.
1036 (end_symtab): Call global allocate_symtab.
1037
1038 * elfread.c, target.c: Minor changes to accommodate objfiles.
1039 * symtab.h: partial_symbol_table has no symfile_name member now.
1040 (fn_fieldlists voffset): avoid non-int bitfield.
1041 (struct symtab): Add objfile * and objfile_chain * of symtabs.
1042 (struct partial_symtab): Add objfile * and objfile_chain * of
1043 psymtabs. Remove symfile_name.
1044
1045 * symmisc.c: Lose free_all_symtabs, free_all_psymtabs.
1046 (printsyms_command): Rename from print_symtabs. Add selective
1047 listing if 2nd argument given. Print objfile info.
1048 (printpsyms_command): Rename from print_partial_symtabs. Ditto all.
1049 (printobjfiles_command): New; prints objfiles lists, and checks
1050 for consistency of symtab, psymtab, and objfile lists.
1051
1052 * symfile.h, symfile.c, symtab.h: Lint
1053
1054 Fri Nov 8 23:38:48 1991 John Gilmore (gnu at cygnus.com)
1055
1056 * command.c: Include param.h.
1057 * defs.h (warning_setup, warning): Declare.
1058 * expprint.c (print_subexp, UNOP_MEMVAL case): Lint.
1059 * inflow.c (new_tty): Use USE_O_NOCTTY #define.
1060 * language.c, printcmd.c (print_scalar_formatted), signame.c,
1061 stack.c: lint.
1062
1063 Thu Nov 7 18:26:15 1991 Steve Chamberlain (sac at rtl.cygnus.com)
1064
1065 * Makefile.in: link with libiberty after libreadline, since
1066 readline might want something in libiberty.
1067 * m88k-xdep.c: Fixed the register offsets in the ptrace_user
1068 struct for BCS 88k machines.
1069 * xm-m88k.h: don't define USIZE if already defined.
1070 * configure.in: Added delta88 target.
1071
1072 Thu Nov 7 04:51:19 1991 John Gilmore (gnu at cygnus.com)
1073
1074 * am29k-pinsn.c, am29k-opcode.h: Fix decoding of mtacc, dmac, fmac.
1075
1076 * tm-*.h: Remove READ_DBX_FORMAT, COFF_FORMAT, and
1077 READ_MIPS_FORMAT, which have been unused since BFD. Still
1078 remaining is COFF_NO_LONG_FILE_NAMES.
1079 * tm-sun3.h, tm-altos.h: Remove detritus accidentally left from
1080 function calling code moved to m68k-tdep.c.
1081
1082 Wed Nov 6 17:21:59 1991 John Gilmore (gnu at cygnus.com)
1083
1084 * coffread.c: Eliminate c_nsyms in favor of c_naux.
1085 Complain if no auxents on .bf and .ef FCN symbols, and assume
1086 lots of line numbers.
1087 (init_linenos, enter_linenos): Use a sentinel at the end of the
1088 read-in linenos, to make for a fast, safe loop-end test.
1089
1090 Wed Nov 6 02:54:08 1991 Steve Chamberlain (sac at cygnus.com)
1091
1092 * coffread.c (read_coff_symtab): coffread used to rely on the
1093 x_sym.x_misc.x_lnsz.x_lnno field giving the # of linnos in a
1094 function. Two of the formats I'm using (29k and 88k) don't seem to
1095 set it. Ths patch to fcn_last_line and (enter_linenos) is an
1096 attempt to use the actual size of the linno table in the file to set
1097 the number of linenos to process.
1098
1099 Tue Nov 5 22:47:46 1991 Steve Chamberlain (sac at cygnus.com)
1100
1101 * Makefile.in: put a - infront of the mv y.tab.c c-exp.tab.c and
1102 mv y.tab.c m2-exp.tab.c, so that if bison is used, and the files
1103 are created in place, so the mv fails, then the make continues.
1104
1105 Tue Nov 5 16:47:47 1991 Per Bothner (bothner at cygnus.com)
1106
1107 Add C++ as a separate language.
1108 * defs.h (enum language): Add language_cplus.
1109 * dwarfread.c (end_symtab): Support language_cplus.
1110 * c-exp.y: Add new struct language_defn cplus_language_defn.
1111 Don't set c to be the default language (see main.c).
1112 * c-exp.y (yylex): Only look for field of this if
1113 language is C++. (First difference from C!)
1114 * language.c: Add case branches for C++ (currently, all
1115 the same as C). Also, add c++ to "usage" note for "set lang".
1116 * valprint.c (typedef_print). Add case branches for C++.
1117 * main.c (main): New way to set initial language: Look at
1118 file extension of psymtab containing main(). (Same as we
1119 do for symtabs, but avoid loading the symtab yet.)
1120 * symtab.c: New routine find_main_psymtab(), used by main()
1121 to set initial language.
1122 * symfile.c (allocate_symtab): Move code for mapping file
1123 extensions-> languages to new deduce_language_from_filename().
1124
1125 Fix a C++ problem when looking for methods in super-classes.
1126 There was confusion between base and derived types.
1127 * valops.c (value_fn_field): Change function interface.
1128 * values.c: Use new value_fn_field interface.
1129
1130 Mon Nov 4 10:49:33 1991 Per Bothner (bothner at cygnus.com)
1131
1132 * infrun.c: Fixed typo in comment.
1133 * utils.c: All the v*fprintf emulation is now in libiberty,
1134 so we can get rid of some junk.
1135 * xm-sun3os4.h, xm-sun4os4.h, xconfig/decstation, xconfig/i386sco,
1136 xconfig/sun3os4, xconfig/sun4os4: Don`t need HAVE_STRSTR any more.
1137 * m68k-pinsn.c (print_insn_arg): Support BB/BW/BL
1138 type operands, as used by branch instructions.
1139 * gmalloc.c: Fix prototype of memcpy.
1140 * elfread.c: Comment out register_addr, since it conflicts
1141 with the one in coredep.c.
1142 * buildsym.h: Remove extern declarations of two functions
1143 that are really static in buildsym.c.
1144 * tm-mips.h: Add symbolic names for more registers.
1145 * mips-xdep.c (store_inferior_registers): Use new register names.
1146 * xm-mips.h: Simplify REGISTER_U_ADDR, since it is now
1147 only used for core files, not ptrace. Therefore,
1148 the KERNEL_U_ADDR hack is no longer needed.
1149 The mapping to ptrace number is now in in mips-xdep.c.
1150 * mips-xdep.c: Define REGISTER_PTRACE_ADDR (using the
1151 mapping from the old REGISTER_U_ADDR), and use it
1152 in {fetch,store}_inferior_registers.
1153 * mipsread.c: Rename #include ecoff.h to new name coff-mips.h.
1154 * mips-tdep.c (mips_push_dummy_frame, mips_pop_frame):
1155 Save/restore FP regs correctly (?).
1156 * dbxread.c: Remove duplicate define_symbol and type_synonym_name
1157 (these had been previously moved to buildsym.c).
1158 Hence, define_symbol becomes extern instead of static.
1159 * buildsym.c (read_struct_type): Comment out bogus handling
1160 of C++ operator methods. Minor hacking of reading of class
1161 contexts. Make define_symbol non-static, so dbxread.c can call it.
1162
1163 Fri Nov 1 11:05:47 1991 John Gilmore (gnu at cygnus.com)
1164
1165 * mipsread.c (read_mips_symtab, read_the_mips_symtab): Use real
1166 filename with error messages.
1167 * stack.c (frame_select_command): Rename to select_frame_command
1168 to avoid "fr" and "fra" having nonunique completions.
1169 * symfile.c (sort_symtab_syms): Ignore sort of zero symtab *.
1170 (symfile_init): Print file format name when unable to handle it.
1171 (free_named_symtabs): Use BLOCKVECTOR rather than obsolete BLOCKLIST.
1172 * symmisc.c (free_symtab): Only free linetable if nonzero.
1173 * symtab.h: Remove obsolete BLOCKLIST macros.
1174
1175 Thu Oct 31 18:12:43 1991 Stu Grossman (grossman at cygnus.com)
1176
1177 * infrun.c (wait_for_inferior): another stepi/nexti fix. Ensure
1178 that stop_step is 1 at bottom of main loop. I don't know why this
1179 needs to be done, but it helps me sleep better at night.
1180
1181 Sun Oct 27 18:18:39 1991 Stu Grossman (grossman at cygnus.com)
1182
1183 * main.c (initialize_history): Read history after reading all
1184 init files.
1185
1186 Sun Oct 27 14:09:25 1991 John Gilmore (gnu at cygnus.com)
1187
1188 * buildsym.c: Break out initial malloc sizes.
1189 (record_line): Record directly in a subfile. Alloc on demand.
1190 (compare_line_numbers): Add from xcoffread.c.
1191 (end_symtab): New params say whether to sort pendings and
1192 linetable. Patch block stabs if defined. Shrink linetable before
1193 allocating the symtab.
1194 * buildsym.h: Delete line_vector* and prev_line_number. Add
1195 global_stabs and file_stabs for xcoffread.
1196 * dbxread.c (start_subfile): Move to buildsym. Change above calls.
1197 * symtab.h: LINETABLE(symtab) can now be null. Zap LINELIST.
1198 * symmisc.c, symtab.c: Cope with null LINETABLEs.
1199
1200 * blockframe.c: Pass fromleaf to INIT_EXTRA_FRAME_INFO.
1201 * tm-29k.h, tm-88k.h, tm-i960.h, tm-irix3.h, tm-mips.h, tm-pyr.h,
1202 tm-sparc.h: Accept fromleaf parameter.
1203 * c-exp.y (yyerror): Pass error message if given.
1204 * configure.in: Add rs6000 host and target.
1205 * inflow.c (new_tty): O_NOCTTY kludge for RS/6000.
1206 * symfile.h (entry_point): Add.
1207
1208 Sat Oct 26 00:16:32 1991 John Gilmore (gnu at cygus.com)
1209
1210 * buildsym.c: New file. Breaks out symbol-table-building routines
1211 from dbxread.c, so they can be shared with xcoffread.c.
1212 * buildsym.h: New file. Declarations for buildsym.c users.
1213 * dbxread.c: Remove large chunks into buildsym.c.
1214 * Makefile.in: Add buildsym.c and buildsym.h.
1215
1216 * symfile.c (syms_from_bfd): New routine.
1217 (add_symbol_file): Call it to do the real work.
1218 (syms_from_bfd): Initialize entry_point before calling symfile_init.
1219 * symtab.h, symfile.c, coffread.c, mipsread.c, dwarfread.c:
1220 Avoid declaring or setting entry_point (symfile.h & symfile.c cope).
1221
1222 Fri Oct 25 10:58:16 1991 Mark Eichin (eichin at cygnus.com)
1223
1224 * cplus-dem.c (cplus-demangle): added support for templates, static
1225 data, and the new (correct) mangling for destructors.
1226
1227 * dwarfread.c: (dwarfwarn): created a varargs version of
1228 dwarfwarn, for non __STDC__ compilers.
1229
1230 * c-exp.y: (yylex): added match for "template" token.
1231 (typebase): added TEMPLATE name '<' type '>' clause, for explicit
1232 specification of template types.
1233
1234 * symtab.c: (lookup_template_type): new function for finding
1235 templates in symbol table.
1236 (type_name_no_tag): changed to explicitly check for s/u/e at the
1237 beginning of the symbol - if it is a template, none of these will
1238 be there (but the name will still contain spaces.)
1239
1240 Fri Oct 25 18:59:32 1991 Per Bothner (bothner at cygnus.com)
1241
1242 Various fixes to improve g++ debugging.
1243 * symtab.h: Add is_const and is_volatile flags for each method.
1244 These are bit fields - take their space from voffset,
1245 which shrinks to 30 bits. Since voffset is now a bitfield,
1246 make it unsigned for portability. This changes its interpretation
1247 slightly: Static methods now have voffset 1 instead of -1,
1248 and virtual offsets start at 2, not 1.
1249 * symtab.c: Renamed gdb_mangle_typename to gdb_mangle_name,
1250 since it now returns an entire magled method name, not just
1251 the type part. This avoids some duplication.
1252 It also allows us to correctly mangle const and volatile
1253 methods (using the new is_const and is_volatile bit fields
1254 mentioned above).
1255 * valprint.c (type_print_base), values.c (check_stub_method):
1256 Simplify by using new gdb_mangle_name.
1257 * values.c (value_headof): Fix to correctly handle single
1258 inheritance (actually two fixes, either of which suffices).
1259 * dbxread.c (read_struct_type): Handle const and volatile
1260 method specifiers.
1261 * dbxread.c (read_struct_type): Yet one more place where
1262 we must handle '\\' continuations.
1263 * valprint.c (vtbl_ptr_name): Add final '\0'.
1264
1265 Fri Oct 25 16:06:38 1991 Stu Grossman (grossman at cygnus.com)
1266
1267 * tm-sparc.h, tm-68k.h (EXTRACT_RETURN_VALUE): fix output of
1268 short return values for sparc and 68k. Patch from Paul Eggert.
1269
1270 * coffread.c, coredep.c, i386-xdep.c: install patches for
1271 SysV/386 3.2 from Mauro DePalma.
1272
1273 Fri Oct 25 02:02:13 1991 John Gilmore (gnu at cygnus.com)
1274
1275 * core.c (core_file_info), exec.c (exec_file_info): Print file
1276 type. Use printf_filtered.
1277
1278 * valops.c (value_fetch_lazy): Avoid 0-length fetches.
1279
1280 Thu Oct 24 23:06:40 1991 Fred Fish (fnf at cygnus.com)
1281
1282 * dwarfread.c: Add casts to remove compiler warnings.
1283
1284 * tm-3b1.h, tm-68k.h, tm-altos.h, tm-amix.h, tm-hp300bsd.h,
1285 tm-hp300hpux.h, tm-isi.h, tm-news.h, tm-pn.h, tm-sun2.h,
1286 tm-sun3.h: Remove locally duplicated code for calling functions
1287 in the inferior. The only differences were in the specific trap
1288 vectors used and whether or not an fpu was present. These are
1289 now handled by appropriate definitions of BPT_VECTOR and
1290 HAVE_68881 respectively. Other minor obvious cleanups.
1291
1292 * valops.c: Correct a minor misspelling.
1293
1294 * utils.c: Remove local BSD/USG hacks that are now in libiberty.
1295
1296 * dwarfread.c: Remove prototype for dwarfwarn. Does not work
1297 with <varargs.h>.
1298
1299 Thu Oct 24 09:33:44 1991 John Gilmore (gnu at cygnus.com)
1300
1301 * stack.c (frame_command): Always print. Use new
1302 frame_select_command to select a frame without printing.
1303
1304 * dwarfread.c: Use <varargs.h>, since <stdarg.h> is not portable.
1305
1306 Thu Oct 24 01:32:51 1991 Fred Fish (fnf at cygnus.com)
1307
1308 * dwarfread.c: New file for DWARF debugging format support.
1309
1310 * elfread.c: New file for ELF object file format support.
1311
1312 * procfs.c: New file for SVR4 /proc (process file system) support.
1313
1314 * tm-amix.h, xm-amix.h, tconfig/amix, xconfig/amix: New files for
1315 Amiga UNIX support.
1316
1317 * xm-svr4.h, tm-svr4.h: New files for SVR4 support.
1318
1319 * xm-m68k.h: New file for host machines with m68k cpu.
1320
1321 * Makefile.in: Add elfread.c and dwarfread.c to SFILES_MAINDIR.
1322 Add elfread.o and dwarfread.o to OBS.
1323
1324 * symfile.h: Add "elf" to list of supported formats in comment.
1325
1326 * c-exp.y, defs.h, symtab.h, valprint.c: Add three new builtin
1327 types to gdb, builtin_type_long_double, builtin_type_complex, and
1328 builtin_type_double_complex. Add and use new TARGET_SHORT_BIT,
1329 TARGET_INT_BIT, TARGET_LONG_BIT, TARGET_FLOAT_BIT,
1330 TARGET_DOUBLE_BIT, TARGET_LONG_DOUBLE_BIT, TARGET_COMPLEX_BIT, and
1331 TARGET_DOUBLE_COMPLEX_BIT, as the sizes in bits of the indicated
1332 types on the target machine (ala the existing TARGET_LONG_LONG_BIT).
1333
1334 * infrun.c: When using SVR4 /proc interface instead of ptrace(),
1335 call proc_set_exec_trap() to setup child to stop at first instruction.
1336
1337 * inftarg.c: When using SVR4 /proc interface, call proc_wait()
1338 rather than wait().
1339
1340 * m68k-tdep.c: Add new routines supply_gregset(), fill_gregset(),
1341 supply_fpregset(), and fill_fpregset(), which are machine
1342 dependent support routines for SVR4 /proc interface.
1343
1344 * utils.c: Add warning_setup() and warning(). Warning() behaves
1345 the same as error() except that it returns normally rather than
1346 jumping back to command level. Modules that don't want to call
1347 warning() for some reason, but want to produce their own warnings,
1348 can call warning_setup() to ensure compatibility with the way
1349 warning() and error() deal with the terminal.
1350
1351 * symtab.c: Make internal errors produce more useful messages.
1352
1353 * tm-68k.h: Move code that is duplicated in almost every single
1354 m68k based machine's configuration files to this common file.
1355 Duplications in the configuration files still need to be removed
1356 (FIXME).
1357
1358 * infrun.c (child_create_inferior): System V versions must call
1359 setpgrp() with no arguments, to comply with prototyping typically
1360 in <unistd.h>.
1361
1362 * munch: Add support for SVR4 style nm output.
1363
1364 * dbxread.c, mipsread.c symmisc.c, symtab.c: Remove the object
1365 file specific fields from the partial symbol table structure and
1366 replace them with a pointer to private data for each different
1367 flavor of object file reader to initialize appropriately.
1368
1369 Wed Oct 23 09:38:20 1991 John Gilmore (gnu at cygnus.com)
1370
1371 * xconfig/sun[34]os4: Add note about strstr botch on sunos4.0.3c
1372 and previous.
1373
1374 * mipsread.c (fixup_undef_type): New function. If a struct /
1375 union / enum is defined in a header file but nowhere else used,
1376 (by typedefing, pointer referencing or declaration) the mipsread code
1377 builds the complete tree for the structure but leaves its code as
1378 TYPE_CODE_UNDEF as it doesn't know what kind of aggregate it is.
1379 Guess its type based on the details of the members.
1380
1381 Tue Oct 22 18:04:32 1991 Stu Grossman (grossman at cygnus.com)
1382
1383 * infrun.c (wait_for_inferior): Check return value from
1384 find_pc_line.
1385
1386 Mon Oct 21 17:47:03 1991 Stu Grossman (grossman at cygnus.com)
1387
1388 * infrun.c (wait_for_inferior): fix stepi/nexti that was broken
1389 by my last edit to this routine.
1390
1391 Mon Oct 21 14:27:43 1991 John Gilmore (gnu at cygnus.com)
1392
1393 * tm-sun3.h (FIX_CALL_DUMMY): problem with cross debugging.
1394 FIX_CALL_DUMMY does unaligned accesses and/or forgets to byte swap
1395 the values before putting them into the dummy code. (From Peter
1396 Schauer)
1397
1398 Mon Oct 21 10:04:39 1991 Steve Chamberlain (steve at rtl.cygnus.com)
1399
1400 * configure.in: added ebmon target.
1401
1402 Wed Oct 16 22:49:58 1991 John Gilmore (gnu at cygnus.com)
1403
1404 GDB-4.2 release!
1405
1406 * Makefile.in: Roll VERSION to 4.2.
1407 * README, TODO, WHATS.NEW: Update.
1408
1409 * core.c (core_open): Improve error message for bad file.
1410 Pass .reg virtual memory address to fetch_core_registers to help
1411 it find the registers in the core-file header.
1412 * coredep.c (fetch_core_registers): Take new argument, use it,
1413 and pass it to register_addr to locate the block of registers.
1414 * xm-mips.h: Update KERNEL_U_ADDR for new scheme. Cleanup a bit.
1415
1416 * dbxread.c (read_dbx_symtab, process_one_symbol): Handle
1417 Sequent N_FN_SEQ like everybody else's N_FN.
1418
1419 * main.c: Circumvent SCO cc bug with #if !!defined(USG).
1420 * tm-i386v.h: #endif guck.
1421 * xconfig/i386*: Remove -Dgetpagesize()=4096 kludge.
1422 * xconfig/i386sco: Add HAVE_STRSTR to avoid ANSI bdeath.
1423 * xconfig/tahoe: Add REGEX, which seems to be missing.
1424
1425 * coredep.c: Add <sys/types.h> for SCOnix.
1426 * dbxread.c (read_dbx_symntab): Avoid coredump on malformed file.
1427 * printcmd.c (print_formatted): Flush output before disassembly.
1428
1429 Tue Oct 15 20:12:32 1991 Roland H. Pesch (pesch at fowanton.cygnus.com)
1430
1431 * doc/refcard.tex (sec "Working Files"): consistent metavars and
1432 other improvements, due to comments by François Pinard
1433 (pinard@iro.umontreal.ca)
1434
1435 * doc/gdb.texinfo (appendix "Installing GDB"): changes in
1436 configure, and improvenets related to Pinard's refcard comments
1437
1438 Tue Oct 15 08:45:12 1991 John Gilmore (gnu at cygnus.com)
1439
1440 Changes from Fred Fish:
1441 * tm-68k.h (FPI_REGNUM): Add.
1442 * infrun.c (child_create_inferior): flush stdout and stderr
1443 before forking.
1444 * configure.in: Handle amigados, amix hosts and targets.
1445 * inflow.c: Handle TIOCGLTC_BROKEN for Amiga.
1446
1447 From Andreas Schwab:
1448 * values.c (show_convenience): Use printf_filtered.
1449 * main.c (define_command): Check result of lookup_command for
1450 exact match.
1451 (echo_command): Use printf_filtered, and force output out.
1452
1453 * dbxread.c (read_enum_type): Avoid Modula-2 kludge that breaks C
1454 programs.
1455 * i387-tdep.c (double_to_i387): Fix typo for double_to_ieee_extended.
1456 * utils.c (_initialize_utils): If !ISATTY, don't paginate.
1457 * configure.in, tconfig/decstation, xconfig/decstation: Rename
1458 dec3100 to decstation.
1459
1460 Mon Oct 14 13:37:50 1991 Roland H. Pesch (pesch at cygnus.com)
1461
1462 * doc/gdb.texinfo: Catch up to changes recorded here in ChangeLog
1463 (nodes Continuing and Stepping; Memory; Targets) clarifications
1464 due to Larry Breed
1465
1466 Fri Oct 11 23:27:06 1991 John Gilmore (gnu at cygnus.com)
1467
1468 * tm-{irix3,mips,nindy960,pn,symmetry,vx960}.h: Move
1469 REGISTER_U_ADDR to corresponding xm- file. Sugg. by Peter Schauer.
1470
1471 * symmisc.c (print_partial_symtabs): Add printpsyms debug cmd.
1472
1473 * m68k-tdep.c (m68k_push_dummy_frame, m68k_pop_frame): Add
1474 generic routines for calling inferior functions.
1475
1476 * blockframe.c (inside_main_scope, inside_entry_scope): New.
1477
1478 * copying.awk: Filter formfeeds out of copying & warrantee.
1479 Make them available as `show copying' and `show warrantee' also.
1480 * main.c (print_gnu_advertisement): Advt `show' commands.
1481
1482 Thu Oct 10 17:25:47 1991 John Gilmore (gnu at cygnus.com)
1483
1484 * mach386-xdep.c: Even when cross-compiling, leave in the
1485 core-file reading code.
1486 * core.c (get_core_registers): Avoid coredump if no .reg section.
1487
1488 Wed Oct 9 17:03:34 1991 John Gilmore (gnu at cygnus.com)
1489
1490 * mipsread.c, coffread.c: initialise TYPE_VPTR_FIELDNO to -1.
1491 This avoids coredumps under `set print object on' in value_headof
1492 (called erroneously by value_from_vtable_info) for `p &struct'
1493 or `p *struct'. From Peter Schauer.
1494
1495 Mon Oct 7 00:06:52 1991 John Gilmore (gnu at cygnus.com)
1496
1497 * Makefile.in: Roll version to 4.1.2.
1498 * dbxread.c: Use aout64.h, not a.out.gnu.h. Get external symbol entry
1499 size from BFD (but, FIXME, we don't yet read external nlists's and
1500 convert them to internal nlists's before handling them -- we still
1501 assume they have the same size and alignment.) Use SET_NAMESTRING
1502 everywhere useful.
1503 * exec.c (exec_file_command): Move dead coff-encapsulation code
1504 to BFD.
1505 * m88k-tdep.c, m88k-xdep.c: Remove encap test and #inc <a.out.h>.
1506
1507 Fri Oct 4 22:30:06 1991 John Gilmore (gnu at cygnus.com)
1508
1509 * configure.in, tm-i386v.h, xm-i386v.h: Intel 386 Mach host port.
1510 * xm-i386mach.h, mach386-xdep.c, xconfig/i386mach: New files.
1511
1512 Fri Oct 4 17:04:31 1991 Per Bothner (bothner at cygnus.com)
1513
1514 More patches from Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
1515 * mips-xdep.c (store_inferior_registers): Don't try to
1516 write the (pseudo) FP.
1517 * mipsread.c (parse_partial_symbols): Improved algorithm for
1518 setting pst->texthigh.
1519
1520 Fri Oct 4 16:47:32 1991 Roland H. Pesch (pesch at cygnus.com)
1521
1522 * doc/Makefile: make TEXINPUTS include . everywhere
1523
1524 Fri Oct 4 00:35:56 1991 John Gilmore (gnu at cygnus.com)
1525
1526 * coffread.c, dbxread.c, symfile.c, symmisc.c, symtab.h: Remove
1527 vestiges of typevectors, which were for symsegs and are no longer
1528 used. (From a question by Eliot Dresselhaus
1529 <dresselh@RFT30.nas.nasa.gov>).
1530
1531 Thu Oct 3 09:33:26 1991 John Gilmore (gnu at cygnus.com)
1532
1533 * dbxread.c, coffread.c: static-ize functions that were
1534 gratuitiously external. (From Fred Fish.)
1535
1536 * c-exp.y: sym->class to SYMBOL_CLASS (sym).
1537
1538 * dbxread.c (dbx_lookup_type): Keep doubling size of typevector
1539 until it is large enough.
1540
1541 * dbxread.c (read_type): Handle error case slightly better.
1542 Make complaint message not C++-specific.
1543
1544 Wed Oct 2 17:21:07 1991 Stu Grossman (grossman at cygnus.com)
1545
1546 * infrun.c (wait_for_inferior): Fix step/next so that you only
1547 stop at the beginning of a new line. This fixes various problems
1548 with for loops, nested if-else's and switch statements.
1549
1550 Tue Oct 1 06:33:55 1991 John Gilmore (gnu at cygnus.com)
1551
1552 * symtab.c (lookup_symtab_1, lookup_symbol): "fatal" errors
1553 between symtabs and psymtabs become ordinary error()s.
1554
1555 * dbxread.c (read_dbx_symtab): Relocate end_of_text_addr
1556 properly, making "end pc" correct in shared lib psymtabs.
1557 (From Guy Harris <guy@auspex.com>.)
1558
1559 Mon Sep 30 13:15:31 1991 John Gilmore (gnu at cygnus.com)
1560
1561 * dbxread.c: Enable, but soften, const_vol_complaint.
1562 (read_dbx_symtab): N_STSYM and N_LCSYM define static vars.
1563 Ditto Gould N_NBSTS and N_NBLCS. Also, all types in the psymtab
1564 should be file-scope, not global.
1565 (read_struct_type): Remove ancient multiple-inheritance warning.
1566 (read_range_type): Check base type, complain & patch if undefined.
1567 * stack.c (frame_info): Demangle the function name in `info stack'.
1568 (From Peter Schauer)
1569
1570 Sat Sep 28 10:02:33 1991 John Gilmore (gnu at cygnus.com)
1571
1572 * eval.c (evaluate_subexp_for_address): Don't use
1573 TYPE_POINTER_TYPE directly (it might be zero if this type has
1574 never had a pointer created before); use lookup_pointer_type.
1575 * symtab.c (lookup_method_type): Arguments were swapped in all
1576 callers, so fix it here. I'm amazed this worked at all!
1577
1578 Fri Sep 27 18:09:31 1991 John Gilmore (gnu at cygnus.com)
1579
1580 * c-exp.y, m2-exp.y: Define more yysymbols that happen to be
1581 "bss" rather than "data" symbols, but which still conflict.
1582 * m2-exp.y: Lint.
1583
1584 * coffread.c (coff_symfile_read): Use xmalloc, not malloc.
1585 * core.c (core_files_info): Shorten output.
1586 * exec.c (exec_files_info): Ditto.
1587 (build_section_table): Ignore zero-length sections.
1588 * language.c, printcmd.c: Lint.
1589 * language.h (get_frame_language): Declare.
1590 * saber.suppress: update.
1591 * stack.c (find_relative_frame): Remove complex code that was
1592 #if 0'd, stick with simple code. Lint.
1593 * saber.suppress: Update a bit.
1594 * symfile.c (add_symbol_file_command): Add "?" to question.
1595 * utils.c (parse_escape): Avoid \a due to bdead compilers.
1596 * value.h: Declare typedef_print.
1597
1598 * valprint.c (val_print, type_print_base): TYPE_CODE_RANGE less
1599 kludgey.
1600
1601 * nindy-tdep.c (nindy_frame_chain_valid): Use lookup_misc_func.
1602 (Reported by Mark Peek <mark@imagen.com>.)
1603
1604 * solib.c (solib_map_sections): Relocate all sections, even
1605 though only the text section's size is tracked. Mark ld_text
1606 for eventual elimination as we generalize to N sections.
1607
1608 * infrun.c (wait_for_inferior): Don't check if the PC is in a
1609 call_dummy if we were stopped by a random signal that is being
1610 passed to the program. This produced wierd results when calling
1611 functions in the inferior and signals (e.g. SIGALRM) were in use.
1612
1613 Tue Sep 24 18:05:30 1991 John Gilmore (gnu at cygnus.com)
1614
1615 * infrun.c (IN_SIGTRAMP): Not parenthesized properly.
1616 Bugfix from Paul Eggert <eggert@twinsun.com>.
1617 * tm-ultra3.h (IN_SIGTRAMP): Ditto.
1618 * valprint.c (print_floating): Print 9 digits for IEEE floats.
1619 From Paul Eggert.
1620
1621 Mon Sep 23 15:50:07 1991 John Gilmore (gnu at cygnus.com)
1622
1623 * Makefile.in: Roll VERSION to 4.1.1.
1624 * source.c (line_info): Peter Schauer fixes a bug I introduced in
1625 hex conversion.
1626
1627 Fri Sep 20 16:10:52 1991 John Gilmore (gnu at cygnus.com)
1628
1629 GDB-4.1 release!
1630
1631 * Makefile.in (VERSION): Set to 4.1.
1632 * language.c (set_language_command): Print useful help message,
1633 and restore the language string after giving help.
1634 * valprint.c (typedef_print): Print typedef in C or M2.
1635 * symtab.c (list_symbols): Use it.
1636 * main.c (main): Avoid any output before (gdb) prompt when -q.
1637 * language.c (set_language_command): Handle errors by restoring
1638 the language string to its current state (fix from A. Beers).
1639 * doc/gdbint.texinfo: Roll in information from README. Rearrange
1640 "how to install" and "how to print the doc" stuff so it drops
1641 easier into README.
1642 * configure.in: Rename rtpc CPU to romp to match config.sub.
1643 * README, WHATS.NEW, TODO: Update for gdb-4.1.
1644
1645 Fri Sep 20 17:39:14 1991 Roland H. Pesch (pesch at cygnus.com)
1646
1647 * doc/gdb.texinfo: Updates from ChangeLog. set/show write,
1648 autoloading shared libs, copyright etc on GDB startup, clean up $_
1649 and $__ index refs, set/show listsize and related updates to list
1650 cmd. New host/target configs.
1651
1652 Fri Sep 20 15:46:00 1991 Roland H. Pesch (pesch at cygnus.com)
1653
1654 * doc/Makefile: generate aux version-no file doc/gdbVN.m4
1655 from main Makefile.in version definition
1656 doc/gdb.texinfo: use version recorded in doc/gdbVN.m4 for current
1657 GDB version no refs
1658 Makefile.in (setup-to-dist): generate doc/gdbVN.m4
1659
1660 * doc/gdb.texinfo: merge new language-switching and lang-specific
1661 doc by Andrew Beers
1662
1663 Fri Sep 20 15:00:57 1991 Per Bothner (bothner at cygnus.com)
1664
1665 * mcheck.c: Add __ONEFILE kludge to allow compilation by non-ANSI
1666 compilers (which may lack stddef.h).
1667
1668 Fri Sep 20 13:29:42 1991 John Gilmore (gnu at cygnus.com)
1669
1670 * dbxread.c (read_dbx_symtab, process_one_symbol): N_FN and
1671 N_WARNING are the same except for the N_EXT bit, so just use their
1672 values alone, rather than OR-ing them with N_EXT.
1673
1674 Fri Sep 20 12:27:55 1991 Stu Grossman (grossman at cygnus.com)
1675
1676 * mipsread.c (parse_lines): Deal with negative extended line
1677 offsets correctly.
1678
1679 * c-exp.y, m2-exp.y: #define yyerrflag and yynerrs to avoid
1680 global symbol conflicts.
1681
1682 Fri Sep 20 02:28:15 1991 John Gilmore (gnu at cygnus.com)
1683
1684 * .gdbinit: Move 'set complaints' to top, so it runs even in
1685 case we aren't debugging GDB.
1686 * language.c (_initialize_language): Fix type check and range
1687 check documentation strings.
1688 * utils.c (!HAVE_VPRINTF): Define vfprintf as a function, so
1689 language.c can use it. (Though language.c should really not be
1690 handling warnings/errors the way it does, FIXME.)
1691 * symtab.c (lookup_primitive_type): const lint.
1692
1693 Bugfix from Peter Schauer:
1694 * source.c (lines_to_list): Make signed, to avoid comparison
1695 going unsigned and complaining that -3 is too high for 21 lines.
1696 * stack.c (lines_to_list): Ditto.
1697
1698 Thu Sep 19 23:33:41 1991 John Gilmore (gnu at cygnus.com)
1699
1700 * Makefile.in (HFILES): Add minimon.h.
1701 (VERSION): Roll version number to 4.0.95.
1702 (gdb.tar.Z, make-proto-gdb.dir, setup-to-dist, gdb-XXX.tar.Z):
1703 New rules for building distributions. Normal distribution
1704 is built by doing `make -f Makefile.in gdb.tar.Z' in the directory
1705 one level up from here; it calls make-proto-gdb.dir to build a
1706 directory `proto-gdb' which is an image of the release. The old
1707 `gdb.tar.Z' rule still works too.
1708 * config.sub, configure: Roll in latest from ..
1709
1710 Thu Sep 19 17:41:24 1991 Roland H. Pesch (pesch at cygnus.com)
1711
1712 * doc/gdbint.texinfo: Reorder contents; reorganize new-host,
1713 new-target, and new-config chapters; fix minor typos; come closer
1714 to usual GNU markup conventions for @file @samp @code @var.
1715
1716 Thu Sep 19 17:04:12 1991 Per Bothner (bothner at cygnus.com)
1717
1718 Patches from Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
1719 * mipsread.c (parse_partial_symbols): Enter the name of all
1720 structs/unions... into the psymtab so we can access them if the
1721 symtab is not read in.
1722 * mips-tdep.c: Remove some unneeded #includes.
1723 * xconfig/dec3100: Add HAVE_STRSTR.
1724
1725 Thu Sep 19 15:14:23 1991 John Gilmore (gnu at cygnus.com)
1726
1727 * Makefile.in: Circumvent Sun Make bug on *-exp.tab.o.
1728 * c-exp.y, m2-exp.y: Lint.
1729 * m2-exp.y: Avoid using yytname[] which is a Bison-ism.
1730 * valprint.c (val_print_fields): Check for stub type.
1731 * mipsread.c (_initialize_mipsread): Avoid using
1732 builtin_type_void at initialize time.
1733 (mipscoff_symfile_read): use it now.
1734
1735 Wed Sep 18 15:55:51 1991 John Gilmore (gnu at cygnus.com)
1736
1737 Merge multiple-language support, and partial Modula-2 support,
1738 from Andrew Beers <beers@cs.buffalo.edu>.
1739
1740 * i387-tdep.c: New file, consolidates most 80387 support,
1741 and eliminates host dependency on double<->extended conversions.
1742 * i386-xdep.c, symm-xdep.c: Remove most 387 support.
1743 * xconfig/i386{sco,v,v-g,v32,v32-g}: Now need i387-tdep.o.
1744
1745 * symfile.c (allocate_symtab): New fn, consolidates the work
1746 of allocating and initializing a new struct symtab. Set the
1747 language of the symtab based on its filename extension.
1748 * symfile.h: Declare it.
1749 * mipsread.c (new_symtab): Use it. Minor formatting changes.
1750 * dbxread.c (end_symtab): Use it.
1751
1752 * mipsread.c (parse_symbol, case stParam and stProc): Add #if 0'd
1753 code for saving types of parameters with each function definition.
1754 * dbxread.c (define_symbol, function and parameter cases): Ditto.
1755 (read_dbx_symtab, case N_DEFD): Ignore.
1756 (read_enum_type): Recognize FALSE/TRUE enum as Modula-2 BOOLEAN.
1757 (read_range_type): Rename MAX_OF_TYPE to MAX_OF_C_TYPE, etc.
1758 #if 0 out its uses, though, since they set a dead value.
1759 * coffread.c (end_symtab): Use allocate_symtab.
1760 (process_coff_symbol): #if 0'd for functions and params as above.
1761 (read_enum_type): Recognize Modula-2 BOOLEAN.
1762 * symtab.c (add_param_to_type): #if 0'd function to add a
1763 parameter type to a function type's field list.
1764
1765 * defs.h (local_hex_format, local_hex_string, *_custom): Add.
1766 * i386-xdep.c, pyr-tdep.c, pyr-xdep.c, remote-vx.c, solib.c,
1767 source.c, symfile.c, dbxread.c, breakpoint.c, core.c, exec.c,
1768 i387-tdep.c, infcmd.c, mips-tdep.c, stack.c, printcmd.c: Output
1769 hex with local_hex_string for Modula-2 support.
1770
1771 * breakpoint.c (breakpoint_cond_eval): Use new value_true to test
1772 breakpoint condition language-independently.
1773
1774 * parse.c: New file with the common code remains of expread.y.
1775 * parser-defs.h: New file with common declarations from expread.y.
1776 * c-exp.y: New file with the C parser from expread.y, and other
1777 language-specific information.
1778 * m2-exp.y: New file with the Modula-2 parser and etc.
1779 * expread.y, expread.tab.c: Remove.
1780 * breakpoint.c, eval.c, printcmd.c, expression.h: Use
1781 parse_expression and parse_exp_1 rather than parse_c_expression
1782 and parse_c_1.
1783
1784 * symtab.h (enum languages): Move to defs.h.
1785 (enum type_code): Add TYPE_CODE_CHAR and TYPE_CODE_BOOL.
1786 Declare Modula-2 builtin types.
1787 Add MAX_OF_TYPE and MIN_OF_TYPE macros.
1788
1789 * symtab.c (_initialize_symtab): Remove builtin type
1790 definition and initialization to *-exp.y.
1791 (lookup_primitive_typename): Use language-dependent vector.
1792 (lookup_typename): Fix bug, make it work if primitive typename.
1793 (lookup_unsigned_typename): Call above.
1794 (create_array_type): Set up range type for array index.
1795 (list_symbols): Call typedef_print to print typedefs.
1796
1797 * values.c (unpack_long, value_from_longest): Handle
1798 TYPE_CODE_BOOL and TYPE_CODE_CHAR.
1799
1800 * expression.h (enum exp_opcode): Add Modula-2 specific opcodes.
1801 * expprint.c: Look up expression opcodes in language-specific
1802 table, based on expression's language. Handle some Modula-2
1803 specific opcodes.
1804
1805 * stack.c (frame_info): Print language of stack frame.
1806 (select_frame): Also select language, if in auto-mode.
1807 (get_frame_language): New subroutine.
1808 * main.c (execute_command): Warn as language changes automatically.
1809
1810 * printcmd.c (ptype_command): Parse types using the language
1811 parser, both for language-independence, and so that scopes can
1812 be specified.
1813
1814 * language.h, language.c: New files for language-specific macros,
1815 declarations, and definitions.
1816
1817 Misc fixes:
1818
1819 * main.c (main): If error() is called during early
1820 initialization, print its message and then exit(1) from GDB.
1821
1822 * valprint.c (type_print_base): Avoid printing garbage for ints
1823 of unusual sizes.
1824 (_initialize_valprint): Warn about host/target size assumption;
1825 improve long long support slightly.
1826
1827 * convex-tdep.c (comm_registers_info): Avoid parsing decimal and
1828 hex -- let parse_and_eval_address do it.
1829
1830 * doc/gdbint.texinfo (Languages): Doc how to add a language.
1831
1832 * Makefile.in: Cope with new files and removed files.
1833
1834 Tue Sep 17 08:37:41 1991 John Gilmore (gnu at cygint.cygnus.com)
1835
1836 Add Andrew Beers' changes for Modula-2 support. His ChangeLog
1837 entries are enclosed herein. Not all of these changes
1838 have been merged into the master GDB sources -- check the
1839 ChangeLog above here for the merge log.
1840
1841 Mon Jun 3 17:05:45 EDT 1991
1842
1843 m2-exp.y Created. Tested outside of GDB for a few days. Proper
1844 operators were added, C specific operators and tokens
1845 removed. yylex() revamped to some extent. Still things
1846 missing from the grammar, such as sets.
1847 Tested for two weeks in GDB v3.5.
1848
1849 Tue Jun 11 17:23:48 EDT 1991
1850
1851 m2-exp.y Added boolean constants TRUE and FALSE to the grammar
1852 so they are built-in. Sort of a hack.
1853
1854 Fri Jun 14 12:53:51 EDT 1991
1855
1856 m2-exp.y Added range checking for numeric constants. Any numeric
1857 constant is assumed to be of builtin type INTEGER unless:
1858 (1) it is octal or hexadecimal, in which case it is a
1859 CARDINAL; (2) it is too big to fit into an INTEGER, in
1860 which case it is a CARDINAL.
1861 eval.c Added simple range checking for +, -, and * on integers.
1862 Doesn't work very well for *, since 6 * 1,000,000,000 =
1863 1,705,032,704, which fails the simple test of result >=
1864 first_operand, no matter in what order the operands are.
1865
1866 Tue Jun 18 14:11:30 EDT 1991
1867
1868 Broke the parser into parts, one containing the C grammar and the other
1869 containing code to be shared by all of the grammars.
1870
1871 The following files no longer exist:
1872
1873 expread.y
1874 expread.tab.c
1875
1876 The following files were added:
1877
1878 c-exp.y (The C grammar)
1879 m2-exp.y (The Modula-2 grammar)
1880 parser-code.c (Code that is shared by the above grammar)
1881 parser-code.h
1882 parser-defs.h
1883
1884 Makefile.dist Changed to reflect the above dependencies. NOTE: It is
1885 now necessary to use the Bison compiler compiler, since it
1886 will generate function/variable prefixes other than yy.
1887
1888 Tue Jun 18 16:47:49 EDT 1991
1889
1890 symtab.[ch] Added the external variable working_lang, than holds the
1891 value of the current working language.
1892 Added the ennumerated type language_mode, with the values
1893 language_auto and language_manual, the former meaning that
1894 GDB sets working_lang as needed, and the latter meaning
1895 that the value of working_lang is totally under user
1896 control.
1897 symtab.[ch] Added the Modula-2 pervasive types INTEGER, CARDINAL,
1898 REAL, BOOLEAN and CHAR. Also added the type codes
1899 TYPE_CODE_BOOL and TYPE_CODE_CHAR.
1900 utils.c Added set_language_command and show_language_command to
1901 implement the GDB support commands "set language" and
1902 "show language".
1903 expression.h A number of identifiers were added to the type exp_opcode
1904 to facilitate Modula-2 builtin functions, integer
1905 division, and array indexing.
1906
1907 Wed Jun 19 13:25:58 EDT 1991
1908
1909 language.h Added the macro STRICT_TYPE, which evaluates to non-zero
1910 if the language specified by working_lang requires the use
1911 of strict typing of expressions. Eventually, even this
1912 will be able to be changed by the user.
1913 Added the macro RANGE_CHECK, which evaluates to non-zero
1914 if the language specified by working_lang requires the
1915 checking of a value against the domain of its type.
1916 Eventually, even this will be able to be changed by the
1917 user.
1918 language.[ch] Predicates involving types (simple_type, ordered_type,
1919 same_type, integral_type, numeric_type, character_type,
1920 boolean_type, float_type) are added. These predicates are
1921 based on the current value of working_lang, and are handy
1922 in type-checking.
1923
1924 Wed Jun 19 15:39:34 EDT 1991
1925
1926 eval.c Added the function type_array_rank which computes the rank
1927 of an array type.
1928 valarith.c Added the funtion value_bool, which when given a integer
1929 value.h value (ie. struct value *) as an argument, it returns a
1930 boolean value (ie. struct value *) true if that integer
1931 is non-zero, and a boolean value false otherwise.
1932 valprint.c Added cases for TYPE_CODE_BOOL, so Modula-2 BOOLEAN values
1933 will print out properly.
1934
1935 Wed Jun 19 16:36:34 EDT 1991
1936
1937 valops.c Added the function value_capitalize, which returns it
1938 value.h argument capitalized if its argument is a lowercase
1939 letter, or the argument unchanged if its argument is not a
1940 letter.
1941 valarith.c Added the function range_check_p, which returns non-zero
1942 value.h if its value argument is between the integral bounds upper
1943 and lower.
1944 Added the function range_check_enum_p, which makes sure
1945 that its value argument is a valid member of the domain of
1946 its type argument.
1947 Added the function range_check_range_p, which makes sure
1948 its value argument lies between the upper and lower bounds
1949 of its type argument, which must be a ranged type.
1950 Added the function check_array_index, which range and type
1951 checks an index of an array.
1952 Added the function value_multi_subscript, which computes
1953 array[idx1,idx2...idxN], given a value array and an array
1954 of values representing indicies.
1955 values.c Changed value_from_long to work with TYPE_CODE_CHAR and
1956 unpack_long to work with TYPE_CODE_BOOL and
1957 TYPE_CODE_CHAR.
1958
1959 Wed Jun 19 18:04:08 EDT 1991
1960
1961 symtab.c Stored pervasive types in a structure and make
1962 lookup_pervasive_type() a lookup function that was based
1963 on working_lang. If lookup_pervasive_type() returned
1964 non-zero, then that value was returned (a fix, since
1965 before it simply wouldn't return the pervasive type.)
1966 language.h Added the macro CAST_IS_CONVERSION, which evaluates to
1967 non-zero if the language specified by working_lang means
1968 "conversion" when it says "cast".
1969 valops.c Added the function value_real_cast(), which performs a
1970 value.h *cast*, not a *conversion*, which is what value_cast()
1971 does when it can. In particular,
1972 value_cast(<float_type>,4) = 4.0, while
1973 value_real_cast(<float_type>,4) = some mess.
1974 eval.c Modula-2 builtin functions implemented: ABS, CAP, CHR,
1975 parser-code.c FLOAT, HIGH, MAX, MIN, ODD, ORD, TRUNC, and VAL.
1976 expression.h Added macros MAX_OF_TYPE and MIN_OF_TYPE to work with MAX
1977 and MIN on integral types. *NOTE*: These are currently
1978 hardcoded to work only if there are 8 bits per storage
1979 unit. FIXME.
1980 eval.c Made logical functions call value_bool to return a
1981 properly typed boolean value, based on working_lang.
1982
1983 Thu Jun 20 11:55:27 EDT 1991
1984
1985 valprint.c Types now print out in a Modula-2 fashion. This works for
1986 the cases when the type is printed out step-by-step, that
1987 is, it doesn't work when the name of a structured type
1988 (which includes the keyword "struct", etc.) is simply
1989 displayed.
1990 FIXME: Perhaps this is bad. Parts of it seem to kludgey,
1991 since type specifications in C and Modula-2 are very
1992 different. The C printing of a type is very recursive,
1993 whereas in Modula-2 it is generally very simple. C has
1994 type prefixes and suffixes, which have no real analogue in
1995 Modula-2. Maybe type_print() should call a language
1996 specific type printer. This is also advantageous if we
1997 compile GDB to exclude some of the languages. We'll just
1998 leave those functions out.
1999
2000 Thu Jun 20 16:57:10 EDT 1991
2001
2002 dbxread.c When reading the complete symbol table in (via
2003 psymtab_to_symtab()), the number and types of function
2004 arguments are added to a function type. define_symbol()
2005 calls add_param_to_type() to accomplish this.
2006 Assumption: when we come across a function definition
2007 (N_FUN symbol with an 'f' or 'F' in the name), its
2008 arguments will appear before another function definition.
2009 When a function is found, a pointer to its type is placed
2010 in the global in_function_type. Changes that
2011 add_param_to_type() makes are to this global.
2012 valprint.c The type of a function now includes (for Modula-2) the
2013 types of its parameters.
2014 eval.c Type checking and a check for the proper number of
2015 arguments is now done for function calls. Not sure of the
2016 impact this has on C++ member function yet.
2017
2018 Thu Jun 20 19:58:48 EDT 1991
2019
2020 valprint.c Rewrote the type printer. Broke it into two language
2021 specific parts, adding the functions type_print_m2() and
2022 type_print_m2_1().
2023 An unfortunate consequence is this: if you debugging a C
2024 program in Modula-2 mode (why?), info types does not work
2025 well with regular expressions, since the types are printed
2026 out in Modula-2 terminology, but stored in C terminology.
2027 language.[ch] Added the functions new_type_last(), type_keyword(), and
2028 type_sep() to aid in the printing of typedefs.
2029 symtab.c Made the printing of typedefs as language independent as
2030 possible through calls to new_type_last(), type_keyword(),
2031 and type_sep().
2032
2033 Fri Jun 21 11:50:26 EDT 1991
2034
2035 dbxread.c Check all incoming ennumerated types. If it looks like
2036 Modula-2's BOOLEAN type, then change the type_code of the
2037 type to TYPE_CODE_BOOL so we can process it as a boolean
2038 variable.
2039 valprint.c Replaced some of the 0x%x with calls to sprintf and
2040 hexformat() in val_print().
2041 language.[ch] Added the function hex_to_string(), which converts its
2042 integral argument to a hexadecimal number (format is
2043 language based) and returns the result as a string.
2044
2045 Mon Jun 24 12:25:07 EDT 1991
2046
2047 valprint.c Some functions call type_print_1() directly, instead of
2048 value.h using type_print(), so they can specify where (column) to
2049 print things. Since type_print() takes care of language
2050 dependence, that needs to be called first. Added a
2051 parameter depth to type_print() (so it is now like
2052 type_print_1). Changed type_print to type_print_at, and
2053 made type_print a macro that passes a depth argument of
2054 zero.
2055 symmisc.c Changed all calls to type_print_1 to calls to
2056 type_print_at.
2057 Makefile.dist Made it possible to build GDB for a specific set of
2058 depend languages. Do this by passing a definition for the macro
2059 LANGS to make. LANGS should be a string containing a
2060 space-separated list of language names (ie. LANGS="c m2").
2061 The default is to build all languages. Note that grammar
2062 files must follow the naming convention of <lang>-exp.y.
2063 gdb.lang This holds the current value of the LANGS macro. It is
2064 examined every time make is called, and is updated if
2065 necessary.
2066 eval.c Added #ifdef _LANG_<lang> to these files.
2067 expread.c Still need to add them to dbxread.c and coffread.c.
2068 main.c
2069 source.c
2070 symtab.c
2071 utils.c
2072 valarith.c
2073 valprint.c
2074
2075 Mon Jun 24 16:33:11 EDT 1991
2076
2077 language.[ch] Added the functions hexformat_pre() and
2078 hex_to_string_pre(), which take a prefix argument to
2079 include in the format string. Thus, hexformat_pre("08") will
2080 return "0x08x" (if the working language is language_c).
2081 Made hexformat() and hex_to_string() calls to the above
2082 with "" as the prefix argument.
2083
2084 am29k-pinsn.c, arm-pinsn.c, breakpoint.c, convex-tdep.c, exec.c, core.c,
2085 dbxread.c, i386-pinsn.c, i386-stub.c, i386-xdep.c, i960-pinsn.c,
2086 infcmd.c, inflow.c, m68k-pinsn.c, m68k-stub.c, m88k-pinsn.c,
2087 mips-pinsn.c, mips-tdep.c, ns32k-pinsn.c, printcmd.c, pyr-pinsn.c,
2088 pyr-tdep.c, pyr-xdep.c, remote-vx.c, remote.c, solib.c, source.c,
2089 stack.c, sun386-xdep.c, symfile.c, symm-xdep.c, symmisc.c, tahoe-pinsn.c,
2090 valprint.c, vax-pinsn.c
2091
2092 Changed all occurences of 0x%[0-9]*l*x in printf format strings to
2093 calls to hexformat() and hex_to_string(). Format strings without
2094 the leading "0x" were ignored.
2095
2096 depend Updated to take the above into account.
2097
2098
2099 Tue Jun 25 15:27:18 EDT 1991
2100
2101 symtab.h Added the types range_mode_t, range_check_t, type_mode_t,
2102 and type_check_t to keep track of the current state of
2103 range and type checking.
2104 main.c Added the variables range_mode, range_check, type_mode,
2105 and type_check to record the current state of range and
2106 type checking. Added initialization code to main().
2107 language.h Changed the macros STRICT_TYPE and RANGE_CHECK to examine
2108 the above variables.
2109
2110
2111 Tue Jun 25 17:57:08 EDT 1991
2112
2113 dbxread.c process_one_symbol() updates the variable (enum language)
2114 source_lang based on the extension of the filename
2115 contained in the N_SO sybmol that started this symtab.
2116 When end_symtab() is called, the value of source_lang is
2117 put into the language field.
2118 stack.c select_frame() sets working_lang (and possibly type_check
2119 and range_check) to the language field of the symtab
2120 associated with the frame that is selected if working_mode
2121 is language_auto. If working_mode is language_manual, a
2122 warning is printed and working_lang is not set.
2123 language.c Added the function set_type_range(), which sets the value of
2124 type_check and range_check (if their modes call for
2125 automatic setting) based on the current value of
2126 working_lang. A non-zero argument will cause the current
2127 settings to be output.
2128
2129
2130 Wed Jun 26 14:51:40 EDT 1991
2131
2132 eval.c Added range checks on assignment.
2133 m2-exp.y Added the grammar for sets to the language. Currently,
2134 these do not do anything except print an error message.
2135
2136 Wed Jun 26 17:01:04 EDT 1991
2137
2138 m2-exp.y Added the ability for parse_number() to parse negative
2139 numbers. A global flag is set upon encountering a unary
2140 minus. This was done to make, for example, 1 parse as a
2141 CARDINAL, and not as an integer, per Wirth's examples in
2142 Programming in Modula-2 ed.4.
2143 valprint.c Added support for "set radix 2" by then setting
2144 output_format to 't'.
2145 eval.c Implemented range checking on subrange types. Added calls
2146 to range_check_range_p for BINOP_ASSIGN and BINOP_VAL.
2147 Implemented MIN and MAX for ennumerated types. The
2148 minimum value of an ennumerated type is defined by Wirth
2149 as the first identifier, and the maximum as the last.
2150 m2-exp.y Made octal numbers ending with "B" be characters and those
2151 ending with "C" be numbers, per Wirth's book. (p. 34)
2152
2153 Thu Jun 27 14:11:52 EDT 1991
2154
2155 stack.c select_frame() now only sets working_lang, it does not
2156 notify the user. If working_mode is language_manual, then
2157 a warning is issued once.
2158 main.c At the end of each call to execute_command(), working_lang
2159 is checked against the local static (enum language)
2160 current. If they differ and working_mode is
2161 language_auto, the new settings of language, type and
2162 range checking are printed out.
2163 stack.c Modified frame_info() to include the language of the
2164 current frame in the output of "info frame".
2165 language.[ch] Added the function language_str() which returns the name
2166 of the current language.
2167
2168 Fri Jun 28 15:33:14 EDT 1991
2169
2170 m2-exp.y Added the built-in procedures INC, INCL, DEC, and DECL to
2171 the language. INCL and DECL currently cause an error,
2172 since sets are not implemented yet. INC and DEC are
2173 implemented as PREINCREMENT/PREDECREMENT with one
2174 argument, and as ASSIGN_MODIFY with two arguments.
2175 eval.c Added type checking to the above cases.
2176 value.h Added not_lval_constant to the lval_type ennumerated type.
2177 not_lval_constant means that the value is a constant
2178 value; that is 3 or 'a' or TRUE, not as in a constant
2179 identifier. This is used to help coerce numbers such as 3
2180 to either signed or unsigned numbers.
2181 valops.c Added the function value_coerce_constants() which coerces
2182 constant integers as following: if one is a constant and
2183 the other is not, the constant's type is set to the type
2184 of the other argument. If both are constants and one is
2185 signed, the other is converted to a signed constant.
2186
2187 Sat Jun 29 17:26:29 EDT 1991
2188
2189 valarith.c Added a better range checker. It now checks range
2190 (successfully) on integral operations [+-] (signed and
2191 unsigned) for any C sized type. Still does not work well
2192 for multiplication.)
2193 int_in_size() returns an integer that is coerced to fit into
2194 specified number of bytes.
2195
2196 Mon Jul 1 13:04:14 EDT 1991
2197
2198 language.[ch] Added the function binop_result_type(), which returns the
2199 builtin (struct type *) type that would be the result of a
2200 binop on the two values V1 and V2.
2201
2202 Wed Jul 3 19:22:53 EDT 1991
2203
2204 source.c Extended source_info() to include the source language in
2205 the output from "info source".
2206
2207 Fri Jul 5 13:48:52 EDT 1991
2208
2209 utils.c Moved the support functions for the GDB set/show commands
2210 dealing with language into language.c.
2211 language.c Added the function language_info(), which displays info
2212 about the current working language, type and range check
2213 settings. Called via the GDB command "info language".
2214 Added an initialization routine _initialize_language(),
2215 that sets defaults for the language, type and range
2216 variables and sets up the new GDB commands.
2217 main.c Language setup moved to language.c.
2218 depend Rebuilt.
2219
2220 Mon Jul 8 10:10:22 EDT 1991
2221
2222 valarith.c Debugged the range checker for arithmetic. Still does not
2223 work for multiplication very well.
2224
2225 Mon Jul 8 12:40:37 EDT 1991
2226
2227 language.[ch] Added the function value_true() which returns non-zero if
2228 its argument represents a boolean true value.
2229 breakpoint.c Changed breakpoint_cond_eval() to call value_true() to
2230 check the truth of an expression.
2231
2232 Thu Jul 11 12:51:34 EDT 1991
2233
2234 language.[ch] Added the predicate structured_type(), which returns
2235 non-zero if the argument is a structured type.
2236 Added the predicate pointer_type(), which returns non-zero
2237 if the argument is a pointer type.
2238 eval.c Added the ability to do addition and substraction on
2239 pointers and integers. This case simply bypasses the
2240 type checker.
2241
2242 Thu Jul 11 14:41:42 EDT 1991
2243
2244 include/stab.def
2245 Added the symbol N_DEFD (0x4a) which is a definition
2246 module dependency that is used by the GNU Modula-2
2247 compiler and the linker. It is not important to GDB,
2248 except that [dbx|coff|mips]read.c should ignore these
2249 symbols.
2250
2251 Fri Jul 12 16:07:00 EDT 1991
2252
2253 valprint.c Changed the TYPE_LENGTH(type) >= 0 to TYPE_LENGTH(type) >
2254 0 in val_print(). Also added statements to the else part
2255 to coerce type (argument to val_print) to a pointer type
2256 if it is an "array of unspecified length".
2257 valops.c Added the function value_m2_string(), which returns a
2258 (value) value which is a constant string, whose type is
2259 (ARRAY [0..n] OF CHAR). The length field of the type
2260 structure is set to zero, so it will be interpreted as an
2261 "array of unspecified length".
2262 stack.c Moved the language/frame mismatch check to
2263 main.c:execute_command().
2264 main.c The working language is recorded each time
2265 execute_command() is executed. If working lang has
2266 changed during its execution, then the new
2267 language/type/range info is printed out for the user. If
2268 the working language does not match the language of the
2269 frame, a warning is issued.
2270
2271 Sat Jul 13 16:16:39 EDT 1991
2272
2273 eval.c Moved all the type-checking stuff for operators to
2274 language.[ch] language.c. This is so we can keep language-specific
2275 stuff (like for what type operators are defined) in
2276 language.c.
2277 language.[ch] Added the function binop_type_check(), which checks to see
2278 if its two (value) arguments are type-compatible with its
2279 opcode argument. The opcode should represent an operation
2280 involving an operator. Also added the macro function
2281 unop_type_check, which calls binop_type_check with a
2282 NULL second argument.
2283 expprint.c Added Modula-2 operators to the op_print_tab, so info
2284 expression.h break works correctly. Also added "op_string", which
2285 returns the string corresponding to the (enum exp_opcode)
2286 opcode that is its argument.
2287
2288
2289 Sat Jul 13 18:26:18 EDT 1991
2290
2291 coffread.c Added code to record the type of function arguments with
2292 each paricular function. Code is very similar to that
2293 added to dbxread.c.
2294 dbxread.c Moved add_param_to_type() to symtab.c
2295 symtab.[ch] Added function add_param_to_type() from dbxread.c
2296
2297 *** NOTE: The above additions have not been tested.
2298
2299 Mon Jul 15 12:50:47 EDT 1991
2300
2301 langauge.[ch] Added the functions type_error and range_error, which work
2302 like error() except if the type/range mode is set to
2303 *_mode_warn, then they do not do a return_to_top_level(),
2304 but merely print a warning.
2305 Also changed [set|show]_[type|range]_command() to support
2306 the new "warn" feature.
2307
2308 Thu Jul 18 17:50:54 EDT 1991
2309
2310 mipsread.c Added code to record the type of function arguments with
2311 each particular function. Code is very similar to that
2312 added to dbxread.c.
2313
2314 *** NOTE: The above additions have not been tested.
2315
2316 Fri Jul 19 11:19:10 EDT 1991
2317
2318 defs.h Added macros MAX_OF_SIZE, MIN_OF_SIZE, UMAX_OF_SIZE, and
2319 UMIN_OF_SIZE, which when given a size of a numeric type,
2320 return the maximum and minimum value it can hold. UMAX...
2321 and UMIN... return the result for unsigned types.
2322 symtab.h Added the macros MAX_OF_TYPE and MIN_OF_TYPE to operate on
2323 struct types. They call above macros.
2324 dbxread.c Renamed the MAX and MIN_OF_TYPE macros to ..._OF_CTYPE to
2325 avoid a name conlict with the above.
2326 c-exp.y Added range checking on numeric constants in
2327 parse_number() for completeness.
2328 valarith.c Made binop_user_defined_p() and unop_user_defined_p()
2329 return 0 if working_lang is not language_c.
2330
2331 Thu Aug 8 14:17:22 EDT 1991
2332
2333 main.c
2334 printcmd.c
2335 breakpoint.c Documentation strings of some commands changed to
2336 eliminate the references to the C language where
2337 appropriate.
2338
2339 Tue Aug 13 15:48:03 EDT 1991
2340
2341 m2-exp.y Added qualified identifiers to the grammar. The semantics
2342 are slightly different from those of the GDB operator ::
2343 c-exp.y
2344 m2-exp.y Added a rule to each grammar of the form: start ::= exp |
2345 type_exp, where type_exp is any valid type expression.
2346 expression.h
2347 eval.c Added the opcode OP_TYPE, and an error case in eval.c.
2348 printcmd.c Modified ptype_command() so it actually parses the input
2349 (necessary for type expressions with scope qualifiers).
2350 Added the function ptype_eval() which expects an
2351 expression composed of one OP_TYPE element.
2352 *.[ch] Replaced all occurences of parse_c_expression with
2353 parse_expression
2354 *.[ch] Replaced all occurences of parse_c_1 with parse_exp_1
2355
2356 [End of ChangeLog entries from Andrew Beers for Modula-2 support.]
2357
2358 Mon Sep 16 17:19:46 1991 John Gilmore (gnu at cygnus.com)
2359
2360 Small fixes from Peter Schauer:
2361
2362 * infrun.c (child_attach): Lint.
2363 * solib.c (find_solib): Handle shared libs version 2.
2364
2365 Small fixes from David Wood:
2366
2367 * xm-ultra3.h (SYS_SIGLIST_MISSING): Typo.
2368
2369 Small fixes:
2370
2371 * remote-vx.c: Move <stdio.h> to top, for FILE. Fix from
2372 John S <basrai%kanga.dnet@c3po.sm-alc.af.mil>.
2373
2374 * utils.c (wrap_here): Avoid wrap action of fputs_filtered if
2375 chars_per_line is at maximum (user typed `set width 0'). Fix
2376 from Andreas Schwab <schwab@ls5.informatik.uni-dortmund.de>.
2377
2378 Tue Sep 17 17:31:04 1991 Stu Grossman (grossman at cygnus.com)
2379
2380 * coredep.c: include ptrace.h where necessary.
2381 * mipsread.c(parse_lines): fix unsigned char problem that was
2382 messing up line numbers on SGI's and possibly other MIPS based
2383 platforms.
2384 * infrun.c (child_create_inferior): use better test to check
2385 return val from setpgrp().
2386 * tm-irix3.h, xm-irix3.h, tconfig/irix3, xconfig/irix3: add these
2387 for sgi/irix support.
2388
2389 Wed Sep 18 04:33:31 1991 Per Bothner (bothner at cygnus.com)
2390
2391 * mipsread.c (parse_symbol): Put non-static procedures
2392 in the global block.
2393
2394 Fri Sep 13 00:14:52 1991 John Gilmore (gnu at cygnus.com)
2395
2396 Patch together `text_start' and `text_end' for 29K port.
2397
2398 * exec.c (exec_command): If NEED_TEXT_START_END, define the
2399 variables and set them based on the exec file.
2400 * am29k-tdep.c: declare text_start.
2401 * valops.c (call_function_by_hand): declare text_end.
2402
2403 * inferior.h: Eliminate CANNOT_EXECUTE_STACK in favor of
2404 defining CALL_DUMMY_LOCATION as BEFORE_TEXT_END. This is
2405 because machines that do this will also have to know to
2406 set NEED_TEXT_START_END. Besides, it was a redundant way to
2407 say the same thing.
2408 * tm-29k.h, tm-convex.h, tm-np1.h: Eliminate
2409 CANNOT_EXECUTE_STACK, define CALL_DUMMY_LOCATION and
2410 NEED_TEXT_START_END.
2411
2412 Thu Sep 12 00:22:24 1991 John Gilmore (gnu at cygint.cygnus.com)
2413
2414 AMD 29000 changes from David Wood <wood@david.ultra.nyu.edu>:
2415
2416 * Makefile.in (CLIBS): Put XM_CLIBS and TM_CLIBS at end.
2417 Pass MUNCH_DEFINE to munch whenever we run it.
2418 * am29k-pinsn.c (print_insn): Handle NOP specially. Avoid %#x
2419 format string; use 0x%x instead.
2420 * am29k-tdep.c: Use DUMMY_SAVE_GREGS and RETURN_REGNUM.
2421 * ultra-xdep.c, xm-ultra.h: New files for Ultracomputer host system.
2422 * xm-rtbsd.h: New host support for RT/PC running BSD Unix.
2423 * inflow.c: Handle `short' process group IDs.
2424 * infptrace.c (fetch_register): Support CANNOT_FETCH_REGISTER,
2425 and check for ptrace errors.
2426 * coffread.c (SDB_REG_TO_REGNUM): Define if not already.
2427 (coff_symfile_init): Initialize text_bfd_scnum.
2428 (read_coff_symtab): Use it to find the text [and absolute?] sections.
2429 * ../config.sub: Add vendor nyu and os "sym[1-9]*".
2430 * configure.in: Add hosts rtpc-*-* and a29k-*-*.
2431 Merge target arm case with other "easy" cases. Add target
2432 cases a29k-*-none (rehack of am29k), a29k-*-kern (remote to
2433 Ultracomputer kernel), and a29k-*-sym1 (ultracomputer OS's user
2434 process).
2435 * minimon.h, remote-adapt.c, remote-mm.c: Add.
2436 * munch: Cope with RT/PC putting fns in data segment.
2437 Restore ability to override `nm' by specifying MUNCH_NM.
2438 * xconfig/rtbsd, xconfig/ultra3: New host systems.
2439 * tconfig/a29k: Rename from tconfig/am29k. Add remote-mm
2440 and remote-adapt. Remove encapsulated coff #define's (the
2441 support should go in BFD, and gdb shouldn't know or care).
2442 * tconfig/a29k-kern: Same, but for remote kernel debugging.
2443 * tconfig/ultra3: For debugging user processes on Ultra3/Sym1.
2444 * tm-29k.h: Update BADMAG (though it should go away).
2445 Allow the register definitions to be overridden in another
2446 tm-file. Fix SR_REGNUM. Add a mess of _REGNUM's. Separate
2447 RETURN_REGNUM from GR96_REGNUM and DUMMY_SAVE_GREGS from
2448 DUMMY_SAVE_GR96, for handling kernel calling conventions
2449 that use GR64+ rather than GR96+.
2450 * tm-ultra3.h: New file, for use on Ultra3 Unix as well as for
2451 remote debugging of Ultra3 kernel. Includes tm-29k.h and
2452 overrides various things.
2453
2454 * remote-mm.c (mm_attach, mm_wait): Handle attach like
2455 child_attach does, making a clean stop in the newly attached
2456 program.
2457 * remote-eb.c: Lint.
2458
2459 * coffread.c: Make coffread independent of any particular
2460 variant of COFF. Avoid #include-ing any particular one except
2461 internalcoff.h. BFD now passes key values for symbol reading
2462 as part of its coff_data structure (LINESZ, SYMESZ, AUXESZ,
2463 and the symbol masks and shifts); use them.
2464 Remove obsolete end_of_text_addr.
2465
2466 * exec.c: Remove unused include files.
2467
2468 Wed Sep 11 19:38:44 1991 John Gilmore (gnu at cygint.cygnus.com)
2469
2470 * Makefile.in (documentation targets): Pass $(M4).
2471 Bugfix from eggert@twinsun.com (Paul Eggert).
2472
2473 * stack.c (down_silently_command): Check for stack existence.
2474
2475 Tue Sep 10 23:08:29 1991 John Gilmore (gnu at cygint.cygnus.com)
2476
2477 * Makefile.in (VERSION): Update to 4.0.3.
2478
2479 Tue Sep 10 09:19:29 1991 John Gilmore (gnu at cygint.cygnus.com)
2480
2481 * core.c (core_file_command): Print frame at coredump with
2482 its level number, by calling print_stack_frame.
2483 * frame.h: Add selected_frame_level, print_stack_frame.
2484 * frame.h, stack.c: Remove print_sel_frame, print_selected_frame.
2485 * convex-tdep.c, convex-xdep.c, infcmd.c, inflow.c, infrun.c:
2486 Change print_sel_frame and print_selected_frame callers to
2487 print_stack_frame.
2488
2489 * dbxread.c (read_ofile_symtab): Avoid empty else clause.
2490 * symfile.c (free_named_symtabs): Ditto.
2491 * main.c (main): wrap_here needs an arg.
2492 * solib.c (find_solib): Avoid memory access if _DYNAMIC is zero.
2493 (solib_add): Avoid noise.
2494 (solib_create_inferior_hook): Lint.
2495 (sharedlibrary_command): Move dont_repeat to here.
2496 * utils.c (error): Call wrap_here to force buffered output.
2497
2498 Small patches from Peter Schauer:
2499
2500 * coffread.c (start_symtab): Free any existing line_vector before
2501 malloc-ing new one.
2502 (read_coff_symtab): Ditto for type_vector.
2503
2504 * source.c (lines_to_list): New variable, replacing function.
2505 (all uses): Use as variable.
2506 (_initialize_source): Add 'set listsize' and 'show listsize'.
2507 * utils.c (lines_to_list): Remove function.
2508 * stack.c (print_frame_info): Use as variable.
2509 * defs.h (lines_to_list): Remove declaration.
2510
2511 Mon Sep 9 13:45:57 1991 John Gilmore (gnu at cygint.cygnus.com)
2512
2513 * breakpoint.c (insert_breakpoints): Restore warning about
2514 the program might be running in another process, but only for
2515 systems with this brain death (#ifdef ONE_PROCESS_WRITETEXT).
2516 * xm-hp300bsd.h, xm-mips.h, xm-vax.h: Define it.
2517
2518 * utils.c (error): if error_pre_print is set, print the string
2519 first.
2520 * main.c (main, print_gnu_advertisement, print_gdb_version):
2521 Reformat legalese so it always prints, but acts as an "I'm here"
2522 message while symbols are being read. If any errors occur,
2523 print a few newlines to set off the message and start it at the
2524 left margin. Remove mention of "help" command, and don't yak
2525 about symbol reading.
2526 (catch_errors): Error string is now printed first in case of
2527 error, not last.
2528 * command.c (undef_cmd_error, lookup_cmd): On undefined command,
2529 suggest the "help" command.
2530
2531 * Makefile.in (VERSION): Set to 4.0.2.
2532
2533 Thu Sep 5 23:49:48 1991 John Gilmore (gnu at cygint.cygnus.com)
2534
2535 * .gdbinit: Remove useless "rr" command. Set complaints
2536 to 1 for people debugging gdb.
2537
2538 * breakpoint.c, remote-vx.c: Reword strings printed by
2539 catch_errors callers.
2540
2541 Wed Sep 4 11:07:50 1991 John Gilmore (gnu at cygint.cygnus.com)
2542
2543 * WHATS.NEW: "history write -> history save". Doc "write on/off".
2544 (Fix from kenc@viewlogic.com.)
2545
2546 Fix some infrastructure to be able to cope with host and target
2547 machines with different sized basic types (ints, ptrs, etc).
2548 (Idea from pierre@la.tce.com (Pierre Willard).)
2549
2550 * values.c (value_from_longest): Rename from value_from_long.
2551 Handle pointer types as well as integers, so that targets with
2552 different pointer sizes from the host can be accomodated.
2553 * breakpoint.c, convex-tdep.c, eval.c, expprint.c, printcmd.c,
2554 valarith.c, valops.c, valprint.c, value.h, values.c: Rename
2555 uses of value_from_long to value_from_longest.
2556 * eval.c, findvar.c, printcmd.c, valarith.c, valops.c: Pass
2557 the correct pointer type to value_from_long{est}.
2558
2559 * doc/gdb.texinfo ($_, $__): Describe types of these variables.
2560
2561 * remote-vx.c: Remove obsolete code for calling functions via
2562 vxworks kludge interface (it referenced value_from_long).
2563
2564 * valops.c (value_string): Find malloc with lookup_misc_func, not
2565 raw search.
2566
2567 Tue Sep 3 18:37:46 1991 John Gilmore (gnu at cygint.cygnus.com)
2568
2569 Make writing to files work properly. (Fixes to BFD are also needed.)
2570
2571 * core.c (core_open): Open file ourselves, read or r/w, depending on
2572 write_files. Use bfd_fdopenr.
2573 * gdbcore.h (write_files): New variable.
2574 * exec.c (write_files): Define variable, add set&show for it.
2575 (exec_file_command): Use write_files to open for read or r/write.
2576
2577 Make shared library reading happen automatically. These changes
2578 are mostly from Peter Schauer <pes@regent.e-technik.tu-muenchen.de>.
2579
2580 * inferior.h (stop_soon_quietly): Add to exported variables.
2581 * infrun.c (child_create_inferior): call solib hook, if defined.
2582 (child_attach): call solib hook, if defined.
2583 * solib.c: Include inferior.h. Add from_tty to so_list as kludge.
2584 (find_solib): Use lookup_misc_func rather than hand-rolled.
2585 (symbol_add_stub): New stub for catch_errors.
2586 (solib_add): Avoid output if !from_tty. Catch errors rather
2587 than just calling symbol_file_add and bombing.
2588 (solib_create_inferior_hook): Interface with the target process
2589 to let it read and alloc shared libs, then figure out what it did.
2590
2591 * core.c (validate_files): Fix typo, soften warning.
2592 (Fix from Hiroto Kagotani <kagotani@cs.titech.ac.jp>.)
2593
2594 * utils.c (fputs_demangled): Avoid duplicate printing if
2595 demangling is off. (Fix from J.T. Conklin <jtc@cayenne.com>.)
2596
2597 * infrun.c (proceed): Cast -1 to (CORE_ADDR) before comparing.
2598 (Fix from pierre@la.tce.com (Pierre Willard).)
2599
2600 * main.c (catch_errors): Change argument to a char * from an int,
2601 since a char * can point to a struct full of glop, but an int
2602 is not guaranteed to be able to hold a pointer.
2603 * breakpoint.c (breakpoint_cond_eval, bpstat_stop_status,
2604 breakpoint_re_set_one, breakpoint_re_set): Adapt.
2605 * core.c (core_open, solib_add_stub): Adapt.
2606 * remote-vx.c (symbol_stub, add_symbol_stub, callers): Adapt.
2607
2608 Wed Aug 28 18:18:05 1991 John Gilmore (gnu at cygint.cygnus.com)
2609
2610 * Makefile.in: Update VERSION to 4.0.1. Evade GNU Make bug
2611 by adding .NOEXPORT target.
2612
2613 Fri Aug 23 17:14:25 1991 John Gilmore (gnu at cygint.cygnus.com)
2614
2615 * GDB-4.0 release!
2616 * Update README.
2617 * Makefile.in (VERSION): Roll to 4.0.
2618 (gdb.tar.Z): Make refcard.ps as well, for shipment.
2619
2620 Fri Aug 23 14:07:09 1991 Roland H. Pesch (pesch at cygint.cygnus.com)
2621
2622 * doc/gdb.texinfo: minor rewordings, crossref to ptype from print,
2623 more on printsyms.
2624
2625 * doc/Makefile, Makefile.in: generate "gdb-all.texi" rather than
2626 "gdb-all.texinfo"
2627
2628 * doc/rdl-apps.texi: renamed from rdl-apps.texinfo
2629
2630 * Makefile.in, doc/Makefile, doc/.Sanitize, doc/gdb.texinfo:
2631 reflect above name change
2632
2633 * WHATS.NEW: correct pointer to refcard.
2634
2635 * doc/gdb.texinfo: update New Features, Installing
2636
2637 * doc/gdbint.texinfo: add short description of configure +template
2638
2639 Fri Aug 23 11:46:08 1991 Roland H. Pesch (pesch at cygint.cygnus.com)
2640
2641 * doc/gdb.texinfo: update, fix bugs in "Installing" appendix
2642
2643 Fri Aug 23 01:02:00 1991 John Gilmore (gnu at cygint.cygnus.com)
2644
2645 * Makefile.in: Add config.sub, make doc/rdl-apps.texinfo for
2646 tar file, add dependencies for referenced doc files.
2647
2648 Thu Aug 22 22:17:06 1991 Stu Grossman (grossman at cygint.cygnus.com)
2649
2650 * coffread.c, symfile.c, stack.c: saberized.
2651
2652 Thu Aug 22 16:20:27 1991 Roland H. Pesch (pesch at cygint.cygnus.com)
2653
2654 * doc/refcard.tex: permuted Essential Commands sec
2655
2656 * doc/gdb.texinfo: new C++ chapter; revised installation appendix;
2657 new doc for
2658 set/show symbol-reloading
2659 default set complaints 0
2660 info all-registers
2661 RET-repeat disabled after prompted long displays
2662 processID (attach) interpretation of 2nd GDB cmdline arg
2663
2664 Thu Aug 22 14:05:47 1991 Stu Grossman (grossman at cygint.cygnus.com)
2665
2666 * expread.y, coffread.c, dbxread.c, target.c, mem-break.c,
2667 cplus-dem.c, values.c, valprint.c, symfile.c, remote.c,
2668 breakpoint.c, main.c: lint.
2669
2670 Thu Aug 22 02:02:26 1991 John Gilmore (gnu at cygint.cygnus.com)
2671
2672 Install new configuration scheme for GDB and friends.
2673
2674 * config.sub: Translate ordinary names to three-part names.
2675 * configure: Use three-part names internally.
2676 * configure.in: Translate three-part names to filenames.
2677
2678 * README, WHATS.NEW: Update for gdb-4.0.
2679 * Makefile.in: Roll VERSION to 3.99.
2680
2681 Wed Aug 21 18:21:09 1991 John Gilmore (gnu at cygint.cygnus.com)
2682
2683 * infptrace.c (KERNEL_U_ADDR_BSD): Include a.out.gnu.h.
2684 * i960-tdep.c, m68k-tdep.c, sparc-tdep.c, tm-i960.h,
2685 tm-m68k.h, remote-nindy.c: Change ext_format_XXX structs
2686 to single structures rather than arrays; when passing
2687 their address, use &. This avoids trouble with bdead compilers.
2688 * mcheck.c: Don't include <stdlib.h>; just declare "void abort();"
2689 instead. This avoids portability headaches.
2690 * mips-tdep.c (mips_do_registers_info): Only print FP regs if
2691 asked to.
2692 * source.c (open_source_file): Avoid ANSI const bdeath by
2693 skipping declaration and then casting result value.
2694 * tm-hp300bsd.h: Clarify comment.
2695 * utils.c (strstr): Result is const char *; ANSI bdeath.
2696 * xm-hp300bsd.h: Define HOST_BYTE_ORDER. Redefine INT_MIN,
2697 since system include file defines it differently from "defs.h",
2698 though the two are equivalent for our purposes.
2699 * tconfig/hp300bsd: Add m68k-tdep.o.
2700
2701 Tue Aug 20 16:01:11 1991 John Gilmore (gnu at cygint.cygnus.com)
2702
2703 * tconfig/sun*4: Remove warnings about system assembler.
2704
2705 Mon Aug 19 13:44:46 1991 John Gilmore (gnu at cygint.cygnus.com)
2706
2707 * mcheck.c: Avoid warning about undeclared abort fn.
2708 * tm-sparc.h (PC_ADJUST): Avoid calling error() from this;
2709 it causes recursive calls to error() when used in cleanups.
2710 To do so requires that we make it a function, so we do.
2711 * sparc-tdep.c (sparc_pc_adjust): New implem of PC_ADJUST.
2712 * utils.c (do_cleanups): Remove the current cleanup from the
2713 chain *before* calling it, in case error() is called from it.
2714 The result won't be pretty, but won't be an infinite loop either.
2715
2716 Mon Aug 19 00:41:04 1991 Michael Tiemann (tiemann at cygint.cygnus.com)
2717
2718 * dbxread.c (read_struct_type): Grok anon structs for C++.
2719 (vb_name, vptr_name): Null terminate these strings.
2720
2721 Fri Aug 16 08:31:03 1991 John Gilmore (gnu at cygint.cygnus.com)
2722
2723 Minor bug fixes from BSD Net2 gdb:
2724
2725 * blockframe.c (get_prev_frame_info): If FRAME_CHAIN_COMBINE
2726 returns 0, there is no previous frame.
2727 * breakpoint.c (commands_command): If !from_tty, don't call
2728 input_from_terminal_p().
2729 * dbxread.c (record_misc_function): Speed up slightly.
2730 (compare_psymbols): Ditto.
2731 * infcmd.c (do_registers_info): Take a second argument to
2732 determine whether to print float registers. "info registers"
2733 does not do so anymore. "info all-registers" does, now.
2734 * mips-tdep.c, pyr-tdep.c (xxx_do_registers_info): Take second
2735 arg and ignore it.
2736 * tm-mips.h, tm-pyr.h (DO_REGISTERS_INFO): Pass second arg.
2737 * inflow.c (initialize_inflow): Set tflags_ours correctly.
2738
2739 Other fixes:
2740
2741 * breakpoint.c (bpstat_do_actions): Use a cleanup to restore
2742 executing_breakpoint_commands if we are interrupted by error.
2743 * coffread.c (init_lineno): Avoid problem with zero-sized linetab
2744 versus malloc/free. From: john@labtam.labtam.oz.au (John Carey).
2745 * core.c (solib_add_stub, core_open): Call SOLIB_ADD inside a
2746 catch_errors() so we can setup the frame regardless of whether
2747 the shared libs work.
2748 * ieee-float.c (double_to_ieee_extended): Get exponent from
2749 right place in little-endian systems. From John Carey.
2750
2751 Thu Aug 15 18:43:57 1991 John Gilmore (gnu at cygint.cygnus.com)
2752
2753 * main.c: Remove unused terminating_signals and catch_termination().
2754 (long_options): Terminate with a zero element.
2755 [Bugfix from Atsuo Kawaguchi <atsuo@hark86.harl.hitachi.co.jp>.]
2756 (gdb_readline): Make call-compatible with readline.
2757 (init_signals): Improve comments re vfork vs. signal.
2758
2759 * utils.c (prompt_for_continue): Use new gdb_readline().
2760 If we prompt for continuation, we don't let CR repeat the previous
2761 command, once we get back to a prompt. It's too easy to keep
2762 hitting CR, expecting "--more--" prompts, and have some long
2763 command start repeating on you.
2764
2765 Tue Aug 13 16:17:56 1991 John Gilmore (gnu at cygint.cygnus.com)
2766
2767 * blockframe.c (frameless_look_for_prologue): Speed up by
2768 calling SKIP_PROLOGUE_FRAMELESS_P if it's defined.
2769 * tm-sparc.h (SKIP_PROLOGUE, SKIP_PROLOGUE_FRAMELESS_P):
2770 Define two variants, one faster.
2771 * sparc-tdep.c (sparc_frame_chain): Use target_read_memory
2772 and return zero, rather than giving an error.
2773 (setup_arbitrary_frame): Initialize the PC in the new frame.
2774 (skip_prologue): Add a second arg saying whether we're just
2775 checking for a frameless function or not.
2776
2777 * core.c (core_open, core_close, core_xfer_memory): Move
2778 section table pointers and bfd* into the target_ops.
2779 (core_open): Allow errors in shared lib reading, etc.
2780 (core_files_info): Describe shared library sections.
2781
2782 * exec.c (exec_open, exec_close, exec_xfer_memory, xfer_memory,
2783 exec_files_info, set_section_command): Move section table
2784 pointers and bfd* into the target_ops.
2785 (add_to_section_table): Add BFD to section table.
2786
2787 * target.c (target_xfer_memory, target_info): Pass target to
2788 xfer_memory and target_info functions.
2789 * target.h: ''
2790
2791 * gdbcore.h: Move struct section_table.
2792 * target.h: New home of struct section_table.
2793
2794 * solib.c (solib_add): New argument is the target_ops whose
2795 section list is to be added to, if any. Reallocate the
2796 sections in that target to add any that come from shared libs.
2797 (throughout) so_sections renamed to sections.
2798 (solib_xfer_memory): Deleted.
2799 * tm-sunos.h (SOLIB_ADD): Add target argument.
2800 (SOLIB_XFER_MEMORY): Delete.
2801
2802 * core.c, exec.c, inftarg.c, remote-eb.c, remote-nindy.c,
2803 remote-vx.c, remote.c, target.c, target.h: Remove add_syms vector
2804 from target_ops. It's the same on all targets. Add two section
2805 pointers to target_ops.
2806
2807 * stack.c (find_relative_frame): Dump ancient algorithm for
2808 "down", just use handy "next" pointers.
2809 (frame_command): Don't error if there is no stack; let user
2810 set one.
2811
2812 * inflow.c (new_tty_prefork, new_tty): New prefork routine
2813 modifies static state in the parent process; new_tty itself
2814 runs in the child and modifies the child's file descriptors
2815 to match the saved static state.
2816 * infrun.c (child_create_inferior): Call new_tty_prefork,
2817 fork, then new_tty.
2818
2819 * infptrace.c (child_xfer_memory): Add ignored target arg.
2820 * remote-eb.c (eb_xfer_inferior_memory): ''
2821 * remote-nindy.c (nindy_xfer_inferior_memory): ''
2822 * remote-vx.c (vx_xfer_memory): ''
2823 * remote.c (remote_xfer_memory): ''. Rename from
2824 remote_xfer_inferior_memory.
2825
2826 * main.c (main): Only try to attach "corefile" argument if
2827 it starts with a digit.
2828
2829 * symfile.c (symbol_reloading): New "set/show" variable.
2830 (symbol_file_add): Shorten message about symbol reading.
2831 (add_symbol_file_command): Merge with add_syms_addr_command,
2832 since this should work on all targets now.
2833 (stop_whining): Default to zero, to shut up complaints
2834 about bad symbol tables on many systems.
2835 (free_named_symtabs): Just exit unless symbol_reloading.
2836
2837 * xm-sun3os4.h, xm-sun4os4.h: Define BROKEN_LARGE_ALLOCA,
2838 and add comment explaining shared library screw.
2839
2840 * source.c: #if defined => #ifdef.
2841
2842 Thu Aug 8 12:23:19 1991 John Gilmore (gnu at cygint.cygnus.com)
2843
2844 * doc/gdbint.texinfo: Improve doc on porting to new OS's.
2845
2846 Tue Aug 6 17:16:15 1991 Roland H. Pesch (pesch at cygint.cygnus.com)
2847
2848 * doc/rdl-apps.texinfo: provide default readline-appendix finder
2849 (doc/Makefile knows how to make one for local config)
2850
2851 * Makefile.in: use doc/Makefile for doc targets
2852
2853 * doc/Makefile: GDB documentation now has its own Makefile
2854 doc/refcard.tex: renamed from "gdbrc.tex"
2855 doc/.Sanitize: add Makefile; recognize renamed refcard.tex
2856 doc/gdbint.texinfo: add markup in "Cleanups" chapter
2857
2858
2859 Fri Aug 2 00:13:06 1991 John Gilmore (gnu at cygint.cygnus.com)
2860
2861 * values.c (baseclass_addr): When reading target memory, use the
2862 length of the basetype, not the upper type. We've only malloc'd
2863 enough space for the basetype, leading to errors in free().
2864
2865 * expprint.c (print_subexp): Print UNOP_MEMVAL of an OP_LONG that
2866 ends up as a function specially, since we know the actual type of
2867 the pointed-to address. This (somewhat) fixes display of
2868 expressions that include misc_function_vector names. Try `cond 1
2869 !strcmp("a","b")' then `i b'.
2870
2871 * infrun.c: Move DO_DEFERRED_STORES from proceed() to resume().
2872 The child can be proceeded from inside wait_for_inferior in
2873 evaluating breakpoint conditions, and DO_DEFERRED_STORES was
2874 getting skipped in that case.
2875
2876 * expprint.c (print_subexp): Use filtered output, since the
2877 subroutines we call use it, otherwise the output is horribly
2878 mangled, since output of wrappable stuff comes out late.
2879
2880 * Makefile.in: Bump VERSION to 3.98.1
2881
2882 * infrun.c (child_create_process): Use execlp to find the
2883 shell to exec our target program. This requires some fiddling
2884 with `environ' since there is no execlpe().
2885
2886 Thu Aug 1 15:35:17 1991 Roland H. Pesch (pesch at fowanton.cygnus.com)
2887
2888 * Makefile.in, doc/gdbrc.tex, doc/rc-* (new files):
2889 Minor rearrangement of refcard permits two new make targets--
2890 gdbrc.dvi DVI output for refcard, using CM fonts
2891 gdbrc.ps PostScript refcard, using PS fonts
2892
2893 Wed Jul 31 16:46:21 1991 John Gilmore (gnu at cygint.cygnus.com)
2894
2895 * GDB-3.98 release.
2896
2897 * TODO, Projects, WHATS.NEW, README: Update for gdb-3.98.
2898 * Makefile.in (gdb-all.texinfo): Avoid touching file if M4 dies.
2899
2900 Wed Jul 31 16:35:58 1991 Roland H. Pesch (pesch at cygint.cygnus.com)
2901
2902 * doc/gdb.texinfo: last changes for release.
2903 Minor typo and formatting fixes; incorporated most fixes remaining from
2904 filed mail commenting on earlier drafts.
2905
2906 Added warnings: pipes don't work in run command;
2907 conditions are converse of assertions;
2908 step over fn without debug info goes to next fn;
2909 vars may have "wrong" values near fn entrance, exit
2910
2911 Added example from Kingston on printing repeated nonadjacent values
2912
2913 Added explicit mention that in Emacs gdb mode C-c and C-z are like
2914 shell mode for signals
2915
2916 Renamed "Stepping and Continuing" to "Continuing and Stepping" so it
2917 doesn't sound so much like its parent "Stopping and Continuing"; also
2918 moved entries on continue to top of section, so they don't get lost.
2919
2920 Improved installation directions in appendix, added manual formatting
2921 instructions
2922
2923 Tue Jul 30 17:26:39 1991 John Gilmore (gnu at cygint.cygnus.com)
2924
2925 * configure.in: Remove xm.h and tm.h even if we aren't linking
2926 new ones, so "./configure sun4; ./configure none" does the right
2927 thing. Assume that alldeps.mak and depend are already built in
2928 srcdir, and avoid running "make" (particularly "make depend",
2929 which involves "gcc") from inside configure. Build Makefile
2930 directly rather than building Makefile.conf first.
2931 * configure: Regenerate with above changes.
2932 * Makefile.in: Use $(BISON) to find bison. Roll VERSION
2933 to 3.98. Revise gdb.tar.Z procedure to produce a file
2934 called gdb-$(VERSION).tar.Z but which unpacks into a
2935 directory called "gdb". Move non-source files out of
2936 $(SFILES_SUBDIR). Pretty up alldeps.mak with comments.
2937 (depend): Don't try to do "gcc expread.y".
2938 (expread.o): Update dependencies by hand.
2939
2940 Mon Jul 29 15:21:09 1991 Roland H. Pesch (pesch at cygint.cygnus.com)
2941
2942 * doc/gdb.texinfo:
2943 Fixed a variety of small typos that prevented info from formatting
2944 cleanly; altered too-long heading for GPL Appendix, as discussed
2945 w/RMS; Changed date on cover to July 91.
2946
2947 Fri Jul 26 13:20:02 1991 Roland H. Pesch (pesch at cygint.cygnus.com)
2948
2949 * doc/gdb.texinfo:
2950 (1) Applied some fixes due to comments from Larry Breed (easier ones
2951 through chapsec 5.2)
2952 (2) Eliminated use of @footnote---had my doubts about it anyways, and
2953 it's broken in latest texinfo
2954 (3) Introduced *some* use of [] for optional arguments, where
2955 explanation is not simpler by listing cmd w arg and cmd w/out arg
2956 separately. Still not using @deffn.
2957 (4) Dropped in GPL-2. NOTE: one of GPL-2 or texinfo is broken; a
2958 couple of headings are too long. Need patches to texinfo or revision
2959 to GPL-2.
2960
2961 * Partial update to README (which still needs work for this
2962 release!): (1) use of configure corrected for new script,
2963 (2) "make gdb.dvi" and "make gdb.info" mentioned.
2964
2965 Wed Jul 24 06:44:02 1991 John Gilmore (gnu at cygint.cygnus.com)
2966
2967 * symtab.c (lookup_symbol): Don't complain right off about
2968 no debug symbols; use the misc function vector first.
2969 (list_symbols): Use misc function vector to find symbols
2970 that don't have debug info, and print them.
2971 (find_pc_symtab): Temporarily avoid fatal() when psymtab
2972 PC range doesn't match symtab PC range, as it does on the
2973 MIPS because our symtab reading isn't perfect.
2974
2975 * dbxread.c (dbx_symfile_read): Make warning about
2976 "no debug symbols" slightly nicer.
2977
2978 * source.c (select_source_symtab): If "main" symbol exists,
2979 but decode_line_spec can't find line info, don't just return
2980 a zero; try other source symtabs or give an error.
2981
2982 * mipsread.c (parse_partial_symbols): Sort the psymtabs by
2983 their low addresses first, then rip through fixing high addrs.
2984
2985 * ns32k-opcode.h (sfsr): Bugfix from Rune Nerg}rd,
2986 <runene@ifi.uio.no>.
2987 (NS32K_SVC_IMMED_OPERANDS): Reverse the #ifndef.
2988
2989 Tue Jul 23 18:52:43 1991 Roland H. Pesch (pesch at cygint.cygnus.com)
2990
2991 * Minor, mostly mechanical, cleanup of doc subdir for clean
2992 makeinfo'ing and TeXing; also ensured gdb-all.texinfo (post-m4)
2993 and gdb.info (post- texinfo2 makeinfo) generated for distribution.
2994
2995 Sun Jul 21 03:54:52 1991 John Gilmore (gnu at cygint.cygnus.com)
2996
2997 Mostly MIPS and general symbol-reading fixups.
2998
2999 * doc/gdbint.texinfo: Add documentation on symbol-reading
3000 interface.
3001
3002 * mipsread.c: Remove kludges around #include "ecoff.h".
3003 Remove redefinitions of a_magic, etc, no longer used.
3004 (parse_symbol, ): Convert "Internal:" printfs to complain()ts.
3005 Fix global overview comments to match symfile.c protocol.
3006 (mipscoff_new_init): Eliminate cur_hdr if we have one.
3007 (mipscoff_symfile_read): Eliminate unused code. Avoid
3008 sorting all the symtabs, when all we have read here is psymtabs.
3009 The symtabs are sorted as they are created anyway. Tell
3010 condense_misc_bunches whether we're mainline.
3011 (psymtab_to_symtab_1): Pass filename when recursing, to make
3012 stack trace more informative.
3013 (parse_partial_symbols): Assume cur_hdr as argument.
3014 (read_mips_symtab): Don't clobber cur_hdr, so it can be freed.
3015 Pass cur_hdr implicitly to parse_partial_symbols. Avoid checking
3016 the TYPE_NAME of char *, since that's done in symfile.c.
3017 (free_numargs, parse_symbol, add_symbol, add_block,
3018 shrink_linetable): Declare these fns void.
3019 (upgrade_type): Convert tree of if's to switch. Clean up
3020 bogus "off == 0" handling with a complaint. Avoid setting
3021 field bitpos and bitsize of array with lower and upper bounds.
3022 Check specified bitsize of elements against their actual type's
3023 bitsize, and complain if different. Complain about unknown
3024 type qualifiers.
3025 (parse_fdr): Don't assume sizeof(char *) == sizeof (struct *).
3026 (psymtab_to_symtab_1): Print names of subsidiary files that
3027 are being read in. FIXME, we read far too many files. This code
3028 is not the problem, the problem is in parse_fdr where the psymtabs
3029 are set up.
3030 (cross_ref): Result should indicate that we used one aux entry
3031 normally, or two if we encountered a "next" entry. This used
3032 to leave the caller pointing at the wrong aux entry.
3033 (add_symbol): If overflowed cur_block, reallocate it larger,
3034 chase all pointers to it, and complain(), rather than clobber memory.
3035 (shrink_block): Use xrealloc rather than xmalloc-and-copy.
3036 (new_field): Only allocate one field initially, not two.
3037 Pull ++ out of macro argument. Simplify.
3038 (_initialize_mipsread): Avoid initialization of importd
3039 global_psymbols and static_psymbols.
3040
3041 * symfile.c (psymtab_to_symtab): Depend on XXX_psymtab_to_symtab
3042 to properly set pst->symtab; avoid searching for it.
3043 (symfile_fns): Improve comments, add a FIXME.
3044 * dbxread.c: Update comments to reflect symfile protocol.
3045 (read_ofile_symtab, end_symtab): Return the symtab.
3046 (psymtab_to_symtab_1): Set pst->symtab.
3047
3048 * coffread.c (coff_symfile_read): tell condense_misc_bunches
3049 whether we're mainline.
3050
3051 * symfile.h (sym_fns): Remove unused sym_discard member.
3052 * coffread.c, mipsread.c, dbxread.c: Remove XXX_symfile_discard.
3053
3054 * mtrace.c (mtrace): Take effect if mallwatch is set, even if
3055 the environment variable is not.
3056 * infcmd.c (finish_command): Use filtered printfs.
3057 * cplus-dem.c: Add struct tags to a few unnamed structs.
3058 * valops.c (value_coerce_array): Improve comments.
3059 * valprint.c (type_print_varspec_suffix): Print array size only
3060 if greater than zero.
3061 * m88k-tdep.c: Shift some lines left by one space, that had
3062 apparently been trashed at some point.
3063 * TODO: More things to do, a few got done.
3064
3065 Thu Jul 18 22:46:05 1991 John Gilmore (gnu at cygint.cygnus.com)
3066
3067 * symtab.h (LOC_EXTERNAL): Eliminate in favor of LOC_STATIC.
3068 (ldsymoff, ldsymlen, globals_offset, statics_offset): Improve
3069 comments.
3070 * dbxread.c (read_dbx_symtab): LOC_EXTERNAL -> LOC_STATIC.
3071 * expread.y, findvar.c, symmisc.c: Ditto.
3072 * printcmd.c (address_info): Update printed forms of LOC_
3073 symbols. Elim LOC_EXTERNAL.
3074 (print_frame_args): Keep track of param stack offsets before
3075 re-looking up to find the local register param is kept in.
3076
3077 * mipsread.c: Use <symconst.h> and <sym.h> rather than <syms.h>.
3078 Further integration of mipsread into gdb. Eliminate unused
3079 routines, duplicate declarations. Handle static symbols in
3080 psymtabs as well as external symbols. When reading symtabs,
3081 insert symbols into the correct block (global, static, or a local
3082 block).
3083 (read_mips_symtab, parse_partial_symbols): Don't pass useless
3084 "incremental" arg.
3085 (mipscoff_symfile_read): Don't call select_source_symtab.
3086 (parse_symbol): Use SYMBOL_VALUE_ADDRESS where appropriate,
3087 rather than SYMBOL_VALUE.
3088 (parse_external): Comment clobbering of top_stack.
3089 (parse_partial_symbols): Update comments. Allocate and parse
3090 static symbols as well as external symbols. FIXME, enum values
3091 are not handled in this pass, but should be. Inline new_psymbol.
3092 Use SYMBOL_VALUE_ADDRESS.
3093 (psymtab_to_symtab_1): Read symbols into global static block
3094 by default (until enter some function's local block context).
3095 (sort_blocks): Clean up STATIC_BLOCK as well as GLOBAL_BLOCK.
3096 (destroy_all_symtabs, new_psymbol): Eliminate, unused.
3097
3098 * source.c (select_source_symtab): Select a source symtab
3099 from either the symtabs or, failing that, the psymtabs.
3100 (list_command): Update error message.
3101 (forward_search_command, reverse_search_command): Use getc, not
3102 fgetc, for speed. FIXME, add comment about buffers that die if
3103 overrun by long line.
3104
3105 * values.c (unpack_field_as_long, modify_field): Avoid shifting
3106 by an entire word, which is not portable, if we have a 32-bit
3107 field. (Code in dbxread.c already turns such bitfields, if
3108 aligned, into ordinary ints, but fixing this will help for other
3109 symbol formats and for future changes.)
3110 * core.c (core_open): Handle ANSI const brain death.
3111 * utils.c (vprintf): Fix varargs typo.
3112
3113 Sun Jul 14 00:42:53 1991 John Gilmore (gnu at cygint.cygnus.com)
3114
3115 * findvar.c (find_var_value): Handle &function better.
3116 * TODO: Document work needed on &fn and &array.
3117 * printcmd.c (print_address_symbolic): New arg is the prefix
3118 to print if a name is printed.
3119 (print_address_demangle): Honor "set print address" now.
3120 Use new arg above to improve spacing of output.
3121 * valprint.c (val_print): When printing function pointers,
3122 print symbolic form too.
3123 * breakpoint.c (breakpoint_1): Use new print_address_symbolic.
3124
3125 Mon Jul 8 19:02:46 1991 John Gilmore (gnu at cygint.cygnus.com)
3126
3127 * core.c (memory_error): Reword error msg to mislead less.
3128
3129 * mips-pinsn.c (print_insn_arg 'd'): Print $ with reg name.
3130
3131 * mipsread.c (read_mips_symtab, read_the_mips_symtab,
3132 parse_partial_symbols): Use newer BFD internals (external_filehdr
3133 and external_aouthdr), byte-swap the fields that we care about
3134 before using them, and make the file header data local to
3135 read_the_mips_symtab rather than global.
3136
3137 Sat Jul 6 01:34:15 1991 John Gilmore (gnu at cygint.cygnus.com)
3138
3139 * ns32k-opcode.h (movmw, movmd): Fix opcodes. Bug fix
3140 from Rune Nerg}rd <runene@ifi.uio.no> on 5 Jul 1991.
3141
3142 * main.c (command_line_input): Flush stdout and stderr
3143 before every call to readline. This reportedly fixes a bug
3144 that comes up in Sys V running emacs-gdb and/or xxgdb,
3145 when stdin/out are pipes or sockets.
3146
3147 Thu Jul 4 14:47:06 1991 John Gilmore (gnu at cygint.cygnus.com)
3148
3149 * configure.in, Makefile.in: Avoid rebuilding "depend" as much.
3150 Avoid declaring Makefile dependencies, because GNU Make stupidly
3151 tries to update it if we do.
3152
3153 * coffread.c: Revise for minor changes to bfd internal coff
3154 indexes.
3155
3156 * configure: If -template= is given a relative path, make it
3157 absolute before recurring in subdirectories.
3158
3159 * configure, configure.in, Makefile.in: Install "configure" script
3160 as replacement for config.gdb.
3161 * config.gdb, Makefile.dist, Makefile.sdir: Remove
3162 * README: Update for configure, mostly. FIXME.
3163
3164 * Add dec3100 as equivalent to littlemips. Indicate in all host &
3165 target config files that they are for the host. When the lines
3166 get copied into the Makefile, this makes it more obvious what's
3167 up.
3168
3169 Mon Jun 24 23:49:07 1991 John Gilmore (gnu at cygint.cygnus.com)
3170
3171 * sparc-opcode.h (trap opcodes): Avoid leading spaces or
3172 tabs, which end up in the disassembler output inadvertently.
3173
3174 Wed May 29 23:01:03 1991 John Gilmore (gnu at cygint.cygnus.com)
3175
3176 Make it compile cleanly in an ANSI GCC2 environment.
3177
3178 * blockframe.c: <stdio.h>
3179 * cplus-dem.c: free takes a void *, ifdef __STDC__
3180 * dbxread.c (read_huge_number): avoid gcc2 bug hoisting calc of
3181 LONG_MAX/radix.
3182 * defs.h (alloca): Avoid doing anything if alloca already def'd.
3183 * stddef.h, stdlib.h: Remove these files.
3184 * symtab.c: Avoid declaring qsort, close.
3185 * symfile.c: Avoid declaring close.
3186 * utils.c (vprintf): Declare "ap" arg as proper va_alist.
3187 * sparc-tdep.c: Avoid including lots of Sun-host-specific files.
3188
3189 Assorted other changes.
3190 * dbxread.c: include "libaout.h", not "liba.out.h".
3191 * printcmd.c (print_frame_args): Set recurse properly for
3192 indentation of struct and array parameters.
3193 * valops.c (value_cast): Allow cast to void.
3194 * infrun.c (resume): If NO_SINGLE_STEP, call machine dependent
3195 single_step() in a target-independent fashion.
3196 * sparc-tdep.c (single_step): Don't call ptrace ourselves, just
3197 set up to be ready to continue. This makes us target independent.
3198 * infptrace.c (child_resume): Remove call to single_step; now
3199 can single step a SPARC target of any kind.
3200
3201 Wed May 22 18:18:24 1991 Roland H. Pesch (pesch at fowanton.cygnus.com)
3202
3203 * Makefile.dist, doc/gdb.texinfo, doc/*-m4.texinfo: split up GDB
3204 docn into separate sections---basically chapters, plus two loose
3205 pieces that can be configured to go in different places. This
3206 allows GNU m4 to preprocess the manual without coredumping.
3207
3208 * Makefile.dist: tell TeX where to find texinfo.
3209
3210 Mon May 20 12:15:04 1991 Roland H. Pesch (pesch at fowanton.cygnus.com)
3211
3212 * Makefile.dist, doc/gdb.texinfo: respectively create, and use,
3213 the new target "rdl-apps.texinfo" which captures the Makefile
3214 variable that records where to find the Readline libraries.
3215
3216 Sun May 19 05:36:59 1991 John Gilmore (gnu at cygint.cygnus.com)
3217
3218 * tahoe-pinsn.c: #include "tahoe-opcode.h", not "opcode.h".
3219 * tm-tahoe.h (FIX_CALL_DUMMY): Ignore more parameters.
3220 * defs.h (const, volatile): Only define if not already defined.
3221 * Makefile.dist (gdb.tar.Z): Create doc subdir w/out CVS/RCS crud.
3222
3223 * README: Update for release 3.95.
3224 * config.gdb: Don't create readline dir in subdir builds.
3225 * main.c: Include with "..." form for non-system include files,
3226 so "gcc -MM" for "make depend" works.
3227 Include readline files with "...h" rather than <readline/...h>.
3228 * mipsread.c: Include "ecoff.h" rather than "intel-coff.h".
3229
3230 * coffread.c: Undo minor damage done by Rich Pixley. Use
3231 different internal and external representations of COFF
3232 data structures. Use new BFD routines for swapping them in and
3233 out.
3234 * symfile.c (free_named_symtabs): Avoid freeing file names that
3235 are null or empty. Old i960 tools seem to produce files that
3236 claim to have empty names, causing each successive file read
3237 to blow away the previous one.
3238 * sparc-xdep.c (deferred_stores): Repair minor damage by Rich.
3239 Move deferred_stores to top of file, but don't separate its
3240 #define's from its variable. Add commentary.
3241 * Makefile.dist: Fix Rich damage; undo "configure" changes in
3242 favor of keeping the (working) config.gdb. Move readline
3243 library up a notch.
3244
3245 Fri May 17 12:49:56 1991 Per Bothner (via gnu at cygint.cygnus.com)
3246
3247 * dbxread.c (read_struct_type): Try to handle g++ version 1 MI
3248 debug info.
3249 * infptrace.c (fetch_registers): no result, since now void.
3250 * tconfig/news: target depends on m68k-tdep too.
3251
3252 Fri May 17 14:40:14 1991 Roland H. Pesch (pesch at fowanton.cygnus.com)
3253
3254 * Makefile.dist: added readline/inc-*.texinfo to dependencies for
3255 gdb.dvi target
3256
3257 * readline/inc-history.texinfo, readline/inc-readline.texinfo:
3258 applied various small fixes due to or inspired by RMS comments
3259
3260 * doc/gdb.texinfo: finished using all RMS comments, save those for
3261 appendices on readline and cmd history (which are in other source
3262 files)
3263
3264 Thu May 16 18:06:05 1991 Roland H. Pesch (pesch at fowanton.cygnus.com)
3265
3266 * doc/gdb.texinfo: (1) Updated w/ref to RMS comments through
3267 chapter 9; (2) documented 'break' command's menu mode for
3268 overloaded names, in response to hgs problem report C++ p-31
3269
3270 Wed May 15 11:02:48 1991 Roland H. Pesch (pesch at fowanton.cygnus.com)
3271
3272 * doc/gdb.texinfo: (1) better introductory example; (2) more
3273 consistent use of @code, @samp, @file, @kbd throughout; small
3274 cleanups to first three nodes; (3) new "Contributors" node;
3275 (4) Appendix, Renamed Commands; (5) divert specialized startup
3276 instructions to "Targets" chapter for generic manuals, while
3277 leaving them up front for manuals specific to specialized
3278 environments; (6) apply fixes from RMS comments through chapter 4.
3279
3280 * pretex.m4: modify explanatory text slightly (and redefine
3281 "regexp") to keep GNU m4 from complaining. (It still crashes
3282 later, but one step at a time...)
3283
3284 Wed May 15 10:32:12 1991 John Gilmore (gnu at cygint.cygnus.com)
3285
3286 * readline/readline.c (update_line): Avoid dereferencing a pointer
3287 before comparing it to its bounds. Saber caught this.
3288 (init_terminal_io): Don't set BC from the "pc=" termcap variable,
3289 and only set PC if tgetstr returned non-null. Saber caught this.
3290
3291 Tue May 14 16:29:53 PDT 1991 Roland Pesch (pesch at cygint.cygnus.com)
3292
3293 * Makefile.dist: put gdb.dvi stuff (updated to use M4 preprocessor
3294 stuff for config manual) here where it counts; updated
3295 to use new subdir structure (gdb/doc/).
3296
3297 * Makefile: generated from above via
3298 config.gdb none
3299 before checkin
3300
3301 * gdbint.texinfo: added instructions on generating gdb.info* files
3302 locally for release. These are ordinary info
3303 files, formatted from gdb.texinfo (via gdb-all.texinfo, see
3304 Makefile)---but due to use of texinfo 2, can't count on makeinfo
3305 to generate these, so we distribute them already formatted.
3306
3307 * gdb.texinfo: included full Info node and menu crud (as generated
3308 by C-u M-x texinfo-master-menu using the texinfo-2 elisp code).
3309
3310 * Makefile: updated "gdb.dvi" target to use M4 preprocessor;
3311 put in comments-for-future gdb.info target (one day makeinfo will
3312 work again).
3313
3314 Tue May 14 13:51:36 PDT 1991 Roland Pesch (pesch at cygint.cygnus.com)
3315
3316 * gdb.texinfo: Updated to include new or old undocumented
3317 commands, at least the following (perhaps some others I forgot to
3318 record): info f, info float, info path, info program, info s, info
3319 set, info source, info terminal, info types, info user, set/show
3320 print object.
3321 Also covered all recent GDB command renames for v4.
3322
3323 Mon May 13 14:57:46 1991 John Gilmore (gnu at cygint.cygnus.com)
3324
3325 * mipsread.c: Rather than keeping count of how many symtabs
3326 and psymtabs we have, for sorting purposes, count them when
3327 we need to sort. This fixes bug in rereading of symbol tables.
3328
3329 Fri May 10 15:43:33 PDT 1991 Roland Pesch (pesch at cygint.cygnus.com)
3330
3331 * infcmd.c: renamed "info path" to "show paths"
3332 * gdbrc.tex: documented above.
3333
3334 Wed May 8 04:51:11 1991 John Gilmore (gnu at cygint.cygnus.com)
3335
3336 * remote.c: Fix comments.
3337 * utils.c (error): Force out any pending wrap output.
3338
3339 Sat May 4 11:11:07 1991 John Gilmore (gnu at cygint.cygnus.com)
3340
3341 * Makefile.dist: Roll VERSION to 3.95.
3342 Fix up "saber_gdb" to work again.
3343 * saber.suppress: Update.
3344
3345 * coffread.c, exec.c, infptrace.c, inftarg.c, remote.c, solib.c,
3346 symtab.h, target.c, target.h: Lint.
3347 * core.c: setup and select frame after reading shared libs,
3348 else reading shared libs will clobber them. Lint.
3349 * utils.c (error): Force out any buffered wrap text.
3350
3351 Fri May 3 22:01:56 1991 John Gilmore (gnu at cygint.cygnus.com)
3352
3353 * remote.c: Remove decls of memory_insert_breakpoint
3354 and memory_remove_breakpoint, no longer used. (Suggestion of
3355 Jan Norden).
3356
3357 * Makefile.dist: use ${subdir} in paths of BFD and LIBIBERTY,
3358 to make it easier to interface to "configure"'d libraries.
3359
3360 Fri May 3 13:10:01 PDT 1991 Roland Pesch (pesch at fowanton.cygnus.com)
3361
3362 * valprint.c: introduce "set p", "set pr", "show p" and "show pr" as
3363 aliases for set/show print.
3364
3365 Thu May 2 11:22:02 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
3366
3367 * coffread.c (coff_sym_fns) [TDESC]: Make the type be m88kbcs.
3368
3369 * m88k-tdep.c (IEEE_isNAN): New function.
3370
3371 * infrun.c, m88k-tdep.c, m88k-xdep.c: Change
3372 initialize_{tdesc,dcontext} to init_{tdesc,dcontext}.
3373
3374 * infrun.c [TDESC]: Add a bunch of crud.
3375
3376 * xm-88k.h [__GNUC__]: Don't define memset.
3377
3378 * m88k-xdep.c: #if 0 out push_breakpoint.
3379
3380 * tm-88k.h: Define GET_SAVED_REGISTER.
3381
3382 * tm-88k.h: Define DGUX.
3383
3384 * m88k-opcode.h (UEXT, SEXT, MAKE): Put parentheses around arguments.
3385
3386 * m88k-pinsn.c (sprint_address): Declare at top of file.
3387
3388 * m88k-xdep.c: #if 0 out core_file_command.
3389
3390 * values.c ({unpack_,value_as_}pointer): Just call
3391 {unpack_,value_as_}long (for now anyway).
3392
3393 * m88k-tdep.c (get_saved_register): Make get_reg a dc_word_t (*)().
3394 (psr_register): Change return type to dc_word_t.
3395
3396 * m88k-tdep.c (tdesc_read_function): Comment out call to ptrace.
3397
3398 * m88k-tdep.c (get_saved_register): Add lvalp parameter.
3399
3400 * gdbcore.h (write_memory): Don't prototype it.
3401
3402 * tm-88k.h, m88k-tdep.c: Make stack_error, stack_jmp global.
3403 m88k-xdep.c: Don't mention stack_error.
3404
3405 * {x,t}config/m88k ({X,T}DEPFILES): Add missing files.
3406
3407 * mtrace.c: Don't typedef things like size_t, just #define them.
3408
3409 * coffread.c [TDESC]: #if 0 out references to coffsyn.
3410
3411 * symtab.h (struct symtab): Include EXTRA_SYMTAB_INFO.
3412 tm-88k.h: Define EXTRA_SYMTAB_INFO.
3413
3414 * coffread.c [TDESC]: Include "tdesc.h" and make tdesc_handle
3415 dc_dcontext_t not int.
3416
3417 * coffread.c [TDESC]: Use system include files not <intel-coff.h>.
3418
3419 * coffread.c [TDESC]: Move setting of debug_info from
3420 coff_symfile_read to find_linenos and make it work with BFD.
3421
3422 * cplus-dem.c [__STDC__]: Make x{m,re}alloc return void*.
3423
3424 * signame.c: Cast const char* to char* when assigning to sys_siglist.
3425
3426 * utils.c (strsave): Make arg const char* not char*.
3427
3428 * infrun.c (wait_for_inferior) [SHIFT_INSN_REGS]: Use
3429 bpstat_explains_signal (stop_bpstat) not stop_breakpoint.
3430
3431 * tm-88k.h (START_INFERIOR_HOOK): Make tdesc_handle a dc_handle_t.
3432
3433 * tm-88k.h (EXTRACT_RETURN_VALUE): Use char * not void *.
3434
3435 * findvar.c (read_var_value, case LOC_CONST_BYTES): Put the address
3436 in a char *, not a CORE_ADDR. Use SYMBOL_VALUE_BYTES.
3437
3438 * tm-88k.h (INIT_EXTRA_FRAME_INFO): Use fci not prev (fci is
3439 prev except from create_new_frame). Make next_frame a
3440 local variable.
3441 Declare get_prev_context.
3442 {x,t}m-88k.h: Enclose USG and BCS defines in #if !defined.
3443 m88k-{opcode.h,pinsn.c,xdep.c,tdep.c}: New files (same contents as
3444 before; they had just been left out of the distribution for a long
3445 time).
3446
3447 Thu May 2 17:53:56 1991 John Gilmore (gnu at cygint.cygnus.com)
3448
3449 Mips bringup and general cleanup
3450
3451 * cplus-dem.c: Move CPLUS_MARKER define to after defs.h.
3452 * infptrace.c (PT_WRITE_D, PT_READ_D): Use correct values.
3453 (This still doesn't seem to make MIPS bkpts work.)
3454 * mipsread.c: Remove dup "Reading symbol data..." msg.
3455 (symbol_file_command, add_file_command): Remove, obsol.
3456 * printcmd.c (ptype_command): Say "an enum" rather than "a enum".
3457 Wrap output appropriately.
3458 * stack.c (locals_info, catch_info, args_info): Check
3459 selected_frame rather than target_has_stack or coredumping.
3460 * valprint.c (type_print_varspec_suffix): Wrap "ptype" output of
3461 enums appropriately.
3462
3463 Wed May 1 14:10:22 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
3464
3465 * signame.c: Include defs.h and param.h.
3466
3467 * cplus-dem.c: Include defs.h and param.h.
3468 Makefile.dist: Don't hack in the "param.h".
3469 param.h: Don't include defs.h.
3470
3471 * expread.y: Use a union to deal with the fact that type_stack
3472 can have both ints and enum type_pieces in it.
3473 ({push,pop}_type_int): New functions.
3474
3475 Tue Apr 30 13:18:58 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
3476
3477 * cplus-dem.c (cplus_mangle_opname): Don't call error.
3478 values.c (check_stub_method): Call error if NULL return from
3479 cplus_mangle_opname.
3480
3481 * blockframe.c, breakpoint.c, core.c, command.c, findvar.c,
3482 eval.c, expprint.c, infcmd.c, infrun.c, main.c, printcmd.c,
3483 remote.c, source.c, stack.c, dbxread.c, coffread.c, symfile.h,
3484 symfile.c, utils.c, valarith.c, values.c, valops.c, tm-68k.h,
3485 target.c, inftarg.c, ieee-float.c, environ.c, defs.h,
3486 command.h, inferior.h, gdbcore.h, symtab.h, expression.h,
3487 symtab.c, cplus-dem.c, value.h, expread.y, valprint.c,
3488 copying.awk, solib.c, inflow.c, symmisc.c
3489 : Lint. Use read_memory not read_memory_integer on CORE_ADDR's.
3490 Use {value_as,unpack}_pointer (added to values.c)
3491 not {value_as,unpack}_long on CORE_ADDR's.
3492 Use longest_to_int (added to defs.h) instead of cast to int.
3493 Remove from_tty arg to mod_path.
3494 Put symfile_bfd in {coff,dbx}read.c not symfile.h.
3495 Use OP_NULL instead of 0 where dummy enum exp_opcode needed.
3496
3497 * tm-sparc.h: Remove GET_RWINDOW_REG.
3498 (FRAME_CHAIN): Call sparc_frame_chain.
3499 sparc-tdep.c (sparc_frame_chain): New function.
3500 tm-sparc.h (EXTRACT_STRUCT_VALUE_ADDRESS): call
3501 sparc_extract_struct_value_address (added to sparc-tdep.c).
3502
3503 * xm-sun386.h: Don't define SET_STACK_LIMIT_HUGE.
3504
3505 Tue Apr 30 13:13:33 1991 Michael Tiemann (tiemann at cygint.cygnus.com)
3506
3507 * valprint.c (type_print_base): If the type being printed is a
3508 struct containing undefined types, print "<undefine type>"
3509 as the type instead of crashing.
3510 * values.c (value_headof): Get the vtable pointer taking
3511 TYPE_VPTR_BASETYPE into account.
3512 * symtab.c, symtab.h, dbxread.c: Fix various whitespace splotches.
3513
3514 Mon Apr 29 13:22:51 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
3515
3516 * Move BROKEN_LARGE_ALLOCA from tm-sun386.h to xm-sun386.h.
3517
3518 * sun386-xdep.c [!GDB_TARGET_IS_SUN386]: Just provide empty
3519 functions which don't do anything.
3520 tm-sun386.h: Define GDB_TARGET_IS_SUN386.
3521
3522 * Makefile.dist: Add comment about tm-sun3os4.h: tm-sun3.h, etc.
3523
3524 * sun3-xdep.c, tm-sun3.h, tm-68k.h: Change TARGET_SUN3 to
3525 GDB_TARGET_IS_SUN3.
3526
3527 * infrun.c: Don't include sys/user.h and friends (wrong for
3528 cross-debugging and not necessary anymore (see IN_SIGTRAMP in
3529 xm-vax.h)).
3530 [SET_STACK_LIMIT_HUGE]: Include <sys/{resource,time}.h>.
3531 xm-tahoe.h: Don't define _DIRENT_.
3532
3533 * xm-tahoe.h: Remove USE_OLD_TTY (not needed now that terminal.h
3534 includes sgtty.h before sys/ioctl.h).
3535
3536 Sun Apr 28 22:04:47 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
3537
3538 * param-no-tm.h: Make BITS_BIG_ENDIAN defined to 0/1, not defined
3539 or not defined. Don't define it based on TARGET_BYTE_ORDER if
3540 it's already defined (in the tm.h file).
3541 mips-opcode.h (BIT_FIELDS_*),
3542 values.c (modify_field, unpack_field_as_long):
3543 Use #if BITS_BIG_ENDIAN not #ifdef BITS_BIG_ENDIAN.
3544 {x,t}m-tahoe.h, tahoe-pinsn.c, tahoe-opcode.h: New files.
3545
3546 Fri Apr 26 12:02:06 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
3547
3548 * tm-sparc.h: Add comments about gcc version 2 and structure passing.
3549
3550 * xconfig/i386v{,32}{,-g}: Add XM_CFLAGS=-Dgetpagesize()=4096.
3551 gmalloc.c: #if 0 out !HAVE_GETPAGESIZE code.
3552
3553 * expread.y (abs_decl): Accept '&' and '&' abs_decl.
3554
3555 * symtab.c, symtab.h: Have a builtin_type_{,unsigned_}long_long
3556 regardless of LONG_LONG.
3557 defs.h (TARGET_LONG_LONG_BIT): New macro.
3558 expread.y (typebase): Add {unsigned,} long long {,int}.
3559
3560 Thu Apr 25 12:31:22 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
3561
3562 * valops.c (typecmp): If t2 == 0, return 1.
3563
3564 Wed Apr 24 09:45:17 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
3565 Changes from Tiemann:
3566 * cplus-dem.c (optable): Add "nw", "dl", "compound".
3567 (cplus_mangle_opname): New function.
3568 (do_type): Add case 'Q'.
3569 * values.c (check_stub_method): Do lookup_method_type and stuff
3570 rather than smash_to_method_type.
3571 symtab.c, symtab.h (allocate_stub_method): New function.
3572 dbxread.c (read_type): If we get "##", don't lookup_function_type
3573 and start clobbering it; allocate_stub_method instead.
3574 * printcmd.c (x_command): Dereference references.
3575 * valprint.c (type_print_varspec_prefix, case TYPE_CODE_METHOD):
3576 Don't print " " type_print_base (...) "::" if !passed_a_ptr.
3577 * dbxread.c (read_struct_type): Put "op$" instead of "operator"
3578 in the symbol table.
3579 * values.c (check_stub_method): Deal with operator names.
3580 * valprint.c (cplus_val_print): Check for error in baseclass_addr.
3581 * values.c: Move declaration of cplus_demangle to top of file.
3582 * values.c (baseclass_addr): If can't read memory, set *ERRP
3583 rather than calling error().
3584 * value.h: Remove redundant declaration of value_static_field.
3585 * values.c (value_static_field): Recursively check all baseclasses.
3586 Return NULL if not found.
3587 * values.c, value.h: New functions value_{headof,from_vtable_info}.
3588 * valprint.c (val_print): Print out first element of vtbl
3589 specially.
3590 * valprint.c: Move print controls to top and add objectprint.
3591 Add command "set print object on/off".
3592 * valprint.c (value_print, is_vtbl_member): Put things in local
3593 variables rather than continually doing VALUE_TYPE (val), etc.
3594 * valops.c (value_struct_elt_for_address): Call check_stub_method.
3595 * valops.c (value_struct_elt): Remove found, arg1_as_ptr.
3596 * valops.c (search_struct_method): Give error if j > 0 && args == 0.
3597 * valops.c (search_struct_field): New argument looking_for_baseclass.
3598 Give error if value_static_field or value_primitive_field
3599 return NULL.
3600 valops.c (various): Call search_struct_field with extra parameter.
3601 * symtab.c (decode_line_1): Deal with operators specified as
3602 "operator" <optional whitespace> <symbols for operator>.
3603 (operator_chars): Help do it.
3604 * symtab.c (lookup_struct_elt_type): Call check_stub_type.
3605 Take additional argument noerr.
3606 Don't dump core if TYPE_FIELD_NAME is NULL.
3607 Check the baseclasses recursively.
3608 * symfile.c (fill_in_vptr_fieldno): Don't call check_stub_type.
3609 Return void not int. (also declarations in symfile.h and value.h).
3610 Deal with multiple inheritance.
3611 * printcmd.c (print_command_1): Add if (objectprint) code.
3612 * expread.y (variable): Allow for destructor with foo::~name.
3613 * eval.c (evaluate_subexp, case UNOP_LOGNOT): If following opcode
3614 is OP_SCOPE, give an error.
3615 * eval.c (evaluate_subexp): Pass third arg to lookup_struct_elt_type.
3616 * eval.c (evaluate_subexp), values.c (value_virtual_fn_field):
3617 Don't bother to do anything with
3618 return value from fill_in_vptr_fieldno.
3619 * eval.c (evaluate_subexp): If value_static_field returns NULL,
3620 give an error.
3621 * dbxread.c (read_struct_type): Set fcontext to 0 for normal member
3622 function.
3623 * dbxread.c (read_struct_type): Initialize name to 0.
3624 * dbxread.c (read_ofile_symtab, N_CATCH): Add offset to bufp->n_value.
3625 * dbxread.c (dbx_create_type): Zero TYPE_VPTR_BASETYPE.
3626 (read_struct_type): Don't bother to set TYPE_VTPR_{BASETYPE,FIELDNO}
3627 if it's just going to be {0,1}.
3628
3629 * dbxread.c (virtual_context): Use TYPE_BASECLASS starting at 0
3630 (yes, it's #if 0, but just in case...).
3631
3632 * vax-opcode.h, expread.y, expprint.c, cplus-dem.c: Declare some
3633 things "const".
3634
3635 * i386-stub.c: New file.
3636
3637 * WHATS.NEW: Remove mention of readline and more paging (in 3.5).
3638 Try to keep command names up to date with renaming.
3639
3640 * gmalloc.c [!HAVE_GETPAGESIZE]: Try to figure out the pagesize.
3641
3642 * infun.c (resume, resume_cleanups): New functions.
3643 (wait_for_inferior, proceed, child_create_inferior): Use resume
3644 not target_resume.
3645
3646 * remote.c (getpkt): Don't set immediate_quit.
3647
3648 * blockframe.c, frame.h (reinit_frame_cache): New function.
3649 solib.c (solib_add), symfile.c ({,add_}symbol_file_command):
3650 Use it.
3651
3652 Tue Apr 23 10:38:41 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
3653
3654 * symtab.c (lookup_symbol): Add 3 more of those loops through
3655 the symtabs which we all know and love: (1) Look in the
3656 STATIC_BLOCK for mangled symbols right after we check the blocks,
3657 (2, 3) Look in the STATIC_BLOCK for all the symtabs and psymtabs
3658 at the end.
3659
3660 * main.c (cd_command): Call dont_repeat.
3661
3662 * dbxread.c (read_struct_type): If const/volatile character is
3663 missing, don't complain, just continue.
3664
3665 * dbxread.c (read_struct_type): Only try to read the fcontext if
3666 it is there. Also change "error_type " to "return error_type ".
3667 values.c (value_virtual_fn_field): If there is no fcontext,
3668 then do things the way GDB 3.x did.
3669 valops.c (search_struct_method): Add type to value_virtual_fn_field
3670 arguments.
3671
3672 * dbxread.c (read_struct_type): Fix typo: *pp != '\0' -> **pp != '\0'.
3673
3674 Mon Apr 22 00:02:43 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
3675
3676 * printcmd.c (print_scalar_formatted): Add 't' for binary.
3677
3678 * dbxread.c (end_psymtab): Initialize pst->symtab.
3679
3680 * core.c (core_open): Call ADD_SOLIB.
3681
3682 * tm-sparc.h: Include <sun4/reg.h> not <machine/reg.h>.
3683 sparc-tdep.c: Don't include <machine/reg.h>.
3684
3685 * sun3-xdep.c [!TARGET_SUN3]: Just provide empty functions which
3686 don't do anything.
3687
3688 * core.c (core_open): Add make_cleanup (unpush_target, &core_ops).
3689
3690 * Shared library/corefile changes from Peter Schauer:
3691 core.c (core_close): Call CLEAR_SOLIB.
3692 (core_open): Remove comment about "should deal with shared lib".
3693 (core_xfer_memory): If we can't xfer the usual way, try the
3694 shared libraries.
3695 solib.c (so_list): New fields so_bfd and so_sections{,_end}.
3696 (find_solib): Use solib_map_sections to get ld_text.
3697 (solib_map_sections, solib_xfer_memory): New functions.
3698 (clear_solib): Free so_sections and close so_bfd.
3699 tm-sunos.h: Add solib_xfer_memory, solib_add.
3700
3701 * sparc-tdep.c (skip_prologue): Don't skip anything unless there
3702 is a "save" instruction in there somewhere.
3703
3704 * symfile.c (symbol_file_add): Add comment.
3705 solib.c (solib_add): Don't malloc name passed to symbol_file_add.
3706
3707 * exec.c (build_section_table): If *start isn't NULL, free it.
3708
3709 * stack.c (parse_frame_specification): Error if NULL selected_frame.
3710 infcmd.c (finish_command): Error if NULL selected_frame.
3711 inflow.c (kill_command): Deal with NULL selected_frame.
3712 stack.c (record_selected_frame): Set *FRAMEP to NULL if there
3713 is no selected frame.
3714 infrun.c (restore_inferior_status): Add comment.
3715 findvar.c (read_var_value): Check for NULL frame where we need
3716 a frame.
3717 breakpoint.c (get_catch_sals): Check for NULL selected_frame.
3718
3719 * breakpoint.c (bpstat_print): Try all elements on the bpstat
3720 chain before giving up with an internal error.
3721
3722 Sun Apr 21 21:43:10 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
3723
3724 * value.h, values.c (value_{,free_to_}mark): New functions.
3725 breakpoint.c (bpstat_stop_status): Use them.
3726
3727 * tm-i386v{,-g}.h: Remove N_SET_MAGIC define.
3728
3729 Sat Apr 20 21:42:47 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
3730
3731 * i386-tdep.c: Remove unnecessary #includes.
3732
3733 * symtab.c (various): Change error return of find_line_common to -1.
3734
3735 * coffread.c (find_linenos): Use LINESZ not sizeof (struct lineno).
3736
3737 * coffread.c (end_symtab): Initialize language, dirname, and
3738 fullname fields.
3739
3740 Fri Apr 19 18:18:31 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
3741
3742 * mips-tdep.c (mips_frame_chain): Don't chain if saved_pc == 0.
3743
3744 * stddef.h (size_t): Let either _SIZE_T or _SIZE_T_ guard it.
3745
3746 * mipsread.c (parse_symbol): Set startup_file_{start,end} if
3747 entry_point is in current file.
3748
3749 * findvar.c (read_register_gen): Add "target byte-order" comment.
3750
3751 Wed Apr 17 17:09:48 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
3752
3753 * i386-tdep.c (i386_get_frame_setup): Use SWAP_TARGET_AND_HOST
3754 before returning locals or slocals.
3755
3756 * i386-tdep.c (i386_follow_jump): Do not add data16 to pos in
3757 call to codestream_seek; add one to pos if (and only if)
3758 we are dealing with a jump with data16 == 1 (i.e. 0x66, 0xe9).
3759
3760 Mon Apr 15 12:04:32 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
3761
3762 * valops.c (call_function_by_hand): Put dummy1 in target order
3763 before FIX_CALL_DUMMY.
3764
3765 * tm-i386v.h (FIX_CALL_DUMMY): Don't depend on host byte order.
3766
3767 Sun Apr 14 11:55:19 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
3768
3769 * valops.c (push_word): Add SWAP_TARGET_AND_HOST.
3770
3771 * remote.c (remote_open): Send '+' before calling putpkt().
3772
3773 * tm-i386v.h (REGISTER_VIRTUAL_TYPE): Return pointer to void,
3774 not int, for pc, fp, and sp.
3775
3776 * remote.c (remote_open): Call start_remote after putpkt("?");
3777 infrun.c (start_remote): Also call wait_for_inferior & normal_stop.
3778
3779 Sat Apr 13 22:11:42 1991 Jim Kingdon (kingdon at spiff.cygnus.com)
3780
3781 * exec.c: Include <ctype.h>.
3782
3783 * sun3-xdep.c (fetch_core_registers): Add #ifdef FP0_REGNUM.
3784
3785 Fri Apr 19 09:36:50 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
3786
3787 * tm-68k.h (NUM_REGS): Conditionalize on TARGET_SUN3 not sun.
3788 tm-sun3.h: Define TARGET_SUN3.
3789
3790 * utils.c: Use CPLUS_MARKER not '$'.
3791
3792 * cplus-dem.c: Use CPLUS_MARKER not '$'. If CPLUS_MARKER isn't
3793 defined, define it to '$'.
3794
3795 * arm-opcode.h: New file (same contents as before; it had
3796 just been left out of the distribution for a long time).
3797
3798 * tm-68k.h: Put declaration of ext_format_68881 outside the macros.
3799
3800 * main.c: New HAVE_SIGSETMASK #ifdefs.
3801
3802 * coffread.c (read_coff_symtab): Check for "LF%" with all the
3803 other L*% things.
3804
3805 * coffread.c (SDB_TYPE): New macro.
3806 various: Use it instead of checking against T_NULL.
3807
3808 * Makefile.dist (cplus-dem.o): Hack in an #include "param.h"
3809 before we compile it.
3810 defs.h: Protect against multiple inclusion.
3811 param.h: Include defs.h.
3812 signame.c: Change #ifdef SYS_SIGLIST_MISSING to #if.
3813 param-no-tm.h: Define SYS_SIGLIST_MISSING from USG.
3814
3815 Thu Apr 18 19:49:10 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
3816
3817 * i386-pinsn.c (OP_E): Change %d to 0x%x for consistency.
3818
3819 * putenv.c: New file
3820 Makefile.dist: Add it to $(OBS).
3821
3822 * mipsread.c [!CMUCS]: #include <syms.h>.
3823
3824 * mips-xdep.c (fetch_core_registers): #if 0 out the whole function.
3825
3826 * Move read_memory_nobpt from mem-break.c to breakpoint.c.
3827
3828 Mon Apr 15 21:45:35 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
3829
3830 * utils.c (_initialize_utils): Rename "set demangle" to
3831 "set print demangle", "set asm-demangle" to "set print
3832 asm-demangle" and "set sevenbit-strings" to "set print
3833 sevenbit-strings".
3834
3835 * main.c (initialize_main): Rename "set history write" to
3836 "set history save".
3837
3838 * main.c (initialize_main): Rename "set caution" to
3839 "set confirm".
3840
3841 * values.c (_initialize_values): Remove "info history" alias
3842 for (what is now) "show values".
3843
3844 * infcmd.c, gdbcmd.h: Add unsetlist.
3845 infcmd.c: Add unset_command.
3846 (_initialize_infcmd): Add "unset" and use it for "unset env".
3847
3848 * breakpoint.c (_initialize_breakpoint): Remove "unset".
3849
3850 * valprint.c: Add "set/show print", {set,show}_print.
3851 Rename "set addressprint" to "set print address".
3852 Rename "set arrayprint" to "set print array".
3853 Rename "set array-max" to "set print elements".
3854 Rename "set prettyprint" to "set print pretty".
3855 Rename "set unionprint" to "set print union".
3856 Rename "set vtblprint" to "set print vtbl".
3857
3858 * main.c: Rename version_info to show_version.
3859 (_initialize_main): Rename "info version" to "show version".
3860
3861 * values.c: Rename value_history_info to show_values.
3862 (_initialize_values): Rename "info values" to "show values".
3863
3864 Sun Apr 14 23:08:34 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
3865
3866 * inftarg.c (child_open), remote-vx{,.68}.c (vx_proc_open):
3867 New function to give correct error message.
3868
3869 Thu Apr 11 17:19:41 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
3870
3871 * target.h: Add to_doc and target_preopen.
3872 target.c: Add target_preopen and target_command.
3873 Remove target_info.
3874 (add_target): Call add_cmd and mess with targetlist->doc.
3875 core.c, exec.c, remote-eb.c, remote-nindy.c, remote-vx.c,
3876 remote-vx.68.c, inftarg.c, remote.c: Add doc field to target struct.
3877 Call target_preopen from open routine.
3878
3879 * main.c: Rename editing_info to show_commands.
3880 (_initialize_main): Rename "info editing" to "show commands".
3881
3882 * source.c: Rename directories_info to show_directories.
3883 (_initialize_values): Rename "info directories" to "show directories".
3884
3885 * values.c: Rename convenience_info to show_convenience.
3886 (_initialize_values): Rename "info convenience" to "show convenience".
3887
3888 * copying.awk (_initialize_copying): Rename "info copying" to
3889 "show copying" and "info warranty" to "show warranty".
3890 Rename {copying,warranty}_info to show_{copying,warranty}.
3891
3892 * symfile.c: Rename add_syms_command to add_symbol_file_command.
3893 (_initialize_symfile, add_syms_addr_command):
3894 Rename add-syms to add-symbol-file.
3895
3896 Thu Apr 18 18:08:30 1991 John Gilmore (gnu at cygint.cygnus.com)
3897
3898 * symfile.h (free_named_symtabs): Rename from free_named_symtab.
3899 * symfile.c (clear_symtab_users_once, cashier_psymtab,
3900 free_named_symtabs): Move these routines from symmisc.c.
3901 * symmisc.c (same): same.
3902 (free_symtab): Make non-static.
3903 * symtab.h (free_symtab): Declare as exported void fn now.
3904 * dbxread.c (end_symtab, end_psymtab): Change comments.
3905 (initialize_dbxread): Call dbx_new_init() in case the first
3906 command is add-symbols.
3907 * target.c (dummy_target): Permit add_syms_addr_command.
3908
3909 Sat Apr 13 14:46:07 1991 John Gilmore (gnu at cygint.cygnus.com)
3910
3911 Permit symbols to be superseded when new symbol files have
3912 been read in, particularly for VxWorks.
3913
3914 * dbxread.c (read_dbx_symtab): Allow N_SOL to cleanly take us back
3915 to the main file, as well as to include files. Also, put global
3916 functions into the global psymtab, to make "i fun" work.
3917 (end_psymtab): Free named symtabs and psymtabs for a file, once a
3918 new psymtab for it has been read.
3919 * coffread.c (end_psymtab): Free named symtabs and psymtabs for
3920 a file, once a new symtab has been read for it.
3921 * mipsread.c: FIXME. We need to do the same for MIPS, but it
3922 looks harder to determine the top-level block before it's been
3923 queued to the psymtab list.
3924
3925 * symfile.c (symbol_file_add): Use filtered printing and wrap it.
3926 If we have wiped out any old symbol tables, clean up at end of
3927 symbol reading.
3928 (symbol_file_command): Don't reference symfile_fns if it's zero.
3929
3930 * symtab.h (GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK): New
3931 defines for the blocks of a blockvector that contain global and
3932 file-static symbols and the first of the smaller scope contours.
3933 * symtab.c (lookup_symbol, find_pc_symtab, find_pc_line,
3934 decode_line_1, make_symbol_completion_list): Use the above.
3935 * coffread.c (end_symtab, patch_opaque_types): Ditto.
3936 * dbxread.c (end_symtab): Ditto.
3937 * expread.y (block): Ditto.
3938 * mipsread.c (throughout): Ditto.
3939 * symmisc.c (free_named_symtabs): Ditto.
3940
3941 * symtab.c (list_symbols): Process the first symbol of the
3942 static psymbols list.
3943 (types_info): Restore this function from its untimely #if 0.
3944 It's not perfect, but it is better than nothing.
3945 (_initialize_symtab): Restore "info types".
3946
3947 Thu Apr 11 05:23:19 1991 John Gilmore (gnu at cygint.cygnus.com)
3948
3949 * m68k-stub.c: Remote stub for 680x0's, created from
3950 rem-m68k.shar (which is removed).
3951 * nindy-share/{Makefile,Onindy.c,blout.h,env.h,nindy.c,ttyflush.c}:
3952 Remove RCS log stuff now that we use CVS and it blows our diffs.
3953
3954 Wed Apr 10 14:18:06 1991 John Gilmore (gnu at cygint.cygnus.com)
3955
3956 * symmisc.c (free_named_symtab): Make it work, in its current
3957 kludgy fashion. Change result to indicate if we blew away bkpts.
3958 * dbxread.c (end_symtab): Accumulate result from
3959 free_named_symtab and print warning if we blew user's state.
3960 * symfile.h: free_named_symtab now returns an int.
3961
3962 Mon Apr 8 23:57:43 1991 John Gilmore (gnu at cygint.cygnus.com)
3963
3964 * dbxread.c (dbx_symfile_read): Initialize psymbol list if this
3965 is the first symbol read, even if not mainline.
3966 (dbx_psymtab_to_symtab): symfile might be zero, cope.
3967 * exec.c (exec_ops): Add_syms_addr is valid in our tvec.
3968 (set_section_command): New command ("section xxx yyy" -- should
3969 be renamed to "set section xxx yyy" FIXME) which sets the
3970 base address of a section of the exec file, overriding the
3971 virtual address that BFD reports.
3972
3973 Fri Apr 5 17:14:39 1991 John Gilmore (gnu at cygint.cygnus.com)
3974
3975 * exec.c: Add add_syms_addr_command to exec_ops, so you can
3976 load symbols at any address while examining an exec file.
3977
3978 Thu Apr 4 10:09:35 1991 John Gilmore (gnu at cygint.cygnus.com)
3979
3980 * tm-i386v.h (FLOAT_INFO): Don't define it, since the code
3981 for printing the float info is host-dependent, not
3982 target-dependent. FIXME.
3983 * i386-pinsn.c: Move #includes to top, remove useless ones.
3984 * i386-tdep.c: Don't bother including <.../reg.h> since we
3985 don't use it (and it doesn't exist on host systems).
3986
3987 * ieee-float.c (ieee_extended_to_double): Convert NaN to Inf.
3988 Convert negative numbers properly.
3989 (ieee_test): Make numbers really random; fix format arg.
3990
3991 * infcmd.c (attach_command, detach_command): Don't repeat on CR.
3992 * core.c (core_detach): Unpush core_ops, which might not be on
3993 top. We used to just pop the top, which broke things. Don't
3994 need dont_repeat() any more.
3995 (core_file_command): Psst! Don't repeat it.
3996 * remote-nindy.c (nindy_detach): Don't need dont_repeat() now.
3997 * expprint.c (print_subexp): Avoid switch fallthru on
3998 BINOP_ASSIGN_MODIFY, so we can print += and such.
3999 * frame.h: Fix typo.
4000 * inflow.c (kill_command): After killing inferior, print our
4001 current frame in the core file, if we have one.
4002 (generic_mourn_inferior): When inferior dies, either select
4003 the current frame (in the new target, e.g. core file), or
4004 set both the current and selected frames to NULL.
4005
4006 Changes from Peter Schauer.
4007
4008 * infptrace.c: Avoid <sys/ptrace.h> on USG.
4009
4010 * Make all file names fit in 14 characters (sigh and damn!):
4011 mv hp300hpux-xdep.c hp300ux-xdep.c
4012 mv symmetry-xdep.c symm-xdep.c
4013 mv symmetry-tdep.c symm-tdep.c
4014 mv convex-opcode.h convx-opcode.h
4015 mv tm-vxworks960.h tm-vx960.h
4016 mv tm-vxworks68.h tm-vx68.h
4017 mv Makefile.srcdir Makefile.sdir
4018 mv gdb-int.texinfo gdbint.texinfo
4019 mv remote-sa.m68k.shar rem-m68k.shar
4020 mv remote-multi.shar rem-multi.shar
4021 * Makefile.dist, README, config.gdb, convex-pinsn.c,
4022 tconfig/symmetry, tconfig/vxworks960, tconfig/vxworks68,
4023 xconfig/hp300hpux, xconfig/symmetry: Change names to shorter
4024 names.
4025
4026 * command.c (user_info_1, user_info): New command for listing
4027 the user-defined commands.
4028
4029 Wed Apr 3 15:00:26 1991 John Gilmore (gnu at cygint.cygnus.com)
4030
4031 * dbxread.c (really_free_pendings): Clear file_symbols
4032 and global_symbols after freeing them; otherwise, running
4033 this function twice (if it appears twice on the cleanup
4034 chain), we try to free things twice.
4035
4036 * dbxread.c (read_dbx_symtab): Calculate end_of_text_addr
4037 based on text_addr (the address of text in core), not on addr (the
4038 offset between text in the .o file and in core). This change
4039 is from Peter Schauer.
4040
4041 * main.c: Define ALL_CLEANUPS as a cast of zero.
4042 (return_to_top_level): Use it.
4043 (main): Do all cleanups after each command run as part
4044 of the gdb startup sequence. Also do all cleanups before
4045 entering the command loop, and every time we exit the command
4046 loop and reenter. Before, the cleanups from the startup sequence
4047 were being left undone until the first error!
4048 (command_loop): Rename do_nothing cleanup to command_loop_marker
4049 so we can see it easily when examining the cleanup chain.
4050 (init_signals): Add another do_nothing for signal handling.
4051 (quit_command): Only try to kill target if it has execution.
4052 Problems in the target stack got us into a state where
4053 inferior_pid was nonzero but none of the targets had execution.
4054 In this state you couldn't exit gdb.
4055
4056 * dbxread.c: Two changes from Peter Schauer.
4057 (echo_command): Fflush output after an echo command.
4058 (show_history): Pass all args to cmd_show_list.
4059
4060 * utils.c (init_malloc): Call mtrace to turn on tracing
4061 if the environment variable MALLOC_TRACE is set to a file name.
4062 * mtrace.c: Add source file which provides a log of every malloc,
4063 free, and realloc to a trace file.
4064 * mtrace.awk: Add source file which analyzes the trace file.
4065 * Makefile.dist (GNU_MALLOC, MALLOCSRC): Add mtrace.{c,o,awk}.
4066 (VERSION): Roll to 3.94.3.
4067
4068 * breakpoint.c (breakpoint_1): Add a space to "i watch" output.
4069 (check_duplicates): Don't bother with watchpoints.
4070 (set_raw_breakpoint): Comment about danger of this routine.
4071 (watch_command): Parse and eval all args before calling
4072 set_raw_breakpoint.
4073
4074 * solib.c (find_solib): Avoid error in referencing memory to
4075 see if any more shared libraries have been added. This is
4076 particularly useful if the target has terminated. Bug reported
4077 by Peter Schauer.
4078
4079 Changes from Peter Schauer <pesrem@regent.e-technik.tu-muenchen.de>
4080 in bringing up 3.94.2 on the Sun-3.
4081
4082 * Makefile.dist: Include CFLAGS in rule for cplus-dem.o.
4083 * breakpoint.c (enable_breakpoint): Check for valid watchpoint
4084 expression (in scope) before reenabling watchpoint.
4085 * signame.c (init_sigs): Add missing declaration of i, fix
4086 sys_siglist declaration.
4087 * source.c (list_command): Fixed range computation to use
4088 lines_to_list ().
4089 * stack.c (backtrace_command): Do not allow command if target has
4090 no stack, print informative error message.
4091 * target.c (target_command): Do not write into command line
4092 because this fails if the target command is used in a user defined
4093 command. [This change was enhanced by gnu to support any-
4094 unique-prefix matching on target names.]
4095 * valops.c (value_struct_elt): Avoid infinite loop on an
4096 erroneous attempt to print the member of function (try p main.p).
4097
4098 Mon Apr 1 17:05:45 1991 John Gilmore (gnu at cygint.cygnus.com)
4099
4100 * expread.y (name_no_typename): Avoid reduce/reduce errors
4101 caused by ambiguity in handling NAME_OR_INT and NAME_OR_UINT.
4102 Since the GDB parser really doesn't use name_no_typename in a
4103 name-only context, the parser can't tell the diff between
4104 names and numbers here. Avoid allowing a name_no_typename
4105 to be a NAME_OR_*INT to resolve the conflict.
4106
4107 Sun Mar 31 20:12:07 1991 John Gilmore (gnu at cygint.cygnus.com)
4108
4109 Bugfixes from Mark Fox (markf@wrs.com) (test=testField.c):
4110
4111 * valprint.c (val_print_fields): bitfield printing didn't handle
4112 byte order. Indirect through a few more fns to cope.
4113
4114 * values.c (modify_field): also cope with byte order.
4115
4116 Sat Mar 23 10:02:21 1991 John Gilmore (gnu at cygint.cygnus.com)
4117
4118 Cleanup for release 3.94.2:
4119
4120 * Makefile.dist: Pull REMOTE_OBS. Fix saber includes for BFD
4121 include files. Roll version to 3.94.2.
4122
4123 * coffread.c (init_stringtab): Read length into unsigned char
4124 array before swapping; don't assume 32-bit longs.
4125
4126 * target.c (target_info): Don't bother with get_sym_file, just use
4127 the symfile global variable.
4128 * symtab.h, symfile.c (get_sym_file): Delete it.
4129
4130 * dbxread.c (dbx_symfile_init): Don't depend on long == 4 bytes.
4131 (define_symbol): Set symbol line number to 0 if not gcc-compiled.
4132 (read_type): Replace one more error() with complain().
4133
4134 * mipsread.c (parse_partial_symbols): Replace printf with complain.
4135
4136 * i960-tdep.c: Fix copyright attribution.
4137
4138 * config.gdb: Quote all backquotes in doublequotes. You can
4139 quote me on that. BSD 4.4 shell found this one.
4140
4141 * infptrace.c (throughout): The third argument to ptrace is an
4142 int *, not an int.
4143
4144 * infrun.c (wait_for_inferior): When program has terminated, we
4145 have to call target_terminal_ours before we pop that target off
4146 the stack (e.g. before a call to target_kill or
4147 target_mourn_inferior). This fixes problem where a program
4148 terminates, then GDB stops for (tty output) and you have to type
4149 "fg" to the shell to resume it. FIXME: This code for what to
4150 do after termination really should be in normal_stop instead.
4151
4152 * gdbcore.h (read_memory_check): Change declaration; it changed
4153 names months ago.
4154
4155 * terminal.h: Include <sgtty.h> before <sys/ioctl.h>, since in BSD
4156 4.4 prereleases, this avoids a bug in their sgtty compatability
4157 support.
4158 * remote.c: Use terminal.h rather than hand-rolling the same.
4159
4160 * signame.c, signame.h (psignal): Arg is unsigned, not int.
4161 * utils.c (strsave, strstr): Fix arg types.
4162 * valprint.c (val_print): lint
4163
4164 MIPS symbol table support from Per Bothner:
4165
4166 * symfile.c (symtab_fns): Remove initializer table that needs to
4167 be hacked for each new symbol file format supported.
4168 (add_symtab_fns): New function, chains symbol table
4169 handlers into the global list.
4170 (symfile_init): Search this list.
4171 * symfile.h: Add next pointer, declare add_symtab_fns.
4172 * coffread.c (_initialize_coffread): Call add_symtab_fns.
4173 * dbxread.c (_initialize_dbxread): Call add_symtab_fns.
4174
4175 * mipsread.c (psymtab_to_symtab_1): return void instead of (struct
4176 symbol *). Thus, we no longer need the hack to trash
4177 pst->filename. Good, since that hack confused code in symfile.c!
4178
4179 (reorder_symtabs, destroy_all_symtabs): Removed static
4180 all_symtabs, which was used to qsort symtabs in reorder_symtabs.
4181 Instead, the latter now uses a temporary array (stack-allocated
4182 from an obstack, and then freed).
4183
4184 (parse_symbol): Added a hack to fix up BLOCK_{START,END} if they
4185 haven't been set in the outermost stBlock of a procedure. This was
4186 a problem with f77 binaries on Ultrix 4.?.
4187
4188 (new_symtab, new_symbol, new_type): Continue changing code to use
4189 obstacks more and otherwise conform to dbxread internal style.
4190 Made the free_code of symtabs be free_linetable (as in dbxread)
4191 instead of free_contents. This implies memory leaks when reading
4192 a new symbol table, until the conversion is finished. Did change
4193 (struct symbol) and (struct type) to be allocated on the
4194 symbol_obstack. Blocks and blockvectors are among the things
4195 still "leaking."
4196
4197 * mipsread.c (parse_partial_symbols, parse_fdr): It hasn't been
4198 tested much, but it solved one problem (reported by Meissner), and
4199 cleans up some other things. The problem happened when an
4200 included file contains actual code (functions) and not just
4201 definitions. The mips coff is a little inconvenient there, since
4202 it may cause a procedure to be mapped to the wrong psymtab.
4203
4204 * mips-tdep.c (heuristic_proc_desc): Minor cleanup.
4205 * mips-xdep.c (fetch_core_registers): Minor cleanup. FIXME,
4206 this will need work for the new core paradigm.
4207
4208 Opcode patches from the net:
4209
4210 * mips-opcode.h: fix incorrect disassembly of the mfc1, cfc1, and
4211 ctc1 instructions. Also, the cvt.d.w and cvt.s.w instructions were
4212 missing altogether - they are added here. From Bruce Bauman.
4213 * mips-opcode.h: The low mask for C0 instructions was too small.
4214 From Garrett Lau. I modified the fix to check the entire 32-bit
4215 opcode.
4216
4217 * ns32k-opcode.h: Fix opcodes for deiw and deid. From Bruce
4218 Bauman.
4219
4220 Thu Mar 21 12:56:46 1991 John Gilmore (gnu at cygint.cygnus.com)
4221
4222 Roll in changes from Per Bothner (Tue, 25 Sep 90 11:11:04):
4223
4224 * dbxread.c (read_type): Pointer subtraction (value_sub in
4225 valarith.c) sometimes failed because the types of the
4226 pointers being subtracted were not identical.
4227 These differed because dbxread.c was allocating pointer types
4228 using dbx_alloc_type+smash_to_pointer_type instead of
4229 lookup_pointer_type. I failed to find a justification for the
4230 former, so I changed it to use the latter. Similarly, I
4231 replaced smash_to_function_type by lookup_function_type,
4232 and smash_to_reference_type by lookup_reference_type.
4233
4234 * mipsread.c (parse_symbol, upgrade_type, parse_procedure,
4235 _initialize_mipsread): corresponding changes.
4236
4237 * symtab.c (smash_to_{pointer,reference,function}_type): eliminate.
4238
4239 * source.c (mod_path): Do tilde_expand on each component of the path,
4240 rather than on the (list of) paths as a whole.
4241 (print_source_lines): Set first_line_listed in addition to
4242 current_source_symtab and current_source_line. If the source was
4243 not findable, after a "dir" command to fix the problem,
4244 a "list" would get the wrong lines.
4245
4246 While I was there... (gnu):
4247
4248 * dbxread.c (read_type): Change error to complaint.
4249
4250 Thu Mar 21 12:56:46 1991 John Gilmore (gnu at cygint.cygnus.com)
4251
4252 First attempt at detailed understanding of symbol table memory alloc.
4253
4254 * dbxread.c (dbx_symfile_read): Free our string table if we
4255 aren't the mainline. Free the "info" struct since we're done with
4256 it.
4257 (init_psymbol_list): Free any previously allocated psymbol lists.
4258 (): FIXME: Should realloc-down the psymbol lists when done reading
4259 the main symbol file?
4260
4261 * symmisc.c (free_symtab): Free fullname field too.
4262
4263 * xm-hp300hpux.h (USG): #undef then #define so Makefile can -D.
4264 (REGISTER_ADDR): Make result type unsigned int.
4265
4266 * xconfig/{i386*,hp300hpux,altosgas,altos}: All config files that
4267 define REGEX must also define REGEX1 (its dependency).
4268
4269 Tue Mar 19 21:28:57 1991 John Gilmore (gnu at cygint.cygnus.com)
4270
4271 * tconfig/i960: No longer works, points you at vxworks960 or
4272 nindy960.
4273
4274 * xgdb.c, XGDB-README: Remove file. Users can get the much
4275 better xxgdb.
4276 * Makefile.dist: Remove all trace of xgdb.
4277
4278 * breakpoint.c (breakpoint_1): Pass demangle arg to
4279 print_address_symbolic.
4280 (clear_breakpoints): Remove unused function.
4281 (breakpoint_re_set_one): Guts of breakpoint_re_set.
4282 (breakpoint_re_set): Use catch_errors to do them all anyway.
4283
4284 * gdb-int.texinfo (Host versus Target): Add section on what is
4285 a "host" feature versus what is a "target" feature.
4286
4287 * infcmd.c (path_command, path_info): Handle the PATH variable
4288 (object search path) as conveniently as the source search path.
4289 * environ.c (set_in_environ): Set some vars in GDB's environment,
4290 in addition to the child's. PATH, G960BASE, G960BIN for starters.
4291 * source.c (mod_path): New function, from guts of
4292 directory_command, modifies a path. Used by path_command.
4293 (directory_command): Call it.
4294 * defs.h (strsave): Declare.
4295
4296 * utils.c (sevenbit_strings): Add new printing option.
4297 (printchar): Use it.
4298 (strsave): Provide this handy helper routine.
4299 (set_width_command): Rename set_screen_width_command.
4300 (_initialize_utils): "set screen-width" => "set width";
4301 "set screen-height" => "set height"; add sevenbit-strings.
4302
4303 * infcmd.c (do_registers_info): Print floating point registers
4304 in raw hex as well as float format, regardless of whether it is
4305 a "virtual" convertible register.
4306 * tm-sparc.h (PRINT_REGISTER_HOOK): Print every pair of float
4307 regs as a double, just in case it's being used that way.
4308 * values.c (unpack_long): Comment on array/function coercion.
4309 (unpack_double): Argument is in target byte order now. For
4310 integer arguments, just call unpack_long and float the result.
4311 * m68k-tdep.c: include defs.h for "const" handling.
4312 * remote-nindy.c: Use ieee-float stuff.
4313 (nindy_fetch_registers): Unpack double regs to host double, then
4314 to extended.
4315 (nindy_store_registers): Pack extendeds to host double, flip
4316 around by misusing unpack_double, send as target double.
4317
4318 * tm-vxworks68.h (FRAME_CHAIN): Handle current frame pointer of
4319 zero, as when stopped at the first instruction of a process.
4320
4321 * blockframe.c: Fix filename in comment (param.h => tm.h).
4322 * sparc-tdep.c (skip_prologue): More explicit nudging comments.
4323 * tm-68k.h: Fix typos.
4324
4325 Fri Mar 15 01:09:34 1991 John Gilmore (gnu at cygint.cygnus.com)
4326
4327 Changes from a bringup on the DEC Vax under Ultrix 4.0.
4328
4329 * coredep.c (fetch_core_registers): Pass end-address of register
4330 section to register_addr as expected. Don't call supply_register
4331 if we'd just pass it garbage.
4332
4333 * dbxread.c (read_dbx_symtab): Skip N_NSYMS on Ultrix.
4334
4335 * exec.c (xfer_memory): Use boolean xfer_fn result, not int.
4336
4337 * target.c (push_target, target_info): Cast enums to int for < or
4338 > comparison.
4339
4340 * stack.c (print_frame_info): Identify source file & line
4341 even if we can't print it.
4342
4343 * xm-vax.h (MISSING_VPRINTF): No longer missing in Ultrix V4.0.
4344
4345 Sat Mar 9 10:08:20 1991 John Gilmore (gnu at cygint.cygnus.com)
4346
4347 Clean up IEEE floating point support.
4348
4349 * ieee-float.h: New file.
4350 * ieee-float.c: Write real routines to convert between host
4351 doubles and various target IEEE extendeds.
4352 * m68k-xdep.c: Eliminate assembler code for extended floats.
4353 * xconfig/{3b1,altos,altosgas,hp300bsd,isi,news,news1000,sun2os3,
4354 sun2os4,sun3,sun3os3,sun3os4}: Eliminate use of m68k-xdep.o.
4355 * tm-i960.h, tm-68k.h (REGISTER_CONVERT_TO_VIRTUAL,
4356 REGISTER_CONVERT_TO_RAW): Use ieee_extended_to_double and
4357 double_to_ieee_extended.
4358 * i960-tdep.c: Define ext_format_i960.
4359 * m68k-tdep.c: Define ext_format_68881.
4360 * sparc-tdep.c: Define ext_format_sparc, though unused.
4361 * Makefile.dist (HFILES): Add ieee-float.h.
4362 * inftarg.c: #include "ieee-float.h" for the REGISTER_CONVERT
4363 macros.
4364
4365 Obsolete the "coffstrip" program in favor of using BFD's strip.
4366
4367 * nindy-share/coffstrip.c: Remove file.
4368 * nindy-share/nindy.c (coffstrip): Routine to run bfd_strip.
4369 * Makefile.dist: Remove references to nindy-share/coffstrip.c.
4370 * tconfig/nindy960: Remove reference to coffstrip.o.
4371
4372 * Makefile.dist: Roll version number to 3.94.1 (not yet final).
4373
4374 Wed Mar 6 09:56:45 1991 John Gilmore (gnu at cygint.cygnus.com)
4375
4376 * symfile.h: Add symfile_bfd, common between dbxread and coffread.
4377 * dbxread.c: Remove static symfile_bfd.
4378 * infcmd.c (do_registers_info): Add PRINT_REGISTER_HOOK, though
4379 it is not used yet.
4380 * inftarg.c (child_detach): Pop the child_ops vector if the
4381 detach is successful.
4382 * remote-nindy.c (nindy_create_inferior): Don't push a new
4383 nindy_ops since nindy uses the same one for execution and memory
4384 examination anyway.
4385 * core.c (core_ops): Use child_attach and child_create_inferior
4386 rather than default attach and create_inferior functions.
4387
4388 Handle floating point registers in core files.
4389
4390 * sparc-xdep.c (fetch_core_registers): Rewrite for float support.
4391 * sun3-xdep.c (fetch_core_registers): Rewrite for float support.
4392 This version untested since BFD doesn't yet support sun3 core
4393 files.
4394 * hp300hpux-xdep.c: Rewrite fetch_core_registers to new calling
4395 conventions. Fix comments and style. This version has not
4396 been compiled yet, since we have no HP inhouse.
4397 * core.c (get_core_registers): Look for two sections, ".reg"
4398 and ".reg2", and pass both to fetch_core_registers sequentially.
4399
4400 Revise directory path yet again.
4401
4402 * source.c (forget_cached_source_info): Not static any more.
4403 (init_source_path): New default source path is "$cdir:$cwd".
4404 (dir_command): Handle variable arguments ($cdir, $cwd).
4405 (source_info): Print "Compilation directory" rather than
4406 "Originally compiled in" to remind people of $cdir.
4407 (openp): If the path contains $cwd, use current directory.
4408 (open_source_file): If compilation directory is known, replace
4409 first $cdir in path with the compilation directory.
4410 (print_source_lines): Even if we can't print the lines, set the
4411 current symtab and line for future commands like "info source" or
4412 "breakpoint". Also, error message now contains the file name,
4413 line number, and file access error message.
4414 (_initialize_source): Fix help text to describe changes.
4415 * main.c (cd_command): Forget cached source info when we chdir.
4416 * utils.c (strstr): Add simple implementation.
4417
4418 Tue Mar 5 01:41:40 1991 John Gilmore (gnu at fowanton.cygnus.com)
4419
4420 * coffread.c (read_one_sym, init_linetable, init_stringtab):
4421 Byte-swap COFF symbol tables if necessary when reading them in.
4422 Use complain() to replace error message in one spot. Needs
4423 corresponding change in bfd/coff-code.h to make some symbol
4424 swapping routines non-static.
4425
4426 Mon Mar 4 00:53:40 1991 John Gilmore (gnu at cygint.cygnus.com)
4427
4428 Merge changes from Eirik Fuller, for UTek.
4429
4430 * defs.h (errno): Add declaration.
4431 * altos-xdep.c, arm-xdep.c, convex-xdep.c, gould-xdep.c,
4432 hp300hpux-xdep.c, infrun.c, inflow.c, infptrace.c, i386-tdep.c,
4433 i386-xdep.c, pyr-xdep.c, mips-xdep.c, remote-eb.c, remote-nindy.c,
4434 remote-vx.c, source.c, standalone.c, stuff.c, sun386-xdep.c,
4435 symmetry-tdep.c, symmetry-xdep.c, umax-xdep.c, utils.c: Eliminate
4436 declarations of errno.
4437
4438 * remote-eb.c: Define B19200 and B38400 as EXTA and EXTB.
4439
4440 * remote-vx.c: Include <sys/time.h> for UTek; Sun gets it via
4441 <rpc/rpc.h> and <rpc/types.h>.
4442
4443 Sat Mar 2 15:47:55 1991 John Gilmore (gnu at cygint.cygnus.com)
4444
4445 * i960-tdep.c (examine_prologue): Add new argument limit,
4446 which stops the scan at the end of the prologue, or at the PC.
4447 This fixes a problem where it walks down into the code for the
4448 user's statements if that code looks like function prologues.
4449 Mark Fox and I have been bouncing this code back and forth, making
4450 small changes to it. Callers changed to match.
4451
4452 Tue Feb 26 01:47:07 1991 Cygnus John Gilmore (cygnus at yuba)
4453
4454 Cleanup for gdb-3.94 release final:
4455
4456 * Makefile.dist: Remove remote-vx.c, remote-nindy.c, and all
4457 the .c files from vx-share and nindy-share, from the various
4458 macros, since they are not found via ALLDEPFILES.
4459 (SFILES): Add tm-i960.h.
4460 (alldeps.mak rule): Break out ALLDEPFILES_MAINDIR and
4461 ALLDEPFILES_SUBDIR. List all the nindy and vxworks subdir files
4462 in the SUBDIR list.
4463 (TAGFILES_MAINDIR): Change ALLDEPFILES to ALLDEPFILES_MAINDIR.
4464 (gdb.tar.Z): Use ALLDEPFILES_SUBDIR as well as SFILES_SUBDIR.
4465
4466 Mon Feb 25 16:02:35 1991 Cygnus John Gilmore (cygnus at oldman)
4467
4468 * am29k-tdep.c: Add contribution line.
4469 (examine_prologue): Cache information about function prologues in
4470 the misc-function-vector to avoid lots of references over the
4471 serial line while examining instructions.
4472
4473 * core.c (core_close): New function made from cleanup_core.
4474
4475 * core.c, exec.c, inftarg.c, remote-eb.c, remote-nindy.c,
4476 remote-vx.c, remote.c, target.c, target.h,
4477 Update target_ops vector to add attach, close, and load entries.
4478 Use add_syms_addr_command, not add_file_addr_command, for
4479 add_file. Break out close routine from existing code.
4480
4481 * dbxread.c (really_free_pendings): Don't free pending_blocks;
4482 they are in an obstack.
4483 (read_dbx_symtab): Relocate end_of_text_addr in the psymtab.
4484 Lint.
4485 (define_symbol): Add symbol type parameter; change callers;
4486 pass type parameter to DBX_PARM_SYMBOL_CLASS macro to allow
4487 it to influence the symbol class on the i960.
4488 (define_symbol): Swap LOC_CONST's into target byte order.
4489
4490 * exec.c (exec_close): New function.
4491 (exec_file_command): Call it.
4492
4493 * findvar.c (read_relative_register_raw_bytes): Doc byte order,
4494 Fix byte order of frame pointer.
4495 (read_var_value): Result of 0 if var's value can't be found,
4496 e.g. missing FRAME_ARGS_ADDRESS. Byte-swap LOC_CONST and
4497 LOC_LABEL values to target order. Add LOC_LOCAL_ARG.
4498 (locate_var_value): Use read_var_value and use its lazy address
4499 as the location of the var's value. Lint.
4500
4501 * i960-pinsn.c (next_insn): Add routine from vxgdb for scanning
4502 instructions.
4503
4504 * i960-tdep.c (arg_address, i960_frame_find_saved_regs): Remove
4505 obsolete Intel versions in favor of vxgdb versions.
4506 (check_host, byteswap, byteswap_val, reorder_val): Eliminate
4507 code dealing with byte order of values, which Intel did in host byte
4508 order rather than gdb-4's target byte order.
4509 (i960_frame_chain_valid): Move to nindy-tdep.c.
4510 (examine_prologue, skip_prologue, frame_find_saved_regs,
4511 frame_args_address, leafproc_return, saved_pc_after_call,
4512 pop_frame): Add vxgdb versions from Mark Fox.
4513 (examine_prologue, frame_struct_result_address): Add code
4514 to deal with the saved value of G13 (struct return address
4515 pointer).
4516 (frame_args_address): Modify Mark's version to prefer the
4517 saved value over the current value in the topmost frame.
4518 Cache result in the frame info to avoid performance hair in
4519 callers.
4520 (print_fault): Add gdb960 code for printing faults.
4521 (_initialize_i960): Actually call check_host.
4522
4523 * ieee-float.c (ieee_extended_to_double, ieee_double_to_extended):
4524 add stub routines. FIXME, these currently just return zero!
4525
4526 * infcmd.c (program_info): Use PRINT_RANDOM_SIGNAL.
4527 (attach_command): Call target_attach, not target_open, now.
4528
4529 * infrun.c (normal_stop): Make global, not static, for vx_attach.
4530 (child_attach): Rename from child_open.
4531 (wait_for_inferior): Use PRINT_RANDOM_SIGNAL. If stop_pc is zero,
4532 don't confuse it with a zero step_resume_break_address.
4533
4534 * inftarg.c (child_detach): Eliminate inferior_pid test.
4535 (child_files_info): Clean up message a bit.
4536 (child_ops): Use child_attach, not child_open, to attach.
4537
4538 * mem-break.c: #ifdef out the whole file if BREAKPOINT is not
4539 set (e.g. on VxWorks or NINDY). Move read_memory_nobpt from
4540 findvar.c to here, since it depends on the contents of the
4541 shadow_contents of breakpoints, but keep if #if 0 since it is
4542 never called.
4543
4544 * nindy-tdep.c: New file, contains nindy_frame_chain_valid, moved
4545 from i960-tdep.c.
4546
4547 * printcmd.c (address_info): Handle LOC_LOCAL_ARG. Lint.
4548 (ptype_command, display_command): Eliminate have_inferior_p and
4549 have_core_file_p in favor of target_has_stack or
4550 target_has_execution.
4551 (print_frame_args): Handle LOC_LOCAL_ARG. Eliminate duplicate
4552 code for actually finding the values of arguments, though we still
4553 keep track of the maximum stack offset for use in printing unnamed
4554 arguments. Handle missing FRAME_ARGS_ADDRESS.
4555
4556 * remote-nindy.c (i960_print_fault): Move to i960-tdep.c.
4557 (struct nindy_regs): Define registers passed to/from nindy.
4558 (nindy_fetch_registers, nindy_store-registers): Translate between
4559 nindy and GDB formats for the registers.
4560 (dcache_init): Statically allocate the cache, since it was being
4561 allocated by a malloc that was never freed anyway.
4562 (nindy_create_inferior): Error, not core dump, if no exec file.
4563 (nindy_before_main_loop): Use target_load, not target_add_file.
4564
4565 * remote-vx.c (net_load): Specify large timeout for load
4566 requests. Allow user to break out with INTERRUPT.
4567 (net_break): Remove useless code, clean up. Change callers.
4568 (parse-args, skip_white_space, find_white_space): Clean up arg
4569 parsing to cope with quoted strings.
4570 (net_wait, net_quit): Never call error, just return status.
4571 (vx_read_register, vx_write_register): Cleanup status checking.
4572 #ifdef the code based on which CPU we are using (960 or 68k),
4573 FIXME, this should be completely general but it isn't yet.
4574 (vx_xfer_memory, vx_resume): Cleanup status checking.
4575 (vx_run_files_info): Improve message.
4576 (vx_load_command): Renamed from vx_add_file_command. Allow load
4577 to be interrupted.
4578 (net_ptrace): Remove unused routine.
4579 (vx_wait): Adopt code from vxgdb960 to cope with broken
4580 connections to target machine and prompt to disconnect. Remove
4581 debug printouts. Map some EVENT_'s to SIGnals.
4582 (add_symbol_stub, vx_open): Print names of object files we found,
4583 and "ok" if we read their symbols OK. Clarify output in general.
4584 (vx_attach, vx_detach, vx_kill): Add these commands.
4585 (vx_convert_from_virtual, vx_convert_to_virtual): Simplify.
4586 (vx_run_ops): Turn off all_mem, to avoid spurious msg in the
4587 "info files" output, and create_inferior, since we already have
4588 an inferior.
4589
4590 * stack.c (frame_info): Replace Frame_unknown with 0.
4591 (print_frame_arg_vars): Handle LOC_LOCAL_ARG.
4592 (return_command): Pop until the PC matches as well as the FP,
4593 so it works even if the FP is shared with another function,
4594 as in "frameless" or "leaf" procedures.
4595
4596 * symfile.c (load_command): renamed from add_file_target_command.
4597 (add_syms_addr_command): renamed from add_file_addr_command.
4598 (add_syms_command): Stub to call target_add_syms.
4599 (_initialize_symfile): Change command names and descriptions,
4600 add-file => add-syms, and load from alias to its own command.
4601
4602 * target.c (kill_or_be_killed, maybe_kill_then_attach,
4603 maybe_kill_then_create_inferior): Default for attempts to start
4604 a process, if one is already running, is to ask about killing
4605 it and retry if yes.
4606 (upstack_create_inferior): #if-0 it, strata obsolete it.
4607 (push_target, unpush_target, pop_target): to_close() a target
4608 before unstacking it.
4609 (target_info): Renamed from target_files_info.
4610 (_initialize_targets): Rename "i files" as "i target", accessible
4611 under both names.
4612
4613 * target.h: Improve comments about the target_ vectored routines.
4614
4615 * tm-i960.h: Remove NINDY-specific stuff to tm-nindy960.h.
4616 Convert commenting style to standard GNU style.
4617 (DBX_PARM_SYMBOL_CLASS): allow LOC_LOCAL_ARG's to be recognized.
4618 (SKIP_PROLOGUE): No longer a no-op.
4619 (SAVED_PC_AFTER_CALL): Now handles leaf procedures.
4620 (*_REGNUM): Sort register numbers.
4621 (REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE,
4622 MAX_REGISTER_RAW_SIZE, REGISTER_CONVERTIBLE,
4623 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): Float regs
4624 are now 10 byte extendeds, not 8 byte doubles.
4625 (FRAME_CHAIN_VALID): Make this config-dependent, since it differs
4626 for nindy versus vxworks targets. FIXME, this should possibly go
4627 in the target vector.
4628 (EXTRA_FRAME_INFO, INIT_EXTRA_FRAME_INFO): Cache both
4629 frame_saved_regs and arg pointer with each frame.
4630 (FRAMELESS_FUNCTION_INVOCATION): New leafproc support.
4631 (FRAME_ARGS_ADDRESS): Use cached result.
4632 (FRAME_ARGS_ADDRESS_CORRECT): New, avoids g14 guessing.
4633 (FRAME_FIND_SAVED_REGS): Change arg to subsidiary fn.
4634 (PRINT_RAMDON_SIGNAL): Call print_fault.
4635 (POP_FRAME): Now works.
4636
4637 * tm-nindy960.h: Break this off tm-i960.h. NINDY-specific
4638 option parsing and startup; STACK_END_ADDR, FRAME_CHAIN_VALID,
4639 BREAKPOINT, and DECR_PC_AFTER_BREAK are here.
4640 (ADDITIONAL_OPTION_HANDLER): use target_load, not
4641 target_add_file.
4642
4643 * tm-vxworks960.h: Break this off tm-i960.h. VxGDB specific
4644 startup; DECR_PC_AFTER_BREAK, and FRAME_CHAIN_VALID are here.
4645
4646 * valarith.c (value_subscripted_rvalue): Avoid handling
4647 floats and doubles specially; it gave alignment errors. Lint.
4648
4649 * valops.c (value_of_variable, value_of_this): Error if unknown
4650 value.
4651
4652 * valprint.c (print_floating): Bcopy rather than pointer-deref,
4653 to avoid alignment problems.
4654 (value_print): Handle unknown value address.
4655 (cplus_val_print): Two args are ignored; remove them. Change caller.
4656 (val_print): Use unpack_long rather than pointer-deref.
4657
4658 * values.c: Lint.
4659 (unpack_long, unpack_double): Use bcopy rather than pointer-deref
4660 to avoid alignment problems.
4661 (value_being_returned): Error if return value unknown.
4662 (set_return_value): Add bogosity warning, FIXME. *
4663
4664 * TODO: A woman's work is never done.
4665
4666 * Makefile.dist: Distribute REMOTE_OBS into tconfig files.
4667 Separate INCLUDE_CFLAGS for use with lint. Add LINTFILES.
4668 Add ieee-float.o to OBS.
4669 * tconfig/{nindy960,vxworks68,vxworks960}: Include the desired
4670 REMOTE_OBS remote-interface files in the TDEPFILES and TM_FILE.
4671 * tconfig/i960: FIXME. Half-merge, produce warning if config'd.
4672
4673 Changes to generalize the VxWorks RPC protocol slightly, to handle
4674 i960 as well as 68000.
4675
4676 * vx-share/dbgRpcLib.h (VX_SOURCE_STEP): Add.
4677 * vx-share/reg.h: Produce i960 regs #ifdef I80960
4678 * vx-share/xdr_ptrace.c: Skip FPA registers if 960.
4679 * vx-share/xdr_rdb.h: Add SOURCE_STEP struct and xdr decl.
4680 * vx-share/xdr_rdb.c: Add xdr_SOURCE_STEP routine.
4681 * vx-share/xdr_regs.c: Add xdr_regs, xdr_fp_status, xdr_ext_fp
4682 for i960. Change xdr_vectors to xdr_opaques for 68k registers,
4683 so they will move in target byte order rather than network
4684 byte order (happens to be the same).
4685
4686 Mon Feb 25 03:41:44 1991 John Gilmore (gnu at cygint.cygnus.com)
4687
4688 * tm-convex.h (END_OF_TEXT_DEFAULT): Remove #if 0'd block.
4689
4690 Sun Feb 24 00:55:53 1991 John Gilmore (gnu at cygint.cygnus.com)
4691
4692 * am29k-pinsn.c,
4693 Add contribution lines to various files, showing where they
4694 came from.
4695
4696 * breakpoint.c (break_insn, check_break_insn_size,
4697 read_memory_nobpt): Remove to mem-break.c.
4698
4699 * xm-*.h, param-no-tm.h, tm-29k.h, valprint.c: Change BYTE_ORDER to
4700 HOST_BYTE_ORDER.
4701
4702 * tm-29k.h (STAB_REG_TO_REGNUM): Warn user if symbol table
4703 entry has bad register number. This change is not
4704 tested in this release, FIXME.
4705
4706 * frame.h: Eliminate Frame_unknown in favor of a simple zero.
4707 tm-vax.h: Ditto.
4708
4709 * value.h: Force value's contents field to be aligned to hold
4710 at least a double or a long long (if supported). This avoids
4711 doing bcopy's in and out of the contents field.
4712
4713 (step_1): Avoid coredump under obscure circumstances when we
4714 have no frame.
4715
4716 * symtab.h (misc_info): Add field to misc function vector for
4717 any kind of cached information the target code desires. AMD
4718 29000 uses this to avoid repeating examine_function_prologue's.
4719
4720 * coffread.c: Lint. Remove static symfile, read_section_header.
4721 core.c (have_core_file_p): Lint: remove.
4722 expprint.c (print_subexp): Lint.
4723 infptrace.c, valops.c, valprint.c: lint.
4724
4725 Roll in changes from vxgdb-5.0.1:
4726
4727 * symtab.h: Comment byte order of each address class. Add
4728 LOC_LOCAL_ARG for frame-relative args (960).
4729 expread.y: Use LOC_LOCAL_ARG where LOC_ARG is used.
4730 symtab.c, symmisc.c: ditto.
4731
4732 * infrun.c (init_wait_for_inferior): Clear stop_signal.
4733
4734 * remote.c (remote_resume): Error if resume with a signal.
4735
4736 * symfile.c (prim_record_misc_function): Clear misc_info.
4737 (fill_in_vptr_fieldno): Check stub type of arg.
4738
4739 * valops.c (value_cast): Avoid looking up names of types whose
4740 name we don't know, to prevent coredump. Sun CC produces typedef
4741 rtx and the name of *rtx is zero...
4742
4743 Mon Feb 18 21:16:25 1991 John Gilmore (gnu at cygint.cygnus.com)
4744
4745 Roll in changes from final AMD 29000 port (Tiemann).
4746
4747 tconfig/am29k: Add COFF_ENCAPSULATE and TARGET=TARGET_AM29K
4748 for ../include/a.out.encap.h. This might not work now that BFD
4749 is separately compiled. Instead, BFD support for encap will have
4750 to translate machine type 29k into the right COFF_MAGIC.
4751
4752 * infcmd.c: Remove references to inferior_pid that aren't used
4753 in actual ptrace calls; use target_has_execution, etc.
4754 (have_inferior_p): Remove function.
4755 (program_info): Print target info rather than "process number";
4756 avoid gratuitous messages unless from_tty.
4757 (run_stack_dummy, finish_command): Set proceed_to_finish.
4758 infrun.c: Remove inferior_pid refs. Decl & init proceed_to_finish.
4759 main.c: Lint. Lose have_inferior_p().
4760 inferior.h (have_inferior_p): Remove, lint.
4761 (proceed_to_finish): Add flag to ask that all regs be saved
4762 by normal_stop, for the few commands that need it, speeding up
4763 serial I/O. Add comments to stop_registers.
4764
4765 * remote-eb.c: Remove newline from breakpoint message we grep
4766 for. Never time out when running the user program.
4767
4768
4769
4770 Wed Feb 13 15:34:40 1991 John Gilmore (gnu at cygint.cygnus.com)
4771
4772 Roll in changes from vxgdb-5.0.1:
4773
4774 * dbxread.c (read_dbx_symtab): If we encounter a "FORTRAN COMMON"
4775 symbol in its raw form, we are processing an unlinked ".o" file.
4776 See if the target environment has assigned it an address, using
4777 target_lookup_symbol (VxWorks does), and enter it into the symtab
4778 that way.
4779
4780 * tm-vxworks.h (FRAME_CHAIN, FRAME_CHAIN_VALID): Override usual
4781 68k versions for a simpler version that assumes zero FP at bottom.
4782 Fixes bug of truncated stack reports.
4783
4784 * target.h (target_lookup_symbol): Define this routine's args
4785 and result, finally.
4786
4787 * target.c (nosymbol): Default routine for target_lookup_symbol.
4788 (target_default): Default lookup_symbol and call_function too.
4789 (files_info): Only print has_all_memory warning if a non-dummy
4790 target follows.
4791
4792 * remote-vx.c (vx_read_register, vx_convert_to_virtual,
4793 vx_convert_from_virtual): If target does not have floating point,
4794 zero register "values", and avoid doing cross-net conversions.
4795 (vx_lookup_symbol): Rename net_lookup_symbol, add to vectors.
4796 (vx_open): Rearrange code that attaches to target and reads
4797 symbols for all loaded modules, to work if some of the modules
4798 are not accessible. Add symbol_stub() and add_symbol_stub()
4799 as callbacks from catch_errors(). Allow connect attempt to be
4800 interrupted painlessly with ^C (FIXME, there are still some bugs
4801 if the interrupt happens during symbol reading.). Print
4802 final message with puts_filtered, since symbol messages are
4803 now filtered too.
4804
4805 Misc cleanup:
4806
4807 * main.c (catch_errors): Only print errstring if non-null.
4808 (command_loop): Avoid an ioctl per command to test ISATTY.
4809
4810 * remote-vx.c (net_load): make static; avoid sophomoric msg.
4811 (vx_xfer_memory): Return correct result!
4812 (vx_files_info): Indicate whether target has float or not.
4813 (vx_lookup_symbol): Complain, not error, if target gone.
4814 (vx_open): Print "Connected" msg before disabling immediate-quit.
4815 [FIXME: lookup_symbol and vx_open changes need testing.]
4816
4817 target.c, remote-eb.c, inftarg.c, am29k-opcode.h, target.h,
4818 tm-29k.h, tmm-vxworks68.h, symfile.c, gdb-int.texinfo: Add
4819 contributor lines and update copyrights to 1991.
4820
4821 Changes from an attempted H-PUX host port:
4822
4823 * infptrace.c (PT_ATTACH, PT_DETACH): Handle HP/UX, which
4824 defines PT_ATTACH and PT_DETACH but not PT_KILL.
4825 * remote-eb.c (eb_open): Misplaced endif kills sysv H/PUX.
4826 * remote-vx.c: include <sys/time.h> for HPUX.
4827 * hp300hpux-xdep.c (fetch_core_registers): Rewrite old
4828 "core_file_command" routine to BFD regime. May not work yet.
4829
4830 Attempted port of "gdb-3.4 Van Jacobson xgdb" to modern gdb.
4831
4832 * xgdb.c: Replace X10 version with some VJ version.
4833 (FIXME: Its copyright assignment is not on record.)
4834 * xgdb.c: Update include files to X11R4 (Xaw crud).
4835 (xgdb_display_source, create_text_widget): fix call to
4836 get_filename_and_charpos. Rewack source window stuff for X11R4
4837 (gleaned from include files, and "nm's" of binary libraries, since
4838 I had no doc available).
4839 (append_selection, append_selection_word): Disable with FIXME
4840 since R4 changed interface here.
4841 (create_buttons): Add back the old set of buttons.
4842 (xgdb_create_window): Fix call to XtInitialize (&argc not argc).
4843
4844 * Makefile.dist (xgdb, xgdb-init.c): Update for X11R4 on Suns.
4845 Roll VERSION to 3.94 (not yet final though).
4846
4847 Sat Feb 9 09:46:25 1991 John Gilmore (gnu at cygint.cygnus.com)
4848
4849 * obstack.h (obstack_ptr_grow, obstack_ptr_grow_fast,
4850 obstack_int_grow, obstack_int_grow_fast): Eliminate
4851 cast on left of assignment, which gives MIPS cc fits and is
4852 not Standard C.
4853
4854 * sparc-pinsn.c (print_insn): Eliminate 'set' test, subsumed by
4855 F_ALIAS. Use printf, not fprintf, when not passing a file
4856 pointer...
4857 (compare_opcodes): Check that identical instructions have
4858 identical opcodes, complain otherwise.
4859
4860 * sparc-opcode.h (st %fsr): Fix opcode "lose" mask. This
4861 was reported by Roland McGrath.
4862 (unimp): Only match if exactly zero instruction. (Roland)
4863 (branches and traps): Generate all variations of these
4864 instructions with macros, based on a single call that defines
4865 each condition name and its binary representation.
4866 (set): Turn on alias bit, to avoid test in sparc-pinsn.c.
4867
4868 * valprint.c (val_print_fields): Take, and use, format parameter.
4869 This means that "p/x struct" again prints the elements in the
4870 desired format. Changed callers.
4871
4872 * stack.c (frame_info): Use filtered output, and indicate wrap
4873 points. Remove kludgy formatting designed to avoid line wrap.
4874
4875 * utils.c (wrap_here): If the line is already full (because
4876 we had printed a long indent or long wrapped string), do an
4877 immediate newline-and-indent.
4878
4879 * m68k-pinsn.c (print_insn_arg): Bugfix from
4880 ntmtv!thompson@ames.arc.nasa.gov (Mike Thompson): 'bkpt #0'
4881 instruction is incorrectly disassembled as bkpt #8.
4882
4883 * dbxread.c (end_psymtab): Bugfix from Peter Schauer
4884 <pesrem@regent.e-technik.tu-muenchen.de>: If you want to set a
4885 breakpoint in a *.y file gdb will say Reading in symbols for *.y...
4886 and then will dump core (sometimes). I traced it back to an
4887 uninitialized symfile_name in psymtab_to_symtab.
4888 (const_vol_complaint): Add quotes to message.
4889 (define_symbol): Only believe line number if gcc_compiled.
4890 Avoid allocating symbol if we will not return it.
4891
4892 Add target strata support so that newly established targets go
4893 into their right place in the target stack (e.g. a new exec file
4894 doesn't wipe out the ability to access the running process).
4895
4896 * target.h, core.c, exec.c, inftarg.c, remote-eb.c,
4897 remote-nindy.c, remote-vx.c, remote.c, target.c: Add to_stratum
4898 and initialize it properly in all the targets.
4899
4900 * target.h: Document strata. Change return type of push_target.
4901
4902 * target.c (nomemory): new function for dummy memory access.
4903 (tcomplain): Rename complain, now also used in symfile.c.
4904 (push_target): Push targets within strata. New return value shows
4905 whether new target is on top of stack or not. Always keep dummy
4906 target on stack.
4907 (target_files_info): Ignore dummy target.
4908
4909 * core.c (core_open): Warn user, and skip accessing file, if the
4910 core target is not the topmost target in the stack.
4911 * remote-nindy.c (nindy_create_inferior): Avoid unpush_target, now
4912 already handled.
4913
4914 * remote-vx.c: Remove vx_prepare_to_store from vxworks memory
4915 target_ops, it doesn't belong there since we have no regs there.
4916 Change name of target from machine => memory to clarify.
4917
4918 Thu Feb 7 16:32:09 1991 John Gilmore (gnu at spiff.cygnus.com)
4919
4920 * Freeze version 3.93 for release.
4921
4922 * Makefile.dist: Handle vx-share and nindy-share subdirs
4923 properly when building gdb.tar.Z.
4924
4925 * symtab.c: lint; add no_symtab_msg to consolidate the messages
4926 printed in various places, so I could change just one copy.
4927
4928 * dbxread.c, coffread.c: Change references to bfd->iostream
4929 to cast to FILE *, now that BFD avoids needing types defined
4930 in other header files.
4931
4932 Tue Feb 5 21:39:35 1991 John Gilmore (gnu at cygint.cygnus.com)
4933
4934 * command.c, dbxread.c, expprint.c, infcmd.c, infptrace.c,
4935 infrun.c, printcmd.c, remote-nindy.c, source.c, sparc-tdep.c,
4936 sparc-xdep.c, symfile.h, symmisc.c, utils.c, valprint.c: Lint
4937 (actually gcc -Wall).
4938
4939 * dbxread.c: Remove first_global_sym, last_global_sym, since
4940 they are never referenced.
4941
4942 * defs.h (baud_rate): Declare.
4943 main.c: Define it, and add the -b option to set it.
4944
4945 * gdb-int.texinfo: Add text on how to define a new host or target
4946 architecture, prompted by Per Bothner's questions about MIPS
4947 support.
4948
4949 * gdb.texinfo: Document "complaints". Change doc of -q since
4950 gdb no longer prints the copyright and blurb if you specify a file
4951 name to be debugged (just like Emacs). Add doc for Nindy-specific
4952 command line flags for specifying target serial port and such.
4953 Update copyright to 1991.
4954
4955 * gdbcore.h: Remove a large mass of now-useless crud, since BFD
4956 has taken over for us the job of ripping up executable files. The
4957 crud caused Per Bothner's port to not compile.
4958
4959 * infrun.c (normal_stop): Avoid printing "Program exited
4960 normally" if we are in batch mode. This allows a GDB which
4961 executes a program on a target system, to behave like a Unix
4962 command (input from stdin, output to stdout, no extraneous
4963 output).
4964
4965 * main.c (main): Allow additional machine-dependent command line
4966 options to be specified with the ADDITIONAL_OPTIONS,
4967 ADDITIONAL_OPTION_CASES, ADDITIONAL_OPTION_HELP, and
4968 ADDITIONAL_OPTION_HANDLER macros. Also allow machine-dependent
4969 processing to occur just before the main loop with
4970 BEFORE_MAIN_LOOP_HOOK.
4971 (main): If a "core file" argument is specified, and it is not a
4972 core file, try it as a process ID to attach.
4973 (symbol_completion_function): Attempt to cope with
4974 "show screen-" TAB, not very successfully. This needs more work,
4975 FIXME.
4976 (batch_file): New function, returns whether we are reading
4977 commands from an interactive tty on stdin, or from somewhere else.
4978 Called by normal_stop since it doesn't get from_tty passed down
4979 to it like many commands do.
4980
4981 * remote-nindy.c: Handle command line options for nindy
4982 connection.
4983 (nindy_before_main_loop): Prompt user for tty name if they
4984 don't specify it before getting to the interactive command loop.
4985
4986 * tm-i960.c: Add ADDITIONAL_OPTIONS, etc, to handle -O, -brk,
4987 and -r command line options. Also add hook before main loop
4988 to make it easy to specify a tty.
4989
4990 * TODO: More things to do, one done.
4991
4992 Mon Feb 4 23:57:39 1991 John Gilmore and Mike Tiemann (at cygint.cygnus.com)
4993
4994 * dbxread.c: Make complaint() calls pass pointer, not struct.
4995 Add complaints about badly formatted C++ type information
4996 (const/volatile indicator, and parse errors resulting in
4997 error_type). Fix C++ virtual member fn comment.
4998 (read_struct_type): Avoid bumping pointer if we got a parse
4999 error; this prevents our walking beyond the end of a string.
5000 Terminate loop on null char as well as semicolon.
5001 (process_one_symbol): Fix the LBRAC fix so that it uses the
5002 last previous SLINE, FUN, or SO record's PC address. C++ debug
5003 symbols did not have SLINE records in a useful order compared
5004 to the LBRAC records.
5005 (define_symbol): Handle "catch" records.
5006
5007 * symtab.c (check_stub_type): Added new complain
5008 `stub_noname_complain' and added a consistency check to
5009 keep the debugger from crashing when finishing from an
5010 exception frame. A real fix will be needed later.
5011
5012 Sat Feb 2 10:43:05 1991 John Gilmore (gnu at cygint.cygnus.com)
5013
5014 * infcmd.c (attach_command): Make global.
5015
5016 * Makefile.dist (REMOTE_OBS): Make these compile by default,
5017 but make them easy to comment out. Perhaps later they should
5018 be enabled by what CPU you configure for? FIXME.
5019 (VERSION): Roll to 3.93.
5020 (pinsn.o): Remove rule for obsolete file.
5021 (dbxread.o,coffread.o,mipsread.o): Use ${srcdir} explicitly.
5022
5023 Run down a problem that manifested by printing the wrong function
5024 name in stack traces of read_ofile_symtab. Turned out that the
5025 problem was the SunOS 4.1.1 (and previous) C compiler outputs
5026 the LBRAC symbol with an address in the *data* segment, which
5027 blew our binary search through the blocks.
5028
5029 * dbxread.c: Use the complain() facility consistently to bitch
5030 about problems in the symbol file we are reading.
5031 (finish_block): Add code to check the nesting of the blocks;
5032 complain and Procrust them to fit if wrong.
5033 (make_blockvector): Check the order of the blocks, complain
5034 [but don't cope] if wrong.
5035 (process_one_symbol): ifndef SUN_FIXED_LBRAC_BUG, check LBRAC
5036 symbols to be sure their PC value is greater than the last SLINE
5037 (line number) symbol we've seen, complaining and adopting the
5038 SLINE PC value if wrong.
5039
5040 * symfile.h (struct complaint, complaint_root, complain,
5041 clear_complaints): Add.
5042 * symfile.c (complain, complaint_root, clear_complaints): Add
5043 facility to deal with non-fatal complaints and to regularize their
5044 suppression.
5045 (symbol_file_add): Clear complaint counters to allow new complaints.
5046 (initialize_symfile): Add 'set complaints' and 'show complaints'.
5047
5048 * dbxread.c (dbx_symfile_read): Remember the address and size
5049 of the string table for the main symbol file, so we won't read it
5050 more than once.
5051 (dbx_psymtab_to_symtab): Fix the check for main symbol file,
5052 to avoid reading the string table yet again. Lint.
5053 (throughout): Improve filtered output, including word wrap.
5054 (read_range_type): Improve Bothner's fix to handle other types too.
5055
5056 * utils.c: Improve line wrap implementation. Handle unlimited
5057 width by making chars_per_line unsigned.
5058 (puts_filtered): New, easy, function.
5059
5060 * defs.h (puts_filtered): add.
5061
5062 * mipsread.c (compare_symbols, sort_symtab): Remove these fns,
5063 call the identical sort_symtab_syms() in symfile.c instead.
5064
5065 * expread.y: Suggest the `file' command rather than `symbol-file'.
5066
5067 * command.h (enum var_types): Add zinteger for seroable
5068 unsigned integer.
5069 * command.c (do_setshow_command): Handle var_zinteger. Restructure
5070 nested if's into a switch.
5071
5072 * breakpoint.c (bpstat_print): If bpstat "print" flag is not set,
5073 we did not stop because of a breakpoint (it must have been for
5074 some other reason, like a "stepi"), so don't print anything.
5075
5076 * symtab.c: Include <sys/types.h> all the time. Now that BFD
5077 doesn't include <sys/types.h>, old SunOS's require it for
5078 <sys/stat.h>.
5079
5080 Sat Feb 2 10:39:15 1991 Per Bothner (bothner@cs.wisc.edu)
5081
5082 A test port of gdb-3.92.6 to the Sony NEWS.
5083
5084 * Makefile.dist
5085 Don't normally link in remote- or vx stuff.
5086 Some of it doesn't compile, and it wastes space for 99% of the users.
5087 Remove reference to no-longer-used HAVE_VPRINTF.
5088 Fixed BFD_DEP typo to BFD_DIR.
5089 * dbxread.c
5090 Fix cast in arg to bfd_h_getlong.
5091 Make char *prefix be const.
5092 Fix how certain range types are mapped into builtin unsigned int types.
5093 * infrun.c
5094 Remove 2 #includes. They cause errors (on Sony, at least),
5095 and aren't needed (they wern't in earlier versions).
5096 * printcmd.c
5097 print_address_symbolic should never demangle labels
5098 (since it prints *assembler-level* labels).
5099
5100 [This was superseded by the change to printcmd below.]
5101
5102 * utils.c
5103 Add some "volatile" return types to avoid warnings.
5104 If MISSING_VPRINTF add vprintf function and not just macro
5105 (since vprintf is used in printcmd.c).
5106 * valprint.c
5107 Unless __GNUC__, use obstack_grow instead of obstack_ptr_grow.
5108 (The latter isn't grokked by some PCC-based compilers.)
5109
5110 [This change is in abeyance, we prefer to fix obstack_ptr_grow.]
5111
5112 Make chunk size of dont_print_obstack 32*4 instead of default 4096.
5113 * nindy-share/coffstrip.c
5114 Added some forward declarations (otherwise, gcc complains
5115 about implicit extern redefined as static).
5116
5117 Sun Jan 20 02:38:19 1991 John Gilmore (gnu at cygint.cygnus.com)
5118
5119 Changes inspired by Per Bothner:
5120 * printcmd.c (print_address_symbolic): Take additional parameter
5121 specifying whether to demangle.
5122 (print_address): Pass in asm_demangle to control demangling.
5123 (print_address_demangle): New fn, takes explicit arg to control
5124 demangling.
5125 * utils.c: Add new vars demangle and asm_demangle, and let them
5126 be set and shown.
5127 (fputs_demangled): If !demangle, just print the argument.
5128 (fprint_symbol): If !demangle, just print raw symbol.
5129 * valprint.c (val_print): Call print_address_demangle rather than
5130 print_address, to cause demangling to depend on the global
5131 rather than assembler-level demangling setting.
5132 * WHATS.NEW, gdb.texinfo: Document.
5133
5134 * main.c (show_command): Show all settings if no arg.
5135 (initialize_main): Make "info set" the same as naked "show".
5136 * command.c (cmd_show_list): Handle prefix commands in the
5137 list, and print the name of the setting as well as its English
5138 description and value.
5139
5140 Allow gdb functions to specify where a line should wrap if it
5141 exceeds the size of a terminal line. Use it to make the output
5142 prettier.
5143 * utils.c (set_screen_width_command): New fn, mallocs a buffer
5144 of the right size when screen width changes.
5145 (set_screensize_command, screensize_info): Remove #if 0'd fns.
5146 (wrap_here): New fn, indicates a point in the output where we
5147 should wrap the line rather than just letting it overflow at a
5148 random place.
5149 (fputs_filtered): Implement wrapping.
5150 (n_spaces): New fn, returns a pointer to N spaces.
5151 (print_spaces_filtered): Use n_spaces.
5152 * defs.h (n_spaces): Declare.
5153 * stack.c (print_frame_info): Wrap with 4-space indent after
5154 fn name and before filename and line number.
5155 * printcmd.c (print_frame_args): Wrap with 4-space indent
5156 before each argument name is printed.
5157 * valprint.c (value_print): Wrap with no indentation before
5158 each repetition.
5159 (val_print_fields): Wrap with indentation relative to nesting
5160 level before each field name.
5161 (val_print): Wrap with nesting indentation before array elements.
5162 * command.c (do_setshow_command): Avoid extra newlines,
5163 wrap with 4-space indent around values printed, end with period.
5164 * WHATS.NEW, gdb.texinfo, gdb-int.texinfo: Document.
5165
5166 * breakpoint.c (breakpoint_1): Implement addressprint for
5167 "info breakpoints" display. Change file name and line number
5168 format to " at file:nnn" rather than " (file line nnn)".
5169 * gdb.texinfo: Document.
5170
5171
5172 Fri Jan 18 07:21:25 1991 John Gilmore (gnu at cygint.cygnus.com)
5173
5174 Frozen for gdb-3.92.6 release.
5175
5176 README, WHATS.NEW: Update for 3.92.6 release.
5177
5178 tconfig/{altos, i386v, i386v32, m88k, umax}: Eliminate
5179 coffread.o from configs since it is now built by default.
5180 tconfig/{3b1, altosgas, arm, convex, hp300bsd, hp300hpux,
5181 i386v-g, i386v32-g, isi, merlin, news, news1000, np1, pn,
5182 pyramid, symmetry, vax, vxworks68}: Eliminate dbxread.o
5183 from configs since it is now built by default.
5184
5185 Makefile.dist: Update for release 3.92.6. Handle files that
5186 have been moved to ../include, ../getopt, or ../bfd. Add
5187 saber.suppress and tests directory. Add config.status to
5188 the release (it will say "none").
5189
5190 coredep.c: Minor formatting fixes.
5191
5192 These changes were made in early December but only checked in now:
5193 * nindy-share/Onindy.c, nindy-share/coffstrip.c,
5194 nindy-share/nindy.c: lint
5195 * nindy-share/nindy.c (ninStopWhy): Don't byteswap the
5196 register values coming back from the target; we store values
5197 in target byte order everywhere.
5198
5199 Wed Jan 16 19:01:37 1991 John Gilmore (gnu at cygint.cygnus.com)
5200
5201 * am29k-opcode.h, am29k-pinsn.c: Add 29050 opcodes.
5202
5203 * valprint.c (cplus_val_print, val_print_fields): New functions,
5204 which print C++ objects. They conspire to avoid printing a
5205 virtual base class more than once, following all the twists and
5206 turns of C++ virtual base rules.
5207 (val_print): Call the above rather than do it by hand.
5208
5209 * symfile.c (symbol_file_add): Only reset symfile_mtime for main
5210 symbol file, not for added files like shared libs. This really
5211 needs to be generalized to a timestamp per file.
5212
5213 * core.c (cleanup_core): Avoid coredump if no core file.
5214
5215 * config.gdb: Accept -host or -target in place of +host or
5216 +target.
5217
5218 * coffread.c (find_linenos): Avoid desupported BFD interface
5219 to line numbers. We still read them manually rather than using
5220 BFD's "generic" features.
5221
5222 * gdbrc.tex, threecol.tex: Add GDB reference card and its
5223 formatting code.
5224 Makefile.dist: Add refcard to OTHERS list for creating tar files.
5225
5226 * Makefile.dist: Eliminate use of $< in explicit targets.
5227
5228 * readline/Makefile: Use $< rather than $*.c, which does not
5229 include the VPATH in GNU Make.
5230
5231 * tconfig/i960-bout, tconfig/i960-coff: These are identical
5232 copies of tconfig/i960, added for global configuration
5233 compatability. All i960 versions can read both coff and b.out.
5234
5235 * tm-88k.h: Fix multiline macro that lacked \'s. Remove
5236 COFF_FORMAT and COFF_CHECK_X_ZEROES since these are now handled
5237 automaticaly.
5238
5239 * TODO: Think of more things to do.
5240
5241 Wed Jan 2 19:09:29 1991 John Gilmore (gnu at spiff.cygnus.com)
5242
5243 tconfig/{am29k,i960,sun2*,sun3*,sun4*}: Eliminate config
5244 of sdb versus dbx debug symbols. Add kludge for 68881 80-bit to
5245 64-bit float conversion.
5246
5247 tconfig/sun4, tconfig/sun3, xconfig/sun4, xconfig/sun3: Make
5248 equivalent to sun?os4 so global config works.
5249
5250 Wed Jan 2 18:20:51 1991 John Gilmore (gnu at spiff.cygnus.com)
5251
5252 Fix from Eberhard Mattes <mattes@azu.informatik.uni-stuttgart.de>
5253
5254 * main.c: Only declare linesize once; declare pagesize not at
5255 all, since it is never used.
5256 (main): Clear newly allocated line before it is used.
5257
5258 Fri Dec 28 00:13:42 1990 John Gilmore (gnu at cygint)
5259
5260 Further stabilization for the Intel 960.
5261
5262 * Makefile.dist: Parameterize the location of the "include"
5263 and "bfd" directories, as well as "getopt". Add symfile.c.
5264 Link in both dbxread and coffread. Fix up "make depend" to
5265 rewack the locations of include, bfd, and getopt in its output.
5266
5267 * README: Document moving include files, improve some of
5268 the other doc.
5269
5270 * coffread.c: Move common code out to symfile.c. Change
5271 symbol_file_command style interface to use new *_symfile_init
5272 and *_symfile_read interface under BFD. Use BFD internal
5273 info to locate line table, symbols, etc.
5274
5275 * core.c (core_fetch_registers): Rename to get_core_registers
5276 to avoid confusion with fetch_core_registers.
5277 (register_addr): Move to coredep.c, which is already machine
5278 dependent. This leaves core.c pretty clean of dependencies.
5279
5280 * coredep.c (register_addr): Accept this routine from core.c.
5281
5282 * dbxread.c: Move common code (with coffread.c, etc) into new
5283 symfile.c. Each psymtab now contains a pointer to the
5284 format-dependent function that knows how to read it in. Make
5285 some things static.
5286 (dbx_psymtab_to_symtab): Renamed from psymtab_to_symtab_2.
5287 (process_one_symbol): Add code to complain about a "compiler bug
5288 we muzzle here", if we actually see it.
5289
5290 * eval.c (evaluate_subexp): Insert missing "break" statements
5291 in code that determines whether a variable is an lvalue in
5292 memory, register, or whatever. I detected this via a compiler
5293 bug in which it *almost* mashed out the whole switch statement.
5294
5295 * gdb-int.texinfo: Add minor sections on configuring gdb for
5296 release, and about the README file.
5297
5298 * infcmd.c (registers_info): Fix formatting somewhat. Still
5299 not as pretty as before, but it handles byte swapping.
5300
5301 * remote-nindy.c: If data cache routines are interrupted while
5302 waiting for the remote end, be sure that any uninitialized cache
5303 blocks are on the free list, not on the valid list!
5304
5305 * symfile.h: Flesh out this header file with all the various
5306 routines and variables that have been merged in from dbxread.c
5307 coffread.c, and symtab.c to symfile.c.
5308
5309 * symfile.c: New file, containing code common to dbxread.c,
5310 coffread.c, and some code from symtab.c. All generic code for
5311 reading symbol files should be in here now.
5312 (unrecord_misc_function): Remove unused function.
5313
5314 * symtab.h: Remove file-reading things to symfile.h.
5315
5316 * symtab.c: Remove file-reading things to symfile.c.
5317
5318 * tm-i960.h: Fix FRAME_CHAIN types; define PRINT_RANDOM_SIGNAL
5319 to decode i960 fault types.
5320
5321 * target.h, remote.c, remote-eb.c, remote-vx.c, remote-nindy.c,
5322 target.c: Change type of the "resume" function from int to void,
5323 since its result was never used.
5324
5325 Sat Dec 22 02:51:40 1990 John Gilmore (gnu at cygint)
5326
5327 * main.c: Replace "stupid" with "caution"; you now "set caution
5328 on or off".
5329
5330 * printcmd.c (print_scalar_formatted): Fix typo in 'g' format
5331
5332 * infcmd.c (do_registers_info): Call val_print to deal with the
5333 byte order of the registers being printed. FIXME, this makes
5334 the formatting of the output uglier.
5335
5336 * infcmd.c (wait_for_inferior): If PRINT_RANDOM_SIGNAL is
5337 defined, call it for signals the debugger doesn't itself use.
5338 The i960 uses this for more detailed fault information.
5339
5340 * remote.c (remote_open): If arg is null, print help rather than
5341 dumping core.
5342
5343 * sparc-xdep.c (register_valid): Avoid declaring size, since
5344 various modules will think of various sizes depending on the
5345 architecture of their tm-file. FIXME, we need protection against
5346 actually entering one of those modules, which would clobber
5347 storage if not for the target architecture compiled into gdb.
5348
5349 * stack.c (up_command, down_command): Always print the frame
5350 you arrive at.
5351 (up_silently_command, down_silently_command): New commands
5352 for use in scripts.
5353
5354 * i960-pinsn.c (reg), i960-tdep.c: Lint.
5355
5356 * i960-tdep.c (i960_frame_chain_valid): Lookup_symbol now takes
5357 more parameters than it used to.
5358
5359 * findvar.c (registers): Increase slop to 256 bytes, which should
5360 protect us against even most RISC machines with large register
5361 sets.
5362 (locate_var_value): Move declaration inside related ifdef.
5363
5364 * remote-nindy.c (): Use TIOCSETN rather than TIOCSETP
5365 throughout, to avoid throwing away buffered input from the board.
5366 (nindy_wait): Supply_register takes addr_of_value, not value.
5367 (i960_print_fault): Renamed from i80960_fault.
5368 (nindy_fetch_registers): Avoid have_regs stuff, just get them.
5369 (nindy_store_registers): Avoid regs_changed stuff, just stuff
5370 them.
5371 (nindy_create_inferior): Don't bother to write PC_REGNUM since
5372 we can set the PC in the call to proceed(). Unpush nindy_ops
5373 before pushing it on top, to avoid message to user. Eliminate
5374 commentary from Unix machines that just misleads here.
5375 (reset_command): Fix error message to suggest target command.
5376
5377 Wed Dec 19 11:03:56 1990 John Gilmore (gnu at cygint)
5378
5379 Release 3.92.5 as frozen.
5380
5381 Stabilize the merged release...with help from lint, Saber C,
5382 gcc -W, etc.
5383
5384 Everywhere: Add include files needed to declare return types
5385 of functions called.
5386
5387 * gdb.texinfo: Roland Pesch is documenting gdb, glory be!
5388
5389 * breakpoint.h: Add undeclared breakpoint functions, and some
5390 functions for display handling since I couldn't think of a better
5391 .h to put them in.
5392
5393 * breakpoint.c (insert_breakpoints): Make code for disabling
5394 shared library bkpts more likely to work. It's used when we
5395 rerun a program and stop before the shared library has been
5396 mapped in.
5397 (breakpoint_cond_eval, bpstat_stop_status): Pass arg as int,
5398 cast from pointer, so it squeezes through catch_errors.
5399 (bpstat_stop_status): Fix logic broken some time ago. We now
5400 always create a bpstat if the stop address matches a breakpoint,
5401 even if we don't stop there -- just like the old code used to do
5402 before I got my fingers into it (sigh).
5403 (breakpoint_1): Print "ignore count" after "stop only if"
5404 condition, since that's how it actually works.
5405 (mention): Handle watchpoints as well as breakpoints.
5406 (watch_command): use set_raw_breakpoint and mention to do most
5407 of the work (and initialize all the fields!). Only pass one
5408 arg to parse_c_expression, since that's all it takes.
5409
5410 * command.c (not_just_help_class_command): Rename arg to args
5411 since we ignore "unused argument" warnings on vars named "args".
5412 inflow.c (child_terminal_info): ditto.
5413 infptrace.c (kill_inferior): ditto
5414 main.c (catch_errors, version_info, quit_command, pwd_command,
5415 source_command, dump_me_command, editing_info,
5416 set_history_size_command, set_history, show_history,
5417 set_verbose): ditto
5418 stack.c (locals_info): ditto
5419 target.c (target_files_info): ditto
5420 valprint.c (set_input_radix, set_output_radix): ditto
5421
5422 * core.c: Remove old variables for handling core and exec file
5423 sections (data_start, data_end, stack_start, stack_end,
5424 reg_stack_start, reg_stack_end, reg_stack_offset, text_start,
5425 text_end, exec_data_start, exec_data_end, text_offset,
5426 exec_data_offset, data_offset, stack_offset). They're
5427 superseded the more general build_section_table and
5428 xfer_memory.
5429 (get_exec_file): Mention the `file' command.
5430 (read_memory_check): Rename to memory_error, and only call it
5431 in the case of an actual error.
5432 (read_memory, write_memory): call memory_error.
5433 (core_fetch_registers): Register section name is ".reg".
5434
5435 coredep.c: Remove a bunch of crud now that all this file does
5436 is pull the registers out of a core file.
5437 (fetch_core_registers): Rewrite to actually work, I hope.
5438
5439 dbxread.c: Use a.out.gnu.h, not system a.out, now.
5440 Replace index() with strchr(). Remove all the pre-BFD macro
5441 definitions for accessing the symbol file.
5442 (struct dbx_symfile_info): Encapsulate the information that
5443 dbx_symfile_init needs to pass to dbx_symfile_read in this
5444 struct.
5445
5446 (dbx_new_init, dbx_symfile_init, dbx_symfile_read,
5447 dbx_symfile_discard): Rearrange symbol file reading to divide
5448 the format-specific part from the format-independent part,
5449 leaving the format-independent part such as file name expansion
5450 and opening in symtab.c. This replaces
5451 partial_symbol_file_open and partial_symbol_file_read.
5452 Symbol_file_read, add_file, add_file_target_command,
5453 add_file_addr_command move to symtab.c. Pass an explicit
5454 "mainline" flag for when reading the main symbol table, rather
5455 than relying on the offset address to be zero or nonzero.
5456
5457 (dbx_symfile_read): Don't allow void *'s to be printed as
5458 typedefs.
5459 (SWAP_SYMBOL): Use bfd routines to byte-swap the symbols.
5460 (ADD_PSYMBOL_TO_LIST): Make the "function call rather than
5461 macro" debug version really work.
5462 (read_dbx_symtab): Remove unref'd parameter inclink.
5463 Avoid swapping N_SLINE symbols, for speed.
5464 Merge N_TEXT!N_EXT case with the other external symbol
5465 definitions' case. Add comments.
5466 (start_psymtab): Allocate the symfile name in the psymtab on
5467 the psymbol_obstack, rather than using the caller's storage.
5468 (end_psymtab): Only allocate a dependencies list if there are
5469 more than zero.
5470 (psymtab_to_symtab_2): Use BFD when reopening file to read
5471 its symbols for real.
5472 (read_struct_type): Add FIXME comments where it needs work
5473 for C++ bogosity.
5474 (read_huge_number): Add FIXME about overflows.
5475 (read_range_type): Add FIXME about comparing a long to 1<<32.
5476
5477 * coffread.c: Minor changes to move things closer to the new
5478 regime with symtab.c and dbxread.c Major work is still needed
5479 here.
5480
5481 * exec.c (exec_file_command): Remove old variables (see core.c
5482 above).
5483 (xfer_memory): If memory transfer is right at the end of a
5484 section, don't lose.
5485
5486 * findvar.c (get_saved_register): If value is in a real
5487 register, LVAL is lval_register, not lval_memory.
5488
5489 frame.h: Declare print_sel_frame and record_selected_frame.
5490
5491 gdb-int.texinfo: New file, for GDB internals documentation.
5492 Very simple, unformatted doc of cleanups is there for now.
5493
5494 gdbcore.h: Remove obsolete variables that described a.out
5495 section addresses and offsets. (See core.c above.)
5496 Declare fetch_core_registers and registers_fetched.
5497
5498 getopt.c: Declare char *alloca(); even on SPARC.
5499
5500 infcmd.c (run_command): Call target_kill rather than
5501 kill_inferior.
5502 (step_command, next_command, stepi_command, nexti_command):
5503 Declare from_tty parameter even though we don't use it.
5504 (run_stack_dummy): argument BUFFER is a char array, not
5505 a pointer to REGISTER_TYPE.
5506 (finish_command): using_struct_return needed a value *,
5507 not a struct symbol *.
5508
5509 * infptrace.c (child_xfer_memory): To avoid dependency on
5510 where sections are in memory, try PT_WRITE_D and if that fails,
5511 try PT_WRITE_I. Most Unixes don't care which you use.
5512
5513 * infrun.c (step_resume_break_shadow): Change to array to
5514 match other breakpoint shadow storage.
5515 (clear_proceed_status): Pass address of bpstat to
5516 bpstat_clear, not the bpstat itself.
5517 (child_create_inferior): FIXME comment about if the child
5518 exits.
5519 (start_inferior): Remove old function.
5520 (child_open): Use target_kill rather than kill_inferior.
5521 (wait_for_inferior): Ditto.
5522 (insert_step_breakpoint, remote_step_breakpoint): Use
5523 new step_resume_break_shadow.
5524
5525 * inftarg.c (child_wait): If all child processes die,
5526 pretend that the one being waited for exited with signal 42.
5527
5528 * main.c (command_line_input): When scanning for comments,
5529 don't coredump on unclosed quotes.
5530 (quit_command): Use target_kill rther than kill_inferior.
5531 (_initialize_main): Rename class_user from "user" to
5532 "user-defined".
5533
5534 * printcmd.c (print_command_1): Initialize "fmt" if no format
5535 is specified by the user.
5536 (print_frame_args): Only add to args_printed if we are
5537 actually fetching args from the stack (avoiding undefined
5538 arg_size).
5539 (_initialize_printcmd): Remove bogus \{ from string.
5540
5541 * remote-eb.c (eb_open): Avoid coredump on no argument.
5542
5543 * remote-nindy.c: Bring out of Intel environment into new
5544 target environment. Remove all conditional compilation on
5545 I80960. Massive hacking throughout.
5546 (nindy_xfer_inferior_memory): New routine stolen from
5547 infptrace.c.
5548 (nindy_create_inferior): New routine pieced together, probably
5549 not quite working yet.
5550 (nindy_ops): New target_ops struct for nindy.
5551
5552 * remote-vx.c: Use write_memory rather than target_write_memory
5553 to get error checking.
5554 (vx_add_file_command, vx_open): Use symbol_file_add rather than
5555 add_file.
5556 (vx_create_inferior): Use target_terminal_ours...
5557
5558 * signame.c (_initialize_signame): Always initialize, since
5559 we need the table for things other than psignal.
5560
5561 * solib.c (solib_add): Use symbol_file_add, not add_file.
5562 (solib_address): Return boolean result rather than struct
5563 pointer which nobody else knows the type of.
5564
5565 * sparc-tdep.c, valops.c: Use write_memory rather than
5566 target_write_memory, to get error checking.
5567
5568 * stack.c (locals_info, catch_info, args_info,
5569 get_selected_block, frame_command, up_command): Use
5570 target_has_stack, rather than have_inferior_p or
5571 have_core_file_p.
5572
5573 * sun3-xdep.c (fetch_core_registers): Rewrite for new BFD regime.
5574
5575 * symfile.h: New file, defining the interface between the
5576 generic and object-file-specific symbol reading code.
5577
5578 * symtab.c: Move generic symbol-reading interface to symtab.c,
5579 from dbxread.c, coffread.c, mipsread.c, etc. Add symtab_fns
5580 table to map BFD targets to symbol-reading modules in GDB.
5581 Change index to strchr.
5582 (lookup_struct_elt_type): Use error() rather than hand-made
5583 simulations thereof.
5584 (lookup_partial_symbol): Speedup slightly when length == 0.
5585 (symbol_file_add): New function.
5586 (symbol_file_command): Call it.
5587 (symfile_open, symfile_init): New function.
5588 (add_file_target_command, add_file_addr_command): moved from
5589 dbxread.c.
5590
5591 * target.c (target_command): use target_kill.
5592
5593 * target.h (target_files_info): Don't declare, never called
5594 from outside.
5595
5596 * tm-sun2.h, tm-sun3.h (STACK_END_ADDR): Use system include
5597 files to determine stack end address.
5598
5599 * valarith.c (value_x_binop, value_x_unop): Change error message
5600 to be more useful. Pass proper argument to value_struct_elt.
5601
5602 * valops.c (value_assign): FIXME comment that long long
5603 bitfields will break here.
5604
5605 * Makefile.dist: Add symfile.h, remote-nindy.c, remote-eb.c.
5606 Update `make saber_gdb' to work better.
5607
5608 * TODO: A woman's work is never done.
5609
5610 * cplus-dem.c, environ.c, inferior.h, infrun.c, inftarg.c,
5611 main.c, obstack.c, printcmd.c, remote-eb.c, remote-nindy.c,
5612 remote-vx.c, remote.c, solib.c, source.c, sparc-pinsn.c,
5613 sparc-tdep.c, sparc-xdep.c, symmisc.c, symtab.c, symtab.h
5614 target.c, terminal.h, tm-sparc.h, tm-sunos.h, utils.c,
5615 valops.c, valprint.c, exec.c: Lint.
5616
5617
5618 Wed Dec 12 23:44:15 1990 John Gilmore (gnu at cygnus.com)
5619
5620 Continuing Intel 960 port merge of GDB.
5621
5622 * Makefile.dist: Merge i960 "nindy-share" files. Rename
5623 malloc.h to gmalloc.h to avoid name conflicts in /usr/include.
5624 Don't ship gdb.dvi in tar file. Link gdb with init.o, not init.c.
5625 Wack over "make depend" so it handles files in subdirectories
5626 vx-share, nindy-share, bfd, and in the current directory.
5627
5628 * blockframe.c (get_prev_frame_info): Remove fatal error
5629 if stack not defined.
5630
5631 * core.c (core_open, core_detach): New functions that handle
5632 the old "core-file" command as "target core" and "detach" instead.
5633 (core_file_command): Call them.
5634 (core_xfer_memory): Use common routine xfer_memory.
5635
5636 * dbxread.c: Include a.out.gnu.h, not system a.out.h.
5637 dbxread now uses bfd for everything but symbol reading itself.
5638 BFD internals are used to drag out the relevant file offsets.
5639 (partial_symbol_file_open): Change args all around for BFD.
5640
5641 * symtab.c: Rename "value" to "val" everywhere, so we can
5642 #include "value.h".
5643 (symbol_file_command): New command, moved from dbxread.c
5644 and coffread.c. It uses BFD to read the file, then vectors
5645 based on its type, to dbx or coff symbol readers.
5646 * symtab.h: Extern a few vars for symbol_file_command.
5647
5648 * target.h: Breakpoint takes a char * save area, not a char **.
5649
5650 * valprint.c (val_print): When unpacking bitfields, offset
5651 the address in gdb of the value, if it is declared with a shorter
5652 type. Remove the last "runtime kludge test" of host byte order.
5653
5654 * utils.c: Remove old my_bfd_read routine.
5655
5656 * stack.c (frame_info): Use target_has_stack. Print program counter
5657 register's actual name rather than "pc", since it's called the
5658 "ip" (instruction pointer) on the i960 (sigh).
5659
5660 * target.c (target_command): Add command for selecting a target
5661 type and calling its open routine. This is used for initiating
5662 communication with a particular target, in a generic way.
5663
5664 * tm-i960.h: Update for modern gdb. Remove semicolons from
5665 various macros. Handle reading struct return convention, and
5666 error-out attempts to return structs with the "return" command.
5667 Be sure gdb doesn't think we know how to call functions in the
5668 inferior.
5669
5670 * i960-tdep.c: Rename FRAME_CHAIN_VALID and FRAME_FIND_SAVED_REGS
5671 to i960_xxx in lower case.
5672 (arg_address): Circumvent errors due to LOC_ARG_BLOCK
5673 not being defined yet.
5674
5675 * remote.c (remote_open): Call start_remote to initialize
5676 wait_for_inferior during open.
5677 (remote_xfer_inferior_memory): Return length written rather
5678 than errno value.
5679
5680 * remote-vx.c (target_command -> vx_open): Use new generic
5681 target command.
5682 * remote-eb.c, inftarg.c, exec.c: ditto.
5683
5684 * infrun.c: Fix comments.
5685 (attach_program -> child_open): Use new generic target command.
5686 (wait_for_inferior): Clear saved register values before target_wait,
5687 so target_wait can set some of them if convenient.
5688
5689 * infptrace.c (fetch_inferior_registers, store_inferior_registers):
5690 Return success indicator, not void.
5691 (child_xfer_memory): Avoid fetching initial word if we'll
5692 overwrite it anyway.
5693
5694 * infcmd.c (attach_command): Use new generic target open routine.
5695 (_initialize_infcmd): Update doc on attach and detach commands.
5696 (do_registers_info): Merge in a byte-order problem as a FIXME
5697 comment.
5698
5699 * findvar.c (find_saved_register): Avoid problem in current frame.
5700 (read_relative_register): Ditto.
5701 (write_register): Convert byte order on the way out.
5702
5703 * exec.c (file_command): Add.
5704 (add_to_section_table, exec_command): Use new bfd_map_over_sections.
5705 (xfer_memory): Common function between core_xfer_memory and
5706 exec_xfer_memory.
5707 (exec_xfer_memory): Use it.
5708
5709 * pn-opcode.h: Document that a "PN" is a Gould PowerNode.
5710
5711 * breakpoint.c, breakpoint.h, symtab.h, value.h, frame.h, utils.c,
5712 valops.c, stack.c, target.c, sparc-xdep.c, source.c, printcmd.c,
5713 infcmd.c, i960-pinsn.c, eval.c, defs.h: lint and gcc -Wall.
5714
5715 Sun Dec 2 16:45:06 1990 John Gilmore (gnu at cygnus.com)
5716
5717 Merge Intel 960 port of gdb, continuing...
5718
5719 * dbxread.c (partial_symbol_file_open, partial_symbol_file_read,
5720 symbol_file_command): Pass from_tty arg to hush 'em up.
5721
5722 * coffread.c (symbol_file_command): Avoid output if from_tty != 1.
5723 Add magic numbers for 960 COFF format.
5724
5725 Fri Nov 30 09:18:20 1990 John Gilmore (gnu at cygnus.com)
5726
5727 Merge Intel 960 port of gdb, from Intel "1.2" release.
5728
5729 CHANGE_LOG entries from their port, which was based on
5730 gdb+-2.8.0:
5731
5732 Thu Sep 6 11:02:22 PDT 1990
5733 Remove temp file if download is interrupted.
5734
5735 Wed Aug 1 09:08:33 PDT 1990
5736 Now uses binary protocol to talk to NINDY.
5737 Old hex protocol (NINDY 2.13 and older) supported with -O switch.
5738 Times out after 5 seconds when trying to talk to NINDY.
5739
5740 Tue May 29 12:54:49 PDT 1990
5741 Added variable baud rate (-b switch).
5742 Source code reorganization.
5743
5744 Thu Apr 26 11:09:55 PDT 1990
5745 More cleanup of batch mode; specifically, execute "-s", "-e", and
5746 "-se" switches as soon as they are encountered on the invocation line.
5747
5748 Fri Apr 20 13:47:15 PDT 1990
5749 Add -brk switch.
5750
5751 Thu Apr 19 09:54:28 PDT 1990
5752 Add 'reset' command.
5753
5754 Wed Apr 18 09:48:07 PDT 1990
5755 After opening remote tty, wait for 1 second to go by without input
5756 from it before trying to talk to NINDY (fixes problems with the
5757 Heurikon HK80/V960E).
5758
5759 Mon Apr 4 16:33:05 PDT 1990
5760 Some output was not being suppressed in 'batch' mode.
5761
5762 Thu Mar 22 15:31:11 PST 1990
5763 Ask user if old symbol table should be deleted when new file is
5764 downloaded.
5765
5766 Allow user to run a program downloaded before gdb960 was brought up.
5767
5768 Correct "exec-file" help message for i80960 context.
5769
5770 Correct bug in calculating user space address: could occasionally
5771 corrupt user program.
5772
5773 Make sure to zero low-order bits in rip's because of bug in 960CA
5774 A-step part: could cause operation faults when "next"ing across
5775 a function call.
5776
5777 Correct bug that made it impossible to get source line numbers for
5778 code loaded at addresses higher than 0x7fffffff.
5779
5780 Wed Jan 10 12:43:22 PST 1990
5781 Open remote tty for exclusive use.
5782
5783 Fri Jan 5 12:14:42 PST 1990
5784 Correct disassembly (CA manual was right after all):
5785 opcode for sysctl is 0x659
5786
5787 Mon Oct 23 12:03:04 PDT 1989
5788 Use G960BASE and G960BIN environment variables to find 'sx' utility.
5789
5790 Mon Oct 16 14:15:09 PDT 1989
5791 "sfr0"-"sfr31" should have been named "sf0"-"sf31"
5792
5793 Mon Oct 2 15:56:31 PDT 1989
5794
5795 Added 960CA disassembly support.
5796
5797 To simplify maintenance:
5798 - eliminated use of symblic links on pinsn.c: use i960-pinsn.c
5799 directly instead.
5800 - eliminated opcode.h: incorporates tables into i960-pinsn.c
5801 - moved 960-specific routines from i960-pinsn.c to i960-md.c
5802 - made disassembly interface identical to that in gdmp960.
5803
5804
5805
5806 Wed Nov 28 21:32:48 1990 John Gilmore (gnu at cygint)
5807
5808 * target.h: Allow targets to stack. Add target_has_memory,
5809 _registers, etc. Restructure memory access and "info files"
5810 to walk the target stack.
5811 * exec.c, core.c, inftarg.c, remote.c, remote-vx.c, remote-eb.c,
5812 target.c: Change tables to match target.h.
5813 * inflow.c (child_mourn_inferior): pop child_ops.
5814 (generic_mourn_inferior): Use new has_stack flag.
5815 * infptrace.c (child_xfer_memory): New memory regime.
5816 * inftarg.c (child_files_info): New "info files" regime.
5817 * remote-eb.c: New memory regime, new info files.
5818 * remote-vx.c: New memory regime, new info files. Now use
5819 separate targets for VxWorks attachment to machine, and
5820 actually running a process under VxWorks, since one has
5821 stack & execution & regs and the other doesn't.
5822 * remote.c: New memory regime, new info files.
5823 * sparc-xdep.c (fetch_core-registers): New memory regime.
5824 * target.c: New routines and support for stacked targets,
5825 new memory regime, new info files regime.
5826
5827
5828 Generalize section handling for an arbitrary number of sections,
5829 including use of the new BFD (binary file) library.
5830 * gdbcore.h: Add struct section_table.
5831 * exec.c (build_section_table): Iterate all sections and
5832 record what gdb needs to know about them.
5833 (exec_command): Use it.
5834 (exec_xfer_memory): Use the table.
5835 (exec_files_info): Print the table.
5836 * core.c (core_file_command, core_xfer_memory, core_files_info):
5837 Likewise.
5838 * source.c (find_source_lines): Use bfd_get_mtime.
5839 * dbxread.c: Quick changes to make it compile with new BFD.
5840 * utils.c (error): Avoid using bfd_error in generic routines.
5841
5842 * core.c (core_fetch_registers): Get from the ".regs" section of
5843 the BFD core file.
5844 * sparc-xdep.c (fetch_core_registers): Use the .regs info.
5845
5846 * inferior.h (attach_flag): Export.
5847 * infcmd.c (run_command): use new target_create_inferior.
5848 * infrun.c (child_create_inferior): Don't return result.
5849 * Makefile.dist (VERSION): 3.91.4.
5850
5851 Fri Nov 23 28:15:38 1990 John Gilmore (gnu at cygint)
5852
5853 * breakpoint.c (bpstat_num): Handle breakpoints which have
5854 since been deleted, such as temporary breakpoints.
5855 infcmd.c (program_info): ditto.
5856
5857 * core.c (core_file_command): Display the frame where the core
5858 dump occurred.
5859
5860 * main.c: lint.
5861
5862 * remote-vx.c (target_command): Merge in target command from
5863 targ-vx.c. A few other cleanups.
5864
5865 * TODO, Projects: Lots more stuff to do...
5866
5867 Fri Nov 23 18:15:38 1990 John Gilmore (gnu at cygint)
5868
5869 Massive changes to wall off the remote-debugging interface
5870 behind a function vector. The port to handle VxWorks targets
5871 is also part of this.
5872
5873 All files: Replace references to renamed functions,
5874 remove references to remote_debugging, remove references to
5875 have_include_file, have_core_file in favor of target_has_stack,
5876 target_has_memory, etc.
5877
5878 * Modularize the breakpoint interface.
5879 breakpoint.h (BREAKPOINT_MAX): New define sets max length of
5880 a breakpoint instruction.
5881 breakpoint.c: struct breakpoint's shadow_contents now sized as
5882 BREAKPOINT_MAX.
5883 (insert_breakpoints): Vector to target to install breakpoints.
5884 (remove_breakpoints): Vector to target here too.
5885 Remove REMOTE_SA_SPARC kludges and other remote_debugging.
5886 sparc-tdep.c (single_step): Use new breakpoint interface for
5887 the single-step breakpoints.
5888 mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
5889 New file, contains routines to insert and remove breakpoints by
5890 reading out the old contents and later replacing them. This is
5891 how ptrace breakpoints work, and many remote systems as well.
5892
5893 * tm-vxworks68.h: New config file, overrides a few things for
5894 Wind River's preferences.
5895
5896 * target.h: New file, for transfer vector used to talk to the
5897 inferior (child, attached, core, exec, remote, etc). All accesses
5898 to the thing being debugged should come through these vectors.
5899 target.c: New file, routines to handle transfer vector.
5900 (various files): Add transfer vectors XXX_ops for the various
5901 targets and pseudo-targets (core files, etc) we support.
5902
5903 * breakpoint.c (bpstat_stop_status): Further explorations of
5904 watchpoints and why things don't work all the time.
5905 (bpstat_alloc): New fn to allocate a bpstat and chain it.
5906
5907 * config.gdb: Only add "source ${srcdir}/.gdbinit" to
5908 the local gdbinit if it doesn't already have it.
5909
5910 * core.c (core_ops): add and install.
5911 Allow core debugging without exec file.
5912
5913 * dbxread.c (free_and_init_header_files): Merge two fns.
5914 (end_symtab): Free named symbol table when a new version comes in.
5915 (read_dbx_symtab): Relocate all kinds of symbols with base
5916 address. First step toward handling different text, data, bss
5917 reloc.
5918 (add_file_addr_command): Renamed add_file_command.
5919 (add_file_command): Vector to remote handler.
5920 Add "load" as an alias for "add-file" command.
5921
5922 * defs.h: Allow "volatile" to be used in non-ANSI; use it for
5923 non-returning functions.
5924
5925 * exec.c: Add exec_ops, and push it as a target when an exec
5926 file is specified.
5927
5928 * infcmd.c (run_command): Pass executable file name and arg list
5929 separately when starting an inferior. Permit "run" when no exec
5930 file is specified, for VxWorks.
5931 (detach_command): Move to child_detach in inftarg.c.
5932
5933 * inftarg.c: New file. Unix-child-specific routines, and the
5934 child_ops structure.
5935
5936 * inferior.h (registers): Export "registers" as the way for
5937 target dependent register handlers to find gdb's local copy of
5938 the registers. Rename "stop_after_attach" to "stop_soon_quietly"
5939 since it is now used by places that want wait_for_inferior to
5940 handle the grunge but want to see every trap from the inferior.
5941
5942 * inflow.c (create_inferior): Pull out, and merge into infrun.c.
5943 Eliminate remote_debugging hooks in terminal handling.
5944
5945 * infrun.c: Replace start_inferior with child_create_inferior.
5946 Move all the hair of Unix shells and ptrace idiosyncracies into
5947 child_create_inferior, so remote handlers don't have to deal.
5948 Remove running_in_shell. Rename stop_after_attach to
5949 stop_soon_quietly, and use it in a few other places where we want
5950 to just call wait_for_inferior and get control back on the first
5951 trap. trap_expected now never takes a value > 1.
5952 (init_wait_for_inferior): Initialize static vars when a new
5953 process is created.
5954
5955 main.c (gdbinit): Add new hook for .gdbinit file name, let
5956 it be overridden by config files as GDBINIT_FILENAME.
5957 (DEFAULT_PROMPT): Add new hook for overriding (gdb) prompt.
5958 Both of these are used for VxWorks gdb.
5959
5960 mcheck.c: rename include file "gmalloc.c" to avoid problems
5961 with system include file "malloc.c".
5962
5963 param-no-tm.h: New include file, same as param.h but does not
5964 include the default "tm.h" file. This is used in files where
5965 the target is known, e.g. remote-eb.c or sparc-xdep.c.
5966
5967 param.h: Now just a shell that includes tm.h and param-no-tm.h.
5968
5969 remote-vx.c: New file, VxWorks remote debugging support. Uses
5970 RPC routines that are shared with the target system, in directory
5971 ${srcdir}/vx-share.
5972
5973 remote.c: Vectorize remote interface.
5974
5975 source.c: Globalize source_path, and make an alias "l" for "list"
5976 since we now have the "load" command.
5977
5978 sparc-xdep.c: Use new param-no-tm.h.
5979
5980 symmisc.c (free_named_symtab): Add new function from Wind River.
5981 However, ifdef it out for now while we think about what it should
5982 really be doing.
5983
5984 tm-sun3.h, xm-sparc.h, xm-sun3.h, xm-symmetry.h: Move
5985 PREPARE_TO_STORE to
5986 the xm- file, and change its name to CHILD_PREPARE_TO_STORE, since
5987 non-Unix-children handle this with their own code in the target
5988 transfer vector.
5989
5990 Makefile.dist: Roll version to 3.92.3. Add vx-share stuff to
5991 source and target lists. Add vx-share to default list of include
5992 directories. Add new files to src and target lists: mem-break,
5993 target, inftarg, remote-eb, remote-vx, targ-vx. Be sure the
5994 ${srcdir} versions of munch and createtags are used.
5995
5996 * valops.c (find_function_addr): Split out of call_function.
5997 (call_function_by_hand): Rename call_function; this function
5998 calls functions in the target by laboriously patching the target
5999 word-by-word with the right stack, args, regs, etc.
6000
6001
6002 Mon Nov 5 17:29:10 1990 John Gilmore (gnu at cygint)
6003
6004 Handle AMD 29000 a bit better.
6005
6006 * remote-eb.c (readchar): Mask received char log to make it readable.
6007 (remote_start): Pass arguments down to executing program.
6008 Make startaddr unsigned.
6009 infrun.c (start_inferior): Accept args, pass them to
6010 remote_start.
6011 infcmd.c (run_command): Pass args down to start_inferior.
6012
6013 * tconfig/am29k-aout, tconfig/am29k-coff: New files specifying
6014 the target object file format.
6015 tm-29k.h: Pay heed to COFF_ENCAPSULATE.
6016
6017 * am29k-pinsn.c (print_insn): Print 0x on hex numbers in disassembly.
6018 am29k-tdep.c (examine_prologue): Better checking of function prefixes.
6019
6020 Sun Oct 7 18:20:45 1990 John Gilmore (gnu at cygint)
6021
6022 * Makefile.dist (VERSION): Roll version to 3.91.9 and freeze.
6023 * TODO: We did a few things, we have more to do though.
6024
6025 * xm-sparc.h (CLEAR_DEFERRED_STORES): Define.
6026 * inflow.c (inferior_died): Clear deferred stores.
6027
6028 * Debug problems with dummy frames and calls to the inferior.
6029 * tm-sparc.h (PUSH_DUMMY_FRAME, POP_FRAME): Move to sparc-tdep.c.
6030 * sparc-tdep.c (do_restore_insn): Simplify.
6031 (sparc_frame_find_saved_regs): Simplify and fix what we find.
6032 (sparc_push_dummy_frame): Simplify and fix what we push.
6033 (sparc_pop_frame): Slightly more hair here, deciding whether
6034 we are restoring a saved PC or returning to a return address in %i7.
6035 * sparc-xdep.c (read_inferior_registers): Debug if valid reg is read.
6036
6037 * utils.c (xmalloc, xrealloc): Return type depends on __STDC__.
6038 * symtab.h (xmalloc): ditto, for obstack_chunk_alloc.
6039 * obstack.h (chunkfun): ditto.
6040 * defs.h (xmalloc, xrealloc): ditto
6041
6042 * utils.c (quit): Grab the terminal from the child if necessary.
6043
6044 * inflow.c (term_status_command): Rename to term_info, change
6045 to "info terminal".
6046
6047 * sparc-pinsn.c (print_insn): Disassembly prefers real instructions.
6048 (is_delayed_branch): Speed up.
6049 * sparc-opcode.h: Add ALIAS bit to aliases. Fix up opcode tables.
6050 Still missing some float ops, and needs testing.
6051
6052 * Support for input and output radixes other than base 10
6053 * defs.h (input_radix, output_radix): Declare.
6054 * expread.y (yyparse, parse_number): Handle changes of input
6055 radix, and ambiguous names-or-numbers in radixes >10.
6056 * printcmd.c (print_scalar_formatted): Print formatted hex
6057 numbers in varying column widths.
6058 * valprint.c (val_print): Use output_format to print scalar ints.
6059 (set_input_radix, set_output_radix, set_radix): Create.
6060 (set_output_radix): Set output_format from output_radix.
6061 (_initialize_valprint): add `set radix' but leave the others off.
6062
6063 * main.c (execute_command): Let stupid questions be turned off.
6064 (_initialize_main): Handle "set stupidity", etc.
6065
6066 * main.c, inflow.c, inferior.h, frame.h, command.c, defs.h,
6067 sparc-pinsn.c, sparc-xdep.c, value.h, valops.c, values.c: Lint.
6068
6069 Tue Oct 2 11:20:02 1990 John Gilmore (gnu at cygint)
6070
6071 * TODO, Makefile.dist, ChangeLog: Freeze for 3.91.8 release.
6072 bfd stuff is still screwed up, but with some manual work, it
6073 compiles.
6074
6075 * breakpoint.c (bpstat_do_actions): Start over if a command
6076 proceeds the inferior, since the inferior will have stopped and
6077 will need to have its new stop-actions taken care of.
6078
6079 * dbxread.c (read_struct_type): Expression gives Sun3 4.0.3
6080 compiler fits, simplify it.
6081
6082 * gdb.texinfo (directory command): Doc new dir command.
6083 source.c (directory_command): "dir" now puts things on the front
6084 of the path, moves dups up front, and handles multiple names
6085 on the command line, inserting each one in order. It also
6086 blows away cached line and full_filename info.
6087
6088 * stack.c (backtrace_command): Skip "more stack frames follow"
6089 unless interactive.
6090
6091 * Change #ifndef HAVE_VPRINTF to #define MISSING_VPRINTF in
6092 xm-convex.h, xm-hp300bsd.h, xm-isi.h, xm-merlin.h, xm-news.h,
6093 xm-np1.h, xm-pn.h, xm-pyr.h, xm-symmetry.h, xm-umax.h, xm-vax.h.
6094 The only odd one was Gould NP1, which had defined vprintf to
6095 "printf"!!!
6096
6097 * Merge Ted Goldstein <tedg@Eng.sun.com>'s changes for epoch.
6098 printcmd.c (print_command_1): Pass 'inspect' flag down as a global
6099 variable, inspect_it.
6100 valprint.c (print_string, val_print): Use the global inspect_it
6101 to indicate whether to print in Epoch style or normal style.
6102
6103 Mon Oct 1 23:55:26 1990 John Gilmore (gnu at cygint)
6104
6105 * printcmd.c (call_command): add an alias for the "print" command
6106 which runs expressions and doesn't print the result if void.
6107 (print_command_1): implement it.
6108
6109 * command.c: Remove #if 0'd code. Initialize all the fields
6110 in add_cmd (). Rename do_nothing_command to
6111 not_just_help_class_command, and make it externally visible.
6112 command.h: add user_commands to struct.
6113 * main.c (define_command): Don't overload c->function with a char
6114 string as well as a function pointer.
6115
6116 * eval.c (evaluate_subexp): Reinstall tiemann changes to
6117 calling convention of value_struct_elt () that got dropped in
6118 merge.
6119
6120 * tm-sparc.h (FRAME_FIND_SAVED_REGS): move to sparc-xdep.c.
6121 sparc-tdep.c (sparc_frame_find_saved_regs): ditto.
6122
6123 * tm-sparc.h (POP_FRAME): replace some constants with defines.
6124
6125 * sparc-xdep.c (store_inferior_registers): defer stores to regs
6126 until a good time (e.g. when we are about to run the child),
6127 saving ptrace calls.
6128 * infrun.c (proceed): handle DO_DEFERRED_STORES.
6129 * tm-sparc.h: define DO_DEFERRED_STORES.
6130
6131 * sparc-xdep.c (store_inferior_registers): when storing float
6132 registers, don't store stack regs too. When storing the SP,
6133 however, DO store the stack regs too. This fixes a bug in which
6134 the dummy frame is not recognized when a call_function finishes,
6135 because its frame pointer (in the stack regs) was never
6136 initialized.
6137 (read_inferior_registers): Mark WIM and TBR and FPS and CPS valid
6138 even though we don't know how to read them from an inferior.
6139 valops.c (call_function): Comment about storing SP.
6140
6141 * infrun.c (save_inferior_status): Save away the original bpstat
6142 chain so it can be restored later. Install the copied version for
6143 use by whoever saved the status. It will be blow away by
6144 restore_inferior_status, and the original chain restored. This is
6145 important for people who have pointers into the original.
6146
6147 * breakpoint.c, command.h, copying.awk, dbxread.c, defs.h,
6148 findvar.c, frame.h, obstack.h, obstack.c, inflow.c, value.h,
6149 main.c, printcmd.c, sparc-tdep.c, symtab.c, valprint.c: lint
6150
6151
6152 Fri Sep 28 20:32:46 1990 John Gilmore (gnu at cygnus.com)
6153
6154 * Makefile.dist: Roll version to 3.91.8. Add bfd.h and bfdconfig.h
6155 temporarily to the makefile. Add am29k-opcode.h and WHATS.NEW.
6156 Add stuff.c and kdb-start.c to the OTHERS list for tar files.
6157
6158 Fri Sep 28 19:12:12 1990 John Gilmore (gnu at cygint)
6159
6160 * Merge Mike Tiemann's multiple inheritance changes from Sun.
6161 Store the baseclasses in a type struct starting from array element
6162 0 rather than from the unusual array element 1.
6163
6164 dbxread.c: the above.
6165 (virtual_context): Add
6166 Read new debug information about which virtual function table
6167 a virtual function is from, and store it in fn_field.fcontext.
6168
6169 symtab.h: Add fcontextt. Fix baseclass indices. Typo in
6170 TYPE_FN_FIELD_STATIC_P.
6171
6172 symtab.c: the above.
6173 valops.c: the above. Handle pointer casts of object *'s.
6174 (search_struct_method): Add.
6175 (value_struct_elt): First arg is now a pointer to a value, and is
6176 modified on return.
6177
6178 valprint.c: the above.
6179 values.c (value_virtual_fn_field): Add type arg. Handle
6180 offsetting to the proper object when calling virtual fns.
6181 The above.
6182 (baseclass_addr): Add valuep arg.
6183
6184 * README: Document the current state of BFD config (missing).
6185 * TODO, ChangeLog, Makefile.dist: Roll version.
6186 * WHATS.NEW: Add summary of changes since 3.5.
6187
6188 Thu Sep 27 16:23:12 1990 John Gilmore (gnu at cygint)
6189
6190 * dbxread.c (read_struct_type): Clear bit vectors whenever
6191 we allocate one.
6192 symtab.c (B_CLRALL): define.
6193
6194 * tm-sparc.h (STORE_RETURN_VALUE): Avoid clobbering types by
6195 using == rather than =. Huh... This fixes the dreaded problem
6196 wherein builtin_type_int becomes TYPE_CODE_FLT.
6197
6198 * core.c (info_files): Show the inferior pid.
6199
6200 * config.gdb: Avoid putting "dir" command into .gdbinit. GDB
6201 already knows how to look in the source directory.
6202
6203 * Remove psymtab hair from many places. Remove duplicated code
6204 for searching symbol tables. Hide psymtabs from most places.
6205 Make it fast to get from a psymtab to its symtab.
6206
6207 blockframe.c (blockvector_for_pc): Remove psymtab hair.
6208 coffread.c (psymtab_to_symtab): Rename to psymtab_to_symtab2.
6209 mipsread.c (psymtab_to_symtab): Rename to psymtab_to_symtab2.
6210 dbxread.c: export psymtab_to_symtab, make it work if called N times.
6211 (psymtab_to_symtab): Rename to psymtab_to_symtab2. Initialize
6212 new symtab completely. New psymtabs get symtab pointer
6213 initialized to zero. Remove MI warning printf.
6214 symtab.h: Comments. Add psymtab to symtab pointer.
6215 (PSYMTAB_TO_SYMTAB): New macro.
6216 symtab.c: use PSYMTAB_TO_SYMTAB. Add psymtab_to_symtab and export it.
6217 source.c: use PSYMTAB_TO_SYMTAB. Remove symtab version and
6218 compilation fields.
6219 stack.c (backtrace_command): Avoid pre-pass to read symbols, if
6220 verbose is not set.
6221 (print_frame_info): Avoid special-casing symbols that have not yet
6222 been read in.
6223
6224 * source.c (open_source_file): Quick path if we have already
6225 located the source file by its full name.
6226
6227 * symtab.c (lookup_symbol): Use find_pc_symtab rather than
6228 find_pc_psymtab. When a name is found in the misc function
6229 vector, search the symbol table for its mangled name, not the
6230 name that the user typed.
6231
6232 * bfd.h: Fix missing comment terminators, make #endifs match.
6233
6234 * valarith.c (value_less): Handle unsigned int comparisons.
6235 Add FIXME about pointer compares, which assume host and target
6236 pointers are the same.
6237
6238 * command.c (do_nothing_command): lint
6239 dbxread.c: lint. Remove sort_syms. Document C++ visibility info,
6240 fix comments on debug symbol format for visibility. Actually set
6241 visibility of symbols.
6242 main.c (echo_command): lint; use <readline/history.h>.
6243 tm-sparc.h (FRAME_FIND_SAVED_REGS): lint
6244 obstack.h (_obstack_blank): Rearrange pointer math to avoid
6245 pointing past end of allocated memory; saber complains.
6246 obstack.h: Declare the external functions that we use.
6247 valarith.h: use <string.h>
6248 solib.c (solib_add): lint.
6249
6250 Fri Sep 21 17:05:19 1990 John Gilmore (gnu at cygint)
6251
6252 * main.c (initialize_main): Default info_verbose to off, now that
6253 symbol reading is fast.
6254 (quit_command): Avoid clobbering exec_bfd while quitting.
6255
6256 * Initial BFD (binary file diddling library) merger:
6257 coffread.c: Change AOUTHDR to struct exe_hdr.
6258 dbxread.c: ditto.
6259 core.c: initialize initialized data at compile time.
6260 (core_file_command): Move from coredep.c, convert to bfd.
6261 (xfer_core_file): Convert to bfd.
6262 exec.c (exec_file_command): use bfd routines.
6263 gdbcore.h: BFD.
6264 mips-tdep.c: Remove exec_file_command and friends.
6265 source.c: bfd.
6266
6267 * coredep.c: (fetch_core_registers) Convert core_file_command to
6268 fetch_core_registers.
6269 mips-xdep.c, sparc-xdep.c, sun3-xdep.c: ditto.
6270
6271 * utils.c: (error): Bogus crap, FIXME, to print bfd errors.
6272 (my_bfd_read): More bogosity, which I don't think we call.
6273 (program_name): Remove this atrocity asap!
6274
6275 Wed Sep 19 13:36:41 1990 John Gilmore (gnu at cygint)
6276
6277 * From Per Bothner:
6278 values.c: allocate_repeat_value was not clearing the
6279 optimized_out field.
6280 (value_static_field): minor stylistic fix (wrong macro was used).
6281 valops.c (value_struct_elt_for_address): didn't work for C++
6282 static fields.
6283
6284 * signame.c (_initialize_signame): Initialize signal names once.
6285
6286 * breakpoint.h, command.c, copying.awk, defs.h, environ.c,
6287 exec.c, frame.h, infcmd.c, inferior.h, main.c, munch, sun3-xdep.c,
6288 symtab.h, tm-29k.h, valprint.c, value.h, values.c: Lint.
6289
6290 * remote-eb.c: Support user-settable baud rates on the serial port.
6291
6292 * tm-sun3.h (PREPARE_TO_STORE): fix typo.
6293
6294 Fri Sep 14 13:28:29 1990 John Gilmore (gnu at cygint)
6295
6296 * tconfig/sun3os4: Remove warning about native assembler,
6297 since it also occurs in the xconfig file.
6298
6299 * findvar.c (registers): Allocate some slop after `registers'
6300 to prevent stray accesses from trashing the next variable.
6301
6302 * tm-68k.h (REGISTER_BYTES): Allocate the right number of bytes
6303 on the sun-3, by changing the #ifdef from `sun3' (which is not
6304 defined by cc) to `sun'. Symptom was trashed builtin_type_XXX
6305 vars, which happened to follow `registers' in the executable.
6306
6307 * readline/history.c (history_search): Heed gcc-2's advice
6308 and parenthesize && inside ||).
6309
6310 * am29k-opcode.h, am29k-pinsn.c, am29k-tdep.c, remote-eb.c,
6311 tm-29k.c: Insert FSF copyright headers.
6312
6313 * remote-eb.c: Better comments.
6314
6315 * Makefile.dist: Update to 3.91.6.
6316 * TODO: note PREPARE_TO_STORE problem.
6317
6318 Thu Sep 13 09:52:33 1990 Jim Kingdon (kingdon at cygint)
6319
6320 * stack.c (frame_info): Only use FRAME_FIND_SAVED_REGS if defined.
6321
6322 * remote.c: Wrap the whole file in #if !defined (SPECIAL_REMOTE).
6323
6324 * infrun.c (wait_for_inferior, at end): Don't set up
6325 prev_* if the inferior no longer exists.
6326
6327 * inferior.h (CALL_DUMMY_LOCATION): New macro, to replace
6328 CANNOT_EXECUTE_STACK.
6329 valops.c (call_function): Use it.
6330
6331 * tm-convex.h: Add CALL_DUMMY_LENGTH for use by PC_IN_CALL_DUMMY.
6332
6333 * inferior.h (PC_IN_CALL_DUMMY): New macro.
6334 infrun.c (wait_for_inferior, 2 places): Use it.
6335
6336 * values.c (value_being_returned): Only use
6337 EXTRACT_STRUCT_VALUE_ADDRESS if defined.
6338
6339 * Move PREPARE_TO_STORE from xm-sun3.h to tm-sun3.h to do the
6340 right thing for remote-eb.c.
6341
6342 * sun3-xdep.c: Remove extraneous call to remote_store_registers.
6343 * sun386-xdep.c, hp300hpux-xdep.c, sparc-xdep.c: Ditto.
6344
6345 * blockframe.c: Put get_frame_saved_regs inside #if !defined
6346 (FRAME_FIND_SAVED_REGS).
6347
6348 * findvar.c ({fetch,store}_registers): Check for
6349 REMOTE_{FETCH_STORE}_REGISTER macro.
6350
6351 * findvar.c (get_saved_register): Add argument lval and
6352 change meaning of argument addr.
6353 findvar.c: Change calls to get_saved_register to reflect
6354 new calling convention.
6355 valops.c (value_assign): Use get_saved_register instead of
6356 find_saved_register.
6357
6358 Sun Sep 2 12:40:20 1990 Jim Kingdon (kingdon at cygint.cygnus.com)
6359
6360 * coffread.c (read_one_sym): Make temp_aux an AUXENT, not
6361 an (uninitialized) pointer to one. Use "&" when passing it
6362 to fread.
6363
6364 Fri Aug 31 22:57:54 1990 Jim Kingdon (kingdon at cygint.cygnus.com)
6365
6366 * coffread.c (getfilename): Use DGUX x_offset and x_name if
6367 defined.
6368
6369 * coffread.c (symbol_file_command): Put semicolon after
6370 "int from_tty".
6371 Put safe_to_init_tdesc_context in #if defined (TDESC).
6372 Put #ifdef TDESCs in 1st column for non-ANSI cpp's.
6373 coffread.c: #include <sys/stat.h>.
6374 (read_coff_symtab): Typo: in_source_files -> in_source_file.
6375 Add missing ')' in check for "lc%" and friends. Remove
6376 extraneous '}'.
6377 Declare read_one_sym() at top of file.
6378 (read_file_hdr): Put in extra #ifdefs so MC68MAGIC and
6379 MC68WRMAGIC can have the same value without causing a duplicate
6380 case.
6381
6382 Thu Sep 13 15:55:36 1990 John Gilmore (gnu at cygint)
6383
6384 * Allow a Makefile to be built without building the
6385 tm and xm file links that screw up builds in subdirectories.
6386 This is done with `config.gdb none', then you can do things
6387 like `make gdb.tar.Z'.
6388 * tconfig/none: Config file for no target system
6389 * xconfig/none: Config file for no host system
6390 * config.gdb: If no TM or XM files are called out by the
6391 host or target file, don't make links for them.
6392
6393 * cplus-dem.c: Add documentation.
6394
6395 * dbxread.c (read_ofile_symtab): Turn a fatal error into a
6396 simple error, so the user's gdb doesn't crash due to some object
6397 file problem (e.g. somebody is rebuilding the file out from under
6398 gdb).
6399
6400 * printcmd.c (print_address_symbolic): demangle the symbol.
6401
6402 * Makefile.dist (OTHERS): Remove tdesc-lib because it has
6403 Motorola copyrights in it. Make "make gdb.tar.Z" work.
6404 (alldeps.mak): sort and uniq all results from this; duplicates
6405 hose gdb.tar.Z link building. Remove RCS files from
6406 tconfig and xconfig. Add config files for sun386. Add
6407 a few odd files to OTHERS and HFILES.
6408
6409 Mon Sep 10 21:20:24 1990 John Gilmore (gnu at cygint)
6410
6411 * Makefile.dist: Pull solib.c to tconfig/sun?os4.
6412 Roll version number to 3.91.5. Make lint work in bindir.
6413
6414 * README: Document cross-debugging and new file structure.
6415
6416 * blockframe.c: Lint. Include "value.h" to declare read_register.
6417 (find_pc_partial_function): remove duplicate line.
6418
6419 * command.h: Lint. Declare error_no_arg and dont_repeat.
6420
6421 * tm-news.h: Remove inadvertently duplicated stuff.
6422
6423 * mipsread.c: Remove cache_pc_function stuff, now done cleanly.
6424 Clean up usage of misc_function_type. Declare some CORE_ADDRs.
6425
6426 * config.gdb: Allow `config.gdb host target' form. Clean
6427 up previous change that printed bogus messages when you just said
6428 `config.gdb'.
6429
6430 * core.c: #include "command.h" for lint.
6431 * dbxread.c: lint
6432 * eval.c: lint
6433 * main.c: Remove some casts of enums. Lint.
6434 * source.c: lint
6435 * symtab.c: lint
6436 * symtab.h: lint
6437 * expread.y: lint
6438 * valarith.c: lint
6439
6440 * printcmd.c (initialize_printcmd): Fix thinko in inspect cmd.
6441
6442 * sparc-tdep.c (isannulled): Take instruction as parameter, don't
6443 read it from memory. This will allow us to save ptrace calls
6444 eventually. Changed caller single_step too.
6445
6446 * sparc-xdep.c (fetch_inferior_registers): Avoid reading regs
6447 that we aren't going to use, saving many ptrace calls, especially
6448 when watchpointing or single stepping. Use some #define's for
6449 constants.
6450 (store_inferior_registers): Ditto.
6451 (core_file_command): Use some #define's for constants.
6452
6453 * tm-sparc.h: Add #define's for some register numbers, so we
6454 can eliminate the use of random constants in sparc-xdep.c.
6455
6456 * stack.c (frame_command, print_frame_info, up_command,
6457 down_command) Remove frame_changed, since it
6458 causes a bug and doesn't seem to do anything useful. In some
6459 places it was used as a flag, in others as a stack level (?).
6460
6461 * utils.c: Use MISSING_VPRINTF rather than HAVE_VPRINTF, so the
6462 default is to use the portable (vprintf) version rather than the
6463 kludge version.
6464 * xm-news.h (MISSING_VPRINTF): Add.
6465
6466 * valprint.c (val_print): Demangle fancy vtbl printouts. Lint.
6467
6468 Sat Sep 8 00:24:12 1990 John Gilmore (gnu at cygint)
6469
6470 * Remove stuff that forces -Bstatic linking of gdb, and warnings
6471 about linking debugged programs -Bstatic in the sun?os4 config
6472 files in tconfig and xconfig subdirectories.
6473
6474 * main.c (main): Remove unreached exit(0) now that we exit
6475 via quit_command().
6476
6477 * Create TODO file for online bug list. There are too many
6478 "little" bugs to keep track of on paper.
6479
6480 * Change Projects file to refer to bug-gdb@cygnus.com
6481 rather than kingdon@ai.
6482
6483 Fri Sep 7 23:35:15 1990 John Gilmore (gnu at cygint)
6484
6485 * Makefile.dist (VERSION): 3.91.4 now.
6486
6487 * symtab.c (init_misc_bunches): Rename from init_misc_functions.
6488 (condense_misc_bunches): Add sanity check that misc_count is
6489 the same as the number of symbols in the bunch.
6490
6491 * coffread.c: rename init_misc_bunches. Pass an argument
6492 to condense_misc_bunches (a zero).
6493
6494 * dbxread.c (partial_symbol_file_read): Call init_misc_bunches
6495 every time we are called; don't rely on our caller to do it.
6496 (add_file): Remove call to init_misc_bunches.
6497
6498 * mipsread.c: Only warn, don't error, if unknown symbol types.
6499 This keeps an old gdb from falling on its face if it sees newly
6500 extended symbol info. Rename init_misc_bunches.
6501
6502 Fri Sep 7 22:58:15 1990 John Gilmore (gnu at cygint)
6503
6504 * Merge in changes from Per Bothner for DECstations and other
6505 MIPS stuff. The rest is Bothner speaking:
6506
6507 The next message is a merger of Alessando Forin's mips port with
6508 mine. I've tried to use my good if biased judgment to get
6509 the best of both. It *does* need testing.
6510
6511 Some of the changes are general, *not* mips-specific.
6512
6513 param.h:
6514 Didn't believe in little-endian bit order.
6515 There are still inconsistencies about whether flags
6516 like BITS_BIG_ENDIAN are integer (#if ...) or
6517 boolean (#ifdef ...). I tried to paper over them.
6518
6519 dbxread.c,coffread.c,mipsread.c,symtab.c,symtab.h:
6520 Moved some misc_function code that was common to
6521 {dbx,coff,mips}read.c to symtab.c.
6522 In the process, I think I cleaned things up a bit.
6523 At the same time, moved obsavestring and obconcat to symtab.c.
6524
6525 dbxread.c:
6526 Removed obsolete condense_addl_misc_bunches (use
6527 condense_misc_bunches(1) instead).
6528
6529 exec.c:
6530 Needed to include <sys/dir>, at least on DECstations.
6531
6532 valops.c, mips-tdep.c, tm-mips.h:
6533 Added PUSH_ARGUMENTS macro to support funny argument-pushing
6534 conventions (when STACK_ALIGN is insufficient).
6535 Needed on mips, where doubles need 8-byte alignment,
6536 but ints only need 4.
6537
6538 mips-opcode.h:
6539 Removed cruft that was not being used.
6540 Merged in many fixes (most from Frank Yellin, fy@lucid.com).
6541
6542 mips-pinsn.c:
6543 Print $ before register-names (I think that makes things a little
6544 more consistent).
6545 Never print two instructions, even if one delays.
6546 Removed hex-disassemble set_cmd. (This is not mips-specific,
6547 so I think the argument is whether it is generally worthwhile or not.
6548 I'm inclined to think not, given how easy it is to
6549 convert between radixes in gdb.)
6550
6551 mipsread.c:
6552 This is basically Alessando's code.
6553 It doesn't use obstacks; I changed it to use obstacks
6554 in a few minor places where using malloc causes a
6555 memory leak. (Probably, more places could/should be changed.)
6556 I added record_misc_function where it was missing.
6557 In symbol_file_command and add_file_command, I tried
6558 to make the code consistent with more recent versions.
6559 Minor sylistic changes in parse_procedure.
6560 Make a .gdbinfo. psuedo-symbol point back to the real
6561 procedure symbol (using the isym field).
6562
6563 mips-tdep.c:
6564 This is basically from my port, but with a lot of details
6565 and a number of routines merged in from Alessando's version.
6566 I basically used my code "raw" backtrace (use heuristics
6567 from the actual code, rather than symbol table info) - though
6568 the idea is Alessandro's. I feel my code is a little cleaner
6569 here, particularly in being a little more flexible, such as being
6570 able to handle gcc-produced code (which it now can).
6571 It also doesn't do frame caching (which is not useful
6572 more recent gdb versions).
6573 I also used my code for push_/pop_dummy, more or less.
6574 I tried to incorporate AF's code for testing sigtramp
6575 while backtracing; I probably got it wrong.
6576 Added mips_print_register, which tries to scrunch as much
6577 information as possible on a screen...
6578 Removed the skip-prologue set_cmd. As with hex-disassemble (see
6579 under mips-pinsn.c), I don't see anything mips-specific here,
6580 and I don't see it being all that useful anyway.
6581
6582 tm-mips.h:
6583 Added a $fp psuedo-reg distinct from $fp (nice for gcc).
6584 Use more register names (rather than hard-cases numbers).
6585
6586 Thu Sep 6 18:33:15 1990 John Gilmore (gnu at cygint)
6587
6588 * Hack up 3.90.11 changes:
6589
6590 * Makefile.dist (depend): parameterize $(GCC).
6591 Add solib.c and solib.o.
6592 (readline): Fix vpath for both absolute or relative SRCDIR.
6593
6594 * blockframe.c: Fix from Schaefer@asc.slb.com for shared libs.
6595 Also, let the part I didn't understand at least compile so
6596 I can test the rest. FIXME.
6597
6598 * dbxread.c: Fix thinko using strcmp.
6599 (init_psymbol_list): declare static.
6600 (partial_symbol_file_open): Comment cleanups better, avoid
6601 cleaning up the string table since the caller will do that.
6602 Move the stat for mod time into symbol_file_command, temporarily.
6603 (There should be a mod time for each symbol file, eventually,
6604 to control its rereading. FIXME.)
6605
6606 * infptrace.c (PT_WRITE_D): use same value as PT_WRITE_I for
6607 SunOS, which gives error for shared libs otherwise. (From
6608 Schaefer, probably FIXME needs work for portability.)
6609
6610 * solib.c: Move #include "param.h" to work.
6611 Lowercase all the Uppercase Letters In the Messages.
6612 (find_solib): Clean up inferior_so_name for debug printouts.
6613 Allow no argument, to mean all shared libraries.
6614
6615 * symmisc.c: include param.h to get CLEAR_SOLIB.
6616
6617 Wed Sep 5 18:00:08 1990 John Gilmore (gnu at cygint)
6618
6619 * Merge in Kingdon's changes from FSF: the diffs from 3.90.9
6620 to 3.90.11. ChangeLog entries below are from this.
6621
6622 Wed Jun 13 09:17:39 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
6623
6624 * Version 3.90.11.
6625
6626 * Makefile.dist (HFILES): Add tm-sunos.h.
6627
6628 Tue Jun 12 16:15:26 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6629
6630 * Version 3.90.10.
6631
6632 * Makefile.dist (gdb.tar.Z): Change linking of config so it works.
6633
6634 Thu Jun 7 16:22:27 EDT 1990 Jay Fenlason (hack@ai.mit.edu)
6635
6636 * sparc-opcode.h Added single-operand version of rett.
6637
6638 Mon Jun 4 18:12:31 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6639
6640 * m-sparc.h (REG_STRUCT_HAS_ADDR, STRUCT_ARG_SYM_GARBAGE):
6641 Put parens around gcc_p in expansion.
6642
6643 Thu May 24 15:44:51 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
6644
6645 * utils.c (lines_to_list): Return 10 if lines_per_page == 0.
6646
6647 Wed May 23 16:36:04 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6648
6649 * Changes for Sun shared libraries:
6650 blockframe.c (find_pc_partial_function): If a non-text symbol
6651 is found, set *address = pc - FUNCTION_START_OFFSET.
6652 breakpoint.c (insert_breakpoints) [DISABLE_UNSETTABLE_BREAK]:
6653 Disable breakpoints instead of giving an error.
6654 source.c (select_source_symtab): Initialize cs_pst.
6655 symmisc.c: Call CLEAR_SOLIB if defined.
6656 symtab.h: Make text{low,high} CORE_ADDR not int.
6657 (psymtab): New field addr.
6658 solib.c: New file.
6659 dbxread.c: Move DECLARE_FILE_HEADERS outside functions.
6660 (record_misc_function): Give correct type for N_DATA symbols.
6661 (condense_misc_bunches): do "misc_function_count = j" regardless
6662 of inclink.
6663 Take code which is shared between symbol_file_command and
6664 add_file_command and put it into partial_symbol_file_{open,read}.
6665 Split add_file_command into add_file_command and add_file.
6666 Make psymtab_to_symtab read in the string table if the file
6667 is not symfile.
6668 Two new parameters to read_dbx_symtab and start_psymtab.
6669 tm-sunos.h: New file.
6670
6671 Tue May 22 17:43:03 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6672
6673 * infcmd.c: Change cont_command to continue_command and "cont"
6674 to "continue".
6675
6676 Mon May 21 14:41:41 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6677
6678 * breakpoint.c (enable_breakpoint): Get value of watchpoint.
6679
6680 * defs.h [sparc]: Use <alloca.h> regardless of __GNUC__.
6681
6682 * values.c (USE_STRUCT_CONVENTION): Check for structures of
6683 size 1,2,4,8 rather than size < 8.
6684
6685 * dbxread.c (dbx_lookup_type): Do f->length *= 2 as many times
6686 as necessary, not just once.
6687
6688 * sparc-opcode.h: Add a bunch of new opcodes which Sun as supports.
6689
6690 Thu May 17 15:04:09 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6691
6692 * {t,x}m-sun386.h, sun386-xdep.c, {x,t}config/sun386
6693
6694 * tm-news.h: Add CALL_DUMMY_*.
6695
6696 * tm-68k.h: Remove duplicate comment at FRAME_FIND_SAVED_REGS.
6697
6698 * config.gdb: In list_host, list_target, use ${i}, not $i.
6699
6700 Tue May 15 21:27:12 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6701
6702 * source.c (find_source_lines) [BROKEN_LARGE_ALLOCA]: Use xmalloc.
6703
6704 * sparc-opcode.h: Change all store floating-point state register
6705 instructions to have the right match & lose fields.
6706
6707 Sat May 5 12:39:18 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6708
6709 * Makefile.dist: Move -I${srcdir} to GLOBAL_CFLAGS and pass
6710 VPATH to readline.
6711 config.gdb: If srcdir != ., create readline directory and
6712 copy a makefile into it.
6713
6714 * wait.h, infrun.c: Change WRETCODE to WEXITSTATUS for
6715 consistency with POSIX.
6716
6717 * breakpoint.c (bpstat_stop_status): Disable watchpoint
6718 when we exit its exp_valid_block.
6719
6720 Tue Sep 4 11:46:46 1990 John Gilmore (gnu at cygint)
6721
6722 * Makefile.dist: Bump version to 3.91.3.
6723
6724 * Clean up handling of breakpoint commands (somewhat).
6725 Prompted by Tiemann bug report "cont 10" doesn't work any more.
6726
6727 inferior.h: Add breakpoint_proceeded to inferior status struct
6728 and globals; save it and restore it.
6729 (clear_breakpoint_commands): Cleanup, remove old #define.
6730
6731 infrun.c (clear_proceed_status): Set breakpoint_proceeded.
6732 (save_inferior_status, restore_inferior_status): handle it also.
6733 (proceed): Remove earlier code that set breakpoint_proceeded.
6734 It is now set only in clear_proceed_status.
6735 (clear_proceed_status): Cleanup, use bpstat_clear rather
6736 than clear_breakpoint_commands. No callers need the stop_bpstat
6737 between clear_proceed_status and proceed.
6738
6739 infcmd.c: Add breakpoint_proceeded definition and comment.
6740 (cont_command, jump_command, signal_command): Move call to
6741 clear_proceed_status right next to call to proceed.
6742
6743 breakpoint.c (bpstat_do_actions): Avoid clobbering our
6744 caller's argument while running down the chain of breakpoints.
6745 Use new variable "breakpoint_proceeded" to determine when
6746 a command that it executes moves the inferior past the
6747 breakpoint.
6748 (bpstat_clear): Handle NULL argument.
6749 (bpstat_clear_actions): Avoid useless call to
6750 breakpoint_auto_delete.
6751 (delete_breakpoint): Clean up bpstat's that are pointing to
6752 the deleted breakpoint from the stop_bpstat chain.
6753 (breakpoint_auto_delete): Simplify.
6754
6755 * Clean up handling of EOF, error on stdin, etc. This was
6756 prompted by a network problem that caused gdb to go into an
6757 infinite loop filling up its malloc'd memory.
6758
6759 main.c (return_to_top_level): Cleanup: call bpstat_clear_actions,
6760 not clear_breakpoints_commands, which is now gone.
6761 (main): If command_loop returns (e.g. from EOF on stdin), do
6762 a quit_command (looping back to command_loop if quit_command
6763 doesn't really quit).
6764 (command_loop): check result from command_line_input and
6765 exit if it returns NULL, rather than passing the NULL to
6766 execute_command.
6767 (gdb_readline): Free malloc'd result space before returning
6768 NULL for EOF.
6769
6770 * utils.c (query): Handle C-d to mean "yes", just as if the
6771 input was not a terminal. Also avoid infinite loop if EOF
6772 occurs in mid-input-line before newline. This allows
6773 query to be used at EOF on stdin with reasonable results.
6774
6775 * infrun.c (proceed): Set breakpoint_proceeded.
6776
6777 * values.c (value_as_long): Avoid infinite recursion for enums.
6778 (_initialize_values): Fix typo in help msg (kingdon).
6779
6780 * Makefile.dist (RL_LIB): Use RL_LIB_DEP for dependencies,
6781 RL_LIB for linking. This allows -lreadline for linking
6782 and nothing for dependencies, once readline is a real library.
6783
6784 * config.gdb: Jim Kingdon: give useful error message if the
6785 host or target type is not recognized.
6786
6787 * defs.h (alloca): SPARC <alloca.h> does not declare alloca,
6788 it just defines it. Dumb, but deal with it.
6789
6790 * Jim Kingdon suggests:
6791 in xconfig/sun3os4, CFLAGS should be XM_CFLAGS.
6792
6793 Wed Aug 29 18:03:27 1990 John Gilmore (gnu at cygint)
6794
6795 * Makefile.dist (VERSION): Bump version # to 3.91.2.
6796
6797 * Clean up Bothner's changes.
6798
6799 * blockframe.c (clear_pc_function_cache): New function.
6800 * blockframe.c: remake cache_pc_function_* static.
6801 * dbxread.c (symbol_file_command): remove references to
6802 cache_pc_function_* variables.
6803 * dbxread.c (read_struct_type): Use VOFFSET_STATIC.
6804 * printcmd.c: Avoid kludging a global variable (addressprint)
6805 to avoid printing the address of a string twice. Instead,
6806 pass the format letter 's' down low enough that it can be seen
6807 to avoid this problem.
6808 (print_formatted): Pass format arg to value_print.
6809 (restore_addressprint): Remove function.
6810 (do_examine): Avoid hacking addressprint, cleanups and such.
6811 (print_frame_args): Add a comment to a Bothner change.
6812 * symtab.h: define VOFFSET_STATIC and use it instead of "-1".
6813 * symmisc.c (free_all_symtabs): Call clear_pc_function_cache
6814 to wipe out the values cached in blockframe.c.
6815 * symtab.c (find_method): Add comment saying how big you must
6816 allocate to be "big enough". Per being terse again.
6817 * valprint.c (val_print): Handle format letter "s" to print
6818 strings without addresses. Add comment to vtbl printing code
6819 which casts with wild abandon. Rearrange reference-printing
6820 code so it prints:
6821 @0xaddr: value (print w/addressprint)
6822 value (print w/~addressprint)
6823 @0xaddr (parameter lists w/addressprint)
6824 or nothing (parameter lists w/o addressprint)
6825
6826 Tue Aug 28 10:47:18 1990 John Gilmore (gnu at cygint)
6827
6828 * Merge more changes from Per Bothner:
6829
6830 Gdb's handling of TYPE_CODE_REF was so counter-C++ (and otherwise
6831 annoying) that I tried to improve it. Here are my suggestions.
6832
6833 These patches all attempt to handle TYPE_CODE_REF (as in C++) better.
6834
6835 findvar.c:
6836 Do automatic de-reference when taking the address of a reference.
6837 printcmd.c:
6838 Don't deref_ref when printing parameter lists.
6839 valops.c:
6840 More attempts at treating refernences properly.
6841 valprint.c:
6842 In val_print, if deref_ref==0, don't print dangling " = ".
6843 value.h:
6844 Add COERCE_REF macro, which de-references an REF.
6845
6846 * Merge changes from Per Bothner:
6847
6848 * Fixed (Sony news)-specific configuration problems.
6849 * Fixed other problems with using vanilla pcc and libc (enum problems;
6850 assumption that vsprintf exists).
6851 * Some major speed-ups (finc_pc_partial_function now caches a match;
6852 parsing avoids duplicate symbol_lookup calls).
6853 * Changed handling of baseclasses (no longer use baseclasses field
6854 of struct type, use the first n_baseclasses fields instead).
6855 * Various minor changes/fixes, most C++-related.
6856
6857 blockframe.c:
6858 Cache the most previous match from find_pc_partial_function.
6859 (Save both low and high ends of matching function's pc range.)
6860 This speeds up the loop of infrun.c:wait_for_inferior quite
6861 a bit, and makes step/next commands much zippier.
6862 command.c:
6863 Added an enum->int cast (otherwise, some compilers barf).
6864 dbxread.c:
6865 No longer set baseclass offset to 0, since multiple
6866 inheritance now mostly works.
6867 Added a number of casts, to shut up compiler warnings
6868 (after stabs where made enums, not ints).
6869 When discarding a symbol table (in symbol_file_command),
6870 must clear the cache introduced in blockframe.c.
6871 Don't convert $vtbl_ptr_type to vtbl any more.
6872 Get rid of TYPE_BASECLASEES and baseclass_vec (see also symtab.h).
6873 Mask off sign bit emitted by g++ for virtual table offset.
6874 Set voffset to -1 (not 1) for static member functions.
6875 expread.y:
6876 Changed parsing/lexing of names to avoid doing symbol lookup twice
6877 (once when lexing to determine symbol class, once for real).
6878 Now only call symbol_lookup once. Fields of 'this' win especially big.
6879 printcmd.c:
6880 Subpress printing addr twice in the case of 'x/s addr'.
6881 symtab.c:
6882 lookup_basetype_type is no longer used.
6883 Add find_methods as recursive helper function to decode_line_1.
6884 This allows multiple inheritance to work.
6885 Also, once one or more matches has been found, do not look in
6886 base-classes. (Baseclass methods would be overridden, anyway.)
6887 symtab.h:
6888 Removed baseclasses array in struct type.
6889 Instead of using baseclasses[i], use fields[i-1].
6890 Added virtual_field_bits[i] to indicate if the i'th baseclass is virtual.
6891 Changed sign convention of voffset (previous was inconsistent).
6892 tm-news.h:
6893 Some macros (CALL_DUMMY and relatives) were missing. Put them back.
6894 utils.c:
6895 Used to assume existence of vsprintf. Re-written to not need it
6896 if HAVE_VPRINTF is undefined.
6897 valops.c:
6898 typecmp was too pessimistic. Made it less so.
6899 valprint.c:
6900 Don't print space after address.
6901 If vtable points to a misc symbol (with 0 offset), print it,
6902 since that indicates the actual class of the object.
6903 Changed ype_print_derivation_info to use new inheritance
6904 scheme (without baseclasses vector).
6905 values.c:
6906 In value_primitive_field, fixed some bugs left over from previous set of fixes.
6907 Also, changes needed because TYPE_BASECLASSES were removed.
6908 xm-news.h:
6909 REGISTER_U_ADDR didn't work for PC. Rewrote to use an array.
6910
6911 Tue Aug 21 20:08:54 1990 John Gilmore (gnu at cygint)
6912
6913 * source.c:
6914 If there is no path set, and the symbols don't indicate what directory
6915 a file was compiled in, look in the current directory. But either
6916 a path or a known compilation directory will prevent this.
6917
6918 * dbxread.c:
6919 Three independent bug fixes:
6920 * Remove the #if 0 block that breaks some stuff.
6921 * SunOS 4.1 fixed the promoted-parameter-wrong-addr bug in Sun C;
6922 adapt gdb to either SunOS 4.0.* or 4.1.
6923 * MAX_OF_TYPE and MIN_OF_TYPE thinko. By tedg@sun, I think.
6924
6925 * symtab.c:
6926 Instantiate the class T when looking for methods in it. (Tiemann@sun)
6927
6928 * valprint.c:
6929 (type_print) Demangle the name being printed.
6930 (type_print_base) Handle botched demangling without coredump (tiemann).
6931
6932 * values.c:
6933 (check_stub_method): Document routine.
6934 (tiemann) fix bug for no-arg functions
6935 Avoid clobbering beyond end of malloc'd storage.
6936 Terminate the argument list properly.
6937
6938 Sat Aug 18 01:29:59 1990 Per Bothner (bothner@cs.wisc.edu)
6939
6940 * Changes merged by John Gilmore:
6941
6942 breakpoint.c:
6943 In breakpoint_1, use new print_address_symbolic instead
6944 of find_pc_partial_function. (This forces use of assembler-level
6945 addresses, and avoids misleading non-mangled source-level names.)
6946 cplus-dem.c:
6947 Generalize ansi argument such that -1 means skip arglist totally.
6948 Removed global variable print_ansi_qualifiers (which made
6949 code non-reentrant), in favor of extra explicit arguments
6950 to internal routines.
6951 printcmd.c:
6952 Add new helper function print_address_symbolic.
6953 Use find_pc_misc_function instead of find_pc_partial_function
6954 (since we want assembler-level symbols here).
6955 stack.c:
6956 Print unknown function as just "f (...)", not "f (...) (...)".
6957 Use new fputs_demangled explicitly.
6958 symtab.c:
6959 Fixed a typing violation (problem: value.h cannot be imported
6960 without renaming many variable in this file).
6961 lookup_symbol: If no matching misc_func, look for a C++-mangled name.
6962 decode_line_1: Moved forward some never-reached code.
6963 Made decode_line_2 skip function prologues correctly.
6964 utils.c:
6965 fputs_filtered should not demangle by default.
6966 Add new fputs_demangled to demangle on demand..
6967 valops.c:
6968 Change value_struct_elt to use value_primitive_field (using recursive
6969 utility function search_struct_field). This allows foo.bar to work
6970 for multiple inheritance (so far only for data fields).
6971 Change check_field in the same way (recursive helper function
6972 to support multiple inheritance).
6973 (Note: there are more of these problems that I haven't fixed.
6974 Any code that says TYPE_BASECLASS (t, 1) is probably wrong.)
6975 value_of_this: 'this' symbol name is now just "this", note "$this".
6976 valprint.c:
6977 Don't print static members.
6978 Avoid printing "members of <type>" if there are none.
6979 Simplified type_print_derivation_info by merging duplicate code.
6980 Remove useless blank lines in type_print_base (ptype command).
6981 value.h:
6982 Added declaration of new routine value_primitive_field.
6983 values.c:
6984 Added value_primitive_field which is generalized version of
6985 value_field that can handle multiple inheritance (non-zero offsets etc).
6986 Re-implemented value_field to call value_primitive_field.
6987
6988 Fri Aug 17 23:33:44 1990 John Gilmore (gnu at cygint)
6989
6990 * infcmd.c -- insert else to avoid 'delete env' coredump when you
6991 delete the whole environment. Karl Berry reported the bug.
6992 * source.c - fix openp to avoid //'s in filenames, which
6993 trigger an Emacs bug causing it to not be able to find files
6994 when running gdb in a window.
6995 * dbxread.c - zap the #if 0 that botches the add-file code.
6996 It seems to work a lot better without all the code commented out.
6997
6998 Fri Jul 20 16:58:46 1990 John Gilmore (gnu at cygnus.com)
6999
7000 * Merge Tiemann's and Ted Goldstein's changes, detailed below,
7001 into gdb-3.90.9.
7002
7003 Tue Jul 17 19:34:33 1990 Ted Goldstein (tedg at golem)
7004
7005 * Makefile - added a ${CFLAGS} to a couple of entries,
7006 added remote-sa.sparc.c
7007 * added remote.sa-sparc.c, a modification of remote.c
7008 which conducts a dialog directly with the SparcStation prom.
7009 * breakpoint.c, infrun.c, sparcdep.c added
7010 remote_insert_breakpoint(), and remote_remove_breakpoint()
7011 to breakpoint.c instead of directly writing breakpoint instructions.
7012 * sparcdep.c on remote_debugging,there is no need
7013 to remove signle step breakpoint instructions.
7014 * main.c added "-epoch" flag and "int epoch_interface" to main.c
7015 global variable
7016 * printcmd.c - epoch interface sends lisp expressions to open up
7017 epoch windows on inspection.
7018 * valprint.c - added arrayprint, and addressprint and made adding
7019 format controls easier
7020 * wait.h added a couple of undef's because we were getting
7021 complaints about WSTOPSIG and WTERMSIG begin redefined.
7022
7023
7024 Wed Jul 4 05:27:51 1990 Michael Tiemann (tiemann at masham)
7025
7026 * symtab.c (decode_line_1): Add support for handling method stubs
7027 in the type information.
7028
7029 Tue Jul 3 09:39:18 1990 Michael Tiemann (tiemann at masham)
7030
7031 * values.c (baseclass_addr): Run loop from INDEX+1 to
7032 N_BASECLASSES; otherwise, we can still get into a loop.
7033 @@ This should be restructured to use a cleaner search strategy.
7034
7035 Sun Jul 1 12:28:51 1990 Michael Tiemann (tiemann at masham)
7036
7037 * dbxread.c (define_symbol,read_type): Grok GNU C++'s new
7038 abbreviation "Tt" for tags which have the same name as their
7039 typedecls.
7040
7041 Fri Jun 29 01:03:46 1990 Michael Tiemann (tiemann at masham)
7042
7043 * symtab.c (list_symbols): add ability to set breakpoints on all
7044 the functions which match a particular regular expression.
7045
7046 Tue Jun 26 04:26:29 1990 Michael Tiemann (tiemann at masham)
7047
7048 * cplus-dem.c (cplus_demangle): New parameter ANSI says whether we
7049 should print ANSI qualifiers (such as `const' and `volatile').
7050 All callers changed to call with ANSI == 1, except from
7051 `check_method_stub', which uses old-style syntax.
7052
7053 * symseg.h (struct fn_field): Remove unneccessary `args' field.
7054 * symtab.h (TYPE_FN_FIELD_ARGS): Redefined.
7055
7056 * values.c (check_stub_method): New function.
7057
7058 * cplus-dem.c (do_type): Handle "long long" (encoded as 'x').
7059
7060 * dbxread.c (read_type): Handle new GNU C++ method type stubs.
7061 * valprint (type_print_base): Ditto.
7062
7063 * symtab.c (gdb_mangle_typename): New function.
7064
7065 Tue Jun 5 00:18:43 1990 Michael Tiemann (tiemann at gzilla)
7066
7067 * breakpoint.c (catch_command): New function. Provides a
7068 mechanism to set breakpoints based on catch clauses.
7069 (disable_catch): Similar, but disables breakpoints on catch
7070 clauses.
7071 (delete_catch): Similar, but deleted breakpoints on catch clauses.
7072
7073 Sun Jun 3 22:54:08 1990 Michael Tiemann (tiemann at gzilla)
7074
7075 * blockframe.c (blockvector_for_pc): New function.
7076 * blockframe.c (block_for_pc): Changed to call
7077 `blockvector_for_pc' and get the block itself.
7078
7079 * stack.c (catch_info): New function. Prints info about
7080 exceptions which can be caught in the current frame.
7081 * stack.c (print_frame_label_vars): New function. Similar to
7082 `print_frame_local_vars'.
7083 * stack.c (print_block_frame_labels): Prints out labels that are
7084 defined in this frame. These labels are exceptions that can be
7085 caught.
7086
7087 * dbxread.c: Updated to handle N_CATCH symtab types.
7088
7089 Thu May 3 22:10:00 1990 Michael Tiemann (tiemann at teacake)
7090
7091 * valprint.c (everywhere): TYPE_NAME (TYPE) no longer comes in the
7092 form "struct ..." for GNU C++. Don't flush any part of TYPE_NAME
7093 when printing the type.
7094
7095 Wed May 2 22:43:04 1990 Michael Tiemann (tiemann at teacake)
7096
7097 * valprint.c (val_print): Use `baseclass_addr' to access the
7098 baseclasses pointed to via the derived class object at VALADDR.
7099
7100 * values.c (baseclass_addr): New function. Casts derived pointers
7101 to baseclass pointers taking virtual baseclasses and multiple
7102 inheritance into account.
7103
7104 Sat May 5 12:39:18 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7105
7106 * Version 3.90.9.
7107
7108 Fri May 4 12:12:55 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7109
7110 * breakpoint.c (watch_command, bpstat_stop_status): Deal with
7111 exp_valid_block field correctly.
7112
7113 * infrun.c (wait_for_inferior): When checking "don't even think
7114 about breakpoints" if stop_signal == SIGTRAP && trap_expected,
7115 also check step_resume_breakpoint.
7116 Insert breakpoints and continue (not step) if
7117 step_resume_break_address != NULL, even if another_trap.
7118 If trap_expected and we enter sigtramp, then set up a
7119 step_resume_break.
7120 If trap_expected is set when we hit the step_resume_break,
7121 set another_trap.
7122 When calling resume and trap_expected says tell resume to step
7123 (2 places), also check step_resume_break_address.
7124
7125 * infrun.c (wait_for_inferior): Don't set
7126 prev_{pc,sp,func_{start,name}} before calling wait ().
7127 Do set them after exiting loop.
7128 Move their declarations outside functions.
7129 (start_inferior): Initialize them.
7130
7131 Thu May 3 00:15:11 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7132
7133 * infrun.c (wait_for_inferior, after check for trap_expected > 1):
7134 Restore old code which distinguishes between trap_expected and
7135 running_in_shell, just make the latter take any non-TRAP signal,
7136 not just SEGV.
7137
7138 * values.c (allocate_value): Zero VALUE_OPTIMIZED_OUT flag.
7139
7140 * Makefile.dist (pinsn.o): Use PINSN_CC to compile.
7141 xconfig/3b1 (CC,PINSN_CC): Define.
7142
7143 * xconfig/altos, altos-dep.c: Rename altos-dep.c to altos-xdep.c.
7144
7145 * Version 3.90.8
7146
7147 * breakpoint.c (bpstat_stop_status),
7148 infrun.c (wait_for_inferior) [SHIFT_INST_REGS]: New code.
7149
7150 * param.h, tm-88k.h: Define ADDR_BITS_*.
7151 infcmd.c (jump_command, read_pc), infrun.c (wait_for_inferior),
7152 printcmd.c (do_one_display): Use them.
7153
7154 * utils.c: Split #ifdef USG into a USG_UTILS and a QUEUE_MISSING.
7155 xm-88k.h: Define USG_UTILS.
7156
7157 Wed May 2 00:05:33 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7158
7159 * printcmd.c (printf_command) [__INT_VARARGS_H]: New code.
7160 (printf_command): Add from_tty parameter.
7161
7162 * valprint.c (value_print): Check VALUE_OPTIMIZED_OUT flag.
7163
7164 * value.h: Add optimized_out field and change lazy field to
7165 char. Add macro VALUE_OPTIMIZED_OUT.
7166
7167 * i386-pinsn.c: Change from Eirik Fuller to write to stream directly
7168 instead of stuffing things in buffers (oappend, etc).
7169
7170 * breakpoint.c (bpstat_do_actions): If *BSP is set to NULL by
7171 execute_command, exit both loops.
7172
7173 * Makefile.dist: Don't set TARGET_ARCH. Add .c.o rule.
7174
7175 Tue May 1 17:07:23 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7176
7177 * Makefile.dist (RAPP_OBS, rapp),
7178 rgdb.c, rserial.c, rudp.c, serial.c, udp.c, xdep.h,
7179 remote.h: Added.
7180 m68k-xdep.c, coredep.c: Wrap in #if !defined (RDB).
7181
7182 * valops.c (value_struct_elt), values.c (value_static_field):
7183 Change error messages to remove references to `info methods'.
7184
7185 Tue Apr 24 10:25:10 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7186
7187 * More 88k changes:
7188 infrun.c (start_inferior): Add START_INFERIOR_HOOK.
7189 infcmd.c [SHIFT_INST_REGS]: New code.
7190 findvar.c (read_relative_register_raw_bytes): Return a value.
7191 infcmd.c (do_registers_info): Check value from
7192 read_relative_register_raw_bytes.
7193
7194 * command.c (delete_cmd): Free the struct cmd_list_element(s)
7195 we are removing.
7196
7197 Mon Apr 23 10:42:21 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7198
7199 * More 88k changes:
7200 findvar.c (get_saved_register): New function.
7201 findvar.c: Rewrite code which called find_saved_register to
7202 call get_saved_register instead.
7203
7204 Sun Apr 22 14:47:51 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7205
7206 * valprint.c (val_print): Change error message printed when
7207 the type has TYPE_FLAG_STUB set.
7208
7209 * valprint.c (val_print): Check for TYPE_CODE_UNDEF.
7210
7211 * findvar.c (write_register): Set register_valid (regno).
7212
7213 * valops.c (call_function): Check for NULL return from block_for_pc.
7214
7215 Fri Apr 20 11:31:23 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7216
7217 * findvar.c (write_register): Add PREPARE_TO_STORE.
7218 {sun3,sparc,symmetry}-xdep.c (PREPARE_TO_STORE): Add.
7219 infptrace.c, {mips,pyr,symmetry,sun3,arm,hp300hpux}-xdep.c
7220 (store_inferior_registers): Don't call read_register_bytes.
7221 symmetry-xdep.c (store_inferior_registers):
7222 #if 0 out code to fetch registers.
7223
7224 * values.c (value_as_long): Call COERCE_ARRAY.
7225
7226 * tm-sun3.h: Include tm-68k.h not m-68k.h
7227
7228 * sparc-tdep.c (single_step): Set next_pc, npc4 within
7229 if (!one_stepped), not outside it.
7230
7231 * Changes from Data General for 88k:
7232 * coffread.c (read_file_hdr): Add *88*MAGIC.
7233 * coffread.c (have_symbol_file_p): New function.
7234 * coffread.c [COFF_CHECK_X_ZEROES] [TDESC]: New code.
7235 * coffread.c (read_one_sym): If there is more than one
7236 aux entry, don't give an error message, just ignore the
7237 extra ones.
7238 * coffread.c (process_coff_symbol): Replace clipper with
7239 BELIEVE_PCC_PROMOTION in #ifdef's.
7240 * coffread.c: Define L_LNNO32 if not defined.
7241 (enter_linenos): Use it.
7242 * blockframe.c: Add INIT_FRAME_PC hook and use it in
7243 get_prev_frame_info.
7244 m-m88k.h: Use INIT_{FRAME_PC,EXTRA_FRAME_INFO} to do tdesc stuff.
7245 Use dummy versions of FRAME_CHAIN_*.
7246 * Makefile.dist, xconfig/i386*: Rename M_CLIBS to XM_CLIBS and add
7247 TM_CLIBS and CDEPS.
7248 tdesc/libdc.o: New target.
7249 tdesc.{c,h}, tdesc/*, {t,x}config/m88k: New files.
7250
7251 Thu Apr 12 15:47:00 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7252
7253 * m68k-opcode.h (bras, bsrs): Use "Bw" not "Bg".
7254
7255 Tue Apr 10 20:50:25 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7256
7257 * Version 3.90.7.
7258
7259 * xm-mips.h (BYTE_ORDER): If not defined, make it LITTLE_ENDIAN.
7260
7261 * mips-xdep.c ({fetch,store}_inferior_registers): Remove variable
7262 offset and just use register_addr (regno, 1).
7263 (core_file_command): Remove variable reg_offset and just use
7264 register_addr (regno, 0).
7265
7266 * gdbcore.h [COFF_FORMAT]: #undef a_magic before redefining it.
7267
7268 * infrun.c ("if (trap_expected && stop_signal != SIGTRAP)", near end
7269 of wait_for_inferior): Always pass 0 as first arg to resume.
7270 #if 0 out "SIGSEGV in shell" test right above it (now redundant).
7271
7272 * i386-pinsn.c (oappend_address): New function.
7273 (oappend): Make it "static void" and declare at top of file.
7274 (OP_J, OP_DIR): Use oappend_address.
7275
7276 Mon Apr 9 15:22:09 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7277
7278 * mips-xdep.c: Include <mips/inst.h> not "mips/inst.h".
7279
7280 * wait.h [HAVE_WAIT_STRUCT]: Put #defines in #if !defined so that
7281 it's OK if they are defined in <sys/wait.h>.
7282
7283 * findvar.c (fetch_registers): Pass "registers", not "&registers",
7284 to remote_fetch_registers.
7285
7286 * mips-tdep.c (_initialize_mipsdep): Remove hex_disassembler
7287 and re-write skip_prologue to use add_set_cmd.
7288
7289 * Makefile.dist (alldeps.mak): Don't put \ after the last
7290 filename in each list.
7291
7292 Sun Apr 8 01:59:19 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7293
7294 * Version 3.90.6.
7295
7296 * Makefile.dist (alldeps.mak): "XM_FILE" -> "XM_FILE=".
7297
7298 * valarith.c (value_x_{un,bin}op): use "operator" not "operator "
7299 to match dbxread.c change of 16 Mar 90.
7300
7301 * valarith.c (value_x_unop): Pass &static_memfuncp,
7302 not static_memfuncp.
7303
7304 * breakpoint.c: Add watchpoint stuff.
7305 breakpoint.h: Add bpstat_should_step.
7306 infrun.c (proceed, wait_for_inferior): Use it.
7307 breakpoint.h: Add bpstat_print (and rename old bpstat_print
7308 to bpstat_should_print).
7309 infrun.c (normal_stop): Use it.
7310
7311 * value.h: Add value_free. Declare a few functions.
7312
7313 Sat Apr 7 21:43:43 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7314
7315 * dbxread.c (read_dbx_symtab): Remove PROFILE_TYPES code and
7316 insert comment suggesting easy shell script equivalents.
7317
7318 * values.c (unpack_long): Give better error messages for
7319 unrecognized sizes of ints and floats.
7320
7321 Fri Apr 6 00:32:21 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7322
7323 * dbxread.c, gdbcore.h (IS_OBJECT_FILE): Check for a_drsize
7324 nonzero as well as a_trsize.
7325
7326 * More places: Use SWAP_TARGET_AND_HOST.
7327
7328 * valops.c (destructor_name_p): Only skip "struct " if present.
7329
7330 * main.c (gdb_readline): Return NULL on end of file.
7331
7332 * sparc-opcode.h: Add jmp 1+2, jmp 1+i, jmp i+1.
7333
7334 * Makefile.dist: Make expread.tab.c unambiguously be in srcdir.
7335
7336 * main.c: Split source_command into source_command and
7337 read_command_file.
7338 (main): Accept "-" as arg to +command for stdin.
7339
7340 * dbxread.c (psymtab_to_symtab): Don't read string table.
7341 (symbol_file_command): Save string table size.
7342
7343 * Version 3.90.5
7344
7345 * symtab.c: Remove declaration of lookup_misc_func.
7346
7347 * mips-pinsn.c: Add use_hex_p stuff (re-worked from Forin stuff).
7348
7349 * mips-opcode.h: Add bdelay field.
7350 mips-pinsn.c: Various changes from Forin, I think to make it look
7351 like the MIPS assembler format.
7352 mips-tdep.c, mips-xdep.c, mipsread.c: Various changes from Forin.
7353
7354 * gdbcore.h: Declare register_addr.
7355
7356 * gdbcore.h: Include <a.out.h>, before trying to redefine N_TXTADDR
7357 and friends.
7358 various: Don't include both a.out.h and gdbcore.h.
7359
7360 * Makefile.dist (HFILES): Add param.h
7361
7362 * utils.c (init_malloc): Moved here from mcheck.c and modified
7363 to use the standard mcheck.c
7364 Makefile.dist: Modify to reflect new mcheck.
7365
7366 Thu Apr 5 16:38:28 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7367
7368 * valprint.c (val_print, print_hex_chars): Print integers
7369 larger than LONGEST.
7370
7371 * valarith.c (value_sub): Give error message if attempt to
7372 subtract something of the wrong type from a pointer.
7373
7374 * breakpoint.c (bpstat_stop_status): Initialize retval to NULL.
7375
7376 * i386-tdep.c (i386_pop_frame): Change addr to adr.
7377
7378 Wed Apr 4 05:21:50 1990 Jim Kingdon (kingdon at teenage-mutant)
7379
7380 * main.c (command_line_input): return NULL on end of file.
7381 (execute_command): If p is NULL, return almost right away.
7382 (read_command_lines): Treat end of file like "end".
7383
7384 * printcmd.c (print_frame_args): Change it so num is number
7385 of ints of args, not number of args.
7386
7387 * xm-*.h: Make sure BYTE_ORDER is defined.
7388 Also fix various #includes of old names of things.
7389
7390 * main.c (command_line_input): Fix comment code of 2 Apr.
7391
7392 * values.c (value_from_long, unpack_long): SWAP_TARGET_AND_HOST.
7393 various: Replace {BYTES,WORDS}_BIG_ENDIAN with TARGET_BYTE_ORDER.
7394 valarith.c various: SWAP_TARGET_AND_HOST.
7395 dbxread.c (READ_FILE_HEADERS): SWAP_TARGET_AND_HOST.
7396 (SWAP_SYMBOL): New macro. Use it wherever symbuf_idx is incremented.
7397 exec.c (exec_file_command): SWAP_TARGET_AND_HOST.
7398
7399 * valarith.c (value_subscripted_rvalue): Just bcopy() the
7400 appropriate bytes rather than playing strange games with
7401 value_from_long.
7402
7403 * param.h (SWAP_TARGET_AND_HOST): New macro.
7404
7405 * tm-np1.h (V7_REGNUM): Change from 27 to 26.
7406 (REGISTER_VIRTUAL_TYPE): Return correct result for vector regs.
7407 gould-tdep.c: New file.
7408
7409 * Move reading of register before store from
7410 findvar.c (write_register) to
7411 infptrace.c, *-xdep.c (store_inferior_register).
7412
7413 * findvar.c (fetch_registers, store_registers): New functions.
7414 write_register{,_bytes}: Use store_registers regardless of
7415 have_inferior_p.
7416 registers_valid: New variable.
7417 (supply_register, read_register, etc.): Use it.
7418 (read_register_gen): New variable.
7419 various: Use read_register_gen rather than read_register_bytes
7420 where appropriate.
7421 *-xdep.c (fetch_inferior_registers): Remove remote_debugging check.
7422 infrun.c (wait_for_inferior, start_inferior): Call registers_changed
7423 not fetch_inferior_registers.
7424 *-xdep.c (fetch_inferior_registers): Call registers_fetched if
7425 not setting registers via supply_register, and if fetching
7426 all registers.
7427 infptrace.c, *-xdep.c (fetch_inferior_registers): Add param,
7428 # of register to fetch (-1 for all).
7429 infptrace.c, hp300hpux-xdep.c (fetch_inferior_registers):
7430 Actually fetch only those registers needed.
7431 value.h: Declare all the extern register functions from findvar.c.
7432
7433 * coffread.c (read_coff_symtab): Test for specific kinds of GCC
7434 labels (LI%.*, LPB%.*, etc), not just ??%.*.
7435
7436 * coffread.c (record_misc_function): Use mf_text not mf_unknown.
7437
7438 * utils.c,defs.h (lines_to_list): New function.
7439 source.c (select_source_symtab, list_command, forward_search_command,
7440 reverse_search_command), stack.c (print_frame_info):
7441 Use it instead of 10.
7442
7443 * munch: If MUNCH_NM variable exists, use it.
7444
7445 * main.c (initialize_main): Set rl_readline_name.
7446 main.c: #include readline.h and #undef savestring.
7447 Remove declarations of things declared in readline.h.
7448
7449 * main.c (gdb_readline): If instream == 0, read from stdin.
7450
7451 * main.c (main): Only call clearerr if ISATTY. Exit loop if
7452 feof (instream).
7453
7454 * infcmd.c (detach_command): Set inferior_pid to 0 after
7455 calling remote_close.
7456
7457 * main.c (main): If exec and sym files are the same, and there
7458 is an error reading execfile, don't try to read sym file.
7459
7460 * infcmd.c (detach_command) [ATTACH_DETACH]: Don't try to detach
7461 from inferior when remote debugging.
7462
7463 * source.c (reverse_search_command): Change while test from 1 to
7464 line > 1.
7465
7466 Tue Apr 3 18:14:14 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7467
7468 * Version 3.90.4.
7469
7470 * Makefile.dist (gdb.tar.Z): Use -z option to tar rather than
7471 creating gdb.tar and calling compress separately.
7472
7473 * breakpoint.c (read_memory_nobpt): Do not treat bcopy as if it
7474 returned an "errno" value.
7475
7476 * various: Make sure gdbcore.h is not included before a.out.h.
7477
7478 * Makefile.dist (OPCODES): Add mips-opcode.h.
7479
7480 * config.gdb: Print lists of {hosts,targets} after finding srcdir.
7481 When parsing +{host,target}=, strip off +{host,target}=, not +{x,t}m=.
7482
7483 * Makefile.dist (gdb.tar): Do {t,x}config not just config.
7484
7485 Mon Apr 2 02:42:23 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7486
7487 * sparc-opcode.h (inc): Fix incorrect lose field.
7488
7489 * valarith.c (value_subscripted_rvalue): Use TARGET_BYTE_ORDER,
7490 rather than checking endianness at runtime.
7491
7492 * main.c (comand_line_input): Accept comments anywhere, not
7493 just at starts of lines.
7494
7495 Sat Mar 31 21:59:35 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7496
7497 * symtab.c (check_stub_type): Call lookup_symbol with 5 args.
7498
7499 Fri Mar 30 15:23:52 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7500
7501 * frame.h: #include param.h.
7502 param.h: Protect against multiple inclusion.
7503
7504 * i386-tdep.c (i386_get_frame_setup): Fix comment about what
7505 opcode 0x55 is.
7506 If 0x81 or 0x83 is followed by something besides 0xec,
7507 put codestream back where it was and return 0.
7508 [USE_MACHINE_REG_H]: Include <machine/reg.h> not <sys/reg.h>
7509 Move include of a.out.h above <sys/user.h>.
7510 (i386_frame_find_saved_regs): Make locals signed.
7511 (i386_frame_find_saved_regs, i386_push_dummy_frame, i386_pop_frame):
7512 Use REGISTER_BYTES, REGISTER_RAW_SIZE, etc. to deal with floating
7513 point registers.
7514
7515 Wed Mar 28 18:33:40 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
7516
7517 * Makefile.dist (OTHERS): Add gdb.dvi.
7518 (gdb.dvi): New rule.
7519
7520 * breakpoint.c (_initialize_breakpoint): Clean up docstrings so
7521 as not to mention subcommands (e.g. auto-display).
7522 Call add_cmd not add_abbrev_cmd for "disable breakpoint" and
7523 put it in class_alias.
7524
7525 * breakpoint.c (set_breakpoint_count): New function.
7526 (set_breakpoint, break_command_1): Use it.
7527
7528 * breakpoint.c (get_number): New function.
7529 (*_command, map_breakpoint_numbers): Use it.
7530
7531 * infptrace.c (write_inferior_memory): Remove remote_debugging
7532 stuff (is handled in core.c).
7533 (read_inferior_memory): Remove #if 0'd out remote_debugging code.
7534
7535 Tue Mar 27 16:51:27 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
7536
7537 * inferior.h: Include frame.h.
7538
7539 * findvar.c (write_register): Replace sun4 #ifdef with
7540 check of CANNOT_STORE_REGISTER.
7541 xm-sparc.h: Define CANNOT_STORE_REGISTER.
7542
7543 * sparc-tdep.c: Remove superfluous declaration of
7544 get_breakpoint_commands.
7545
7546 * breakpoint.{c,h}: Add bpstat stuff.
7547 bpstat_do_action: Re-work do_breakpoint_commands into this.
7548 main.c (command_loop): Call bpstat_do_action not
7549 do_breakpoint_commands.
7550 inferior.h, infrun.c, breakpoint.c, infcmd.c:
7551 Rework breakpoint_commands and stop_breakpoint
7552 stuff to use bpstat instead.
7553
7554 * infcmd.c (program_info): "info reg"->"info registers".
7555
7556 * np1-opcode.h: Renamed from npl-opcode.h.
7557 gould-pinsn.c: Include np1-opcode.h.
7558 Makefile.dist (OPCODES): Change npl-opcode.h to np1-opcode.h
7559
7560 * coffread.c (read_enum_type): Stop reading when we hit .eos.
7561
7562 Mon Mar 26 15:52:35 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7563
7564 * Version 3.90.3.
7565
7566 * breakpoint.c (read_memory_nobpt): New function.
7567 gdbcore.h: Declare read_memory_{nobpt,check}.
7568 mips-tdep.c: Use read_memory_nobpt not breakpoint_shadow_val.
7569
7570 Fri Mar 23 14:26:38 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
7571
7572 * inflow.c (terminal_inferior): Reenable commented out
7573 inferior_thisrun_terminal check.
7574 (terminal_ours_1): If inferior_thisrun_terminal is nonzero,
7575 return immediately.
7576
7577 * Makefile.dist: Rewrite DEPFILES, M_FILE, etc. stuff to deal
7578 with host & target separation.
7579
7580 * config/*: Split into xconfig/* and tconfig/*.
7581 *-dep.c: Split into *-xdep.c and *-tdep.c.
7582
7583 * main.c (main): Always pass two args to xrealloc.
7584
7585 Thu Mar 22 20:29:25 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
7586
7587 * Makefile.dist ({,dist}clean): rm {x,t}m.h not param.h
7588 xgdb.o: Remove obsolete dependency (now in depend).
7589
7590 * arm-pinsn.c: Include arm-opcode.h not opcode.h.
7591
7592 * mips-pinsn.c, mips-opcode.h: New files from Bothner (from
7593 release of 24 Jan 90 with mips-opcode.h patch from 1 Feb 90).
7594
7595 * utils.c (xmalloc): Return NULL on request for 0 bytes.
7596
7597 Wed Mar 21 13:30:08 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
7598
7599 * config.gdb: Re-write machine stuff to deal with host & target.
7600
7601 * xm-altos.h: Don't define HAVE_WAIT_STRUCT.
7602
7603 * m-*.h: Split into xm-*.h and tm-*.h.
7604
7605 * infrun.c (wait_for_inferior): Put #ifdef sony_news code
7606 in regardless of machine.
7607
7608 * symtab.c (decode_line_1): Add quotes and capitalize error
7609 message "no class, struct, or union named".
7610
7611 * Makefile.dist (cplus-dem.o): Compile with -Dnounderscore.
7612
7613 * stack.c (print_frame_info): Use print_symbol to print function name.
7614
7615 * symtab.c (output_source_filename): Don't print a comma if
7616 we are skipping a filename already printed.
7617
7618 Tue Mar 20 10:48:54 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
7619
7620 * symtab.c (output_source_filename): Don't print a filename
7621 more than once.
7622
7623 * utils.c (fprint_symbol): New function.
7624 defs.h: Decalare it.
7625 various: Use fprint_symbol to print symbol names.
7626 Makefile.dist (SFILES, OBS): Add cplus-dem.{c,o}.
7627
7628 Mon Mar 19 17:11:03 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
7629
7630 * coffread.c (read_file_hdr): Add MC68K??MAGIC.
7631
7632 * coffread.c (read_coff_symtab): Ignore swbeg and string label
7633 symbols.
7634
7635 * coffread.c (read_coff_symtab): Increment num_object_files
7636 in case C_STAT not C_FILE.
7637 New variable in_source_file. Set it in case C_FILE.
7638 Check it in case C_STAT.
7639
7640 * coffread.c [FUNCTION_EPILOGUE_SIZE]: New code.
7641 m-umax.h (FUNCTION_EPILOGUE_SIZE): Define.
7642
7643 * config/3b1: New file.
7644
7645 * config/sun*: Print message warning people to use GAS with GCC.
7646
7647 Sun Mar 18 02:56:40 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
7648
7649 * infcmd.c (run_stack_dummy): Change error message.
7650
7651 * m-68k.h (REGISTER_VIRTUAL_TYPE): Make pc, fp, sp char *.
7652
7653 * m-mips.h (LONGEST, BUILTIN_TYPE_LONGEST): Remove.
7654
7655 Sat Mar 17 21:27:49 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
7656
7657 * mips-dep.c: Remove infptrace.c stuff.
7658
7659 * m-bigmips.h: New file.
7660 m-mips.h [MIPSEB]: Remove *_BIG_ENDIAN stuff.
7661
7662 * m-sparc.h (FIX_CALL_DUMMY): Do not insert unimp instruction
7663 if function was compiled with gcc.
7664
7665 * m-mips.h: Remove FIX_CALL_DUMMY_ALIGNED and make FIX_CALL_DUMMY
7666 use new args.
7667
7668 * valops.c (call_function): New args to FIX_CALL_DUMMY.
7669 m-*.h (FIX_CALL_DUMMY): Take new args.
7670
7671 * values.c (using_struct_return): New parameter gcc_p.
7672 valops.c (call_function): New variable using_gcc.
7673 valops.c (call_function) [REG_STRUCT_HAS_ADDR]: New code.
7674
7675 * m-mips.h, mips-dep.c: New files from Forin.
7676 m-mips.h: Replace RETURN_STRUCT_BY_REF with USE_STRUCT_CONVENTION.
7677
7678 Fri Mar 16 13:17:19 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7679
7680 * Makefile.dist: Add some dependencies of m-*.h files.
7681 (HFILES): Add m-68k.h.
7682
7683 * dbxread.c (read_struct_type): Put "operator+" not "operator +"
7684 in symtab.
7685
7686 * core.c: Split read_memory into read_memory_check and read_memory.
7687 breakpoint.c (insert_breakpoints): If can't read memory,
7688 tell user that error was due to seting breakpoints.
7689
7690 Thu Mar 15 11:47:19 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7691
7692 * infrun.c [COFF_ENCAPSULATE]: Include a.out.encap.h.
7693
7694 * blockframe.c (FRAMELESS_LOOK_FOR_PROLOGUE): Make it a function.
7695 various m-*.h: Call function not macro.
7696 frame.h: Declare the function.
7697
7698 Wed Mar 14 02:44:51 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7699
7700 * sparc-dep.c: Include signame.h.
7701
7702 * sparc-pinsn.c (print_insn): When looking for sethi before
7703 delayed branch, call read_memory_noerr not read_memory.
7704
7705 * m-isi.h, m-sun3.h, m-news.h, m-hp300bsd.h, m-altos.h,
7706 m-hp300hpux.h, m-sun2.h: Merge machine stuff except inferior
7707 function call stuff into new file m-68k.h. Create m-3b1.h.
7708
7709 Tue Mar 13 21:34:33 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7710
7711 * inflow.c (new_tty): If can't open tty, print error message
7712 before exiting.
7713
7714 * blockframe.c: Remove declaration of psymtab_to_symtab.
7715 symtab.h: Declare psymtab_to_symtab.
7716 blockframe.c: Remove declarations of block_for_pc and
7717 find_pc_function_start.
7718 frame.h: Add declarations of block_for_pc and find_pc_function_start.
7719 Remove declaration of nonexistent function find_pc_function.
7720 values.c: include frame.h instead of declaring block_for_pc.
7721
7722 * Version 3.90.2.
7723
7724 Mon Mar 12 14:20:06 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7725
7726 * main.c (main): Delete superfluous "e" from long_options.
7727
7728 Sat Mar 10 15:47:23 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7729
7730 * valprint.c (val_print): Print <%d bit integer> not just
7731 <large integer>.
7732
7733 * dbxread.c (error_type): Fix loop that finds '\0' so that on
7734 exit, *pp points to the '\0', not the character after.
7735 (read_type): Make sure that places which call read_type and then
7736 try to read more input stop immediately with another error
7737 upon encountering '\0'.
7738
7739 * dbxread.c (read_range_type): Fix check for large signed
7740 integral type to match comment and reality. Set TYPE_LENGTH based
7741 on n2bits for signed, n3bits for unsigned.
7742
7743 * infcmd.c (cont_command): Print warning message if we
7744 decide to ignore the argument.
7745
7746 * gdb.texinfo (attach): @xref{Attach} -> @xref{Remote}.
7747
7748 Fri Mar 9 16:26:47 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7749
7750 * symtab.h (address_class): Reinstate LOC_EXTERNAL with rewritten
7751 comment.
7752
7753 * expread.y (yyerror, parse_c_1): Make yyerror take a char * arg.
7754
7755 * main.c (symbol_completion_function): Don't call error() on
7756 "info jkldskf".
7757
7758 * m-npl.h (USE_STRUCT_CONVENTION): Change >= to >.
7759
7760 Thu Mar 8 00:19:01 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7761
7762 * symseg.h: Nuke more symseg references including LOC_EXTERNAL.
7763 Put contents of symseg.h into symtab.h and remove symseg.h.
7764
7765 Wed Mar 7 18:02:15 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7766
7767 * symtab.h (SYMBOL_LINE): New macro.
7768 symtab.c (decode_line_1): Accept variable as well as function.
7769 Lookup variable/function in selected block if no file specified.
7770 printcmd.c: #if 0 out whereis_command.
7771
7772 * command.c (do_setshow_command): Call function with additional
7773 argument C.
7774 main.c (set_history_size_command): Take argument C.
7775 (set_verbose): New function to set docstring.
7776 (initialize_main): Put set_verbose in command list.
7777 command.c (lookup_cmd_1): Accept result_list NULL.
7778
7779 * valprint.c (_initialize_valprint): Change docstring for
7780 "set unionprint" to normal set/show form.
7781
7782 * command.c (add_show_from_set): Check that docstring starts with
7783 "Set " before assuming it does.
7784
7785 * main.c (show_history): Call cmd_show_list.
7786 command.{c,h} (cmd_show_list): New function.
7787 command.h: Declare do_setshow_command.
7788
7789 * command.h (cmd_list_element): New field completer.
7790 main.c (symbol_completion_function): Use it.
7791 symtab.h: Declare make_symbol_completion_list.
7792 command.c (add_cmd): Set completer.
7793 main.c, gdbcmd.h (noop_completer): New function.
7794 infcmd.c: Set completer for environment functions.
7795
7796 * symtab.c (types_info, _initialize_symtab): #if 0 out.
7797 various: Use fputs_filtered, not fprintf_filtered(%s).
7798
7799 * valprint.c (type_print_base): Check for integers larger than
7800 LONGEST.
7801
7802 * sun3-dep.c: Include "signame.h" instead of directly declaring
7803 sys_siglist.
7804
7805 Tue Mar 6 14:59:34 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7806
7807 * infrun.c (signals_info): Allow argument to be a signal name
7808 as well as an expression.
7809 (handle_command): Check for error from sig_number.
7810
7811 * main.c (float_handler): Change error message.
7812
7813 * inflow.c (create_inferior): If getenv ("SHELL") exists, use it
7814 instead of /bin/sh.
7815
7816 * dbxread.c (read_dbx_symtab, case N_SO): New variable first_symnum.
7817 Pass it to {start,end}_psymtab.
7818
7819 * dbxread.c (read_ofile_symtab): Increment symbuf_idx and symnum
7820 when calling process_symbol_pair.
7821
7822 * symtab.c (sources_info, output_source_filename):
7823 Re-write so output_source_filename takes a first parameter
7824 instead of a next one.
7825
7826 * dbxread.c (read_dbx_symtab, case N_SO): When incrementing
7827 symbuf_idx, increment symnum also.
7828
7829 * values.c (set_internalvar_component): Use VALUE_CONTENTS,
7830 not VALUE_CONTENTS_RAW.
7831
7832 * symmisc.c (free_symtab): Don't free filename (now in symbol_obstack).
7833
7834 * environ.c (init_environ): Copy entire string, including
7835 terminating '\0'.
7836
7837 * value.h, values.c: Rename value_lazy to value_fetch_lazy.
7838 values.c (value_of_internalvar): Call value_fetch_lazy.
7839
7840 * dbxread.c (read_huge_number): Return an error on encountering
7841 a large decimal number.
7842
7843 * dbxread.c (read_huge_number): Reverse sense of overflow test.
7844
7845 * valprint.c (val_print, case TYPE_CODE_INT): Check for integers
7846 larger than LONGEST.
7847
7848 * dbxread.c (read_ofile_symtab): When calling process_one_symbol,
7849 call it with desc and value rather than with bufp->n_{desc,value}.
7850
7851 * defs.h (LONG_MAX): Define.
7852
7853 * sun3-dep.c: Declare sys_siglist.
7854
7855 * infptrace.c: Move include of gdbcore.h after a.out.h
7856
7857 * Makefile.dist (expread.o, mcheck.o): Remove leading "./" not
7858 leading ".".
7859
7860 * m-hp300hpux.h [!HPUX_VERSION_5]: Define KERNEL_U_ADDR_HPUX.
7861 infptrace.c [KERNEL_U_ADDR_HPUX] [KERNEL_U_ADDR_BSD]:
7862 Set kernel_u_addr using nlist().
7863 m-hp300bsd.h: Define KERNEL_U_ADDR_BSD.
7864
7865 Mon Mar 5 16:52:41 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7866
7867 * dbxread.c (read_dbx_symtab): If value of .o symbol is crazy,
7868 don't end psymtab.
7869
7870 * dbxread.c (read_dbx_symtab): Ignore first of a pair of N_SO
7871 when both appear.
7872 (start_subfile, start_symtab): Extra parameter dirname.
7873 (start_subfile): Use obsavestring, not savestring, for name.
7874 various: Call start_{subfile,symtab} with extra argument.
7875 (end_symtab): Set dirname field in symtab.
7876 (read_ofile_symtab): Call process_symbol_pair on pair of N_SO.
7877 (process_symbol_pair): New function.
7878 symtab.h (symtab): New field dirname.
7879 source.c (open_source_file): New function.
7880 source.c: Use open_source_file instead of openp where appropriate.
7881
7882 * defs.h (TARGET_CHAR_BIT): Define.
7883
7884 Sun Mar 4 13:11:48 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7885
7886 * dbxread.c (fill_symbuf): Print error messages nicely.
7887
7888 * Makefile.dist (SFILES): Put standalone.c at end.
7889
7890 * Makefile.dist (alldeps.mak): Put out backslash after arm-convert.s.
7891
7892 * symtab.{c,h} (builtin_type_error): New type.
7893 symseg.h (type_code): Add TYPE_CODE_ERROR.
7894 valprint.c (val_print, type_print_base),
7895 values.c (using_struct_return, set_return_value):
7896 Check for and deal with TYPE_CODE_ERROR.
7897 dbxread.c (error_type): New function
7898 (read_type and subroutines): Call error_type instead of error.
7899
7900 * dbxread.c (read_huge_number): New function.
7901 (read_range_type): Use read_huge_number and check results
7902 to see if it is a large integral type.
7903
7904 * symmisc.c: Remove symseg stuff.
7905
7906 * Gould NP1 changes from (or inspired by) chpmjd@gdr.bath.ac.uk
7907 dbxread.c (read_dbx_symtab) [N_NBSTS]:
7908 Treat this and N_NBLCS like N_LCSYM, etc.
7909 (process_one_symbol) [BLOCK_ADDRESS_ABSOLUTE]: New code.
7910 m-npl.h (USE_STRUCT_CONVENTION): Add.
7911 (IGNORE_SYMBOL): Add 0xa4.
7912 (END_OF_TEXT_DEFAULT): Remove.
7913 (STRING_TABLE_OFFSET): don't add sizeof(int).
7914 [!HAVE_VPRINTF]: Define vprintf to be doprnt, not printf.
7915 (BLOCK_ADDRESS_ABSOLUTE): Define.
7916 (BREAKPOINT): Pad to size of machine word.
7917 (SAVED_PC_AFTER_CALL): Remove ` at start of line (!).
7918 (R2_REGNUM): Define.
7919 (SP_REGNUM, FP_REGNUM): Switch definitions.
7920 (REGISTER_U_ADDR): Use FP_REGNUM in place of SP_REGNUM.
7921 (STORE_STRUCT_RETURN, EXTACT_RETURN_VALUE, STORE_RETURN_VALUE,
7922 call function stuff):
7923 Replace bogus definitions with correct ones for NP1.
7924 (CANNOT_EXECUTE_STACK): Define.
7925 (FRAME_LOCALS_ADDRESS): Don't add 80.
7926 (FRAME_FIND_SAVED_REGS): Also get SP.
7927 gould-pinsn.c (findframe): Move framechain declaration outside #if 0.
7928 infptrace.c (write_inferior_memory): Check addr against text_end
7929 and use PT_WRITE_I or PT_WRITE_D as appropriate.
7930 (store_inferior_registers): Don't try to write registers in
7931 CANNOT_STORE_REGISTER.
7932 m-npl.h (CANNOT_STORE_REGISTER): Define.
7933 npl-opcode.h (lil): 0xf8080000 -> 0xf80b0000.
7934
7935 * munch: Distinguish between BSD and System V nm by actually
7936 seeing what output from nm looks like.
7937
7938 Fri Mar 2 13:43:36 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7939
7940 * printcmd.c (print_frame_args): Change highest_offset to point
7941 to next unprinted arg.
7942
7943 * main.c (main): Print "type help for list of commands" along
7944 with the version. Follow it with a blank line.
7945
7946 Thu Mar 1 14:49:26 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7947
7948 * valprint.c: Move print_address for function from value_print
7949 to val_print.
7950
7951 Wed Feb 28 15:06:12 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7952
7953 * Makefile.dist (m-sun4os4.h): Depend on m-sparc.h
7954
7955 * Makefile.dist (version.c): Depend on Makefile.dist, not Makefile.
7956
7957 * Makefile.dist: Change MAKEFILES to Makefiles.
7958
7959 * symtab.h: Declare get_sym_file.
7960 core.c: Include symtab.h.
7961
7962 * Move signal name stuff from utils.c to signame.c
7963 Move signal name stuff from defs.h to signame.h.
7964 Makefile.dist (SFILES, HFILES, OBS): Add signame.{c,h,o}.
7965
7966 Mon Feb 26 12:03:12 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7967
7968 * command.c (add_cmd): Don't call savestring on name.
7969
7970 Sun Feb 25 15:52:18 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7971
7972 * printcmd.c (print_frame_args): Make highest_offset an int.
7973 New variable args_printed.
7974 (print_frame_nameless_args): Remove parameter end and add num
7975 and first.
7976 (print_frame_args): Change call to print_frame_nameless_args.
7977
7978 Fri Feb 23 21:40:15 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7979
7980 * stack.c (up_command, down_command):
7981 Only print stack frame if from_tty.
7982
7983 Thu Feb 22 12:01:36 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7984
7985 * expread.y: Inlcude value.h and don't cast return value from
7986 lookup_internalvar.
7987
7988 * infrun.c: Remove code in #ifdef UMAX_PTRACE.
7989
7990 * values.c (convenience_info): Print in form "$foo = 5".
7991 Don't print "Debugger convenience variables:" before first one.
7992
7993 * Makefile.dist: Remove ADD_FILES from CLIBS.
7994 (gdb, kdb, xgdb): Put in ADD_FILES as well as CLIBS.
7995
7996 * m-pyr.h: #if 0 out call dummy stuff.
7997 Put in POP_FRAME which just calls error().
7998 valops.c: If CALL_DUMMY is not defined, put in dummy call_function
7999 which just prints an error message.
8000
8001 Tue Feb 20 22:11:40 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
8002
8003 * breakpoint.c (commands_command): Add arg from_tty.
8004
8005 * main.c (main): Put if (!setjmp (to_top_level)) around calls
8006 to *_command made in response to command line arguments.
8007
8008 Mon Feb 19 13:58:28 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
8009
8010 * main.c (main): Use getopt_long_only. Move one-character options
8011 to long_options. Remove entries which are just unambiguous
8012 abbreviations of other options.
8013
8014 * command.h: Add types cmd_types and var_types.
8015 Add fields type, var_type, and var to struct cmd_list_element.
8016 command.c (add_set_cmd, add_set_from_show): New functions.
8017 (add_cmd): Set c->var_type.
8018 (add_abbrev_cmd): Call add_cmd instead of duplicating code.
8019 main.c: Add showlist.
8020 Move parse_binary_operation from main.c to command.c.
8021 command.c (do_setshow_command): New function.
8022 gdbcmd.h: New file.
8023 Makefile.dist: Add gdbcmd.h.
8024 many files: Include gdbcmd.h, use add_set_cmd and add_show_from_set.
8025 Replace info * with show * where appropriate.
8026 utils.c (fputs_filtered): Use UINT_MAX in lines_per_page to mean
8027 no paging.
8028 defs.h: Define UINT_MAX.
8029 infcmd.c (run_command): Use execute_command, not set_args_command.
8030 main.c (execute_command): Call do_setshow_command if necessary.
8031 main.c (show_command, show_history): New functions.
8032 main.c (initialize_main): Call add_prefix_cmd
8033 for show and show history.
8034
8035 * coffread.c (enter_linenos): Print error if
8036 file_offset < linetab_offset.
8037
8038 Sun Feb 18 15:37:05 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
8039
8040 * convex-dep.c (comm_registers_info): Fix typo. ("argc"->"arg").
8041
8042 Wed Feb 14 20:45:14 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
8043
8044 * config.gdb: Create Makefile with make.
8045
8046 * Makefile.dist, config.gdb: Move "srcdir=" line from Makefile.dist
8047 to new file Makefile.srcdir.
8048
8049 * valprint.c: Include <errno.h>.
8050
8051 * value.h: Declare value_coerce_function.
8052
8053 * findvar.c: Add missing " after #include "gdbcore.h
8054
8055 * main.c (main): Re-write command parsing to use getopt.
8056 On "gdb +help" print options with '+' not '-'.
8057 Makefile.dist: Add getopt.
8058
8059 Tue Feb 13 00:08:27 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
8060
8061 * Makefile.dist: Add "srcdir=."
8062 config.gdb: Edit srcdir= rather than adding it to the beginning.
8063
8064 * pyr-dep.c: Make global_reg_offset, last_frame_offset not static.
8065 Move definition of reg_stack_offset to core.c [REG_STACK_SEGMENT].
8066
8067 * config/pyramid: Print message about alloca.
8068
8069 * breakpoint.c (clear_command): When printing "no breakpoint"
8070 error, only use arg if non-NULL.
8071
8072 * core.c (read_memory): Rename to read_memory_noerr.
8073 (read_memory): New function which calls read_memory and checks for err.
8074 gdbcore.h: Declare all extern core.c functions.
8075 move myread from core.c to utils.c.
8076 declare it in defs.h.
8077 (read_memory_integer): move from infcmd.c to core.c.
8078 gdbcore.h: Declare it.
8079 Many places: Remove error checking on read_memory, or call
8080 read_memory_noerr instead. Include "gdbcore.h" if calling either.
8081
8082 * value.h (COERCE_ARRAY): Coerce functions to function pointers.
8083 valops.c (value_coerce_function): New function.
8084
8085 * core.c, convex-dep.c, arm-dep.c (xfer_core_file): Return EIO
8086 if address out of bounds.
8087
8088 * m-arm.h, arm-dep.c arm-pinsn.c arm-opcode.h: New files.
8089 dbxread.c, m-convex.h (VARIABLES_INSIDE_BLOCK): Add gcc_p parameter.
8090 Makefile.dist (alldeps.mak): Special case for arm-convert.s.
8091 dbxread.c (define_symbol): Check for local based on it not
8092 being any one of the known deftypes.
8093 values.c (using_struct_return): Use new macro USE_STRUCT_CONVENTION.
8094
8095 * Makefile.dist, config.gdb: Put in srcdir stuff.
8096
8097 Mon Feb 12 22:46:16 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
8098
8099 * breakpoint.c: Add addr_string and cond_string fields to
8100 struct breakpoint.
8101 (break_command_1): Set them. Use mention ().
8102 (mention): Create with code from break_command_1.
8103 (breakpoint_re_set): New function.
8104 (breakpoint_clear): Remove.
8105 (condition_command): Set cond_string.
8106 (breakpoint_delete): Free cond_string and addr_string.
8107 Declare parse_c_1's type and remove casts to struct expression *.
8108 symmisc.c (free_all_symtabs): Don't call breakpoint_clear.
8109 dbxread.c, coffread.c (reread_symbols): Call breakpoint_re_set,
8110 Include breakpoint.h.
8111 breakpoint.h: New file.
8112 dbxread.c: Move declaration of symmisc.c functions to symtab.h.
8113
8114 Sun Feb 11 17:29:23 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
8115
8116 * symtab.c: Make lookup_block_symtab extern.
8117 symtab.h: Declare it.
8118 valops.c (value_of_this): Use it.
8119
8120 Fri Feb 9 08:59:37 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
8121
8122 * config/hp300hpux: Print message telling people to use gcc.
8123
8124 * value.h: Declare print_floating.
8125 printcmd.c (print_scalar_formatted, case 'f'): Use print_floating.
8126 valprint.c (val_print, case TYPE_CODE_FLT): Use print_floating.
8127 valprint.c (print_floating): Make this function out of is_nan
8128 and the code which was in val_print.
8129 Put parentheses around high & 0xfffff.
8130 Print sign and fraction for NaN's.
8131 Print 17 digits not 16 for doubles.
8132 (is_nan): Remove.
8133 m-news.h, m-sun3.h: Define IEEE_FLOAT.
8134
8135 * Rename gld-pinsn.c to gould-pinsn.c.
8136 config/{pn,npl}: Change name of gld-pinsn.c
8137
8138 Tue Feb 6 00:25:36 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
8139
8140 * infptrace.c: Define PT_ATTACH if not defined.
8141 m-hp300hpux.h: Define ATTACH_DETACH.
8142
8143 * main.c (initialize_main): Change alias class to aliases.
8144
8145 * dbxread.c: Search and destroy references to symsegs.
8146 Also remove some #if 0'd code.
8147
8148 * core.c: Remove reread_exec.
8149 dbxread.c (reread_symbols): New function.
8150 dbxread.c (symbol_file_command): Set symfile_mtime.
8151 coffread.c: Same.
8152 infcmd.c (run_command): Call reread_symbols not reread_exec.
8153
8154 * valprint.c (val_print): When printing string after char *, print
8155 it for "" just like any other string.
8156
8157 * core.c (reread_exec): New procedure.
8158 infcmd.c (run_command): Call reread_exec.
8159
8160 * coffread.c (symbol_file_command): Add from_tty.
8161
8162 * dbxread.c (symbol_file_command): Only ask about loading new
8163 symbol table if from_tty.
8164
8165 Mon Feb 5 02:25:25 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
8166
8167 * inflow.c (inferior_died): Call breakpoint_clear_ignore_counts.
8168
8169 * Makefile.dist (OBS): Remove dbxread.o and coffread.o.
8170
8171 * config.gdb: Ignore files ending in '#' in config.
8172
8173 * stack.c (backtrace_command): Add QUIT to get_prev_frame loops.
8174
8175 Sat Feb 3 22:25:09 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
8176
8177 * Makefile.dist (YACC): Don't use -v.
8178
8179 Fri Feb 2 19:26:50 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
8180
8181 * createtags: Only change .o to .c at end of name.
8182
8183 * Makefile.dist (alldeps.mak): new target.
8184 (Makefile): add alldeps.mak.
8185 (SOURCES): remove PINSNS.
8186 (TAGFILES: use ALLPARAM.
8187 (gdb.tar): add config/.
8188
8189 * config.gdb: Check for M_FILE= not #param.h
8190 config/*: Make sure M_FILE= exists with space after M_FILE=.
8191 Makefile.dist (TAGS): Pass M_FILE and DEPFILES.
8192 createtags: Change .o to .c. Remove special tests for dep.c etc.
8193
8194 * dbxread.c, coffread.c: Don't check COFF_FORMAT and READ_DBX_FORMAT.
8195 Makefile.dist: Move {dbx,coff}read.c from SFILES to ALLDEPFILES.
8196 config/*: add dbxread.o or coffread.o to depfiles.
8197
8198 * Makefile.dist (depend): Depend on $(SOURCES), not force.
8199
8200 Thu Feb 1 17:43:54 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
8201
8202 * symmisc.c (print_symbol): Print newline after label.
8203
8204 Wed Jan 31 22:35:38 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
8205
8206 * dbxread.c (read_addl_syms): Remove code that checks for
8207 _etext.
8208 Move end_of_text_addr into read_dbx_symtab.
8209 (read_dbx_symtab): #if 0 out code which checks for _etext.
8210
8211 Tue Jan 30 15:40:19 1990 Jim Kingdon (kingdon at albert.ai.mit.edu)
8212
8213 * Makefile.dist (gdb.tar): Use readline's "make readline.tar"
8214 instead of having a list of readline files.
8215
8216 * infrun.c (normal_stop): #if 0 out "you have found a bug in sh".
8217
8218 * munch (-DSYSV): Check for .text at end of name.
8219 Optionally allow extra underscore before initialize.
8220 Remove space between #! and /bin/sh.
8221
8222 * m-merlin.h: Put in clarifying comments about SHELL_FILE.
8223 Makefile.dist (install): Execute M_INSTALL.
8224 config/merlin: Define M_INSTALL.
8225
8226 Mon Jan 29 04:32:09 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
8227
8228 * inflow.c: Change all references to signal handlers from
8229 int (*)() to void (*)().
8230
8231 * main.c: Declare init_signals before use & make it void.
8232 Declare initialize_all_files.
8233
8234 * Makefile.dist (config.status): New target.
8235
8236 Sat Jan 27 00:19:50 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
8237
8238 * defs.h (enum command_class): Remove comma after last element.
8239
8240 * Makefile.dist (gdb.tar.Z): Use compress <foo >bar rather
8241 than deleting gdb.tar.Z before starting.
8242
8243 * dbxread.c (process_one_symbol): Compare context_stack_depth
8244 with !VARIABLES_INSIDE_BLOCK, not VARIABLES_INSIDE_BLOCK.
8245
8246 * mcheck.c: Put whole file in #if defined MALLOC_RANGE_CHECK.
8247
8248 * mcheck.c (checkhdr): Call fatal_dump_core not abort.
8249
8250 * mcheck.c: Copy from malloc distribution.
8251
8252 * main.c (main): Call init_malloc ().
8253
8254 * main.c (initialize_signals): Rename to init_signals.
8255
8256 Fri Jan 26 00:53:23 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
8257
8258 * *dep.c: Make core_file_command return void.
8259
8260 * gdbcore.h [!KERNEL_U_ADDR]: Declare kernel_u_addr.
8261 infptrace.c [!KERNEL_U_ADDR]: Make it extern.
8262
8263 * altos-dep.c (NBPG, UPAGES): Wrap #define in #if !defined.
8264
8265 * m-pn.h (GOULD_PN): Define.
8266 *-pinsn.c: Include actual opcode table not just opcode.h
8267
8268 * main.c [ALIGN_STACK_ON_STARTUP]: New code.
8269 m-i386.h: Define ALIGN_STACK_ON_STARTUP.
8270
8271 * m-merlin.h (NO_SIGINTERRUPT, SHELL_FILE): Define.
8272
8273 * Move code from infptrace [USE_PTRACE_GETREGS] to sun3-dep.c.
8274 m-sun{2,3}.h, m-sparc.h: Define FETCH_INFERIOR_REGISTERS.
8275
8276 * Makefile.dist, config.gdb, config/*:
8277 Re-write to use machine-dependent makefiles instead of cpp.
8278
8279 * m-hp300hpux.h: Define FETCH_INFERIOR_REGISTERS.
8280 infptrace.c: Put {fetch,store}_inferior_registers inside
8281 #if !defined FETCH_INFERIOR_REGISTERS.
8282
8283 * Split execcore.c into exec.c and coredep.c.
8284 Move a bunch of stuff from coredep.c and *dep.c to gdbcore.h.
8285
8286 * infptrace.c ({fetch,store}_inferior_registers):
8287 Use U_REGS_OFFSET to set offset.
8288 m-umax.h: Define U_REGS_OFFSET.
8289
8290 * m-umax.h: Define PTRACE_{ATTACH,DETACH}.
8291
8292 * m-i386.h (N_SET_MAGIC): Define.
8293 m-i386gas.h: add #undef N_SET_MAGIC.
8294
8295 Thu Jan 25 18:39:45 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
8296
8297 * m-hp300bsd.h: Remove KERNEL_U_ADDR.
8298
8299 * infptrace.c [!KERNEL_U_ADDR]: Get address of kernel u area
8300 at runtime.
8301
8302 * infptrace.c: Replace numbers with PT_KILL, etc.
8303 (store_inferior_registers): Loop for as many words are in the register.
8304
8305 * infptrace.c [NO_SINGLE_STEP]: Call single_step().
8306
8307 * kill_inferior{,_fast}: Declare as returning void.
8308
8309 * m-sun3.h (USE_PTRACE_GETREGS): Define.
8310
8311 * execcore.c: Add IS_OBJECT_FILE & related stuff.
8312
8313 * infptrace.c: Include <sys/ptrace.h>.
8314 [ATTACH_DETACH] [USE_PTRACE_GETREGS]: New code.
8315
8316 * Split default-dep.c into infptrace.c and execcore.c.
8317
8318 * valprint.c [IEEE_FLOAT]: Change void * to char *.
8319
8320 * breakpoint.c: Change printf_filtered(%s) to fputs_filtered.
8321
8322 Wed Jan 24 00:35:52 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
8323
8324 * dbxread.c (symbol_file_command): When freeing everything, free
8325 the string table too.
8326
8327 * Makefile.dist (gdb1): add "rm -f gdb1".
8328
8329 * printcmd.c (print_scalar_formatted): If size is 0, use 'b'
8330 'h', 'w', or 'g' depending on the type.
8331
8332 * stack.c (backtrace_command): Read in symbols for frames we'll
8333 print before printing them.
8334
8335 * valops.c (value_at): Don't print "I/O error" on EIO from
8336 ptrace. Don't print "out of bounds" for any ptrace error
8337 except EIO.
8338
8339 * valprint.c (type_print_base, case TYPE_CODE_ENUM):
8340 Print "FOO = 5" not "FOO : 5".
8341
8342 * symtab.{c,h}: Make lookup_misc_func extern.
8343
8344 * Makefile.dist: Define VERSION in makefile, and generate
8345 version.c automatically.
8346 (gdb.tar): Use gdb-$(VERSION), not dist-gdb.
8347
8348 * expread.y (yylex): Use lookup_primitive_typename to
8349 cut down on calls to lookup_symbol.
8350 symtab.{c,h} (lookup_primitive_typename): New function.
8351 (lookup_typename): Use it.
8352
8353 * symtab.{c,h} (check_stub_type): New function.
8354 valprint.c (type_print_base, val_print, type_print_derivation_info),
8355 values.c (allocate_value): Call it.
8356
8357 * printcmd.c (whereis_command): New function.
8358 symtab.c (lookup_symbol): Add symtab parameter.
8359 various: Pass additional argument to lookup_symbol.
8360 symseg.h (struct symbol): Add line field.
8361 dbxread.c (define_symbol): Set sym->line.
8362
8363 * dbxread.c (symbol_file_command): Read string table into
8364 malloc'd memory (symfile_string_table) and leave it there.
8365 (psymtab_to_symtab): Use symfile_string_table.
8366
8367 * utils.c (sig_abbrev): Return NULL if not found.
8368 infrun.c (sig_print_{header,info}): Consolidate duplicated
8369 code from handle_command, signals_info.
8370 (sig_print_info): Just print number if no name from sig_abbrev.
8371
8372 * Makefile.dist (OTHERS): Add ChangeLog-3.x
8373
8374 * infrun.c (restore_inferior_status): #if 0 out
8375 "Unable to restore previously selected frame" error message.
8376
8377 * infrun.c (signals_info, handle_command): Print signal
8378 abbrevs along with numbers.
8379
8380 * infrun.c (handle_command): Accept symbol signal names.
8381
8382 * utils.c (sig_{number,abbrev}, init_sig): New functions.
8383 _initialize_utils: Call init_sig for each signal.
8384 defs.h: Declare them.
8385
8386 * default-dep.c (read_inferior_memory): Check quit_flag in
8387 fetch loop.
8388
8389 * Changes for lazy fetching (speeds things up for big objects):
8390 value.h (struct value): New field lazy.
8391 VALUE_CONTENTS_RAW, VALUE_LAZY, value_at_lazy: New.
8392 findvar.c (read_var_value): Set lazy instead of fetching.
8393 various: Copy into VALUE_CONTENTS_RAW, not VALUE_CONTENTS.
8394 valops.c: Add value_at_lazy, value_lazy.
8395 various: Call value_at_lazy instead of value_at.
8396
8397 * symtab.h (LONGEST): Define.
8398
8399 * m-*.h (LONGEST, BUILTIN_TYPE_LONGEST): Delete (in symtab.h).
8400
8401 * infrun.c (wait_for_inferior): #if 0 out stop if ABOUT_TO_RETURN
8402
8403 * version.c: Change version number to 4.0development
8404
8405 For older changes see ChangeLog-3.x
8406 \f
8407 Local Variables:
8408 mode: indented-text
8409 left-margin: 8
8410 fill-column: 74
8411 version-control: never
8412 End:
This page took 0.208036 seconds and 4 git commands to generate.