1 Thu May 9 14:13:08 1996 Stu Grossman (grossman@critters.cygnus.com)
3 * Makefile.in, breakpoint.c, corelow.c, fork-child.c, inflow.c,
4 infrun.c, mac-nat.c, procfs.c, remote.c, sol-thread.c, thread.c,
5 win32-nat.c, config/nm-lynx.h: Rename thread.h to gdbthread.h to
6 avoid conflict with Solaris /usr/include/thread.h.
8 Thu May 9 12:33:32 1996 Rob Savoye <rob@chinadoll.cygnus.com>
10 * abug-rom.c: Config file for the older style ABug monitor that
11 runs on the mvme13x boards.
12 * config/m68k/monitor.mt: Add abug support for m68k cross
15 Wed May 8 20:33:24 1996 Fred Fish <fnf@cygnus.com>
17 * infcmd.c (do_registers_info): Always print the raw floating
18 point value's bytes in big endian order, so the the leftmost bit
19 is the most significant.
20 * breakpoint.c (clear_momentary_breakpoints): Remove dead code
21 that is referenced nowhere else.
22 (set_breakpoint): Ditto.
23 (do_enable_breakpoint): Created from enable_once_breakpoint
24 with a couple of changes.
25 (enable_breakpoint): Call do_enable_breakpoint with an appropriate
26 bpdisp enum value to set disposition of breakpoint.
27 (enable_once_breakpoint): Ditto.
28 (enable_delete_breakpoint): Ditto.
29 * breakpoint.h (clear_momentary_breakpoints): Remove prototype.
30 * symtab.c (find_pc_line): Improve comments.
31 * gdbtk.c: Fix a couple of misspellings.
34 Tue May 7 18:37:06 1996 Stan Shebs <shebs@andros.cygnus.com>
36 * target.c (debug_to_xfer_memory): Insert line breaks when
37 dumping the memory block.
39 Mon May 6 13:52:52 1996 Stu Grossman (grossman@critters.cygnus.com)
41 * fork-child.c (fork_inferior), inferior.h: init_trace_fun now
42 returns a possibly modified pid.
43 * inftarg.c (ptrace_him): Now returns pid;
44 * m3-nat.c (m3_trace_him): Now returns pid;
45 * infcmd.c (run_command): Minor cleanup.
46 * infrun.c (wait_for_inferior): Add another check for one_stepped
47 near where we read the pc to avoid erroneously setting
48 random_signal for multi-threaded support.
49 * procfs.c: Add support for Solaris LWPs. Remove def of
50 LOSING_POLL. Many cleanups... Several workarounds for Solaris
51 lossage. System call entry and exit are now handled by
52 dynamically registered handlers.
53 * (syscallname): Don't barf when handed an unknown syscall
55 * (info_proc_syscalls): Ditto.
56 * sol-thread.c: New file. Implements Solaris thread support.
57 * symfile.c (symbol_file_add): Add call to target_new_objfile to
58 notify target-dependent code about new symbol tables.
59 * (clear_symtab_users): Call target_new_objfile to notify it of
60 the removal of all symbol tables.
61 * target.c (push_target): Make sure that to_close is non-zero
63 * target.h (target_new_objfile): Provide default.
64 * config/alpha/nm-osf2.h: Define LOSING_POLL because this version
65 of OSF can't hack using poll with /proc.
66 * config/sparc/nm-sun4sol2.h (target_new_objfile): Define to be
67 sol-thread-new-objfile.
68 * config/sparc/sun4sol2.mh: Add sol-thread.o to NATDEFFILES, and
69 add libthread_db.so.1 to NAT_CLIBS.
70 * config/sparc/tm-sun4sol2.h: Define PIDGET, TIDGET, and
73 Sat May 4 02:13:34 1996 N Srin Kumar <nsrin@wipinfo.soft.net>
75 * procfs.c (remove_fd): Fix copy of fds to fill hole left after
76 removal of the requested fd.
78 Mon May 6 07:52:48 1996 Michael Meissner <meissner@tiktok.cygnus.com>
80 * rs6000-tdep.c (_initialize_rs6000_tdep): Don't do XCOFF specific
83 * config/powerpc/tm-ppc-eabi.h: Define ELF_OBJECT_FORMAT.
86 Thu May 2 19:17:49 1996 Stan Shebs <shebs@andros.cygnus.com>
88 * gdbtk.tcl (debug_interface): New global, use to aid debugging.
89 (insert_breakpoint_tag, delete_breakpoint_tag): Fix range.
90 (file_popup_menu): Delete, never used.
91 (listing_window_popup): Rename from listing_window_button_1,
92 remove breakpoint toggling code.
93 (toggle_breakpoint): New procedure.
94 (create_file_win): Bind popup menu to button 2, toggle breakpoints
95 with button 1 in breakpoint area, add display of tagged areas if
99 Thu May 2 12:46:14 1996 Jeffrey A Law (law@cygnus.com)
102 * breakpoint.h (enum bpdisp): Add del_at_next_stop.
103 * breakpoint.c (insert_breakpoints, watchpoint_check,
104 bpstat_stop_status): Avoid bad references to memory freed via
105 delete_breakpoint on watchpoints going out of scope.
106 Do not delete these watchpoints, disable them and change their
107 disposition to del_at_next_stop instead.
108 (breakpoint_auto_delete): Delete all breakpoints whose disposition
110 (breakpoint_init_inferior): Use switch to avoid reference to
111 already deleted breakpoint.
113 Wed May 1 17:29:18 1996 Fred Fish <fnf@cygnus.com>
115 * Makefile.in (rs6000-nat.o): Depend on xcoffsolib.h.
116 * config/rs6000/rs6000.mh (NATDEPFILES): Move xcoffread.o ...
117 * config/rs6000/rs6000.mt (TDEPFILES): ... to here.
118 * xcoffsolib.c (xcoff_relocate_symtab_hook): Define and initialize.
119 (solib_info): Call xcoff_relocate_symtab via the hook.
120 (sharedlibrary_command): Ditto.
121 * xcoffread.c: Remove all FAKING_RS6000 comments and defines.
122 (xcoff_add_toc_to_loadinfo_hook): Define and initialize here.
123 (xcoff_init_loadinfo_hook): Define and initialize here.
124 (scan_xcoff_symtab): Call xcoff_add_toc_to_loadinfo via the hook.
125 (xcoff_initial_scan): Call xcoff_init_loadinfo via the hook.
126 * xcoffsolib.h (xcoff_relocate_symtab_hook): Declare extern func.
127 * rs6000-tdep.c (_initialize_rs6000_tdep): Add initializations
128 of xcoff_add_toc_to_loadinfo_hook and xcoff_init_loadinfo_hook.
129 * rs6000-nat.c (_initialize_core_rs6000): Add initialization
130 of xcoff_relocate_symtab_hook.
132 Tue Apr 30 13:22:02 1996 Michael Meissner <meissner@tiktok.cygnus.com>
134 * configure (powerpcle-*-solaris*): Add Solaris support.
136 * config/powerpc/{solaris.m[ht],tm-solaris.h}: New files for
139 Mon Apr 29 16:17:31 1996 Dawn Perchik <dawn@cygnus.com>
141 * c-valprint.c (c_val_print): Fix printing for arrays defined
144 Sun Apr 28 15:08:05 1996 Stan Shebs <shebs@andros.cygnus.com>
146 Support for bi-endian remote breakpoints.
147 * remote.c (big_break_insn, little_break_insn): New globals.
148 (break_insn): Remove.
149 (remote_insert_breakpoint, remote_remove_breakpoint): Use own
150 code if REMOTE_BREAKPOINT defined, otherwise call memory
151 breakpoint functions.
152 * config/sh/tm-sh.h (REMOTE_BREAKPOINT): Remove.
153 (BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT): Define.
155 * mon960-rom.c (mon960_cmds): Remove forward decl.
156 (mon960_load): Use current_monitor instead of mon960_cmds.
157 (mon960_regnames): Remove backslashes from line ends.
158 (_initialize_mon960): Fix documentation string.
160 Sun Apr 28 12:10:35 1996 Fred Fish <fnf@cygnus.com>
162 * symfile.h (psymbol_allocation_list): Expand comments which
163 describe the psymbol allocation list and how each field is
166 Sun Apr 28 03:44:30 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
168 * breakpoint.c (delete_breakpoint): Fix bpt->val, bpt->exp
170 (breakpoint_re_set_one): Fix b->exp, b->val, b->cond storage leaks.
172 * infcmd.c (run_command), solib.c (locate_base): Check for
173 target_has_execution in addition to inferior_pid, a core file
174 from a threaded program is yielding a non-zero inferior_pid.
176 * sparc-tdep.c (get_saved_register): Handle window registers
177 in a dummy frame correctly.
179 Sat Apr 27 20:38:32 1996 Fred Fish <fnf@cygnus.com>
181 * Makefile.in (CLIBS): Move $(MMALLOC) past all other libs,
182 so that anything that wants an allocation function not yet pulled
183 in, will get it from mmalloc rather than a system library.
184 * Makefile.in (INSTALLED_LIBS): Reorder to match order of CLIBS,
185 to avoid surprising results when used.
187 Sat Apr 27 00:12:05 1996 Dawn Perchik (dawn@cygnus.com)
189 * stabsread.c: Changes and bug fixes for cfront support.
190 Fix bug for class data members.
191 Fix parsing bug when no base classes exist.
192 Fix memory bug - allocate space for cplusplus specific info.
193 Add support for static data.
194 Add prototypes for static functions.
195 Enhance comments to show what each function expects to parse.
197 * stabsread.c(resolve_cont),dbxread.c(resolve_cont): Rename
198 function to resolve_cfront_continuation.
200 Fri Apr 26 23:58:26 1996 Jeffrey A Law (law@cygnus.com)
202 * infrun.c (wait_for_inferior): Call registers_changed when
203 restarting the inferior to get over a nullified instruction.
205 Tue Apr 24 12:12:55 1996 Dawn Perchik (dawn@cygnus.com)
207 * dbxread.c,stabsread.c,gdbtypes.c,partial-stab.h,valops.c:
208 Add new support for parsing cfront stabs.
210 Wed Apr 24 00:32:55 1996 Jeffrey A Law (law@cygnus.com)
212 * infrun.c (wait_for_inferior): Move "have_waited" label
213 outside of #ifdef conditionals. Don't trash the wait status
214 if we get a signal and the current instruction is nullified.
216 Mon Apr 22 20:17:01 1996 Fred Fish <fnf@cygnus.com>
218 * Makefile.in (VERSION): Bump version number to 4.16.1.
219 * NEWS: Update for 4.16 release.
221 Mon Apr 22 16:32:29 1996 Stan Shebs <shebs@andros.cygnus.com>
223 * monitor.h: Clean up comment formatting.
224 (current_monitor): Remove decl.
225 (LOADTYPES, LOADPROTOS, INIT_CMD, etc): Remove definitions.
226 (push_monitor, SREC_SIZE): Remove.
227 * monitor.c: Expand old macro into current_monitor derefs
229 * remote-os9k.c (current_monitor): Remove definition.
231 Mon Apr 22 14:54:45 1996 Mark Alexander <marka@superball.cygnus.com>
233 * corefile.c (specify_exec_file_hook): Allow arbitrary number of
235 (call_extra_exec_file_hooks): New function.
236 * h8300-tdep.c: Lint; add .h files to provide missing declarations,
237 remove unused variables.
238 (set_machine_hook): New function.
239 (_initialize_h8300m): Initialize it.
241 Fri Apr 19 15:03:49 1996 Ian Lance Taylor <ian@cygnus.com>
243 * remote-mips.c (encoding): Don't specify size, to avoid bug in
244 SunOS native compiler.
246 Thu Apr 18 18:46:57 1996 Stan Shebs <shebs@andros.cygnus.com>
248 * monitor.c: Use int rather than LONGEST for values, since
249 the formatting strings are not prepared to accept long longs.
251 Wed Apr 17 20:17:27 1996 Doug Evans <dje@canuck.cygnus.com>
253 * arm-tdep.c (initialize_arm_tdep): Make apcs32 a `zinteger'.
255 Tue Apr 16 17:38:23 1996 Stu Grossman (grossman@critters.cygnus.com)
257 * corelow.c (add_to_thread_list): Make sure reg_sect is non-null
258 before de-referencing it. Prevents deref of NULL pointer if core
259 file lacks .reg section.
260 * defs.h: Rename floatformat_{to from}_long_double to
261 floatformat_{to from}_doublest. Get rid of FLOATFORMAT_{TO
263 * findvar.c (extract_floating store_floating): Change all refs to
264 FLOATFORMAT_{FROM TO}... to floatformat_{from to}_doublest.
265 * utils.c: Change floatformat_{to from}_long_double to
266 floatformat_{to from}_doublest cuz the new routines will use
267 whatever size (double or long double) is appropriate.
268 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
269 REGISTER_CONVERT_TO_RAW): Change FLOATFORMAT... macros to
270 floatformat... routine calls.
272 Mon Apr 15 16:34:11 1996 Per Bothner <bothner@kalessin.cygnus.com>
274 * stabsread.c (read_type): Move handling of '@' from type
275 number handling to handling of types proper (as emitted by gcc!).
276 For typedefs, allocate the typedef type before reading its
277 definition, to properly handling recursive types.
279 Mon Apr 15 11:19:26 1996 Jeffrey A Law (law@cygnus.com)
281 * ch-exp.c (calculate_array_length): Fix prototype.
283 Sat Apr 13 14:21:16 1996 Stu Grossman (grossman@critters.cygnus.com)
285 * remote-nindy.c (nindy_open): Acquire more target state so that
286 user can attach to a previously running program.
287 * (nindy_fetch_registers nindy_store_registers): Get rid of fp
288 conversion code. That's all handled in {extract store}_floating
290 * utils.c (floatformat_to_double): Don't bias exponent when
291 handling zero's, denorms or NaNs.
292 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
293 REGISTER_CONVERT_TO_RAW): Change to using DOUBLST and
294 FLOATFORMAT_TO/FROM_DOUBLEST macros.
295 * config/i960/tm-nindy960.h: Undefine
296 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW, and
297 REGISTER_CONVERTIBLE. These are no longer necessary now that all
298 the magic happens in extract/store_floating.
300 Sat Apr 13 02:58:02 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
302 * eval.c (evaluate_subexp_standard): Report error when attempting to
303 evaluate subscripts for types which cannot be subscripted.
305 * valarith.c (value_x_binop, value_x_unop): Add noside parameter.
306 Return a zero value with the return type of the member function
307 if noside is EVAL_AVOID_SIDE_EFFECTS instead of calling the member
309 * values.h (value_x_binop, value_x_unop): Update prototypes
311 * eval.c (evaluate_subexp_standard): Update all callers of
312 value_x_binop, value_x_unop accordingly.
314 * valarith.c (value_neg, value_complement): Perform ANSI C/C++
315 integral promotion on operands.
317 Fri Apr 12 13:19:27 1996 Fred Fish <fnf@cygnus.com>
319 * README: Update for 4.16 release.
320 * configure.in (AC_CHECK_FUNCS): Also check for sbrk.
321 * configure: Regenerate with autoconf.
322 * config.in: Regenerate with autoheader.
323 * main.c (main): Only use sbrk() when HAVE_SBRK is defined.
324 * top.c (command_loop): Ditto.
326 Fri Apr 12 09:45:29 1996 Stu Grossman (grossman@critters.cygnus.com)
328 * defs.h: Define TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
329 defaults for bi-endian targets. Replace function pointers for
330 floatformat routines with macros. No need for these to be runtime
332 * findvar.c: Get rid of floatformat function pointers. Use
333 macros in extract_floating and store_floating.
334 * remote-nindy.c (nindy_fetch_registers nindy_store_registers):
335 Use floatformat macros.
337 Thu Apr 11 21:28:02 1996 Fred Fish <fnf@cygnus.com>
339 From: Miles Bader <miles@gnu.ai.mit.edu>
340 * configure.in (AC_CHECK_HEADERS): check for endian.h.
341 Use AC_CHECK_TOOL to find AR & RANLIB. Add AC_PROG_AWK.
342 Add host & target cases for i[345]86-*-gnu*.
343 * config.in: Regenerate with autoheader.
344 * configure: Regenerate with autoconf.
345 * Makefile.in (AR, AWK): Set from corresponding autoconf substs.
346 (init.c): Don't scan mig-generated files.
347 * defs.h (endian.h): Include if HAVE_ENDIAN_H defined.
348 * config/nm-m3.h (ATTACH_NO_WAIT): Define.
349 * infcmd.c (attach_command): Use "#ifndef ATTACH_NO_WAIT"
350 rather than "#ifndef MACH".
352 Thu Apr 11 18:49:42 1996 Stan Shebs <shebs@andros.cygnus.com>
354 * remote.c (remotewritesize): New GDB variable, controls size
355 of memory packets sent to the target.
357 Thu Apr 11 13:47:52 1996 Stu Grossman (grossman@critters.cygnus.com)
359 * dcache.c: Add prototypes. Make many functions static.
360 * (dcache_peek dcache_fetch dcache_poke): Make dcache_fetch and
361 dcache_poke call dcache_xfer_memory directly in order to fix
362 problems with turning off dcache. dcache_peek is now unnecessary,
365 * defs.h: Define new macros HOST_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
366 and TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT to specify a pointer
367 to a struct floatformat. This allows for better handling of
368 targets whose floating point formats differ from the host by more
369 than just byte order.
370 * (floatformat_to_long_double floatformat_from_long_double):
371 Prototypes for new functions in utils.c.
372 * (floatformat_to_doublest floatformat_from_doublest): Prototypes
373 for pointers to floating point conversion functions. The actual
374 function uses either double or long double if the host supports it.
375 * findvar.c (floatformat_to_doublest floatformat_from_doublest):
376 Initialize to point at correct function depending on HAVE_LONG_DOUBLE.
377 * (extract_floating store_floating): Rewrite. Now, if host fp
378 format is the same as the target, we just do a copy. Otherwise,
379 we call floatformat_{to from}_doublest.
380 * remote-nindy.c (nindy_xfer_inferior_memory): Change param
381 `write' to `should_write'.
382 * utils.c (floatformat_to_long_double
383 floatformat_from_long_double): New routines that implement long
384 double versions of functions in libiberty/floatformat.c.
385 * config/i960/tm-i960.h (TARGET_LONG_DOUBLE_FORMAT): Define this for
386 i960 extended real (80 bit) numbers.
387 * nindy-share/nindy.c (ninMemGet ninMemPut): Return number of bytes
388 actually read or written.
390 Wed Apr 10 02:56:06 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
392 * ch-valprint.c (chill_val_print): Remove call to calculate_array_length.
393 (calculate_array_length): Move function from here ...
395 * ch-exp.c (calculate_array_length): ... to here.
396 (parse_primval): If we have a symbol with an array type
397 and the length is 0, call calculate_array_length.
399 Tue Apr 9 01:23:05 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
401 * eval.c (evaluate_subexp_standard): In case of TYPE_CODE_SET:
402 Add some checks for powerset compatibility.
404 * valops.c (value_slice): Use lowbound instead of lowerbound for
405 call to slice_range_type to get correct bounds.
407 Mon Apr 8 12:53:56 1996 Fred Fish <fnf@cygnus.com>
409 * Makefile.in (scm-exp.o, scm-lang.o, scm-valprint.o): Add targets and
411 * scm-lang.c (gdb_string.h): Include.
412 * objfiles.c (add_to_objfile_sections): Cast second arg of obstack_grow
413 call to correct type (char *).
414 * cp-valprint.c (cp_print_static_field): Ditto.
415 * somsolib.c (som_solib_create_inferior_hook): Add a declaration
416 for external find_unwind_entry function (from hppa-tdep.c).
417 * remote-pa.c (remote_write_bytes, remote_read_bytes): Change
418 type of second arg to "char *" to be type compatible with
420 (remote_wait): Cast second arg to strtol to correct type.
421 * hppa-tdep.c (compare_unwind_entries): Change argument types to
422 "const void *" to be type compatible with qsort, and then
423 assign to local args prior to use.
425 Mon Apr 8 15:35:52 1996 Jeffrey A Law (law@cygnus.com)
427 * infptrace.c (kill_inferior): Remove call to "kill"; update
430 Mon Apr 8 14:05:07 1996 Geoffrey Noer <noer@cygnus.com>
432 * remote-e7000.c: don't append :23 to target port if __WIN32__
433 is defined (it's WinGDB).
435 Sun Apr 7 22:34:29 1996 Fred Fish <fnf@cygnus.com>
437 From: Miles Bader <miles@gnu.ai.mit.edu>
438 * gnu-nat.c, gnu-nat.h, msg.defs, exc_request.defs, i386gnu-nat.c,
439 msg_reply.defs, notify.defs, process_reply.defs, reply_mig_hack.awk,
440 config/nm-gnu.h, config/i386/{i386gnu.mh, i386gnu.mt, nm-gnu.h,
441 m-i386gnu.h, xm-i386gnu.h}: New files for GNU hurd.
443 Sun Apr 7 13:32:41 1996 Fred Fish <fnf@cygnus.com>
445 * configure.in (case host): Add i386sco5 host.
446 * configure: Regenerate.
448 From: Robert Lipe <robertl@dgii.com>
449 Add support for SCO OpenServer 5 (a.k.a. 3.2v5*) This
450 target is an SVR3.2 with COFF, ELF, and shared libes, but
452 * config/i386/i386sco5.mh: New file.
453 * config/i386/nm-i386sco5.h: New file.
455 Sat Apr 6 08:55:22 1996 Fred Fish <fnf@cygnus.com>
457 * bcache.c (bcache): When size of chunk to cache is exactly equal to
458 BCACHE_MAXLENGTH, stash chunk as unique copy.
460 Sat Apr 6 00:46:26 1996 Fred Fish <fnf@cygnus.com>
462 * symfile.c (INLINE_ADD_PSYMBOL): Remove ifdef.
463 (add_psymbol_to_list): Add an arg for passing CORE_ADDR values and
464 use it, rather than calling add_psymbol_addr_to_list.
465 (add_psymbol_addr_to_list): Delete.
466 (add_psymbol_to_list): Make psymbol static to avoid random data in
467 gaps due to alignment of structure members.
468 * symfile.h (INLINE_ADD_PSYMBOL, ADD_PSYMBOL_TO_LIST,
469 ADD_PSYMBOL_ADDR_TO_LIST): Remove. Real world tests show no
470 performance improvements by inlining via complicated macros and
471 they just make gdb larger and harder to maintain.
472 * dwarfread.c (add_enum_psymbol): Replace ADD_PSYMBOL_TO_LIST
473 and/or ADD_PSYMBOL_ADDR_TO_LIST macro(s) with call to
474 add_psymbol_to_list with appropriate long or CORE_ADDR args.
475 (add_partial_symbol): Ditto.
476 * partial-stab.h: Ditto.
477 * os9kread.c (read_os9k_psymtab): Ditto
478 * mdebugread.c (parse_partial_symbols): Ditto.
479 (handle_psymbol_enumerators): Ditto.
480 (demangle.h): Include.
481 * hpread.c (hpread_build_psymtabs): Ditto.
482 (hpread_build_psymtabs): Ditto.
483 (demangle.h): Include
486 Fri Apr 5 13:44:40 1996 Stan Shebs <shebs@andros.cygnus.com>
488 * gdbtk.c (running_now): New global variable.
489 (gdb_cmd): Test it before executing any command.
490 (gdbtk_call_command): Set it when inferior is running.
491 * gdbtk.tcl (gdbtk_tcl_busy, gdbtk_tcl_idle): Enable and
492 disable interaction with command window's text appropriately.
494 Fri Apr 5 13:25:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
496 * gdbtk.c (SIOCSPGRP, linux): If on Linux, undef SIOCSPGRP, since
497 some versions of the kernel don't support it.
500 Thu Apr 4 20:16:55 1996 Fred Fish <fnf@cygnus.com>
502 * configure.in: Check for setpgid function.
503 * config.in: Regenerate with autoheader.
504 * configure: Regenerate with autoconf.
505 * inflow.c (_initialize_inflow): Only try to use _SC_JOB_CONTROL
506 if it is actually defined.
507 (gdb_setpgid): Use HAVE_SETPGID.
508 * ch-exp.c: Change include of <string.h> to "gdb_string.h".
509 * c-exp.y, f-exp.y, m2-exp.y: Ditto.
510 * c-exp.y, serial.c: Include <ctype.h>.
511 * config/m68k/nm-news.h: Add typedef for pid_t which is
512 apparently missing from <sys/types.h>. Enclose entire
513 file in NM_NEWS_H ifndef and define when included.
514 * config/mips/nm-news-mips.h: Ditto.
515 * config/m68k/tm-m68k.h (REGISTER_CONVERT_TO_VIRTUAL,
516 REGISTER_CONVERT_TO_RAW): Change name of temporary variable.
518 Thu Apr 4 19:04:18 1996 Stan Shebs <shebs@andros.cygnus.com>
520 * arm-xdep.c: Move native-specific code to here from arm-tdep.c.
521 * arm-tdep.c (arm_apcs_32): New global.
522 (arm_addr_bits_remove, arm_saved_pc_after_call,
523 arm_push_dummy_frame, arm_pop_frame): New functions.
524 (arm_skip_prologue): Updated version from Richard Earnshaw.
525 (_initialize_arm_tdep): Add set/show "apcs32".
526 * config/arm/tm-arm.h (ADDR_BITS_REMOVE): Call
527 arm_addr_bits_remove.
528 (SAVED_PC_AFTER_CALL): Call arm_saved_pc_after_call.
529 (frame_find_saved_regs): Declare properly.
530 (PUSH_DUMMY_FRAME): Call arm_push_dummy_frame.
531 (POP_FRAME): Call arm_pop_frame, use ADDR_BITS_REMOVE instead of
533 * config/arm/nm-arm.h: New file.
534 * config/arm/xm-arm.h (KERNEL_U_ADDR, FETCH_INFERIOR_REGISTERS):
535 Move definitions to nm-arm.h.
536 * config/arm/arm.mh (NAT_FILE): Define.
538 * symfile.c (generic_load): Initialize data_count properly.
540 Thu Apr 4 17:17:53 1996 Fred Fish <fnf@cygnus.com>
542 * symmisc.c (print_objfile_statistics): Print memory used by
543 psymbol cache obstack.
545 Thu Apr 4 15:43:07 1996 Stan Shebs <shebs@andros.cygnus.com>
547 * symfile.c (report_transfer_performance): New function.
548 (generic_load): Call it to report transfer rate.
549 * remote-e7000.c (e7000_load): Ditto.
551 Mon Apr 1 16:31:00 1996 Stan Shebs <shebs@andros.cygnus.com>
553 * mpw-make.sed: Change references to config.h to be in objdir,
554 edit out rules to rebuild config.h.
556 Mon Apr 1 08:32:23 1996 Fred Fish <fnf@cygnus.com>
558 * hppa-tdep.c (hppa_pop_frame): Call clear_proceed_status before
561 Sun Mar 31 16:15:43 1996 Fred Fish <fnf@cygnus.com>
563 * hppah-nat.c (store_inferior_registers, store_inferior_registers,
564 fetch_register, child_xfer_memory): Use call_ptrace function supplied
565 by infptrace.c rather than calling ptrace directly.
567 Sun Mar 31 15:39:00 1996 Stan Shebs <shebs@andros.cygnus.com>
569 * mon960-rom.c: Cleanups and elimination of unused code,
570 clarify documentation string.
571 (mon960_serial, mon960_ttyname): Remove.
572 * config/i960/tm-mon960.h (ADDITIONAL_OPTIONS,
573 ADDITIONAL_OPTION_CASES, ADDITIONAL_OPTION_HELP): Remove.
575 Sat Mar 30 11:00:22 1996 Fred Fish <fnf@cygnus.com>
577 * configure.in: Check whether printf family supports printing
578 long doubles or not and define PRINTF_HAS_LONG_DOUBLE if so.
579 * acconfig.h: Provide default undef for PRINTF_HAS_LONG_DOUBLE.
580 * configure: Regenerate.
581 * valprint.c (print_floating): Use PRINTF_HAS_LONG_DOUBLE.
582 * c-exp.y (parse_number): Use PRINTF_HAS_LONG_DOUBLE.
583 * configure.in: Fix have_gregset and have_fpregset autoconf
584 variable names so that they match the pattern required to
587 Fri Mar 29 21:39:56 1996 Fred Fish <fnf@cygnus.com>
589 * core-aout.c (fetch_core_registers): Cast core_reg_size to int
590 before testing against reg_ptr.
591 * eval.c (evaluate_subexp_standard): Cast type of
592 TYPE_FN_FIELD_VOFFSET to int.
593 * findvar.c (extract_signed_integer, extract_unsigned_integer,
594 extract_long_unsigned_integer): Cast type of sizeof to int.
595 * values.c (unpack_field_as_long, modify_field): Ditto.
596 * valops.c (value_assign, call_function_by_hand): Ditto.
597 * infcmd.c (do_registers_info): Ditto.
598 * ser-tcp.c (tcp_open): Ditto.
599 * remote.c (putpkt): Ditto.
600 * dcache.c (dcache_peek): Ditto.
601 * dcache.c (dcache_poke): Ditto.
602 * m2-exp.y (yylex): Ditto.
603 * gnu-regex.c (re_match_2): Ditto.
604 * f-lang.c (ADD_BF_SYMNUM, saved_bf_list_end, tmp_bf_ptr): Ifdef
605 out unused macro definition and variables.
606 * inftarg.c (proc_wait): Move from main.c to here, and make static.
607 * valprint.c (val_print_string): Change bufsize from int to unsigned.
608 * main.c (wait.h): Include.
609 * top.c (command_line_input): Remove unused variable "c".
610 * f-typeprint.c (f_type_print_varspec_prefix): Add missing enum
611 value TYPE_CODE_TYPEDEF to switch statement.
612 (f_type_print_varspec_suffix): Add missing enum value
613 TYPE_CODE_TYPEDEF to switch statement.
614 * ch-exp.c (parse_primval): Add remaining enumeration values to
615 switch statement, with no specific action.
616 (ch_lex): Add LOC_UNRESOLVED in switch statement.
617 (pushback_token): Ifdef out, since code using it is ifdef'd out.
618 * stabsread.c (cleanup_undefined_types): Remove unused label
620 * objfiles.h (print_symbol_bcache_statistics): Add prototype.
621 * maint.c (objfiles.h): Include.
622 (maintenance_print_statistics): Remove unused variable "temp".
623 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
624 unused variable "found_file_symbol".
625 * m2-exp.y (yylex): Add LOC_UNRESOLVED case to switch.
626 * language.c (lang_bool_type): Use existing function local type
627 variable rather than create block local variables.
628 * solib.c (disable_break): Enclose in ifndef SVR4_SHARED_LIBS.
629 * infptrace.c (wait.h, command.h): Include.
630 * ser-tcp.c (gdb_string.h): Include
631 * i386-tdep.c (codestream_seek): Change "place" to CORE_ADDR.
632 (i386_get_frame_setup): Change "pc" from int to CORE_ADDR.
633 * command.c (complete_on_enum): Make assignment used as truth value
634 explictly check against NULL.
636 * infrun.c (wait_for_inferior): Ifdef out prologue_pc since code
637 that uses it is ifdef'd out.
638 * parser-defs.h: Add prototype for write_dollar_variable.
639 * infrun.c: Add prototype for write_pc_pid.
640 * breakpoint.h: Add prototype for re_enable_breakpoints_in_shlibs.
641 * symmisc.c (bcache.h): Include.
642 * bcache.h: Add prototype for print_bcache_statistics.
643 * symfile.c: Include <time.h>.
644 * printcmd.c (print_scalar_formatted): Change len to unsigned int.
645 * valarith.c (value_equal): Cast result of TYPE_LENGTH to int.
646 * valarith.c (value_binop): Change result_len, promoted_len1,
647 and promoted_len2 to unsigned int.
648 * valarith.c (value_subscripted_rvalue): Change elt_offs and
649 elt_size to unsigned int.
650 * valops.c (value_array): Change typelength to unsigned int.
651 (destructor_name_p): Change len to unsigned int.
652 * scm-lang.h (scm_parse): Add prototype for scm_unpack.
653 * symfile.c (decrement_reading_symtab): Change return type to void.
654 * valarith.c (value_subscript): Remove unused variable "word".
655 (value_subscript): Remove unused variable "tint".
656 * valops.c (auto_abandon): Ifdef out, since code using it is also
658 * eval.c (init_array_element): Remove unused variable "val".
659 * Makefile.in (values.o): Depends on scm-lang.h.
660 (command.o): Depends upon wait_h.
661 (ser-tcp.o): Depends upon gdb_string.h.
662 (infptrace.o): Depends upon wait_h and command_h.
663 (maint.o): Depends on objfiles.h and symfile.h.
664 * values.c (allocate_repeat_value): Remove unused variable
666 (scm-lang.h): Include.
667 * breakpoint.c (create_longjmp_breakpoint): Enclose in
668 GET_LONGJMP_TARGET define, unused otherwise.
669 * config/i386/nm-linux.h: Add prototypes for i386_insert_watchpoint,
670 i386_remove_watchpoint and i386_stopped_by_watchpoint.
672 Thu Mar 28 12:53:19 1996 Doug Evans <dje@canuck.cygnus.com>
674 * configure.in (sparc64-*-solaris2*): Delete.
675 Stick with sparc-*-solaris2*.
676 * configure: Regenerated.
678 Thu Mar 28 06:51:26 1996 Fred Fish <fnf@cygnus.com>
680 * valops.c (value_assign): Make copy of internal variable value
681 before returning it as a new value, since it is owned by the
682 internal variable and will be freed along with it.
684 Wed Mar 27 08:36:17 1996 Jeffrey A Law (law@cygnus.com)
686 * From Peter Schauer.
687 * breakpoint.c (breakpoint_re_set_one): Keep temporary
688 breakpoints bp_until, bp_finish, bp_watchpoint_cope, bp_call_dummy
689 and bp_step_resume in case breakpoint_re_set_one is called due
690 to a step over a dlopen call.
691 * infrun.c (wait_for_inferior): Always remove breakpoints from
692 inferior in BPSTAT_WHAT_CHECK_SHLIBS case.
694 Tue Mar 26 13:15:32 1996 Fred Fish <fnf@cygnus.com>
696 * config/mips/tm-mips.h (COERCE_FLOAT_TO_DOUBLE): Only prefer
697 non-prototyped case over prototyped case for C.
698 * config/pa/tm-hppa.h (COERCE_FLOAT_TO_DOUBLE): Ditto.
700 Sat Mar 23 17:24:28 1996 Fred Fish <fnf@cygnus.com>
702 * os9kread.c (os9k_process_one_symbol): Note nonportable
703 assumption that an int can hold a char *.
705 * bcache.h (struct hashlink): Wrap data[] inside union with
706 double to force longest alignment.
707 (BCACHE_DATA): New macro to access data[].
708 (BCACHE_ALIGNMENT): New macro to get offset to data[].
709 * bcache.c (lookup_cache, bcache): Use BCACHE_DATA to get
710 address of cached data. Use BCACHE_ALIGNMENT to compute
711 amount of space to allocate for each hashlink struct.
713 Sat Mar 23 12:14:02 1996 Fred Fish <fnf@cygnus.com>
715 * ch-lang.c (evaluate_subexp_chill): Fix typo.
717 Thu Mar 21 08:27:19 1996 Fred Fish <fnf@cygnus.com>
719 * Makefile.in (VERSION): Bump version to 4.15.3
721 Thu Mar 21 10:56:41 1996 Ian Lance Taylor <ian@cygnus.com>
723 * config.in: Rename from config.h.in.
724 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
725 Change CONFIG_HEADERS test in AC_OUTPUT accordingly.
726 * configure: Rebuild.
727 * Makefile.in (stamp-h): Depend upon config.in, not config.h.in.
728 Set CONFIG_HEADERS to config.h:config.in.
730 Tue Mar 19 12:47:51 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
732 * partial-stab.h (case N_ENDM): Finish current partial symbol
733 table for Solaris 2 cc.
735 Tue Mar 19 10:39:15 1996 Jeffrey A Law (law@cygnus.com)
737 * rs6000-nat.c (exec_one_dummy_insn): Don't clobber the
738 PC in the registers array. From Peter Schauer.
740 Mon Mar 18 13:47:09 1996 Fred Fish <fnf@cygnus.com>
742 * symfile.c (reread_symbols): Reinitialize bcache struct
743 members to zero using memset. Also use memset to reinit
744 global_psymbols and static_psymbols, rather than explicitly
745 resetting each structure member.
747 Sat Mar 16 19:47:36 1996 Fred Fish <fnf@cygnus.com>
749 * configure.in: Add fragment to create stamp-h.
751 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
752 * configure.in (AC_CHECK_HEADERS): Check for link.h.
753 * configure: Regenerate with autoconf.
754 * config.h.in: Regenerate with autoheader.
755 * config/i386/nm-linux.h: Include solib.h only if HAVE_LINK_H
757 * solib.c: Exclude most of the code if HAVE_LINK_H is not defined.
758 * config/i386/linux.mh: Reinstate XM_CLIBS, it is needed for
759 older a.out based systems.
761 Sat Mar 16 16:45:43 1996 Fred Fish <fnf@cygnus.com>
763 * config.h.in: New file.
764 * acconfig.h: New file, for autoheader.
765 * configure.in (AC_CONFIG_HEADER): Add, generate config.h.
766 * configure: Regenerate.
767 * Makefile.in (defs_h): Add config.h
768 (distclean): Remove config.h and stamp-h during distclean.
769 (config.h, stamp-h): New targets to remake config.h when necessary.
770 * defs.h (config.h): Include before any other includes or defines.
771 * i386-tdep.c (gdb_string.h): Move include after include of defs.h.
772 * i386v4-nat.c (defs.h): Include before testing HAVE_SYS_PROCFS_H.
774 Sat Mar 16 14:55:27 1996 Fred Fish <fnf@cygnus.com>
776 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
777 * Makefile.in (INSTALLED_LIBS): Make sure that @LIBS@ will not
778 result in an empty line, to work around a bug in native Ultrix 4.4
781 Sat Mar 16 13:33:17 1996 Fred Fish <fnf@cygnus.com>
783 * configure.in: Add gdbserver to configdirs under linux.
784 * configure: Regenerate.
786 Fri Mar 15 12:06:58 1996 J.T. Conklin <jtc@rtl.cygnus.com>
788 * config/i386/nm-nbsd.h (FLOAT_INFO): Comment out.
789 * config/i386/tm-nbsd.h (NUM_REGS): Define.
791 Thu Mar 14 10:31:18 1996 Jeffrey A Law (law@cygnus.com)
793 * solib.c (solib_break_names): Add _r_debug_state for
794 vanilla SVR4 implementations. From Peter Schauer.
796 Mon Mar 11 14:24:57 1996 Dawn Perchik <dawn@critters.cygnus.com>
798 * mon960-rom.c: New file; support mon960 rom monitor on i960.
799 * monitor.c (monitor_debug): Change remotedebug to buffer strings.
800 * monitor.c (monitor_open): Add test for flag MO_NO_ECHO_ON_OPEN before
801 epecting prompt and echo during open.
802 * monitor.c (monitor_stop): Add test for flag MO_SEND_BREAK_ON_OPEN to
803 determine if break should be sent as stop command.
804 * monitor.h: Add flags MO_NO_ECHO_ON_OPEN and MO_SEND_BREAK_ON_OPEN.
805 * i960-tdep.c (mon960_frame_chain_valid): New function for getting
806 stack frame on mon960.
807 * Makefile.in: Add mon960 files.
808 * configure.in: Changed i960-*-coff* and i960-*-elf* to target mon960;
809 added i960-nindy-coff* and i960-nindy-elf* for target nindy.
810 * configure: Regenerated.
811 * config/i960/mon960.mt, config/i960/tm-mon960.h: New files;
812 support mon960 rom monitor on i960.
814 Mon Mar 11 11:02:47 1996 Steve Chamberlain <sac@slash.cygnus.com>
817 * i386-tdep.c (skip_trampoline_code): Fix strncmp length.
818 * win32-nat.c (CHECK, DEBUG*, debug_*): New.
819 (handle_load_dll): Don't reload symbols.
820 (handle_exception): Use the DEBUG_* names.
821 (child_wait): Add DEBUG_* code.
822 (_initialize_inftarg): Add new commands to set debug_ names.
824 Mon Mar 11 09:19:58 1996 Jeffrey A Law (law@cygnus.com)
826 * From Peter Schauer:
827 * breakpoint.c (insert_breakpoints): Use ALL_BREAKPOINTS_SAFE.
828 (bpstat_stop_status): Likewise.
829 (remove_solib_event_breakpoints): Likewise.
830 (clear_momentary_breakpoints): Likewise.
831 (re_enable_breakpoints_in_shlibs): Don't reenable a breakpoint
832 if we still can't read the memory for that breakpoint.
833 (mention): Add bp_shlib_event case to keep gcc quiet.
835 Fri Mar 8 12:08:12 1996 Jeffrey A Law (law@cygnus.com)
837 * breakpoint.h (enum enable): New enum shlib_disabled for
838 shared library breakpoints that have been temporarily disabled.
839 * breakpoint.c: Handle temporarily disabled shared library
840 breakpoints like disabled breakpoints in most places.
841 (insert_breakpoints): Use shlib_disabled to indicate
842 that an unsettable breakpoint is only temporarily disabled.
843 (re_enable_breakpoints_in_shlibs): New function.
844 * corelow.c (solib_add_stub): After adding shared libraries,
845 try to reenable any temporarily disabled breakpoints.
846 * infcmd.c (attach_command): Likewise.
847 * infrun.c (wait_for_inferior): Likewise.
849 Fri Mar 8 11:41:25 1996 Ian Lance Taylor <ian@cygnus.com>
851 * defs.h (extract_long_unsigned_integer): Declare.
852 * findvar.c (extract_long_unsigned_integer): New function.
853 * printcmd.c (print_scalar_formatted): Use it.
854 * valprint.c (val_print_type_code_int): Likewise.
856 Thu Mar 7 17:40:50 1996 Stan Shebs <shebs@andros.cygnus.com>
858 * infcmd.c (do_registers_info): Ignore anonymous registers.
859 * sh-tdep.c (set processor): New command to set specific
861 (sh_reg_names, sh3_reg_names): Arrays of register names for
862 SH and SH3 processors.
863 (sh_set_processor_type): New function.
864 * sh3-rom.c (sh3_open): Call it.
865 (sh3_regname): Add names of all the bank registers.
866 (sh3_supply_register): Clean up formatting.
867 * config/sh/tm-sh.h (NUM_REGS, NUM_REALREGS): Increase to include
869 (REGISTER_NAMES): Add names of bank registers.
870 (FP15_REGNUM): Define.
871 (REGISTER_VIRTUAL_TYPE): Use it.
872 * monitor.c: Clean up some comments.
874 Thu Mar 7 12:09:51 1996 J.T. Conklin <jtc@rtl.cygnus.com>
876 * i386b-nat.c: Revert part of Mar 5 change. FreeBSD collapsed the
877 s* and t* symbols too.
879 Thu Mar 7 15:18:51 1996 James G. Smith <jsmith@cygnus.co.uk>
881 * symfile.c (generic_load): Avoid division by zero.
883 Wed Mar 6 17:57:59 1996 Jeffrey A Law (law@cygnus.com)
885 * breakpoint.c (bfd_lookup_symbol): Provide for all SVR4 systems,
886 not just those with HANDLE_SVR4_EXEC_EMULATORS.
889 * breakpoint.c (internal_breakpoint_number): Move to file scope.
890 (create_solib_event_breakpoint): Use an internal breakpoint number.
892 Wed Mar 6 00:32:44 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
894 * valarith.c (value_in): Change builtin_type_chill_bool to
897 Tue Mar 5 23:48:36 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
899 * ch-exp.c (parse_primval): Handle CARD, MAX, MIN.
900 (match_string_literal): Handle control sequence.
901 (match_character_literal): Deto.
903 * ch-lang.c (chill_printchar): Change formating of nonprintable
904 characters from C'xx' to ^(num).
905 (chill_printstr): Deto.
906 (value_chill_card, value_chill_max_min): New functions to process
907 Chill's CARD, MAX, MIN.
908 (evaluate_subexp_chill): Process UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN.
910 * expression.h (exp_opcode): Add UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN
911 for Chill's CARD, MAX, MIN.
913 * valarith.c (value_in): Add processing of TYPE_CODE_RANGE
914 and change return type from builtin_type_int to
915 builtin_type_chill_bool.
917 Tue Mar 5 18:54:04 1996 Stan Shebs <shebs@andros.cygnus.com>
919 * config/nm-nbsd.h (link_object, lo_name, etc): Move to here
920 from config/nm-nbsd.h.
921 * config/sparc/nm-nbsd.h (regs, fp_status, etc): Move to here
922 from config/sparc/tm-nbsd.h.
924 * config/m68k/nm-hp300hpux.h (FIVE_ARG_PTRACE): Define here
925 instead of in config/m68k/xm-hp300hpux.h.
927 Tue Mar 5 12:05:35 1996 J.T. Conklin <jtc@rtl.cygnus.com>
929 * i386b-nat.c, m68knbsd-nat.c (fetch_core_registers): Provide
930 implementation for NetBSD systems.
932 Mon Mar 4 23:44:16 1996 Per Bothner <bothner@kalessin.cygnus.com>
934 * valarith.c (binop_user_defined_p): Return 0 for BINOP_CONCAT.
935 (value_concat): Handle varying strings (add COERCE_VARYING_ARRAY).
937 * ch-lang.c (evaluate_subexp_chill case MULTI_SUBSCRIPT): Error
938 if "function" is pointer to non-function.
940 Mon Mar 4 17:47:03 1996 Stan Shebs <shebs@andros.cygnus.com>
942 * top.c (print_gdb_version): Update copyright year.
944 Mon Mar 4 14:44:54 1996 Jeffrey A Law (law@cygnus.com)
947 * infrun.c (wait_for_inferior): Remove breakpoints and
948 switch terminal settings before calling SOLIB_ADD.
949 * solib.c (enable_break, SVR4 variant): Don't map in symbols
950 for the dynamic linker, the namespace pollution causes real
953 Sun Mar 3 17:18:57 1996 James G. Smith <jsmith@cygnus.co.uk>
955 * remote-mips.c (common_breakpoint): Explicitly terminate the
958 Wed Feb 28 22:32:18 1996 Stan Shebs <shebs@andros.cygnus.com>
960 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
961 * remote.c (remote_detach): Send a command 'D' to the target
962 when detaching, update the function's comments.
964 Wed Feb 28 15:50:12 1996 Fred Fish <fnf@cygnus.com>
966 * Makefile.in (VERSION): Bump version to 4.15.2 to establish
967 baseline for gdb 4.16 rerelease testing.
969 Wed Feb 28 13:32:05 1996 Jeffrey A Law (law@cygnus.com)
971 * somsolib.c (som_solib_create_inferior_hook): Before returning
972 call clear_symtab_users.
974 Tue Feb 27 00:04:46 1996 Stu Grossman (grossman@critters.cygnus.com)
976 * remote-e7000.c (e7000_open): Delete all breakpoints when
977 connecting to e7000. Change connect message to allow use of
978 monitor.exp in test suite.
979 * (e7000_load): Print transfer rate of download.
980 * symfile.c (generic_load): Print transfer rate of download.
982 Sun Feb 25 13:58:33 1996 Stan Shebs <shebs@andros.cygnus.com>
984 * configure.in (mips*-*-vxworks*): New config.
985 * configure: Regenerated.
987 * config/mips/vxmips.mt, config/mips/tm-vxmips.h: New files.
988 * remote-vxmips.c (vx_convert_to_virtual, vx_convert_from_virtual):
991 Sat Feb 24 12:30:28 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
993 * partial-stab.h (case N_FUN): Function symbols generated
994 by SPARCworks cc have a meaningless zero value, do not update
995 pst->textlow if the function symbol value is zero.
997 * stabsread.c (define_symbol): Initialize SYMBOL_TYPE field
998 for function prototype declaration symbols.
1000 Fri Feb 23 22:33:04 1996 Stu Grossman (grossman@critters.cygnus.com)
1002 * remote-e7000.c (e7000_load): New routine to download via the
1004 * (e7000_wait): Don't backup PC when we hit a breakpoint.
1005 Apparantly new sh2 pods get this right...
1006 * (e7000_ops): Add call to e7000_load.
1008 Thu Feb 22 00:52:42 1996 J.T. Conklin <jtc@rtl.cygnus.com>
1010 * config/m68k/{nbsd.mh,nbsd.mt,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h},
1011 m68knbsd-nat.c: New files, support for NetBSD/m68k.
1013 * configure.in (m68k-*-netbsd*): New config.
1014 * configure: Regenerated.
1016 Wed Feb 21 19:00:21 1996 Fred Fish <fnf@cygnus.com>
1018 * standalone.c (open, _initialize_standalone): Fix obvious typos
1019 reported by Martin Pool <martin@citr.uq.oz.au>.
1021 Wed Feb 21 14:24:04 1996 Jeffrey A Law (law@cygnus.com)
1023 * solib.c (solib_create_inferior_hook): Fix thinko.
1025 Tue Feb 20 23:59:19 1996 Jeffrey A Law (law@cygnus.com)
1027 * solib.c (solib_break_names): Define for Solaris and Linux.
1028 (enable_break): For SVR4 systems, first try to use the debugger
1029 interfaces in the dynamic linker to track shared library events
1030 as they happen, then fall back to BKPT_AT_SYMBOL code. Convert
1031 BKPT_AT_SYMBOL code to use shared library event breakpoints.
1032 (solib_create_inferior_hook): Simplify BKPT_AT_SYMBOL code,
1033 it no longer needs to restart/wait on the inferior.
1034 * symfile.c (find_lowest_section): No longer static.
1035 * symfile.h (find_lowest_section): Corresponding changes.
1037 Tue Feb 20 18:54:08 1996 Fred Fish <fnf@cygnus.com>
1039 * valops.c (COERCE_FLOAT_TO_DOUBLE): Define default value.
1040 (value_arg_coerce): Use COERCE_FLOAT_TO_DOUBLE.
1041 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Define to 1.
1042 * config/mips/tm-mips.h: Ditto.
1043 * config/pa/tm-hppa.h: Ditto.
1044 * config/rs6000/tm-rs6000.h: Ditto.
1045 * config/sparc/tm-sparc.h: Ditto.
1047 Tue Feb 20 17:32:05 1996 J.T. Conklin <jtc@rtl.cygnus.com>
1049 * config/{i386,ns32k}/nbsd.mh (NATDEPFILES): Remove core-aout.o.
1051 * config/nm-nbsd.h (FETCH_INFERIOR_REGISTERS): Defined.
1052 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
1053 #ifdef'd out definitions --- Causes serious gdb failures on
1054 the i386. Need to investigate further before enabling.
1056 * i386b-nat.c (fetch_inferior_registers, store_inferior_registers,
1057 fetch_core_registers): New functions. These functions are defined
1058 if FETCH_INFERIOR_REGISTERS is set. Registers are fetched/stored
1059 with ptrace PT_GETREGS/PT_SETREGS.
1061 Tue Feb 20 16:55:06 1996 Stu Grossman (grossman@critters.cygnus.com)
1063 * findvar.c (extract_floating store_floating): Replace `long
1064 double' with `DOUBLEST'.
1066 Mon Feb 19 15:25:51 1996 J.T. Conklin <jtc@rtl.cygnus.com>
1068 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
1071 Mon Feb 19 10:32:05 1996 Jeffrey A Law (law@cygnus.com)
1073 * symtab.h (looup_minimal_symbol_solib_trampoline): Declare.
1075 * breakpoint.h (remove_solib_event_breakpoints): Declare.
1076 * breakpoint.c (remove_solib_event_breakpoints): New function.
1077 * somsolib.c (solib_create_inferior_hook): Remove all solib event
1078 breakpoints before inserting any new ones. Use a solib event
1079 breakpoint for the breakpoint at "_start".
1080 Remove extraneous "\n" from calls to warning.
1082 * breakpoint.c (breakpoint_1): Add missing "sigtramp" to bptypes
1085 Mon Feb 19 01:09:32 1996 Doug Evans <dje@cygnus.com>
1087 * dwarfread.c (add_partial_symbol): Use ADD_PSYMBOL_ADDR_TO_LIST
1088 for CORE_ADDR values.
1089 (new_symbol): Use SYMBOL_VALUE_ADDRESS for CORE_ADDR values.
1090 * symfile.h (add_psymbol_{,addr}to_list): Add prototypes.
1092 Sun Feb 18 14:37:13 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1094 * mipsread.c (mipscoff_symfile_read): Unconditionally add
1095 alpha coff dynamic symbols for all symbol files. Makes skipping
1096 over the trampoline code work when stepping from a function in a
1097 shared library into a function in a different shared library.
1099 Sun Feb 18 09:27:10 1996 Stu Grossman (grossman@cygnus.com)
1101 * config/sparc/tm-sparc.h: Define PS_FLAG_CARRY. Define
1102 RETURN_VALUE_ON_STACK to return long doubles on the stack.
1104 Sat Feb 17 16:33:11 1996 Fred Fish <fnf@cygnus.com>
1106 * Makefile.in (ch-exp.o): Add dependencies.
1107 (various): Add gdb_string.h to dependencies that need it.
1109 Sat Feb 17 08:57:50 1996 Fred Fish <fnf@cygnus.com>
1111 * symmisc.c (print_symbol_bcache_statistics): Update description for
1112 printing byte cache statistics.
1114 Thu Feb 16 16:02:03 1996 Stu Grossman (grossman@cygnus.com)
1116 * Add native support for long double data type.
1117 * c-exp.y (%union): Change dval to typed_val_float. Use DOUBLEST
1118 to store actual data. Change types of INT and FLOAT tokens to
1119 typed_val_int and typed_val_float respectively. Create new token
1120 DOUBLE_KEYWORD to specify the string `double'. Make production
1121 for FLOAT use type determined by parse_number. Add production for
1122 "long double" data type.
1123 * (parse_number): Use sscanf to parse numbers as float, double or
1124 long double depending upon the type of typed_val_float.dval. Also
1125 allow user to specify `f' or `l' suffix to explicitly specify
1126 float or long double constants. Change typed_val to
1128 * (yylex): Change typed_val to typed_val_int. Also, scan for
1130 * coffread.c (decode_base_type): Add support for T_LNGDBL basic
1132 * configure, configure.in: Add check for long double support in
1134 * defs.h: Define DOUBLEST appropriatly depending on whether
1135 HAVE_LONG_DOUBLE (from autoconf) is defined. Also, fix prototypes
1136 for functions that handle this type.
1137 * expression.h (union exp_element): doubleconst is now type
1139 * m2-exp.y f-exp.y (%union): dval becomes type DOUBLEST.
1140 * findvar.c (extract_floating): Make return value be DOUBLEST.
1141 Also, add support for numbers with size of long double.
1142 * (store_floating): Arg `val' is now type DOUBLEST. Handle all
1144 * parser-defs.h parse.c (write_exp_elt_dblcst): Arg expelt is now
1146 * valarith.c (value_binop): Change temp variables v1, v2 and v to
1147 type DOUBLEST. Coerce type of result to long double if either op
1149 * valops.c (value_arg_coerce): If argument type is bigger than
1150 double, coerce to long double.
1151 * (call_function_by_hand): If REG_STRUCT_HAS_ADDR is defined, and
1152 arg type is float and > 8 bytes, then use pointer-to-object
1153 calling conventions.
1154 * valprint.c (print_floating): Arg doub is now type DOUBLEST.
1155 Use appropriate format and precision to print out floating point
1157 * value.h: Fixup prototypes for value_as_double,
1158 value_from_double, and unpack_double to use DOUBLEST.
1159 * values.c (record_latest_value): Remove check for invalid
1160 floats. Allow history to store them so that people may examine
1161 them in hex if they want.
1162 * (value_as_double unpack_double): Change return value to DOUBLEST.
1163 * (value_from_double): Arg `num' is now DOUBLEST.
1164 * (using_struct_return): Use RETURN_VALUE_ON_STACK macro (target
1165 specific) to expect certain types to always be returned on the stack.
1167 Fri Feb 16 14:00:54 1996 Fred Fish <fnf@cygnus.com>
1169 * bcache.c, bcache.h: New files to implement a byte cache.
1170 * Makefile.in (SFILES): Add bcache.c.
1171 (symtab_h): Add bcache.h.
1172 (HFILES_NO_SRCDIR): add bcache.h
1173 (COMMON_OBJS): Add bcache.o
1174 (bcache.o): New target.
1175 * dbxread.c (start_psymtab): Make global_syms & static_syms
1176 type "partial_symbol **".
1177 * hpread.c (hpread_start_symtab): Ditto.
1178 * os9kread.c (os9k_start_psymtab): Ditto.
1179 * stabsread.h (start_psymtab): Ditto.
1180 * {symfile.c, symfile.h} (start_psymtab_common): Ditto.
1181 * maint.c (maintenance_print_statistics): Call
1182 print_symbol_bcache_statistics.
1183 * objfiles.c (allocate_objfile): Initialize psymbol bcache malloc
1185 * solib.c (allocate_rt_common_objfile): Ditto.
1186 * symfile.c (reread_symbols): Ditto.
1187 (free_objfile): Free psymbol bcache when objfile is freed.
1188 (objfile_relocate): Use new indirect psymbol pointers.
1189 * objfiles.h (struct objfile): Add psymbol cache.
1190 * symfile.c (compare_psymbols): Now passed pointers to pointers to
1192 (reread_symbols): Free psymbol bcache when freeing other objfile
1194 (add_psymbol_to_list, add_psymbol_addr_to_list): Initialize new
1195 psymbol using the psymbol bcache.
1196 (init_psymbol_list): Psymbol lists now contain pointers rather than
1197 the actual psymbols.
1198 * symfile.h (psymbol_allocation_list): Psymbol lists now dynamically
1199 grown arrays of pointers.
1200 (ADD_PSYMBOL_VT_TO_LIST): Initialize new symbol using the psymbol
1202 * symmisc.c (print_partial_symbols): Now takes pointer to pointer
1204 (print_symbol_bcache_statistics): New function to print per objfile
1206 (print_partial_symbol, print_partial_symbols,
1207 maintenance_check_symtabs, extend_psymbol_list):
1208 Account for change to pointer to pointer to partial symbol.
1209 * symtab.c (find_pc_psymbol, lookup_partial_symbol, decode_line_2,
1210 make_symbol_completion_list):
1211 Account for change to pointer to pointer to partial symbol.
1212 * symtab.h (bcache.h): Include.
1213 * xcoffread.c (xcoff_start_psymtab): Make global_syms & static_syms
1214 type "partial_symbol **".
1216 Fri Feb 16 10:02:34 1996 Fred Fish <fnf@cygnus.com>
1218 * dwarfread.c (free_utypes): New function.
1219 (read_file_scope): Call free_utypes as cleanup, rather than just
1220 freeing the utypes pointer.
1222 Thu Feb 15 21:40:52 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1224 * demangle.c (is_cplus_marker): New function, checks if a
1225 character is one of the commonly used C++ marker characters.
1226 * defs.h (is_cplus_marker): Add prototype.
1227 * c-typeprint.c (c_type_print_base), ch-lang.c (chill_demangle),
1228 cp-valprint.c (cp_print_class_method), mdebugread.c (parse_symbol),
1229 stabsread.c (define_symbol, read_member_functions, read_struct_fields),
1230 symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P),
1231 values.c (vb_match): Use is_cplus_marker instead of comparison
1234 Thu Feb 15 18:08:13 1996 Fred Fish <fnf@cygnus.com>
1236 * symfile.h (INLINE_ADD_PSYMBOL): Default this to 0 and possibly
1237 delete entirely someday.
1239 Thu Feb 15 15:25:34 1996 Stan Shebs <shebs@andros.cygnus.com>
1241 * mpw-make.sed: Edit out makefile rebuild rule.
1242 (host_alias, target_alias): Comment out instead of deleting.
1243 (@LIBS@): Edit out references.
1245 Tue Feb 13 22:56:46 1996 Fred Fish <fnf@cygnus.com>
1247 * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
1248 Use n_psyms in OBJSTAT, not psyms.
1250 Mon Feb 12 15:59:31 1996 Doug Evans <dje@charmed.cygnus.com>
1252 * configure.in (sparclet-*-aout*): New config.
1253 * configure: Regenerated.
1255 Mon Feb 12 14:17:52 1996 Fred Fish <fnf@cygnus.com>
1257 * somsolib.c (som_solib_add): Use xmalloc rather than bare
1258 unchecked call to malloc.
1259 * remote-mips.c (pmon_load_fast): ditto.
1260 * remote-mm.c (mm_open): ditto.
1261 * hpread.c (hpread_lookup_type): ditto.
1262 * remote-adapt.c (adapt_open): ditto.
1264 Mon Feb 12 13:11:32 1996 Fred Fish <fnf@cygnus.com>
1266 * f-lang.c (allocate_saved_bf_node, allocate_saved_function_node,
1267 allocate_saved_f77_common_node, allocate_common_entry_node,
1268 add_common_block): Use xmalloc rather than malloc, some of which
1270 * gnu-regex.c: At same point as other gdb specific changes
1271 #undef malloc and then #define it to xmalloc.
1272 * ch-exp.c (growbuf_by_size): Use xmalloc/xrealloc rather than
1273 bare unchecked calls to malloc/realloc.
1274 * stabsread.c (dbx_lookup_type): Use xmalloc rather than bare
1275 unchecked call to malloc.
1277 Wed Feb 7 11:31:26 1996 Stu Grossman (grossman@cygnus.com)
1279 * symtab.c (gdb_mangle_name): Change opname var to be const to
1280 match return val of cplus_mangle_name.
1281 * i960-tdep.c: Change arg types of next_insn to match callers.
1283 Wed Feb 7 07:34:24 1996 Fred Fish <fnf@cygnus.com>
1285 * config/i386/linux.mh (XM_CLIBS, GDBSERVER_LIBS): Remove. These
1286 apparently aren't needed in any reasonably recent version of
1289 Tue Feb 6 21:37:03 1996 Per Bothner <bothner@kalessin.cygnus.com>
1291 * stabsread.c (read_range_type): If !self-subrange and language
1292 is Chill, assume a true range. If a true_range is a sub_subrange,
1293 use builtin_type_int for index_type.
1295 Tue Feb 6 18:38:51 1996 J.T. Conklin <jtc@slave.cygnus.com>
1297 * nindy-share/nindy.c (say): Use stdarg.h macros when compiling
1298 with an ANSI compiler.
1300 start-sanitize-gdbtk
1301 Tue Feb 6 16:31:25 1996 Tom Tromey <tromey@creche.cygnus.com>
1303 * gdbtk.tcl (create_file_win): Eliminate text widget B1 binding so
1304 double-clicking will work again.
1305 (create_asm_win): Put "break" at end of all B1 bindings.
1306 (create_file_win): Lower "sel" tag, don't raise it.
1307 (ensure_line_visible): New proc.
1308 (update_listing, update_assembly): Use it.
1309 (create_copyright_window): Destroy window on Leave event.
1310 (create_command_window): Put "break" at end of all B2 bindings.
1313 Mon Feb 5 18:24:28 1996 Steve Chamberlain <sac@slash.cygnus.com>
1315 From Michael_Snyder@NeXT.COM (Michael Snyder):
1316 * valops.c (value_arg_coerce): Coerce float to double, unless the
1317 function prototype specifies float.
1319 Mon Feb 5 09:51:55 1996 Tom Tromey <tromey@creche.cygnus.com>
1321 * language.c (set_language_command): Use languages table when
1322 printing available languages.
1324 Sat Feb 3 12:22:05 1996 Fred Fish <fnf@cygnus.com>
1326 Fix problems reported by Hans Verkuil (hans@wyst.hobby.nl):
1327 * command.c (add_cmd): Add missing initialization for enums member.
1328 Reorder members to match structure declaration to make it easier to
1329 tell when one is missing.
1330 * exec.c (exec_file_command): Fix problem where filename in malloc'd
1331 memory is referenced after being freed.
1333 Sat Feb 3 03:26:21 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1335 * dwarfread.c (read_func_scope): Avoid GDB core dumps if
1336 AT_name tag is missing.
1338 * procfs.c (procfs_stopped_by_watchpoint): Fix logic when
1339 FLTWATCH and FLTKWATCH are defined.
1341 * remote.c (remote_read_bytes): Advance memaddr for transfers,
1342 return number of bytes transferred for partial reads.
1344 * top.c (init_signals): Reset SIGTRAP to SIG_DFL.
1346 Fri Feb 2 13:40:50 1996 Steve Chamberlain <sac@slash.cygnus.com>
1348 * win32-nat.c (mappings): Add ppc registers.
1349 (child_resume): Turn off step for ppc.
1351 Thu Feb 1 10:29:31 1996 Steve Chamberlain <sac@slash.cygnus.com>
1353 * config/powerpc/(cygwin32.mh, cygwin32.mt, tm-cygwin32.h,
1354 xm-cygwin32.h): New.
1355 * config/i386/(*win32*): Becomes *cygwin32*.
1356 * configure.in (i[3456]86-*-win32*): Becomes i[3456]86-*-cygwin32.
1357 (powerpcle-*-cygwin32): New.
1358 * configure: Regenerate.
1359 * win32-nat.c (child_create_inferior): Call CreateProcess
1360 with the right program arg.
1362 Thu Feb 1 11:01:10 1996 Jeffrey A Law (law@cygnus.com)
1364 * config/pa/tm-hppa.h (SOFT_FLOAT): Provide a default definition.
1366 Wed Jan 31 19:01:28 1996 Fred Fish <fnf@cygnus.com>
1368 * serial.c: Change fputc/fputs/fprintf to _unfiltered forms.
1370 Wed Jan 31 18:36:27 1996 Stan Shebs <shebs@andros.cygnus.com>
1372 * config/sparc/xm-sun4os4.h (HAVE_TERMIOS): Remove.
1374 * config/sparc/xm-sparc.h (HAVE_WAIT_STRUCT): Remove, never used.
1376 * config/i386/nm-i386mach.h (CHILD_PREPARE_TO_STORE): Move to
1377 here from config/i386/xm-i386mach.h, fix name.
1378 * config/i386/nm-sun386.h: Ditto, from config/i386/xm-sun386.h.
1379 * config/i386/nm-ptx4.h (CHILD_PREPARE_TO_STORE): Move to
1380 here from config/i386/xm-ptx4.h.
1381 * config/i386/nm-ptx4.h: Ditto, from config/i386/xm-ptx.h.
1382 * config/i386/nm-symmetry.h: Ditto, from config/i386/xm-symmetry.h.
1383 * config/m68k/nm-sun3.h: Ditto, from config/m68k/xm-sun3.h.
1384 * config/sparc/nm-nbsd.h: Ditto, from config/sparc/xm-nbsd.h.
1385 * config/sparc/nm-sun4os4: Ditto, from config/sparc/xm-sparc.h.
1387 * config/sparc/nm-sun4sol2.h: New file, renamed from nm-sysv4.h.
1388 (PRSVADDR_BROKEN): Move here from xm-sun4sol2.h.
1389 * config/sparc/sun4sol2.mh (NAT_FILE): Update.
1391 Wed Jan 31 17:20:26 1996 Jeffrey A Law (law@cygnus.com)
1393 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Handle software
1394 floating point correctly.
1395 (STORE_RETURN_VALUE): Likewise.
1396 * config/pa/tm-pro.h (SOFT_FLOAT): define.
1398 Wed Jan 31 13:34:52 1996 Fred Fish <fnf@cygnus.com>
1400 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1401 Define to what should be reasonable values. However, apparently
1402 a bug in linux mmap prevents mapped symbol tables from working.
1404 Tue Jan 30 18:26:19 1996 Fred Fish <fnf@cygnus.com>
1406 * defs.h (errno.h>: Move #include closer to head of file to solve
1407 obscure problem with systems that declare perror with const arg, in
1408 both errno.h and stdio.h, and const is defined away by intervening
1411 Tue Jan 30 15:41:10 1996 Fred Fish <fnf@cygnus.com>
1413 From Jon Reeves <reeves@zk3.dec.com>:
1414 * i386-stub.c (getpacket): Change fprintf stream from "gdb" to stderr.
1415 (mem_fault_routine): Fix misplaced volatile type qualifier in decl.
1417 Mon Jan 29 19:05:58 1996 Fred Fish <fnf@cygnus.com>
1419 * Makefile.in (diststuff): Make all-doc; diststuff target does not
1420 exist in doc/Makefile.in.
1422 Mon Jan 29 18:44:57 1996 Stan Shebs <shebs@andros.cygnus.com>
1424 * config/m88k/xm-cxux.h (BP_HIT_COUNT): Remove, never used.
1426 Mon Jan 29 00:10:35 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
1428 * ch-valprint.c (calculate_array_length): New function to
1429 determine the length of an array type.
1430 (chill_val_print (case TYPE_CODE_ARRAY)): If the length of an
1431 array type is zero, call calculate_array_length.
1433 * gdbtypes.c (get_discrete_bounds (case TYPE_CODE_ENUM)): The
1434 values may not be sorted. Scan all entries and set the real lower
1437 Sun Jan 28 15:50:42 1996 Fred Fish <fnf@cygnus.com>
1439 * config/xm-linux.h: Move include of solib.h and #define of
1440 SVR4_SHARED_LIBS from here ...
1441 * config/nm-linux.h: ...to here.
1443 Sat Jan 27 10:34:05 1996 Fred Fish <fnf@cygnus.com>
1445 * configure.in (AC_CHECK_HEADERS): Check for sys/procfs.h.
1446 Also check for gregset_t and fpregset_t types.
1447 * configure: Regenerate.
1448 * core-regset.c (sys/procfs.h): Only include if HAVE_SYS_PROCFS_H
1450 (fetch_core_registers): Turn into stub unless both HAVE_GREGSET_T
1451 and HAVE_FPREGSET_T are defined. These changes allow systems
1452 like linux that are migrating to /proc support to use a single
1453 configuration for both new and old versions.
1455 * config/i386/linux.mt: Note that this is now for both a.out and
1457 * config/i386/linux.mh (NATDEPFILES): Add solib.o, core-regset.o,
1459 * config/i386/tm-linux.h (tm-sysv4.h): Include.
1460 * config/i386/xm-linux.h (solib.h): Include
1461 (SVR4_SHARED_LIBS): Define.
1462 * i386v4-nat.c: Only compile if HAVE_SYS_PROCFS_H is defined.
1463 (supply_gregset, fill_gregset): Compile if HAVE_GREGSET_T defined.
1464 (supply_fpregset, fill_fpregset): Compile if HAVE_FPREGSET_T
1467 Fri Jan 26 13:48:14 1996 Stan Shebs <shebs@andros.cygnus.com>
1469 * config/sparc/xm-sparc.h (NEW_SUN_CORE): Remove, never used.
1470 * config/i386/xm-sun386.h: Ditto.
1471 * config/m68k/xm-sun2.h, config/m68k/xm-sun3.h: Ditto.
1473 Thu Jan 25 16:05:53 1996 Tom Tromey <tromey@creche.cygnus.com>
1475 * Makefile.in (INSTALLED_LIBS, CLIBS): Include @LIBS@.
1477 Thu Jan 25 09:22:15 1996 Steve Chamberlain <sac@slash.cygnus.com>
1479 From Greg McGary <gkm@gnu.ai.mit.edu>:
1480 * dcache.c (dcache_peek, dcache_poke): Advance addr for
1483 Thu Jan 25 13:08:51 1996 Doug Evans (dje@cygnus.com)
1485 * infrun.c (normal_stop): Fix test for shared library event.
1487 Thu Jan 25 03:26:38 1996 Doug Evans <dje@charmed.cygnus.com>
1489 * configure.in (sparc64-*-*): Add default host configuration.
1490 start-sanitize-gdbtk
1491 (sparc64-*-solaris2* host): Link statically if GCC used.
1493 (sparc64-*-solaris2*): Add target configuration.
1494 * configure: Regenerated.
1495 * sparc/sp64sol2.mt: New file.
1497 Wed Jan 24 22:31:37 1996 Doug Evans <dje@charmed.cygnus.com>
1499 * Makefile.in (RUNTEST): srcdir renamed to rootsrc.
1501 Wed Jan 24 15:42:24 1996 Tom Tromey <tromey@creche.cygnus.com>
1503 * Makefile.in (lint): Close backquotes.
1505 start-sanitize-gdbtk
1506 Wed Jan 24 15:28:41 1996 Tom Tromey <tromey@creche.cygnus.com>
1508 * gdbtk.tcl, gdbtk.c: Updated copyrights.
1510 * configure.in: Look for -ldl or -ldld when using Tcl 7.5 or
1512 * configure: Rebuilt.
1515 Wed Jan 24 13:19:10 1996 Fred Fish <fnf@cygnus.com>
1517 * NEWS: Make note of new record and replay feature for
1518 remote debug sessions.
1519 * serial.c (gdbcmd.h): Include.
1520 (serial_logfile, serial_logfp, serial_reading, serial_writing):
1521 Define here, for remote debug session logging.
1522 (serial_log_command, serial_logchar, serial_write, serial_readchar):
1523 New functions for remote debug session logging.
1524 (serial_open): Open remote debug session log file when needed.
1525 (serial_close): Close remote debug session log file when needed.
1526 (_initialize_serial): Add set/show commands for name of remote
1527 debug session log file.
1528 * serial.h (serial_readchar): Declare
1529 (SERIAL_READCHAR): Call serial_readchar().
1530 (SERIAL_WRITE): Call serial_write().
1531 (serial_close): Declare as extern.
1532 (serial_logfile, serial_logfp): Declare.
1533 * top.c (execute_command): Declare serial_logfp. Log user command
1534 in remote debug session log if log file is open.
1535 * remote-array.c (array_wait): #ifdef out echo to gdb_stdout.
1536 (array_read_inferior_memory): Rewrite to fix memory overwrite bug.
1537 * remote-array.c (SREC_SIZE): Remove, duplicates define in
1539 * remote-array.c (hexchars, hex2mem): Remove, unused.
1540 * gdbserver/low-linux.c (store_inferior_registers): Remove
1541 unnecessary extern declaration of registers[].
1542 * gdbserver/Makefile.in (all): Add gdbreplay.
1543 * gdbserver/gdbreplay.c: New file.
1544 * gdbserver/README: Give example of recording a remote
1545 debug session with gdb and then replaying it with gdbreplay.
1547 Tue Jan 23 18:02:35 1996 Per Bothner <bothner@kalessin.cygnus.com>
1549 * stabsread.c (rs6000_builtin_type): Make bool type unsigned.
1550 (read_one_struct_field): Support boolean bitfields.
1551 * c-valprint.c (c_val_print): Print booleans properly.
1553 Tue Jan 23 18:54:09 1996 Stan Shebs <shebs@andros.cygnus.com>
1555 * remote-vxsparc.c (vx_convert_to_virtual, vx_convert_from_virtual):
1557 * config/sparc/vxsparc.mt (TDEPFILES): Add remote-vxsparc.o.
1559 Tue Jan 23 14:36:05 1996 Per Bothner <bothner@kalessin.cygnus.com>
1561 * ch-exp.c (parse_tuple): Error if invalid mode.
1563 * value.h (COERCE_ARRAY): Don't coerce enums.
1564 (COERCE_ENUM): Don't COERCE_REF.
1565 (COERCE_NUMBER): New macro (same as COERCE_ARRAY then COERCE_ENUM).
1566 * valops.c (value_assign): Only do COERCE_ARRAY if internalvar (let
1567 value_cast handle it otherwise); do *not* COERCE_ENUM either way.
1568 * valarith.c: Use COERCE_NUMBER instead od COEREC_ARRAY.
1569 Add COERCE_REF before COERCE_ENUM.
1570 * values.c (value_as_long): Simplify.
1572 * valops.c (value_array): Create internalvar if !c_style_arrays.
1574 * language.c (lang_bool_type): Add Fortran support.
1575 * eval.c (OP_BOOL): Use LA_BOOL_TYPE.
1577 Tue Jan 23 13:08:26 1996 Jeffrey A Law (law@cygnus.com)
1579 * symfile.c (auto_solib_add): Renamed from auto_solib_add_at_startup.
1580 All references changed.
1581 * breakpoint.c (bpstat_what): Add shlib_event to the class types.
1582 Update state table. Reformat so that it's still readable.
1583 When we hit the shlib_event breakpoint, set the calss of shlib_event.
1584 (breakpoint_1): Add "shlib events" as a breakpoint type.
1585 Print the shlib_event breakpoint like other breakpoints.
1586 (create_solib_event_breakpoint): New function.
1587 (breakpoint_re_set_one): Handle solib_event breakpoints.
1588 * breakpoint.h (enum bytype): Add bp_shlib_event breakpoint type.
1589 (enum bpstat_what_main_action): Add BPSTAT_WHAT_CHECK_SHLIBS
1591 (create_solib_event_breakpoint): Declare.
1592 * infrun.c (wait_for_inferior): Handle CHECK_SHLIBS bpstat.
1593 (normal_stop): Inform the user when the inferior stoped due
1594 to a shared library event.
1595 (_initialize_infrun): Add new set/show variable "stop-on-solib-events"
1596 to control whether or not gdb continues the inferior or stops it when
1597 a shared library event occurs.
1598 * minsyms.c (lookup_minimal_symbol_solib_trampoline): New function.
1599 * somsolib.c (TODO list): Update.
1600 (som_solib_create_inferior_hook): Arrange for gdb to be notified
1601 when significant shared library events occur.
1602 * hppa-tdep.c (find_unwind_entry): No longer static.
1604 Tue Jan 23 09:00:48 1996 Doug Evans <dje@charmed.cygnus.com>
1606 * printcmd.c (print_insn): Pass fprintf_unfiltered to
1607 INIT_DISASSEMBLE_INFO.
1608 start-sanitize-gdbtk
1609 * gdbtk.c (gdb_disassemble): Likewise.
1612 Mon Jan 22 16:59:40 1996 Stan Shebs <shebs@andros.cygnus.com>
1614 * remote.c (remotebreak): New GDB variable.
1615 (remote_break): New global.
1616 (remote_interrupt): Send a break instead of ^C if remote_break.
1617 * NEWS: Describe the new variable.
1619 Mon Jan 22 16:24:11 1996 Doug Evans <dje@charmed.cygnus.com>
1621 * sparc-tdep.c (_initialize_sparc_tdep): Always use print_insn_sparc.
1623 Fri Jan 19 07:19:38 1996 Fred Fish <fnf@cygnus.com>
1625 * hp300ux-nat.c (getpagesize): Remove unused function
1626 fetch_core_registers.
1627 (hp300ux_core_fns): Remove, is unused.
1628 (_initialize_core_hp300ux): Remove, is unused.
1629 (gdbcore.h): Remove #include, no longer needed.
1631 Fri Jan 19 00:59:53 1996 Jeffrey A Law (law@cygnus.com)
1633 * rs6000-nat.c (exec_one_dummy_insn): Rework to avoid
1634 ptrace bug in aix4.1.3 on the rs6000.
1636 Wed Jan 17 13:22:27 1996 Stan Shebs <shebs@andros.cygnus.com>
1638 * remote-hms.c (hms_ops): Add value for to_thread_alive.
1639 * remote-nindy.c (nindy_ops): Ditto.
1640 * remote-udi.c (udi_ops): Ditto.
1642 Tue Jan 16 18:00:35 1996 James G. Smith <jsmith@cygnus.co.uk>
1644 * remote-mips.c (pmon_opn, pmon_wait, pmon_makeb64, pmon_zeroset,
1645 pmon_checkset, pmon_make_fastrec, pmon_check_ack,
1646 pmon_load_fast): New functions. Support for the PMON monitor world.
1647 (common_open): New function to merge support for different monitors.
1648 (mips_open): Use common_open().
1649 (mips_send_command): New function.
1650 (mips_send_packet): Scan out-of-sequence packets.
1651 (mips_enter_debug, mips_exit_debug): New functions.
1652 (pmon_ops): New target definition structure.
1654 Tue Jan 16 11:22:58 1996 Stu Grossman (grossman@cygnus.com)
1656 * Makefile.in (CLIBS): Add LIBS to allow libraries to be
1657 specified on the make command line (via make LIBS=xxx).
1659 * configure.in (enable-gm): magic.o -> gmagic.o.
1662 start-sanitize-gdbtk
1663 Mon Jan 15 09:58:41 1996 Tom Tromey <tromey@creche.cygnus.com>
1665 * gdbtk.tcl (create_expr_window): Many changes to update GUI.
1666 (add_expr): Changes from create_expr_window.
1667 (create_command_window): Set focus.
1668 (delete_expr): Rewrote.
1669 (expr_update_button): New proc.
1670 (add_expr): Put bindings on FocusIn, FocusOut.
1671 Don't allow .file_popup to be torn off.
1674 Fri Jan 12 21:41:58 1996 Jeffrey A Law (law@cygnus.com)
1676 * symtab.c (find_pc_symtab): Don't lose if OBJF_REORDERED
1677 is set but there are no psymtabs.
1679 Fri Jan 12 15:56:12 1996 Steve Chamberlain <sac@slash.cygnus.com>
1681 * dsrec.c (load_srec): Remove unused variable.
1682 * monitor.c (monitor_expect): Don't expect a ^C to echo.
1683 * serial.c (serial_open): Add parallel interface.
1684 * sh3-rom.c (parallel, parallel_in_use): New.
1685 (sh3_load): If parallel_in_use, download though the
1687 (sh3_open): Open parallel port if specified.
1688 (sh3_close): New function.
1689 (_inititalize_sh3): Add sh3_close hook and documentation.
1690 * monitor.c (monitor_close): Export.
1691 * monitor.h (monitor_close): Add prototype.
1693 Fri Jan 12 13:11:42 1996 Stan Shebs <shebs@andros.cygnus.com>
1695 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
1696 * remote.c (remotetimeout): New GDB variable, use to set the
1697 remote timeout for reading.
1699 start-sanitize-gdbtk
1700 Fri Jan 12 09:36:17 1996 Tom Tromey <tromey@creche.cygnus.com>
1702 * gdbtk.tcl (gdbtk_tcl_query): Swap Yes and No buttons.
1703 (update_listing): Use lassign. Use "see" to scroll. Don't need
1704 screen_top, screen_bot, screen_height.
1705 (update_assembly): Use "see" to scroll.
1706 (textscrollproc): Removed.
1707 (create_file_win): Don't use textscrollproc.
1708 (asmscrollproc): Removed.
1709 (create_asm_window): Don't use asmscrollproc.
1710 (create_asm_win): Ditto.
1711 (screen_height, screen_top, screen_bot): Removed.
1712 (run_editor): New proc.
1713 (build_framework): Use it.
1714 (create_file_win, create_source_window): Don't use textscrollproc.
1715 (create_breakpoints_window): Set -xscrollcommand on canvas.
1716 (not_implemented_yet): Default button is 0.
1717 (delete_char): Don't use tk_textBackspace.
1718 (create_command_window): Allow Tk bindings to fire after deleting
1720 (create_command_window): Make Delete delete left, not right.
1723 Fri Jan 12 07:14:27 1996 Fred Fish <fnf@cygnus.com>
1725 * lynx-nat.c, irix4-nat.c, sparc-nat.c: Include gdbcore.h
1726 to get "struct core_fns" defined.
1727 * Makefile.in (lynx-nat.o, irix4-nat.o, sparc-nat.o):
1728 Are dependent upon gdbcore_h.
1730 Thu Jan 11 23:13:24 1996 Per Bothner <bothner@cygnus.com>
1732 * symfile.c (decrement_reading_symtab): New function.
1733 * symfile.c, symtab.h (currently_reading_symtab): New variable.
1734 * symfile.c (psymtab_to_symtab): Adjust currently_reading_symtab.
1735 * gdbtypes.c (check_typedef): Don't call lookup_symbol if
1736 currently_reading_symtab (since that could infinitely recurse).
1738 Thu Jan 11 17:21:25 1996 Per Bothner <bothner@kalessin.cygnus.com>
1740 * stabsread.c (read_struct_type): Trivial simplification.
1742 * stabsread.c (define-symbol): Use invisible references
1743 for TYPE_CODE_SET and TYPE_CODE_BITSTRING too.
1744 * valops.c (call_function_by_hand): Likewise.
1745 * eval.c (evaluate_subexp_standard): When known, use the formal
1746 parameter type as the expected type when evaluating arg expressions.
1747 * ch-lang.c (evaluate_subexp_chill): Likewise (for MULTI_SUBSCRIPT).
1749 start-sanitize-gdbtk
1750 Thu Jan 11 10:08:14 1996 Tom Tromey <tromey@creche.cygnus.com>
1752 * main.c (main): Disable window interface if --help or --version
1755 * gdbtk.tcl (FSBox): Don't use tk_listboxSingleSelect.
1757 Changes in sync with expect:
1758 * configure.in (ENABLE_GDBTK): Use CY_AC_PATH_TCL and
1760 * aclocal.m4: Replaced with version from expect.
1761 * configure: Regenerated.
1764 Wed Jan 10 16:08:49 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
1766 * configure.in, configure: Recognize rs6000-*-aix4*.
1767 * config/powerpc/xm-aix.h: Reduce to include "xm-aix4.h".
1768 * config/rs6000/aix4.mh (XM_FILE): Point to xm-aix4.h.
1769 * config/rs6000/xm-aix4.h: New file.
1770 * config/xm-aix4.h: New file.
1772 Wed Jan 10 11:25:37 1996 Fred Fish <fnf@cygnus.com>
1774 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
1775 * gdbserver/low-linux.c: New file.
1776 * remote.c (remote_read_bytes): Fix aborts on larger packets.
1778 * config/i386/linux.mh (GDBSERVER_DEPFILES, GDBSERVER_LIBS):
1780 * stabsread.c (define_symbol): If register value is too large,
1781 tell what it is and what max is.
1783 start-sanitize-gdbtk
1784 Wed Jan 10 09:07:22 1996 Tom Tromey <tromey@creche.cygnus.com>
1786 * gdbtk.tcl (gdbtk_tcl_fputs, gdbtk_tcl_fputs_error,
1787 gdbtk_tcl_flush): Use "see", not "yview".
1788 (gdbtk_tcl_query): Use questhead bitmap.
1789 various: Always wrap condition of 'if' in {...}.
1790 (add_breakpoint_frame): Set -value on radiobuttons.
1791 (lassign): New proc.
1792 (add_breakpoint_frame): Use lassign, not series of assignments.
1793 (decr): Made faster.
1794 (interactive_cmd): Use "see", not "yview".
1795 (not_implemented_yet): Use warning bitmap.
1796 (update_expr): Don't allow $expr to be evalled by Tcl.
1797 (create_expr_window): Don't use "focus".
1798 (delete_char, delete_line): Define globally.
1799 (delete_line, delete_char, create_command_window, update_autocmd,
1800 build_framework, create_asm_win, create_file_win): Use "see", not
1802 (create_copyright_window, center_window, bind_widget_after_class):
1804 (FSBox,create_command_window, create_autocmd_window): Binding
1806 (textscrollproc): Define globally.
1807 (build_framework): tk_menuBar no longer needed. Keys Prior, Next,
1808 Home, End, Up, and Down are all defined by Tk.
1809 (apply_filespec): Use error bitmap in dialog.
1810 (files_command): Don't use tk_listboxSingleSelect.
1811 (files_command): Don't use "uniq" to remove duplicates from a
1813 (update_assembly): Use lassign.
1814 (create_asm_win): Removed redundant bindings.
1815 (listing_window_button_1, file_popup_menu): Use tk_popup.
1816 (ButtonRelease-1 binding): Just remove tag from window; rest
1819 * gdbtk.c (gdbtk_query): Use Tcl_Merge to provide quoting.
1820 (call_wrapper): Use Tcl_Eval, not Tcl_VarEval.
1821 (gdbtk_call_command): Ditto.
1824 Tue Jan 9 09:33:53 1996 Jeffrey A Law (law@cygnus.com)
1826 * hpread.c (hpread_build_psymtabs): Finish Jan 4th
1827 enum namespace -> enum_namespace change.
1829 Tue Jan 9 04:44:47 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
1831 * ch-exp.c (parse_primval): In case ARRAY, add missing
1834 Mon Jan 8 13:29:34 1996 Stan Shebs <shebs@andros.cygnus.com>
1836 * remote-mips.c (mips_receive_header): Recognize \012 instead
1837 of \n, but write \n when program sends a \012.
1838 * ser-mac.c (mac_input_buffer): Increase size of buffer.
1840 Mon Jan 8 12:00:40 1996 Jeffrey A Law (law@cygnus.com)
1842 * infptrace.c (initialize_infptrace): Move function out of
1843 #ifdef conditional; put code within the function inside an
1846 * buildsym.c (end_symtab): Remove sort_pending and sort_linevec
1847 arguments. Sorting is now dependent on OBJF_REORDERED. All
1848 callers/references changed.
1849 * dbxread.c (read_ofile_symtab): Correctly determine value for
1850 last_source_start_addr for reordered executables.
1851 (process_one_symbol): Handle N_FUN with no name as an end of
1853 * partial-stab.h (case N_FN, N_TEXT): Don't assume CUR_SYMBOL_VALUE
1854 is the high text address for a psymtab.
1855 (case N_SO): Likewise.
1856 (case N_FUN): Handle N_FUN with no name as an end of function
1858 * minsyms.c (lookup_minimal_symbol_by_pc): Examine all symbols
1859 at the same address rather than a random subset of them.
1860 * coffread.c (coff_symfile_init): Set OBJF_REORDERED.
1861 * elfread.c (elf_symfile_init): Similarly.
1862 * somread.c (som_symfile_init): Similarly.
1863 * xcoffread.c (xcoff_symfile_init): Similarly.
1865 Fri Jan 5 17:46:01 1996 Stu Grossman (grossman@cygnus.com)
1867 * stack.c (print_stack_frame print_frame_info) symmisc.c
1868 (dump_symtab): Change RETURN_MASK_ERROR to RETURN_MASK_ALL so
1869 that catch_errors doesn't get blindsided by QUIT and lose the
1870 cleanup chain. This fixes a problem where ^C while in a
1871 user-defined command sometimes leaves instream NULL and causes a
1872 segfault in command_loop.
1874 Fri Jan 5 13:59:16 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
1876 * configure.in, configure: Add `-ldl -lw' for Solaris linking.
1878 Fri Jan 5 12:02:00 1996 Steve Chamberlain <sac@slash.cygnus.com>
1880 * config/sh/sh.mt, config/powerpc/*.mt, config/pa/hppapro.mt,
1881 config/m68k/monitor.mt, config/h8500/h8500.mt, config/h8300/h8300.mt:
1882 srec.o renamed to dsrec.o.
1884 Thu Jan 4 16:04:54 1996 Stu Grossman (grossman@cygnus.com)
1886 * breakpoint.c (remove_breakpoint): Change error to warning so
1887 that hardware watchpoint removal problems won't leave breakpoint
1888 traps in the target.
1889 start-sanitize-gdbtk
1890 * configure configure.in: Make --enable-gdbtk be the default.
1892 * remote-e7000.c (e7000_insert_breakpoint,
1893 e7000_remove_breakpoint): Use e7000 based breakpoints, not memory
1895 * (e7000_wait): Adjust PC back by two when we see a breakpoint to
1896 compensate for e7000 maladjustment.
1897 * sparcl-tdep.c (sparclite_check_watch_resources): Fix logic bug
1898 which prevented hardware watchpoints from working.
1900 Thu Jan 4 10:44:17 1996 Fred Fish <fnf@cygnus.com>
1902 * infptrace.c (udot_info): New function.
1903 (PT_*): Define each individually if that one is not defined.
1904 * rs6000-nat.c (kernel_u_size): New function
1905 Include <sys/user.h> for "struct user"
1906 * alpha-nat.c (kernel_u_size): New function.
1907 Include <sys/user.h> for "struct user"
1908 * sparc-nat.c (kernel_u_size): New function.
1909 Include <sys/user.h> for "struct user"
1910 * i386b-nat.c (kernel_u_size): New function.
1911 * i386v-nat.c (kernel_u_size): New function.
1912 * config/i386/nm-fbsd.h (KERNEL_U_SIZE): Define.
1913 (kernel_u_size): Declare.
1914 * config/i386/nm-linux.h (KERNEL_U_SIZE): Define.
1915 (kernel_u_size): Declare.
1916 * config/sparc/nm-sun4os4.h (KERNEL_U_SIZE): Define.
1917 (kernel_u_size): Declare.
1918 * config/alpha/nm-osf2.h (KERNEL_U_SIZE): Define.
1919 (kernel_u_size): Declare.
1920 * config/rs6000/nm-rs6000.h (KERNEL_U_SIZE): Define.
1921 (kernel_u_size): Declare.
1923 Thu Jan 4 11:00:01 1996 steve chamberlain <sac@slash.cygnus.com>
1925 * mdebugread.c (mylookup_symbol): enum namespace becomes
1926 enum_namespace type.
1927 * symfile.c (add_psymbol_to_list)
1928 (add_psymbol_addr_to_list): Ditto.
1929 * symtab.c (lookup_partial_symbol): Ditto.
1930 (lookup_symbol): Ditto.
1931 (lookup_block_symbol): Ditto.
1932 * win32-nat.c (handle_load_dll): Use incoming dll base.
1933 (child_wait): Catch DLL load errors.
1934 (create_child_inferior): Translated between paths correctly.
1936 Wed Jan 3 23:13:53 1996 Fred Fish <fnf@cygnus.com>
1938 * i386v4-nat.c (supply_gregset, fill_gregset): Subtract NUM_FREGS
1939 from NUM_REGS to get number of general registers that we care about.
1940 * config/i386/tm-i386.h (REGISTER_BYTES): Define in terms
1941 of number of general regs and number of floating point regs.
1943 Wed Jan 3 19:49:54 1996 steve chamberlain <sac@slash.cygnus.com>
1945 * config/i386/tm-win32.h (IN_SOLIB_CALL_TRAMPOLINE): New.
1946 (SKIP_TRAMPOLINE_CODE): New.
1947 * config/i386/xm-win32.h (CANT_FORK): Deleted.
1948 (SLASH*) Changed to use unix style slash.
1949 * symtab.h (namespace enum): becomes typedef to avoid namespace
1951 * infcmd.c (path_command): Use empty string if PATH name not set.
1952 * i386-tdep.c (skip_trampoline_code): New function.
1953 * srec.c: Renamed dsrec.c to avoid filename collision.
1954 * Makefile.in: Cope with renaming.
1956 Wed Jan 3 13:09:04 1996 Fred Fish <fnf@cygnus.com>
1958 * symmisc.c (print_objfile_statistics): Print memory use statistics
1959 for objfile psymbol, symbol, and type obstacks.
1961 Tue Jan 2 13:41:14 1996 Stan Shebs <shebs@andros.cygnus.com>
1963 * config/mips/nm-irix5.h: Restore.
1964 (TARGET_HAS_HARDWARE_WATCHPOINTS, etc): Define as for Irix 4;
1965 from Lee Iverson <leei@ai.sri.com>.
1966 * config/mips/irix5.mh (NAT_FILE): Use nm-irix5.h.
1967 * config/mips/irix[345].mh (MUNCH_DEFINE): Remove.
1969 For older changes see ChangeLog-95
1975 version-control: never