1 Sun Oct 6 22:43:06 1996 Jason Merrill <jason@yorick.cygnus.com>
3 * dwarf2read.c (read_tag_reference_type): New fn.
4 (read_type_die): Call it.
5 (dwarf_attr): Also look in the DIEs referred to by specification
6 or abstract_origin attributes.
8 Wed Oct 2 22:07:16 1996 Fred Fish <fnf@cygnus.com>
10 * inferior.h (IN_SIGTRAMP): Pass pc to SIGTRAMP_START and
12 * config/i386/tm-i386os9k.h (SIGTRAMP_START, SIGTRAMP_END):
13 Define with dummy pc arg.
14 * config/m68k/tm-nbsd.h: Ditto.
15 * doc/gdbint.texinfo: Document that SIGTRAMP_START and
16 SIGTRAMP_END are macros that take an single argument.
18 Mon Sep 30 20:02:45 1996 Fred Fish <fnf@cygnus.com>
20 * defs.h: Remove define of PRIVATE_XMALLOC.
23 Mon Sep 30 15:39:28 1996 Stu Grossman (grossman@critters.cygnus.com)
25 * config/v850/tm-v850.h: Use distinct register for PC, not EIPC.
28 Mon Sep 30 11:16:34 1996 Jeffrey A Law (law@cygnus.com)
30 * top.c (execute_control_command): Free values from while_control
31 and if_control conditions after evaluation to avoid storage leaks.
35 Fri Sep 27 17:43:06 1996 Stu Grossman (grossman@critters.cygnus.com)
37 * configure configure.in: Recognize v850 target.
38 * v850-tdep.c: New file, NEC V850 target support.
39 * config/v850/{v850.mt tm-v850.h}: New files for NEC V850 support.
42 Fri Sep 27 14:48:15 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
44 * infrun.c (wait_for_inferior): Update current_line and
45 current_symtab when stepping continues in the middle of a new line.
47 Fri Sep 27 10:25:30 1996 Fred Fish <fnf@cygnus.com>
49 * top.c (print_gdb_version): Rewrote to comply with new GNU coding
50 standards for the --version option.
51 (print_gnu_advertisement): Remove, now part of print_gdb_version.
52 (show_version): Remove call to print_gnu_advertisement.
53 * top.h (print_gnu_advertisement): Remove prototype.
54 * main.c (print_gdb_help): Move help to static function and
56 (main): Call print_gdb_help rather than inlining it.
57 (main): Remove call to print_gnu_advertisement.
59 * gdbtk.tcl (create_copyright_window): Increase timeout from
60 15 seconds to 30 seconds.
64 Fri Sep 27 13:32:53 1996 Michael Meissner <meissner@tiktok.cygnus.com>
66 * config/d10v/tm-d10v.h (TARGET_{INT,PTR}_BIT): Define.
67 (TARGET_{,LONG_}DOUBLE_BIT): Ditto.
70 Thu Sep 26 23:10:26 1996 Mark Alexander <marka@cygnus.com>
72 * configure.in, config/i386/tm-linux.h: Fix configure
73 problem on older Linux systems that prevented core files
74 from being recognized.
76 Wed Sep 25 18:31:33 1996 Stan Shebs <shebs@andros.cygnus.com>
78 * dbug-rom.c: New file, support for Motorola's dBUG monitor.
79 * config/m68k/monitor.mt (TDEPFILES): Add it.
83 Mon Sep 23 16:13:50 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
85 * config/d10v/tm-d10v.h (SAVED_PC_AFTER_CALL): Fixed.
86 Now single-steps correctly.
87 * d10v-tdep.c (d10v_pop_frame): Fixed.
90 Fri Sep 20 16:10:58 1996 Stan Shebs <shebs@andros.cygnus.com>
92 * config/sh/tm-sh.h (REGISTER_NAMES): Move fp registers to
93 be consistent with GCC.
94 (FPUL_REGNUM, etc): Renumber to match list changes.
95 (ADDR_BITS_REMOVE): Delete.
96 * sh-tdep.c (sh_reg_names, sh3_reg_names, sh3e_reg_names):
97 Rearrange to match REGISTER_NAMES.
98 * sh3-rom.c (sh3_regnames, sh3e_regnames): Ditto.
101 Thu Sep 19 16:19:01 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
103 * d10v-tdep.c: Stack chain should work now.
105 Tue Sep 17 18:46:57 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
107 * d10v-tdep.c, config/d10v/tm-d10v.h: Snapshot.
110 Tue Sep 17 12:20:50 1996 Ian Lance Taylor <ian@cygnus.com>
112 * configure.in: Add cases for MIPS 5000 like MIPS 4300.
113 * configure: Rebuild.
115 Tue Sep 17 12:09:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
117 * ser-e7kpc.c: Added wingdb support for target e7000pc.
119 Tue Sep 17 10:56:52 1996 James G. Smith <jsmith@cygnus.co.uk>
121 * remote-mips.c (pmon_wait): CAIRO PMON does not require forced
122 re-entry back into debug mode.
124 Mon Sep 16 14:32:58 1996 James G. Smith <jsmith@cygnus.co.uk>
126 * remote-mips.c (mips_load): Ensure that the PC is explicitly
127 loaded after a load to a CAIRO PMON system.
129 Fri Sep 13 12:02:39 1996 Fred Fish <fnf@cygnus.com>
131 * Makefile.in (INTERNAL_LDFLAGS): Add @HLDFLAGS@ to list.
132 (HLDENV): Set to @HLDENV@.
133 (gdb): Prefix link command line with $(HLDENV).
134 * configure.in: Add support to test for --enable-shared and
135 generate appropriate values for HLDFLAGS and HLDENV.
136 * configure: Regenerated with autoconf.
138 Sun Sep 8 15:26:27 1996 Fred Fish <fnf@cygnus.com>
140 * alpha-nat.c (fetch_core_registers): Match Sep 4 gdbcore.h prototype
141 change for core_read_registers in struct core_fns.
142 * core-regset.c (fetch_core_registers): Ditto & add prototype.
143 * core-sol2.c (fetch_core_registers): Ditto & add prototype.
144 * i386aix-nat.c (fetch_core_registers): Ditto & add prototype.
145 * i386b-nat.c (fetch_core_registers): Ditto.
146 * i386mach-nat.c (fetch_core_registers): Ditto & add prototype.
147 * irix4-nat.c (fetch_core_registers): Ditto.
148 * irix5-nat.c (fetch_core_registers): Ditto.
149 * lynx-nat.c (fetch_core_registers): Ditto & add prototype.
150 * m68knbsd-nat.c (fetch_core_registers): Ditto.
151 * mips-nat.c (fetch_core_registers): Ditto & add prototype.
152 * rs6000-nat.c (fetch_core_registers): Ditto.
153 * sparc-nat.c (fetch_core_registers): Ditto.
154 * sun3-nat.c (fetch_core_registers): Ditto & add prototype.
155 * ultra3-nat.c (fetch_core_registers): Ditto & add prototype.
157 * alpha-nat.c (register_addr): Match Sep 4 gdbcore.h prototype change.
158 * delta68-nat.c (register_addr): Ditto.
159 * gdbserver/low-linux.c (register_addr): Ditto.
160 * gdbserver/low-hppabsd.c (register_addr): Ditto.
161 * i386m3-nat.c (register_addr): Ditto.
162 * mips-nat.c (register_addr): Ditto.
163 * ultra3-nat.c (register_addr): Ditto.
165 Sun Sep 8 15:14:00 1996 Stu Grossman (grossman@critters.cygnus.com)
167 * blockframe.c (inside_main_func): Cleanup slightly. Move
168 mainsym def into the block it's used in.
169 * configure.in configure: Allow NATDEPFILES to be recognized in
170 .mh files regardless of whitespace.
172 * cpu32bug-rom.c (cpu32bug_cmds): Change load_response string to
173 keep downloads from hanging.
175 * remote-wiggler.c: Add support for flash upgrades.
176 * (wiggler_error): Fix message format. Add new error code.
177 * (wiggler_write_byets): Error code is hex. Report errors with
179 * (wiggler_read_byets): Report errors with proper routine name.
180 * (get_packet): Add support for new flash commands.
181 * (wiggler_load): Call clear_symtab_users() to reset things
182 properly after download.
183 * (flash_xfer_memory bdm_update_flash_command): New funxtions to
184 support flash upgrades for Wiggler.
185 * (_initialize_remote_wiggler): Add `bdm update-flash' command.
187 Fri Sep 6 13:14:13 1996 Geoffrey Noer <noer@cygnus.com>
189 * ser-tcp.c: don't include netinet/tcp.h if __CYGWIN32__
191 Thu Sep 5 17:05:13 1996 Geoffrey Noer <noer@cygnus.com>
193 * config/i386/cygwin32.mh:
194 * config/powerpc/cygwin32.mh: build ser-tcp.o for both hosts
196 Thu Sep 5 12:09:13 1996 Per Bothner <bothner@deneb.cygnus.com>
198 * value.h (COERCE_REF): Fix previous change.
199 (COERCE_ENUM): Add a check_typedef (this is the real fix).
201 Thu Sep 5 03:28:30 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
203 * eval.c (evaluate_subexp_standard): In case of OP_ARRAY: make a
204 better check of array boundaries.
206 Thu Sep 5 01:29:42 1996 Stu Grossman (grossman@critters.cygnus.com)
208 * configure: Update aclocal.m4 and re-run autoconf to get correct
210 * remote-wiggler.c (wiggler_error): Error codes are hex. Also,
211 fix default message generation.
213 Wed Sep 4 17:28:40 1996 Stu Grossman (grossman@critters.cygnus.com)
215 * Makefile.in: Add mswin to SUBDIRS. Add rules for
216 mswin/libwingdb.a and remote-wiggler.o.
217 * breakpoint.c (breakpoint_here_p): Clean up bp enabled test.
218 * (breakpoint_inserted_here_p): New func, just like
219 breakpoint_here_p, except it's honest. Honestly.
220 * breakpoint.h: Proto for above.
222 * configure configure.in: Add host *windows* to list of hosts
223 that don't support GDBtk.
225 * configure configure.in: Add mswin to configdirs if host is
227 * core-aout.c (fetch_core_registers register_addr) gdbcore.h:
228 Change all vars that can contain addresses to type CORE_ADDR.
229 * findvar.c (supply_register): Allow val to be NULL. This means
230 that regno is unsupported.
231 * (read_pc read_pc_pid write_pc write_pc_pid): Make non-pid forms
232 just call pid forms with inferior_pid so that there's only once
233 place to hack PC's and such.
234 * infrun.c (proceed): Don't skip breakpoints if user changed PC.
235 * remote-wiggler.c: New file. Support for BDM interface from
237 * serial.c: Enhance serial logging capability. Add hex and octal
238 output modes (set remotelogbase {hex|octal|ascii}. Also log
239 breaks, timeouts, errors, and eofs.
240 * serial.h: Redefine SERIAL_SEND_BREAK to go through a wrapper
241 function so that we can log breaks. Don't export serial_logfile
243 * top.c (execute_command): Don't test for serial_logfp here.
244 Just call serial_log_comand, and let serial.c sort it out.
245 * valops.c (value_of_variable): Don't attempt to establish frames
246 for static and global variables. This makes things work a bit
247 better if the stack or frame pointer is trashed.
248 * config/m68k/monitor.mt (TDEPFILES): Add remote-wiggler.o.
249 * config/m68k/tm-m68k.h: Define STACK_ALIGN. CPU32 can't hack
250 misaligned stacks during function calls.
252 Wed Sep 4 13:06:26 1996 Ian Lance Taylor <ian@cygnus.com>
254 * terminal.h: Don't use #elif.
256 Wed Sep 4 06:49:35 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
258 * ch-exp.c (parse_tuple_element): Allow (*): for array tuples
261 * eval.c (evaluate_subexp_standard): In case of OP_ARRAY:
262 check number of args against bounds of array to avoid
265 * value.h (COERCE_REF): Do a CHECK_TYPEDEF in case we get
268 Fri Aug 30 15:07:14 1996 James G. Smith <jsmith@cygnus.co.uk>
270 * remote-mips.c: Provide support for CAIRO target board.
271 (cairo_open, cairo_ops): Added.
272 (mips_monitor_type): MON_CAIRO Added.
273 (mips_enter_debug, mips_exit_debug, mips_initialize,
274 mips_fetch_registers, common_breakpoint, mips_load,
275 _initialize_remote_mips): Updated.
277 Thu Aug 29 17:00:18 1996 Michael Meissner <meissner@tiktok.cygnus.com>
279 * nlm/configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
280 * nlm/configure: Regenerate.
282 * gdbserver/configure.in (i[345]86-*-*): Recognize i686 for
285 Wed Aug 28 13:11:15 1996 Ian Lance Taylor <ian@cygnus.com>
287 * configure.in: If CY_AC_PATH_TCLCONFIG can't find TCL, don't run
288 CY_AC_LOAD_TCLCONFIG.
289 * configure: Rebuild.
291 Tue Aug 27 12:40:40 1996 Fred Fish <fnf@cygnus.com>
293 * infrun.c (wait_for_inferior): Initialize stop_func_end before calling
294 find_pc_partial_function.
296 Tue Aug 27 10:17:34 1996 Michael Meissner <meissner@tiktok.cygnus.com>
298 * configure: Regenerate again.
300 Tue Aug 27 04:25:08 1996 Geoffrey Noer <noer@cygnus.com>
302 * configure.in: work around host_alias configure bug.
303 AC_CANONICAL_HOST is called twice (first by AC_CHECK_TOOL
304 and second by AC_CANONICAL_SYSTEM). The second clobbers the
305 previous setting. Circumventing by moving the second check
307 * configure: regenerated
310 Mon Aug 26 18:36:54 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
312 * config/d10v/d10v.mt: New file.
313 * config/d10v/tm-d10v.h: New file.
314 * configure.in: New target D10V.
315 * d10v-tdep.c: New file.
318 Sun Aug 25 00:09:47 1996 Fred Fish <fnf@rtl.cygnus.com>
320 * rs6000-tdep.c: Fix typo in comment.
321 * valops.c (call_function_by_hand): Set using_gcc to 2
322 for code compiled without -g, per comment in code.
323 * config/a29k/tm-a29k.h (STACK_ALIGN): Add comment.
324 * config/sparc/tm-sparc.h (STACK_ALIGN): Add comment.
325 * config/sparc/tm-sp64.h (STACK_ALIGN): Add comment.
326 * config/pyr/tm-pyr.h (STACK_ALIGN): Add comment.
327 * config/m88k/tm-m88k.h (STACK_ALIGN): Add comment.
328 * config/pa/tm-hppa.h (PUSH_ARGUMENTS): Enclose args in ()'s.
329 (STACK_ALIGN): Add comment, move to be with other associated
330 macros, and document.
331 * config/mips/tm-mips.h (PUSH_ARGUMENTS): Enclose args in ()'s.
332 (STACK_ALIGN): Remove completely, handled by PUSH_ARGUMENTS.
333 * config/alpha/tm-alpha.h (PUSH_ARGUMENTS): Enclose args in ()'s.
334 * config/rs6000/tm-rs6000.h (STACK_ALIGN): Remove completely,
335 handled by PUSH_ARGUMENTS.
336 (PUSH_ARGUMENTS): Enclose args in ()'s.
338 Fri Aug 23 13:55:05 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
340 * infrun.c (wait_for_inferior): Try to reenable shared library
341 breakpoints even if auto_solib_load is not set.
343 Fri Aug 23 00:44:57 1996 Fred Fish <fnf@cygnus.com>
345 * gdbtk.c (gdbtk_init): Check for a DISPLAY env variable and
346 gracefully degrade to using command line interface if none is
349 Wed Aug 21 16:31:27 1996 Fred Fish <fnf@cygnus.com>
351 * valprint.c (print_longest): Test for CC_HAS_LONG_LONG as well as
352 PRINTF_HAS_LONG_LONG.
353 * expprint.c (dump_expression): Ditto.
354 * configure.in: Fix check for long long support in compiler to
355 use a function body, not a nested function.
356 * configure: Rebuild with autoconf.
358 Tue Aug 20 17:59:42 1996 Ian Lance Taylor <ian@cygnus.com>
360 * aclocal.m4: Include ../bfd/aclocal.m4.
361 * configure.in: Add stdlib.h to AC_CHECK_HEADERS. Call
362 BFD_NEED_DECLARATION on malloc, realloc, and free.
363 * acconfig.h: Add NEED_DECLARATION_MALLOC,
364 NEED_DECLARATION_REALLOC, and NEED_DECLARATION_FREE.
365 * configure, config.in: Rebuild.
366 * defs.h: Include <stddef.h> and <stdlib.h> based on HAVE_*_H
367 rather than __STDC__. Only declare malloc, realloc, and free if
368 NEED_DECLARATION_* is defined.
370 Tue Aug 20 15:37:03 1996 Fred Fish <fnf@cygnus.com>
372 * solib.c (_initialize_solib): Add missing '\' chars at ends of
373 strings that continue on next line.
374 (enable_break): Replace "return 0" with setting success to zero
375 and letting normal return handle the return.
377 Sat Aug 17 14:16:23 1996 Fred Fish <fnf@cygnus.com>
379 * mips-tdep.c (mips_push_arguments): Make sure sp and struct_addr
380 are properly aligned.
382 Fri Aug 16 17:54:26 1996 Stan Shebs <shebs@andros.cygnus.com>
384 * rs6000-tdep.c (rs6000_fix_call_dummy): Add full set of arguments.
385 * config/rs6000/tm-rs6000.h (FIX_CALL_DUMMY): Pass all arguments
386 to function, declare function correctly.
388 Fri Aug 16 17:24:35 1996 Dawn Perchik <dawn@critters.cygnus.com>
390 * symtab.h: changed namespace to _namespace for compiling under
393 Fri Aug 16 13:52:21 1996 Stan Shebs <shebs@andros.cygnus.com>
395 * mpw-make.sed: Update for various recent changes, add some
398 * mpw-config.in: Fix name of Magic Cap-specific file.
401 Fri Aug 16 15:47:36 1996 Michael Meissner <meissner@tiktok.cygnus.com>
403 * config/rs6000/tm-rs6000.h (FIX_CALL_DUMMY): Cast args to be an
404 integer for type correctness.
406 Fri Aug 16 15:15:37 1996 James G. Smith <jsmith@cygnus.co.uk>
408 * config/mips/{vr4300.mt, vr4300el.mt} (SIM): Add -lm when
409 simulator is included.
411 Thu Aug 15 13:44:13 1996 Fred Fish <fnf@cygnus.com>
413 * findvar.c (write_register_pid): Only needed when TARGET_WRITE_PC
415 (read_register_pid): Only needed when TARGET_READ_PC is not
417 * hppa-tdep.c (frame_saved_pc): Remove prototype.
418 * infptrace.c (udot_info): Prototype when CHILD_XFER_MEMORY is
420 * config/xm-aix4.h (aix_resizewindow): Convert old style decl
422 * xcoffsolib.c (command.h): Include for needed prototypes.
424 Wed Aug 14 17:54:19 1996 Stu Grossman (grossman@critters.cygnus.com)
426 * config/i386/cygwin32.mh: Set NAT_FILE to nm-empty.h to make
429 Wed Aug 14 02:03:42 1996 Fred Fish <fnf@cygnus.com>
431 From Blair MacIntyre <bm@cs.columbia.edu>:
432 * hppa-tdep.c (hppa_fix_call_dummy): Use MSYMBOL_TYPE rather
433 than SYMBOL_TYPE on msymbols.
434 * somsolib.c (som_solib_create_inferior_hook): Ditto.
436 * Makefile.in (init.c): Generate with prototypes.
438 * config/pa/tm-hppa.h (frame_saved_pc): Add prototype.
439 * config/rs6000/xm-rs6000.h (aix_resizewindow): Ditto.
440 * config/rs6000/tm-rs6000.h (frame_initial_stack_address): Ditto.
441 (pc_load_segment_name): Ditto.
443 (extract_return_value): Ditto.
444 (is_magic_function_pointer): Ditto.
445 (push_dummy_frame): Ditto.
446 (fix_call_dummy): Ditto.
447 (push_arguments): Ditto.
448 (skip_trampoline_code): Ditto.
449 (aix_process_linenos): Ditto.
451 * config/m68k/tm-cisco.h (get_longjmp_target): Add prototype.
452 * config/m68k/tm-es1800.h: Ditto.
453 * config/m68k/tm-vx68.h: Ditto.
454 * config/m68k/tm-sun3.h: Ditto.
455 * config/m68k/tm-m68kv4.h: Ditto.
457 Tue Aug 13 23:04:36 1996 Fred Fish <fnf@cygnus.com>
459 * config/mips/nm-mips.h (get_longjmp_target): Add prototype.
460 * config/mips/nm-irix3.h (get_longjmp_target): Add prototype.
461 * remote-mips.c (mips_read_processor_type): Remove prototype.
462 * mips-tdep.c (gdb_print_insn_mips): Add prototype and make static.
463 * irix5-nat.c (fetch_core_registers): Add prototype.
465 Mon Aug 12 21:23:44 1996 Fred Fish <fnf@cygnus.com>
467 * remote-pa.c (boot_board): Add dummy params to make type compatible
468 for passing to add_com.
469 * scm-exp.c (scm_lreadr): Ensure svalue is not used uninitialized.
470 * buildsym.c (compare_line_numbers): Change function to match
471 prototype and also what qsort expects.
473 Mon Aug 12 19:19:00 1996 Mark Alexander <marka@cygnus.com>
475 * remote.c: Make remote_write_size public.
476 * sh-tdep.c (_initialize_sh_tdep): Set remote_write_size to 300
477 to prevent packet errors with some versions of CMON.
479 Mon Aug 12 16:20:58 1996 Stu Grossman (grossman@critters.cygnus.com)
481 * defs.h: Define CONST_PTR as blank if compiling with Microsoft
482 C, else it's `const'.
483 * c-lang.c c-lang.h ch-lang.c f-lang.c language.c m2-lang.c
484 scm-lang.c: Microsoft C can't hack const pointers. Use CONST_PTR
486 * configure configure.in defs.h: Use AC_C_CONST to figure out if
487 the compiler supports const. Gets rid of some cruft in defs.h.
488 * dwarf2read.c: <string.h> -> "gdb_string.h"
489 * remote-sim.c: Add prototypes. Fix call to gdbsim_kill.
490 * sparcl-tdep.c (download): Add prototypes to write_routine and
493 * mswin/gdbwin.c: Don't include both varargs.h AND stdarg.h. Get
494 rid of varargs.h Include string.h.
495 * (gdbwin_update gdbwin_fputs regs_changed_f bpt_changed_f
496 update): Fix prototypes, fix calls.
497 * (update): Return value for catch_errors.
498 * (run_execute_command togdb_command_from_tty togdb_command):
499 Cleanup catching of errors from calls to execute_command. Also,
500 dup command string to avoid modifying const strings.
501 * (togdb_breakinfo_i_init togdb_breakinfo_i_next): Use 0 instead
502 of NULL when see if b->address isn't set.
503 * (bi_disable_bpt bi_enable_bpt bi_delete_all
504 bi_delete_breakpoint): Add arg to calls to update.
505 * (gui_command): Add prototype.
506 * (mswin_query): Fix prototype.
507 * (_initialize_gdbwin): Dup string to avoid modifying const.
508 * (info_path togdb_get_info_path): Remove const from decls cuz
509 this can't be const (it points at malloc'ed memory).
510 * (togdb_searchpath): Remove const from path. Dup string to
511 avoid modifying const strings.
513 * (gdbwin_list_symbols): Regexp param is const.
514 * Fix lots of refs to psymtabs to deref correct pointers.
515 * (togdb_set_breakpoint_sal): Call set_breakpoint_sal with sal,
517 * mswin/gdbwin.h (togdb_searchpath togdb_get_info_path
518 toget_set_info_path): Fix prototypes to match reality.
519 * mswin/gui.cpp: Define _beginthreadex and _endthreadex routines
520 with proper prototypes.
521 * mswin/iface.cpp (gdbwin_fputs): Define with correct number of args.
522 * mswin/ser-win32s.c: Fix defs of min and max.
523 * mswin/serdll32.c (OpenComm16): Make cbInQueue and cbOutQueue be
525 * (WriteComm16): Change lpBug from LPVOID to LPCSTR.
526 * mswin/serdll32.h: Fix prototypes for OpenComm16 and WriteComm16.
528 Sun Aug 11 20:54:16 1996 Stu Grossman (grossman@critters.cygnus.com)
530 * main.c (main): Make sure command loop is used with cygwin32.
531 * terminal.h: Allow cygwin32 to use termios.h.
534 Fri Aug 9 12:32:53 1996 Tom Tromey <tromey@creche.cygnus.com>
536 * Makefile.in (LIB_INSTALL_DIR): New macro.
537 (TCL): Include @TCL_LD_SEARCH_FLAGS@.
540 Fri Aug 9 12:42:49 1996 Jeffrey A Law (law@cygnus.com)
542 * somread.c (som_symtab_read): Handle secondary definition
543 symbols (aka weak symbols).
545 * config/tm-hppa.h (EXTRACT_RETURN_VALUE): Fix thinko in
548 Thu Aug 8 10:12:36 1996 Stu Grossman (grossman@critters.cygnus.com)
550 * symfile.c (symfile_bfd_open): Change ifdef from __WIN32__ to
553 * somread.c: Rearrange order of includes to fix warnings under
554 hpux-10.10. Also don't include sys/file.h.
556 Wed Aug 7 21:45:52 1996 Stu Grossman (grossman@critters.cygnus.com)
558 * dbxread.c: Don't include param.h or sys/file.h.
559 * (dbx_symfile_read): Determine symfile_relocatable from bfd
560 flags instead of file extension. Also clean up a little bit.
562 Wed Aug 7 17:18:37 1996 Stu Grossman (grossman@critters.cygnus.com)
564 * dwarf2read.c dwarfread.c exec.c infcmd.c infrun.c main.c
565 mdebugread.c os9kread.c source.c top.c utils.c: Don't
566 include param.h or sys/file.h (or unistd.h in some cases).
567 * defs.h exec.c inflow.c remote-array.c remote-e7000.c
568 sparcl-tdep.c terminal.h utils.c: Replace all occurances of
569 __WIN32__, WINGDB, WIN32, etc... with _WIN32.
570 * main.c: Remove #ifndef WINGDB around option processing. Fix
571 bug with passing argc==0 and argv==NULL to getopt.
572 * (main) Remove calls to access() before source_command. Let
573 soure_command handle access errors.
574 * maint.c (maintenance_dump_me): #ifdef out for _WIN32.
575 * symtab.c (operator_chars): Make this global for wingdb.
576 * top.c (disconnect): #ifdef out for _WIN32.
577 * (source_command): If got an error and from_tty, then call print
578 error, else just return quietly.
579 * utils.c (fatal_dump_core): Can't kill ourselves under windows.
581 * (pollquit notice_quit): #ifdef out stuff that doesn't exist
584 Wed Aug 7 09:59:19 1996 Jeffrey A Law (law@cygnus.com)
586 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Tweak for
587 structures > 4 bytes in size.
589 * valops.c (call_function_by_hand): Handle aligning stacks that
591 * config/pa/tm-hppa.h (USE_STRUCT_CONVENTION): Define.
592 (STACK_ALIGN): Define.
593 * hppa-tdep.c (hppa_alignof): Don't demand a minumim two byte
594 alignment on structs/unions.
596 Sun Aug 4 16:22:42 1996 Fred Fish <fnf@cygnus.com>
598 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Define to "int *",
599 which is the documented type under at least AIX 3 and AIX 4.
601 Sat Aug 3 04:02:46 1996 Fred Fish <fnf@cygnus.com>
603 * config/alpha/alpha-osf3.mh (XM_FILE): Change from xm-alpha.h to
605 (MMALLOC_CFLAGS): Define NO_MMCHECK to not install consistency
609 Thu Aug 1 20:35:01 1996 Tom Tromey <tromey@creche.cygnus.com>
611 * gdbtk.c (mainWindow): Deleted.
612 (cleanup_init): Don't destroy main window.
613 (gdbtk_init): Main window now created by Tk_Init.
615 * configure.in: Most X checks now handled automatically by Tk.
616 Use new macros to find Tcl/Tk.
617 * aclocal.m4: New version for new Tcl/Tk; from Don Libes.
618 * config.in, configure: Regenerated.
620 * Makefile.in (TCL, TCL_CFLAGS, TK, TK_CFLAGS, X11_CFLAGS,
621 X11_LDFLAGS, X11_LIBS): Changed for new Tcl and Tk.
624 Thu Aug 1 10:11:34 1996 Fred Fish <fnf@cygnus.com>
626 * config/mips/tm-mips.h (TM_MIPS_H): Enclose file contents in
627 this, define when contents are included.
628 (mips_read_processor_type): Add prototype.
629 * config/mips/xm-mips.h: Remove strdup decl, now in gdb_string.h
630 * mdebugread.c (ecoff_relocate_efi): Add prototype.
631 (fixup_sigtramp): Only needed when TM_MIPS_H is defined.
634 Thu Aug 1 16:12:05 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
636 * Makefile.in (gdbtk.tcl): put in $(datadir), not $(libdir).
639 Wed Jul 31 20:21:24 1996 Fred Fish <fnf@cygnus.com>
641 * rs6000-nat.c (add_vmap): Return 0 to caller rather than random value.
642 (vmap_ldinfo): Ensure got_exec_file is not used uninitialized.
643 (fetch_core_registers): Add prototype.
644 (vmap_symtab): Ditto.
645 (objfile_symbol_add): Ditto.
647 (vmap_ldinfo): Ditto.
650 Tue Jul 30 17:57:46 1996 Stan Shebs <shebs@andros.cygnus.com>
652 * stabsread.c (get_substring): Declare second arg as int.
654 * remote-es.c: Include gdb_string.h after defs.h.
656 Mon Jul 29 21:13:20 1996 Fred Fish <fnf@cygnus.com>
658 * rs6000-tdep.c (push_arguments): Remove unused variable "pc".
659 (branch_dest): Remove unused variable "offset".
660 (pop_dummy_frame): Add prototype and make static.
661 (push_arguments): Guard against using len uninitialized.
662 (push_arguments): Guard against using arg uninitialized.
663 (frame_saved_pc): Remove unused variable "frameless".
664 (free_loadinfo): Ifdef out unused function.
666 * xcoffread.c (compare_lte): Change prototype and function to
667 be correct type for passing to qsort.
668 (add_stab_to_list): Ifdef out unused function and prototype.
669 (compare_lte): Add prototype
670 (arrange_linetable): Ditto.
671 (record_include_begin): Ditto.
672 (record_include_end): Ditto.
673 (process_linenos): Ditto.
674 (xcoff_next_symbol_text): Ditto.
675 (scan_xcoff_symtab): Ditto.
676 (xcoff_initial_scan): Ditto.
678 * mips-tdep.c (mips_read_processor_type): Add parens around
679 bitwise-and operands in comparison; previous expression always
680 evaluated to 0 because of equality comparison of two constants.
682 * rs6000-tdep.c (skip_prologue): Add missing parens around
683 operands of logical-or so that first operand does not bind
684 to previous logical-and.
686 * configure.in: Expand "long long" test to include code that triggers
687 known problem on HPUX with native compiler.
688 (configure): Regenerated.
690 Mon Jul 29 18:12:27 1996 Jeffrey A Law (law@cygnus.com)
692 * somsolib.c (som_solib_create_inferior_hook): Don't
693 warn if __d_pid can't be found.
695 Sun Jul 28 10:46:39 1996 Fred Fish <fnf@cygnus.com>
697 * config/mips/tm-mips.h (struct frame_info): Forward decl.
698 (struct type): Ditto.
699 (struct value): Ditto.
701 * config/mips/tm-mips.h (sigtramp_address): Move extern decl
702 from mips-tdep.c to here.
703 (sigtramp_end): Ditto.
704 (fixup_sigtramp): Ditto.
706 * config/mips/tm-mips.h (init_extra_frame_info): Add prototype.
707 (mips_frame_chain): Ditto.
708 (mips_step_skips_delay): Ditto.
709 (mips_frame_saved_pc): Ditto.
710 (mips_find_saved_regs): Ditto.
711 (mips_frame_num_args): Ditto.
712 (mips_pop_frame): Ditto.
713 (mips_extract_return_value): Ditto.
714 (mips_store_return_value): Ditto.
715 (mips_push_dummy_frame): Ditto.
716 (mips_push_arguments): Ditto.
717 (mips_do_registers_info): Ditto.
718 (ecoff_relocate_efi): Ditto.
719 (ecoff_relocate_efi): Ditto.
720 * irix4-nat.c (fetch_core_registers): Add prototype.
721 * mips-tdep.c (read_next_frame_reg): Add prototype
722 (heuristic_proc_start): Ditto.
723 (heuristic_proc_desc): Ditto.
724 (mips_print_register): Ditto.
725 * config/mips/nm-irix5.h (procfs_set_watchpoint): Add prototype.
726 (procfs_stopped_by_watchpoint): Ditto.
727 * config/mips/nm-irix4.h (procfs_set_watchpoint): Add prototype.
728 (procfs_stopped_by_watchpoint): Ditto.
729 * config/alpha/tm-alpha.h (ecoff_relocate_efi): Add prototype.
730 (struct symbol): Add forward decl for prototype.
732 * breakpoint.c (internal_breakpoint_number): Only needed if
733 GET_LONGJMP_TARGET or SOLIB_ADD is defined.
735 * objfiles.c (ecoff_relocate_efi): Remove prototype.
737 Sat Jul 27 17:47:35 1996 Fred Fish <fnf@cygnus.com>
739 * configure.in: Add test for "long long" support.
740 * configure: Regenerate with autoconf.
741 * acconfig.h: Add CC_HAS_LONG_LONG
742 * config.in: Regenerate with autoheader.
743 * config/mips/tm-mips64.h (FORCE_LONG_LONG): Remove
744 * config/sparc/tm-sp64.h (CC_HAS_LONG_LONG): Remove.
745 * config/mips/tm-vr4300el.h (CC_HAS_LONG_LONG): Remove.
746 * config/mips/tm-vr4300.h (CC_HAS_LONG_LONG): Remove.
747 * config/mips/xm-irix5.h (CC_HAS_LONG_LONG): Remove
748 (PRINTF_HAS_LONG_LONG): Remove.
749 (FORCE_LONG_LONG): Remove.
750 * config/powerpc/xm-aix.h (UINT_MAX): Undef and use gdb's version.
751 * config/convex/xm-convex.h (CC_HAS_LONG_LONG): Remove
752 (PRINTF_HAS_LONG_LONG): Remove.
753 * config/xm-nbsd.h (CC_HAS_LONG_LONG): Remove.
754 (PRINTF_HAS_LONG_LONG): Remove.
755 * config/pa/tm-hppa.h (GET_FIELD): Put parens around
756 subtraction inside shift. Put parens around subtraction
757 in operand of bitwise and.
758 (struct frame_info): Forward declare
760 (frame_saved_regs): Ditto.
761 (struct value): Ditto.
762 (struct type): Ditto.
763 (struct inferior_status): Ditto.
764 (init_extra_frame_info): Add prototype.
765 (skip_prologue): Ditto.
766 (frameless_function_invocation): Ditto.
767 (frame_chain): Ditto.
768 (frame_chain_valid): Ditto.
769 (saved_pc_after_call): Ditto.
770 (hppa_fix_call_dummy): Ditto.
771 (hppa_push_arguments): Ditto.
772 (pa_do_registers_info): Ditto.
773 (in_solib_call_trampoline): Ditto.
774 (in_solib_return_trampoline): Ditto.
775 (push_dummy_frame): Ditto.
776 * convex-tdep.c (decout): Use print_longest rather than
778 * defs.h: Remove use of FORCE_LONG_LONG and __GNUC__ to set
780 (INT_MIN): Fix so it works correctly when assigned to a long long.
781 * valprint.c (longest_to_int): Rewrite to remove dependence
782 on INT_MIN and INT_MAX.
783 (print_longest): Rewrite the code that falls back to synthesized
784 hex output when LONGEST value is not representable as in a long and
785 printf doesn't support printing long longs.
786 * ch-valprint.c (chill_val_print): Cast 2nd arg of
787 chill_print_type_scalar to LONGEST.
788 chill_print_type_scalar): Make static and add prototype.
789 * hppa-tdep.c (get_field): Ifdef out unused function.
792 (extract_5_store): Ditto.
796 (extract_14): Convert to static and add prototype.
801 (extract_5r_store): Ditto.
802 (extract_5R_store): Ditto.
803 (extract_5_load): Ditto.
804 (find_proc_framesize): Ditto.
805 (find_dummy_frame_regs): Ditto.
806 (sign_extend): Ditto.
807 (find_unwind_entry): Add prototype.
808 (find_return_regnum): Ditto.
809 (unwind_command): Ditto.
810 (find_dummy_frame_regs): Add parens around subtraction in operand
812 (skip_prologue): Add parens around operands of logical-and inside
813 operand of logical-or.
814 (sign_extend): Add parens around operands of subtraction inside
816 (low_sign_extend): Ditto.
817 * top.c (filename_completer): Convert old style decl of
818 filename_completion_function into prototype.
819 * f-lang.c (patch_common_entries): Ifdef out unused function.
820 * stabsread.c (read_cfront_baseclasses): Remove unused local
821 variable "msg_noterm".
822 (resolve_cfront_continuation): Remove unused local variable "fip".
823 (read_type): Remove unused variable xtypenums.
824 (read_cfront_static_fields): Remove unused variable "i".
825 (read_cfront_static_fields): Remove unused variable "nfields".
826 (read_cfront_member_functions): Add missing comment terminator.
827 (read_cfront_static_fields): Return 1 rather than random value.
828 (read_cfront_baseclasses): Ditto.
829 (read_cfront_baseclasses): Ditto.
830 (read_cfront_baseclasses): Ditto.
831 * somsolib.c (som_solib_create_inferior_hook): Remove unused
833 (som_solib_create_inferior_hook): Remove unused variable
835 (language.h): Add for needed prototypes.
836 (som_solib_sharedlibrary_command): Add prototype.
837 * hpread.c: (hpread_read_array_type): Add prototype.
838 * somread.c (hpread_build_pysmtabs): Add prototype.
839 (hpread_symfile_finish): Ditto.
840 (hpread_symfile_init): Ditto.
841 * hppah-nat.c (fetch_register): Convert old style decl
843 (gdbcore.h): Include for needed prototypes.
844 (fetch_register): Remove unused variable "mess".
845 * remote-pa.c (get_offsets): Ifdef out unused function.
846 (remote_start_remote): Remove unused variable "timeout".
847 (boot_board): Add prototype.
848 (reaad_frame): Add prototype.
849 (getpkt): Remove unused variable "bp".
850 (remote_kill): Add prototype.
851 (remote_mourn): Add prototype.
852 (remote_insert_breakpoint): Add prototype.
853 (remote_remove_breakpoint): Add prototype.
854 * valops.c (value_push): Only use if PUSH_ARGUMENTS is not defined.
855 * infcmd.c (do_registers_info): Only need prototype if
856 DO_REGISTERS_INFO is not defined.
857 (breakpoint_auto_delete_contents): Only need if
858 CALL_DUMMY_BREAKPOINT_OFFSET is defined.
860 Sat Jul 27 08:49:49 1996 Fred Fish <fnf@cygnus.com>
862 * xcoffread.c (xcoff_end_psymtab): Add textlow_not_set parameter.
863 (END_PSYMTAB): Ditto.
864 (scan_xcoff_symtab): Call xcoff_end_psymtab with textlow_not_set.
866 Fri Jul 26 14:07:37 1996 Ian Lance Taylor <ian@cygnus.com>
868 * printcmd.c (_initialize_printcmd): Initialize
869 tm_print_insn_info.flavour.
871 * gdbtk.c (gdb_disassemble): Initialize di.flavour.
874 Thu Jul 25 19:41:31 1996 Fred Fish <fnf@cygnus.com>
876 * Makefile.in (scm-valprint.o): Depends upon gdbcore_h.
879 (i386ly-tdep.o): Ditto.
880 (i960-tdep.o): Ditto.
881 (m68k-tdep.o): Ditto.
882 (nindy-tdep.o): Ditto.
886 (m68k-tdep.o): Depends upon value_h and gdb_string.h
887 (m2-valprint.o): Depends upon m2-lang.h.
888 (sparc-tdep.o): Depends upon gdb_string.h
889 (valprint.o): Depends upon valprint.h
891 * remote-e7000.c (notice_quit): Remove prototype.
892 * top.c (initialize_targets): Remove prototype, now in target.h.
893 * stabsread.c (resolve_cfront_continuation): Remove prototype.
894 * dbxread.c (resolve_cfront_continuation): Remove prototype.
895 * symfile.h (set_demangling_style): Remove prototype.
896 * config/tm-sysv4.h (in_plt_section): Remove prototype, in objfiles.h.
897 * config/sparc/tm-sparc.h (single_step): Remove extern decl, now in
899 * config/arc/tm-arc.h (one_stepped, single_step): Remove extern decls,
901 * ser-unix.c (hardwire_restore): Remove obsolete prototype.
902 * sparc-tdep.c (single_step): Remove forward decl of isbranch.
903 * scm-lang.c (find_function_in_inferior): Remove prototype.
904 (value_allocate_space_in_inferior): Ditto.
905 * infrun.c (write_pc_pid): Remove prototype, now in inferior.h.
906 * defs.h (strchr): Remove declarations, they are declared in
912 * f-valprint.c (f77_print_array_1): Remove extra arg that was being
913 passed to f77_print_array_1.
914 * gdbtypes.c (add_name): Remove unused variables lenstrlen and lenstr.
915 * scm-exp.c (scm_istr2int): Remove unused variable "j".
916 (scm_parse): Remove unused variable "str".
917 * hp300ux-nat.c (store_inferior_register): Remove unused variable
919 (store_inferior_registers): Remove unnecessary decl "registers".
920 * m68k-tdep.c (m68k_pop_frame): Remove unused variable "fi".
921 * scm-lang.c (scm_get_field): Remove unused variable "val".
922 (scm_lookup_name): Remove unused variable "symval".
923 * objfiles.c (map_to_file): Remove unused local variable "tempfd".
924 * procfs.c (do_attach, do_detach): Remove unused variable "result".
925 (last_resume_pid): Remove unused static variable.
926 * alpha-tdep.c (alpha_linux_sigtramp_offset): Remove unused variable
928 * objfiles.c (map_to_address): Remove unused function.
929 * f-valprint.c (print_max): Remove extraneous extern decl,
931 (calc_f77_array_dims): Remove extraneous prototype, in f-lang.h.
932 * ch-exp.c (write_lower_upper_value): Remove prototype for
935 * gdbtypes.c (cfront_mangle_name): #ifdef out unused function.
936 * ch-exp.c (parse_mode_call): Ditto.
937 * f-valprint.c (there_is_a_visible_common_named): Ditto.
938 * f-lang.c (clear_function_list): Ditto.
939 (get_bf_for_fcn): Ditto.
940 (clear_bf_list): Ditto.
941 (add_common_block): Ditto.
942 (patch_all_commons_by_name): Ditto.
943 (find_first_common_named): Ditto.
944 (add_common_entry): Ditto.
945 (allocate_saved_function_node): Ditto.
946 (allocate_saved_bf_node): Ditto.
947 (allocate_common_entry_node): Ditto.
948 (allocate_saved_f77_common_node): Ditto.
950 * arm-tdep.c (gdbcore.h): Include for necessary prototypes.
951 * dcache.c (gdbcore.h): Ditto.
952 * i386ly-tdep.c (gdbcore.h): Ditto.
953 * i960-tdep.c (gdbcore.h): Ditto.
954 * m2-valprint.c (m2-lang.h): Ditto.
955 * m68k-tdep.c (gdbcore.h): Ditto.
957 (gdb_string.h): Ditto.
958 * nindy-tdep.c (gdbcore.h): Ditto.
959 * scm-lang.c (gdbcore.h): Ditto.
960 * scm-valprint.c (gdbcore.h): Ditto.
961 * w65-tdep.c (gdbcore.h): Ditto.
962 * z8k-tdep.c (gdbcore.h): Ditto.
963 * sparc-tdep.c (gdb_string.h): Include.
964 * valprint.c (valprint.h): Include.
966 * config/xm-lynx.h: Remove part of comment about INT_MIN
967 redefined warnings from defs.h, since INT_MIN define in
968 defs.h is now protected by #ifndef INT_MIN.
969 * config/i386/xm-i386bsd.h: Ditto.
970 * config/m68k/xm-hp300bsd.h: Ditto.
971 * config/m68k/xm-news.h: Ditto.
973 * config/pa/xm-hppah.h (INT_MIN): Remove bogus INT_MIN
974 definition as 0x80000000. The macro in defs.h is better.
975 * config/i386/xm-i386m3.h (INT_MIN): Ditto.
976 * config/i386/xm-i386mach.h (INT_MIN): Ditto.
977 * config/ns32k/xm-ns32km3.h (INT_MIN): Ditto.
978 * config/pa/xm-hppab.h: Ditto.
980 * core-aout.c (fetch_core_registers): Add prototype.
981 * hp300ux-nat.c (fetch_inferior_register): Ditto.
982 (store_inferior_register_1): Ditto.
983 (store_inferior_register): Ditto.
984 * config/m68k/tm-m68k.h (find_saved_regs): Ditto.
985 *scm-valprint.c (c_val_print): Ditto.
986 * procfs.c (add_fd): Ditto.
989 (sigcodename): Ditto.
990 (sigcodedesc): Ditto.
991 (procfs_kill_inferior): Ditto.
992 (procfs_xfer_memory): Ditto.
993 (procfs_store_registers): Ditto.
994 (create_procinfo): Ditto.
995 (procfs_init_inferior): Ditto.
996 (proc_set_exec_trap): Ditto.
997 (procfs_attach): Ditto.
998 (procfs_detach): Ditto.
999 (procfs_prepare_to_store): Ditto.
1000 (procfs_files_info): Ditto.
1001 (procfs_open): Ditto.
1002 (procfs_wait): Ditto.
1003 (procfs_fetch_registers): Ditto.
1004 (procfs_mourn_inferior): Ditto.
1005 (procfs_can_run): Ditto.
1006 (procfs_thread_alive): Ditto.
1007 (procfs_stop): Ditto.
1008 * alpha-nat.c (fetch_core_registers): Ditto.
1009 * config/alpha/tm-alpha.h (alpha_osf_skip_sigtramp_frame): Ditto.
1010 * objfiles.c (ecoff_relocate_efi): Ditto.
1011 * inflow.c (pass_signal): Ditto.
1012 (handle_sigio): Ditto.
1013 * annotate.c (breakpoint_changed): Ditto.
1014 * callback.c (wrap): Ditto.
1017 * utils.c (malloc_botch): Ditto.
1018 (fputs_maybe_filtered): Ditto.
1019 (vfprintf_maybe_filtered): Ditto.
1020 * defs.h (notice_quit): Ditto.
1021 * defs.h (xmalloc, xrealloc): Ditto.
1022 * top.c (stop_sig): Ditto.
1023 (init_signals): Ditto.
1024 (user_defined_command): Ditto.
1025 (source_cleanup_lines): Ditto.
1026 (dont_repeat_command): Ditto.
1027 (serial_log_command): Ditto.
1028 (disconnect): Ditto.
1029 * target.h (initialize_targets): Ditto.
1030 * os9kread.c (read_minimal_symbols): Ditto.
1031 * mdebugread.c (mdebug_psymtab_to_symtab): Ditto.
1033 (push_parse_stack): Ditto.
1034 (pop_parse_stack): Ditto.
1035 (is_pending_symbol): Ditto.
1036 (add_pending): Ditto.
1037 * serial.c (serial_logchar): Ditto.
1038 (serial_interface_lookup): Ditto.
1039 * serial.h (serial_log_command): Ditto.
1040 * f-valprint.c (info_common_command): Ditto.
1041 * gdbtypes.h (print_type_scalar): Ditto.
1042 * scm-valprint.c (scm_scmlist_print): Ditto.
1044 * scm-lang.c (scm_printstr): Ditto.
1046 (evaluate_subexp_scm): Ditto.
1047 * scm-exp.c (scm_read_token): Ditto.
1048 (scm_skip_ws): Ditto.
1049 (scm_lreadparen): Ditto.
1050 * m2-lang.c (emit_char): Ditto.
1051 (m2_printchar): Ditto.
1052 (m2_printstr): Ditto.
1053 (m2_create_fundamental_type): Ditto.
1054 * f-lang.c (emit_char): Ditto.
1055 (f_printchar): Ditto.
1056 (f_printstr): Ditto.
1057 (f_create_fundamental_type): Ditto.
1058 * ch-lang.c (chill_printchar): Ditto.
1059 (chill_printstr): Ditto.
1060 (chill_create_fundamental_type): Ditto.
1061 (value_chill_length): Ditto.
1062 (value_chill_card): Ditto.
1063 (value_chill_max_min): Ditto.
1064 (evaluate_subexp_chill): Ditto.
1065 * ch-exp.c (PEEK_TOKEN): Ditto.
1066 (peek_token_): Ditto.
1067 (forward_token_): Ditto.
1068 (parse_case_label): Ditto.
1069 (parse_opt_untyped_expr): Ditto.
1070 (parse_unary_call): Ditto.
1071 (parse_call): Ditto.
1072 (parse_named_record_element): Ditto.
1073 (parse_tuple_element): Ditto.
1074 (parse_opt_element_list): Ditto.
1075 (parse_tuple): Ditto.
1076 (parse_primval): Ditto.
1077 (parse_operand6): Ditto.
1078 (parse_operand5): Ditto.
1079 (parse_operand4): Ditto.
1080 (parse_operand3): Ditto.
1081 (parse_operand2): Ditto.
1082 (parse_operand1): Ditto.
1083 (parse_operand0): Ditto.
1084 (parse_expr): Ditto.
1085 (parse_then_alternative): Ditto.
1086 (parse_else_alternative): Ditto.
1087 (parse_if_expression): Ditto.
1088 (parse_untyped_expr): Ditto.
1089 (growbuf_by_size): Ditto.
1090 (match_simple_name_string): Ditto.
1091 (decode_integer_value): Ditto.
1092 (decode_integer_literal): Ditto.
1093 (match_float_literal): Ditto.
1094 (match_float_literal): Ditto.
1095 (match_string_literal): Ditto.
1096 (match_character_literal): Ditto.
1097 (match_integer_literal): Ditto.
1098 (match_bitstring_literal): Ditto.
1099 (write_lower_upper_value): Ditto.
1100 * ch-lang.h (type_lower_upper): Ditto.
1101 * c-lang.c (emit_char): Ditto.
1102 * dwarfread.c (free_utypes): Ditto.
1103 * stabsread.h (resolve_cfront_continuation): Ditto.
1104 * stabsread.c (get_substring): Ditto.
1105 (read_one_struct_field): Ditto.
1106 * stabsread.h (process_later): Ditto.
1107 * demangle.c (set_demangling_command): Ditto.
1108 * defs.h (set_demangling_style): Ditto.
1109 * maint.c (maintenance_info_command): Ditto.
1110 (print_section_table): Ditto.
1111 (maintenance_info_sections): Ditto.
1112 (maintenance_print_command): Ditto.
1113 * symtab.h (maintenance_print_statistics): Ditto.
1114 * objfiles.h (in_plt_section): Ditto.
1115 * objfiles.c (add_to_objfile_sections): Ditto.
1116 * bcache.c (hash): Ditto.
1117 (lookup_cache): Ditto.
1118 * exec.c (bfdsec_to_vmap): Ditto.
1120 * f-exp.y (growbuf_by_size, match_string_literal): Ditto.
1121 * language.c (unk_lang_printchar): Ditto.
1122 (unk_lang_printstr): Ditto.
1123 (unk_lang_create_fundamental_type): Ditto.
1124 (unk_lang_print_type): Ditto.
1125 (unk_lang_val_print): Ditto.
1126 (unk_lang_value_print): Ditto.
1127 * target.c (update_current_target): Ditto.
1128 (debug_to_open): Ditto.
1129 (debug_to_close): Ditto.
1130 (debug_to_attach): Ditto.
1131 (debug_to_detach): Ditto.
1132 (debug_to_resume): Ditto.
1133 (debug_to_wait): Ditto.
1134 (debug_to_fetch_registers): Ditto.
1135 (debug_to_store_registers): Ditto.
1136 (debug_to_prepare_to_store): Ditto.
1137 (debug_to_xfer_memory): Ditto.
1138 (debug_to_files_info): Ditto.
1139 (debug_to_insert_breakpoint): Ditto.
1140 (debug_to_remove_breakpoint): Ditto.
1141 (debug_to_terminal_init): Ditto.
1142 (debug_to_terminal_inferior): Ditto.
1143 (debug_to_terminal_ours_for_output): Ditto.
1144 (debug_to_terminal_ours): Ditto.
1145 (debug_to_terminal_info): Ditto.
1146 (debug_to_kill): Ditto.
1147 (debug_to_load): Ditto.
1148 (debug_to_lookup_symbol): Ditto.
1149 (debug_to_create_inferior): Ditto.
1150 (debug_to_mourn_inferior): Ditto.
1151 (debug_to_can_run): Ditto.
1152 (debug_to_notice_signals): Ditto.
1153 (debug_to_thread_alive): Ditto.
1154 (debug_to_stop): Ditto.
1155 start-sanitize-gdbtk
1156 * gdbtk.c (null_routine): Ditto.
1157 (gdbtk_flush): Ditto.
1158 (gdbtk_fputs): Ditto.
1159 (gdbtk_query): Ditto.
1160 (gdbtk_readline): Ditto.
1161 (gdbtk_readline_end): Ditto.
1162 (gdb_get_breakpoint_list): Ditto.
1163 (gdb_get_breakpoint_info): Ditto.
1164 (breakpoint_notify): Ditto.
1165 (gdbtk_create_breakpoint): Ditto.
1166 (gdbtk_delete_breakpoint): Ditto.
1167 (gdbtk_modify_breakpoint): Ditto.
1170 (gdb_sourcelines): Ditto.
1171 (map_arg_registers): Ditto.
1172 (get_register_name): Ditto.
1173 (gdb_regnames): Ditto.
1174 (get_register): Ditto.
1175 (gdb_fetch_registers): Ditto.
1176 (register_changed_p): Ditto.
1177 (gdb_changed_register_list): Ditto.
1179 (call_wrapper): Ditto.
1180 (gdb_listfiles): Ditto.
1182 (gdbtk_dis_asm_read_memory): Ditto.
1183 (compare_lines): Ditto.
1184 (gdb_disassemble): Ditto.
1185 (tk_command): Ditto.
1186 (cleanup_init): Ditto.
1187 (gdbtk_interactive): Ditto.
1189 (gdbtk_wait): Ditto.
1190 (gdbtk_call_command): Ditto.
1191 (tk_command_loop): Ditto.
1192 (gdbtk_init): Ditto.
1194 * breakpoint.h (set_breakpoint_sal): Ditto.
1195 * remote-utils.c (usage): Ditto.
1196 * remote.c (set_thread): Ditto.
1197 (remote_thread_alive): Ditto.
1198 (get_offsets): Ditto.
1199 (read_frame): Ditto.
1200 (remote_insert_breakpoint): Ditto.
1201 (remote_remove_breakpoint): Ditto.
1202 * sparc-nat.c (fetch_core_registers): Ditto.
1203 * corelow.c (add_to_thread_list): Ditto.
1205 * inftarg.c (proc_wait): Ditto.
1206 * infptrace.c (udot_info): Ditto.
1207 (fetch_register): Ditto.
1208 * ser-unix.c (hardwire_noflush_set_tty_state): Ditto.
1209 (hardwire_print_tty_state): Ditto.
1210 (hardwire_flush_output): Ditto.
1211 (hardwire_flush_input): Ditto.
1212 (hardwire_send_break): Ditto.
1213 (hardwire_setstopbits): Ditto.
1214 * ser-tcp.c (tcp_return_0): Ditto.
1215 (tcp_noflush_set_tty_state): Ditto.
1216 (tcp_print_tty_state): Ditto.
1217 * solib.c (match_main): Ditto.
1218 * gdbtypes.c (print_bit_vector): Ditto.
1219 (print_arg_types): Ditto.
1220 (dump_fn_fieldlists): Ditto.
1221 (print_cplus_stuff): Ditto.
1222 * symfile.h (entry_point_address): Ditto.
1223 * symfile.c (decrement_reading_symtab): Ditto.
1224 * valops.c (value_arg_coerce): Ditto.
1225 * value.h (find_function_in_inferior): Ditto.
1226 (value_allocate_space_in_inferior): Ditto.
1227 * values.c (vb_match): Ditto.
1228 * thread.c (info_thread_command): Ditto.
1229 (restore_current_thread): Ditto.
1230 (thread_apply_all_command): Ditto.
1231 (thread_apply_command): Ditto.
1232 * inferior.h (write_pc_pid): Ditto.
1233 * infrun.c (delete_breakpoint_current_contents): Ditto.
1234 * breakpoint.c (print_it_normal): Ditto.
1235 (watchpoint_check): Ditto.
1236 (print_it_done): Ditto.
1237 (print_it_noop): Ditto.
1238 (maintenance_info_breakpoints): Ditto.
1239 (create_longjmp_breakpoint): Ditto.
1240 (hbreak_command): Ditto.
1241 (thbreak_command): Ditto.
1242 (watch_commnd_1): Ditto.
1243 (rwatch_command): Ditto.
1244 (awatch_command): Ditto.
1245 (do_enable_breakpoint): Ditto.
1246 * ch-valprint.c (chill_val_print_array_elements): Ditto.
1247 * eval.c (evaluate_subexp): Ditto.
1249 (evaluate_struct_tuple): Ditto.
1250 * eval.c (init_array_element): Ditto.
1252 * alpha-tdep.c (push_sigtramp_desc): Add prototype and make static.
1253 * breakpoint.c (hw_breakpoint_used_count): Ditto.
1254 (hw_watchpoint_used_count): Ditto.
1255 * findvar.c (write_register_gen): Ditto.
1256 (read_register_pid): Ditto.
1257 * symtab.c (cplusplus_hint): Ditto.
1258 * infcmd.c (breakpoint_auto_delete_contents): Ditto.
1259 * ch-valprint.c (chill_print_type_scalar): Ditto.
1260 * gdbtypes.c (add_name): Ditto.
1261 (add_mangled_type): Ditto.
1262 (cfront_mangle_name): Ditto.
1263 * sparc-tdep.c (isbranch): Ditto.
1264 * inftarg.c (child_stop): Ditto.
1265 * win32-nat.c (child_stop): Ditto.
1266 * mac-nat.c (child_stop): Ditto.
1267 * remote-utils.c (sr_com): Ditto.
1268 * dbxread.c (process_now): Ditto.
1269 * ch-exp.c (require): Ditto.
1270 (check_token): Ditto.
1272 (parse_mode_call): Ditto.
1273 (parse_mode_or_normal_call): Ditto.
1274 * scm-lang.c (scm_lookup_name): Ditto
1275 * f-lang.c (allocate_saved_bf_node): Ditto.
1276 (allocate_saved_function_node): Ditto.
1277 (allocate_saved_f77_common_node): Ditto.
1278 (allocate_common_entry_node): Ditto.
1279 (add_common_block): Ditto.
1280 (add_common_entry): Ditto.
1281 (find_first_common_named): Ditto.
1282 (patch_common_entries): Ditto.
1283 (patch_all_commons_by_name): Ditto.
1284 (clear_bf_list): Ditto.
1285 (get_bf_for_fcn): Ditto.
1286 (clear_function_list): Ditto.
1287 * scm-exp.c (scm_istr2int): Ditto.
1288 (scm_istring2number): Ditto.
1289 * scm-valprint.c (scm_inferior_print): Ditto.
1290 * f-typeprint.c (print_equivalent_f77_float_type): Ditto.
1291 * f-valprint.c (f77_get_dynamic_length_of_aggregate): Ditto.
1292 (f77_create_arrayprint_offset_tbl): Ditto.
1293 (f77_print_array_1): Ditto.
1294 (f77_print_array): Ditto.
1295 (list_all_visible_commons): Ditto.
1296 (there_is_a_visible_common_named): Ditto.
1297 * mdebugread.c (ecoff_relocate_efi): Ditto.
1298 * callback.c (os_close): Ditto.
1299 (os_get_errno): Ditto.
1304 (os_read_stdin): Ditto.
1306 (os_write_stdout): Ditto.
1311 (os_shutdown): Ditto.
1313 (os_printf_filtered): Ditto.
1315 * scm-lang.h (scm_parse): Change old style decl to prototype.
1316 * config/alpha/tm-alphalinux.h (alpha_linux_sigtramp_offset): Ditto.
1317 * top.c (init_proc): Ditto.
1318 (query_hook): Ditto.
1319 (error_hook): Ditto.
1320 * f-lang.c (c_value_print): Ditto.
1321 * ch-exp.c (parse_expression): Ditto.
1322 (parse_primval): Ditto.
1323 (parse_untyped_expr): Ditto.
1324 (parse_opt_untyped_expr): Ditto.
1326 * config/sparc/tm-sparc.h (sparc_init_extra_frame_info): Ditto.
1327 (sparc_frame_saved_pc): Ditto.
1328 (sparc_push_dummy_frame): Ditto.
1329 (sparc_pop_frame): Ditto.
1330 * defs.h (fclose): Ditto.
1332 (error_hook): Ditto.
1334 * arc-tdep.c (single_step): Change arg to type "enum target_signal".
1335 * rs6000-tdep.c (single_step): Ditto.
1336 * sparc-tdep.c (single_step): Ditto.
1338 * breakpoint.c (cleanup_executing_breakpoints): Change unused arg type
1339 to PTR which is what make_cleanup expects.
1340 * utils.c (null_cleanup): Change arg type to PTR.
1341 * defs.h (null_cleanup): Change prototype to match actual function.
1342 * config/sparc/tm-sparc.h (struct frame_info): Move forward decl.
1343 * ch-valprint.c (chill_val_print): Cast 2nd arg of
1344 chill_print_type_scalar to LONGEST.
1345 * infrun.c (wait_for_inferior): Have empty switch case for
1346 BPSTAT_WHAT_CHECK_SHLIBS when SOLIB_ADD is not defined.
1347 (stop_on_solib_events): Only needed if SOLIB_ADD is defined.
1348 * infcmd.c (attach_command): Only need auto_solib_add if SOLIB_ADD
1350 * symfile.c (generic_load): Scan long int using a long int spec,
1352 * infptrace.c (udot_info): Only need local variables if KERNEL_U_SIZE
1354 (fetch_register): Only need function if FETCH_INFERIOR_REGISTERS is
1356 * inflow.c (handle_sigio): Only need prototype when the actual
1357 function is compiled in.
1358 * valprint.c (longest_to_int): Expand error message to be
1359 separate messages for args larger than largest signed int
1360 and args smaller than smallest signed int.
1361 * valprint.c (print_longest): Fix problems with support for case
1362 where compiler supports type "long long" but the runtime doesn't
1363 support printing them with "%ll".
1364 * scm-valprint.c (scm_scmlist_print, scm_scmval_print): Change
1365 return types to void since we don't actually return anything
1366 meaningful and callees ignore the values anyway.
1367 * procfs.c (modify_inherit_on_fork_flag): Enclose pr_flags in PIOCSET
1369 (modify_run_on_last_close_flag): Ditto.
1370 (wait_fd): Enclose local variables "num_fds" and "i" LOSING_POLL
1372 * alpha-tdep.c (push_sigtramp_desc): Return proc_desc rather than
1374 * infrun.c (wait_for_inferior): Ensure random_signal is not used
1376 * valops.c (call_function_by_hand): Ensure struct_addr is not used
1378 * breakpoint.c (watch_command_1): Ensure prev_frame is not used
1380 * utils.c (vfprintf_maybe_filtered): Change second arg from "char *"
1382 start-sanitize-gdbtk
1383 * gdbtk.c (gdb_fetch_registers): Cast fourth arg to map_arg_registers
1384 to proper pointer type, from int.
1385 (gdbtk_query): Change first arg to "const char *" from "char *".
1387 * infptrace.c (udot_info): Add two dummy args so that the type is
1388 correct for passing to add_info.
1389 * f-lang.c (saved_fcn): Move decl to head of file so it can be used
1391 (saved_bf_symnum): Ditto.
1392 (SAVED_FUNCTION): Ditto.
1393 (SAVED_FUNCTION_PTR): Ditto.
1395 (SAVED_BF_PTR): Ditto.
1396 * ch-exp.c (parse_named_record_element): Build error message in
1397 temporary buffer before passing it to expect, rather than passing
1398 wrong number of args to expect.
1399 * demangle.c (set_demangling_style): Call set_demangling_command with
1400 correct number of arguments.
1401 * inferior.h (terminal_init_inferior_with_pgrp): Change arg type to
1402 int to match actual function.
1403 (os_isatty): Call fdmap with right number of arguments, was missing
1404 the host_callback* arg.
1405 * target.c (cleanup_target): Prototype all functions casts.
1406 * target.h (one_stepped, single_step): Declare here and convert
1407 single_step to prototype.
1408 * infrun.c (one_stepped, single_step): Don't declare externs
1409 here, they have moved to target.h.
1410 * eval.c (init_array_element): Declare previously undeclared
1411 last two args as LONGEST.
1412 * dcache.c (dcache_xfer_memory): Change xfunc decls to prototype form.
1413 start-sanitize-gdbtk
1414 * gdbtk.c (register_changed_p): Remove unused local variable "buf".
1417 Thu Jul 25 16:11:54 1996 Doug Evans <dje@canuck.cygnus.com>
1419 * dsrec.c (load_srec): Protect ANSI style function parms with PARAMS.
1421 Mon Jul 22 18:13:27 1996 Stu Grossman (grossman@critters.cygnus.com)
1423 * Makefile.in (os9kread.o): Remove dependency on partial-stab.h.
1424 * dbxread.c (read_dbx_symtab end_psymtab), partial-stab.h: Don't
1425 use partial_symtab->textlow==0 as a flag, as 0 is a legitimate
1426 text address. Use a seperate flag (textlow_not_set) instead.
1427 This makes stabs in ELF .o files work a lot better.
1428 * mdebugread.c xcoffread.c: Define textlow_not_set for
1430 * stabsread.h (end_psymtab): Add textlow_not_set arg to prototype.
1432 start-sanitize-gdbtk
1433 Sat Jul 20 17:46:40 1996 Fred Fish <fnf@cygnus.com>
1435 * gdbtk.tcl (files_command): Reorder the binding tags for
1436 the listbox widget to avoid referencing the listbox after
1437 the containing widget has been destroyed by the action of
1441 Sat Jul 20 10:41:06 1996 Fred Fish <fnf@cygnus.com>
1443 * dwarf2read.c (struct filenames): Change internal "struct file"
1444 to "struct fileinfo" to avoid conflict with "struct file" in
1445 <sys/file.h> on HPUX and Solaris.
1447 start-sanitize-gdbtk
1448 Sat Jul 20 10:09:28 1996 Fred Fish <fnf@cygnus.com>
1450 * gdbtk.tcl (delete_expr): Unset corresponding element of
1451 expr_update_list when destroying an expression.
1452 (create_expr_window): Initialize expr_num, delete_expr_num,
1453 and expr_update_list here when each new expression window
1454 is created, rather than once at startup.
1457 Fri Jul 19 14:05:57 1996 Stan Shebs <shebs@andros.cygnus.com>
1459 * dwarf2read.c: New file, DWARF 2 reader originally contributed by
1460 Brent Benson, with additions by Gary Funck and Jerry Kreuscher.
1461 * Makefile.in (COMMON_OBS): Add dwarf2read.o.
1462 (SFILES): Add dwarf2read.c.
1463 (dwarf2read.o): Add build rule.
1464 * symfile.h (dwarf2_has_info, dwarf2_build_psymtabs): Declare
1466 * elfread.c (elf_symfile_read): Call them.
1467 (elf_symtab_read) [HARRIS_TARGET]: Skip some special symbols.
1469 Thu Jul 18 01:22:01 1996 Geoffrey Noer <noer@cygnus.com>
1471 * symfile.c (symfile_bfd_open):
1472 * exec.c (exec_file_command): for __GO32__ and __WIN32__ systems,
1473 free the user from having to type the .exe extension.
1475 Wed Jul 17 06:54:50 1996 Mark Alexander <marka@cygnus.com>
1477 * mon960-rom.c: Shorten the mon960_inits string to a single
1478 carriage return; this prevents a hang on connecting immediately
1479 after powerup, when MON960 is attempting autobaud detection.
1481 Tue Jul 16 23:47:04 1996 Mark Alexander <marka@cygnus.com>
1483 * a29k-tdep.c (get_saved_register): Allow PC to be modified
1484 when innermost frame is selected, but not in outer frames.
1486 Tue Jul 16 23:37:25 1996 Stu Grossman (grossman@critters.cygnus.com)
1488 * command.c (do_setshow_command): Don't segfault when showing
1489 var_string and var_string_noescape vars that are NULL.
1491 Mon Jul 15 16:55:48 1996 Doug Evans <dje@canuck.cygnus.com>
1493 * win32-nat.c (handle_load_dll): dos_path_to_unix_path renamed to
1494 cygwin32_conv_to_posix_path.
1495 (child_create_inferior): unix_path_to_dos_path renamed to
1496 cygwin32_conv_to_win32_path. Rewrite code to translate PATH.
1498 Mon Jul 15 16:44:05 1996 Stu Grossman (grossman@critters.cygnus.com)
1500 * defs.h printcmd.c: Create global disassemble_info structure
1502 start-sanitize-gdbtk
1503 * gdbtk.c (gdb_disassemble): Setup di.mach from
1504 tm_print_insn_info.mach, and set endian from TARGET_BYTE_ORDER.
1506 * i386-tdep.c (set_assembly_language_command): set
1507 tm_print_insn_info.mach to the appropriate value for 386 or 8086
1509 * printcmd.c (print_insn): Move init of disassembler_info to
1510 _initialize_printcmd. Set endian for disassembler here.
1511 * sparc-tdep.c: Set tm_print_insn_info.mach as appropriate to
1512 select sparc/sparclite.
1513 * config/sparc/{tm-sparc.h tm-sparclite.h}: Get rid of
1514 TM_PRINT_INSN. Set TM_PRINT_INSN_MACH to
1515 bfd_mach_sparc/bfd_mach_sparc_sparclite.
1517 Fri Jul 12 19:04:32 1996 Fred Fish <fnf@cygnus.com>
1519 * hpread.c (hpread_lookup_type): Use xmmalloc/xmrealloc rather
1520 than xmalloc/xrealloc.
1522 Fri Jul 12 17:59:47 1996 Fred Fish <fnf@cygnus.com>
1524 * objfiles.c (map_to_file): Error return from mmalloc_findbase is
1525 a NULL pointer, not a -1.
1527 Fri Jul 12 10:16:24 1996 Stu Grossman (grossman@critters.cygnus.com)
1529 * i386-tdep.c (set_assembly_language_command): New routine to
1530 select between i386 and i8086 instruction sets for disassembly.
1531 New command `set assembly-language {i386 i8086}'.
1533 Thu Jul 11 21:13:21 1996 Mark Alexander <marka@cygnus.com>
1535 * monitor.c (monitor_write_memory, monitor_read_memory_single):
1536 Disable use of "long long" memory read/write commands; can't
1537 use them because we hold the values to read/write in an int
1538 variable, and because strtoul fails on values that exceed the
1539 size of a long. This fixes breakpoint problems on MON960.
1541 Thu Jul 11 11:39:31 1996 Fred Fish <fnf@cygnus.com>
1543 * config/m68k/xm-hp300hpux.h (HAVE_MMAP): Remove definition.
1544 * config/pa/xm-hppah.h (HAVE_MMAP): Ditto.
1546 Wed Jul 10 16:54:41 1996 Fred Fish <fnf@cygnus.com>
1548 * Makefile.in (MMALLOC_CFLAGS): Eliminate intermediate MMALLOC_DISABLE
1549 and MMALLOC_CHECK macros, and add comment indicating how host dependent
1550 makefile fragment should modify MMALLOC_CFLAGS to not use mmalloc, or
1551 to use it but to not do heap corruption checking.
1552 * gdbserver/Makefile.in: Ditto.
1553 * utils.c (init_malloc): Replace warning() use with direct call of
1554 fprintf_unfiltered, since current_target has not yet been set and thus
1555 we cannot use warning(). If we try to use mmcheck and it fails,
1556 suggest that this configuration needs NO_MMCHECK or MMCHECK_FORCE
1557 defined. Other small mmalloc related cleanups.
1558 * config/sparc/sun4os4.mh (MMALLOC_CFLAGS): Define MMCHECK_FORCE to 1.
1559 * config/alpha/alpha-osf2.mh (MMALLOC_CFLAGS): Set to -DNO_MMCHECK.
1561 * config/sparc/xm-sun4os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1562 * config/i386/xm-i386v4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1563 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1564 * config/m68k/xm-hp300hpux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1565 * config/m68k/xm-m68kv4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT);
1566 * config/m68k/xm-sun3os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1567 * config/pa/xm-hppah.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1568 * config/sparc/xm-sun4sol2.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1569 Remove obsolete defines.
1571 * config/alpha/alpha-linux.mh (MMALLOC_DISABLE):
1572 * config/alpha/alpha-osf1.mh (MMALLOC_DISABLE):
1573 * config/rs6000/rs6000.mh (MMALLOC_DISABLE):
1574 * config/rs6000/aix4.mh (MMALLOC_DISABLE):
1575 * config/powerpc/aix4.mh (MMALLOC_DISABLE):
1576 * config/powerpc/aix.mh (MMALLOC_DISABLE):
1577 * config/ns32k/ns32km3.mh (MMALLOC_DISABLE):
1578 * config/mips/mipsm3.mh (MMALLOC_DISABLE):
1579 * config/mips/decstation.mh (MMALLOC_DISABLE):
1580 * config/m88k/cxux.mh (MMALLOC_DISABLE):
1581 * config/i386/i386mk.mh (MMALLOC_DISABLE):
1582 * config/i386/i386m3.mh (MMALLOC_DISABLE):
1583 * config/i386/i386gnu.mh (MMALLOC_DISABLE):
1584 Use MMALLOC_CFLAGS instead.
1586 Tue Jul 9 22:41:12 1996 Jeffrey A Law (law@cygnus.com)
1588 * h8300-tdep.c: Remove some outdated comments.
1589 (h8300_skip_prologue): Rework to be more correct for the H8/300H.
1590 Handle stm.l insns for the H8/S.
1591 (examine_prologue): Likewise.
1593 Tue Jul 9 16:48:55 1996 Raymond Jou <rjou@mexican.cygnus.com>
1595 * ser-mac.c (mac_close): Change a typo SetSetBuf to SerSetBuf.
1597 Mon Jul 08 08:50:39 1996 Mark Alexander <marka@cygnus.com>
1599 * mon960-rom.c (mon960_open): Add floating point detection to
1600 prevent hang on non-FPU processors (PR 9775).
1601 (mon960_cmds): Swap setmem.cmdw and setmem.cmdl to fix problem
1602 setting breakpoints and improve loading speed.
1604 Sun Jul 7 14:57:34 1996 Fred Fish <fnf@cygnus.com>
1606 * coffread.c (record_minimal_symbol): Don't presave name string
1607 on symbol_obstack before passing to prim_record_minimal_symbol.
1608 It now handles saving the string itself.
1609 * dbxread.c (read_dbx_dynamic_symtab): Ditto.
1610 * mipsread.c (read_alphacoff_dynamic_symtab): Ditto.
1611 * os9kread.c (record_minimal_symbol): Ditto.
1612 * solib.c (solib_add_common_symbols): Ditto.
1614 * coffread.c (coff_symtab_read): Don't presave name string on
1615 symbol_obstack before passing to prim_record_minimal_symbol_and_info.
1616 It now handles saving the string itself.
1617 * dbxread.c (record_minimal_symbol): Ditto.
1618 * elfread.c (record_minimal_symbol_and_info): Ditto.
1620 * dstread.c (record_minimal_symbol): Remove static function that just
1621 called prim_record_minimal_symbol with the same args (after change to
1622 prim_record_minimal_symbol to do it's own name string saves).
1623 * nlmread.c (record_minimal_symbol): Ditto.
1624 * somread.c (record_minimal_symbol): Ditto.
1626 * hpread.c (hpread_read_enum_type): Save symbol name on symbol obstack.
1627 (hpread_read_function_type): Ditto.
1628 (hpread_process_one_debug_symbol): Ditto.
1629 * mdebugread.c (parse_symbol): Ditto.
1630 (new_symbol): Ditto.
1631 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
1633 * coffread.c (process_coff_symbol): Use obsavestring to save
1634 SYMBOL_NAME, rather than obstack_copy0.
1635 * dstread.c (create_new_symbol): Ditto
1636 * symfile.c (obconcat): Ditto.
1637 * stabsread.c (patch_block_stabs): Ditto.
1638 * xcoffread.c (SYMNAME_ALLOC): Ditto.
1640 * symfile.c (obsavestring): Update comments
1641 * solib.c (solib_add_common_symbols): Remove local var origname.
1643 Wed Jul 3 15:56:08 1996 Stu Grossman (grossman@critters.cygnus.com)
1645 * configure: Re-build with autoconf-2.10.
1647 * sparcl-tdep.c (_initialize_sparc_tdep) config/sparc/tm-sparc.h,
1648 config/sparc/tm-sparclite.h: Initialize tm_print_insn from
1649 TM_PRINT_INSN, which comes from the tm file.
1651 Tue Jul 02 21:41:20 1996 Mark Alexander <marka@cygnus.com>
1653 * coffread.c, dbxread.c, elfread.c, mipsread.c, nlmread.c,
1654 os9kread.c: Replace identical sym_offsets functions with
1655 default_symfile_offsets.
1656 * somread.c (som_symfile_offsets): Use new SIZEOF_SECTION_OFFSETS
1657 macro to allocate section_offsets.
1658 * symfile.c (default_symfile_offsets): New function.
1659 * symfile.h: Declare default_symfile_offsets.
1660 * symtab.h: Define SIZEOF_SECTION_OFFSETS macro to
1661 simplify allocation of section_offsets.
1663 Tue Jun 11 12:02:55 1996 Stu Grossman (grossman@critters.cygnus.com)
1665 * Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
1666 * configure configure.in: Only make sol-thread.o for native.
1667 Also, switch to dlopened libthread_db.so.1.
1668 * sol-thread.c: Switch to using dlopen to get the thread_db
1671 Thu Jun 13 16:53:25 1996 Stu Grossman (grossman@critters.cygnus.com)
1673 * configure, configure.in: Change test for libthread_db to only
1674 work for configs where build/host/target are the same.
1676 Tue Jul 2 15:04:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1678 * config/powerpc/{linux.mh,xm-linux.h}: New files, for Linux on
1681 * configure.in (powerpc-*-linux): Add Linux, System V, and ELF
1683 * configure: Regenerate.
1685 Mon Jul 1 13:00:43 1996 Stan Shebs <shebs@andros.cygnus.com>
1687 From Raymond Jou <rjou@mexican.cygnus.com>:
1688 * mpw-make.sed: Add lines to whack out autoconf hook
1691 Mon Jul 01 11:07:15 1996 Mark Alexander <marka@cygnus.com>
1693 * remote-e7000.c (e7000_stop): New function.
1695 Fri Jun 28 06:34:19 1996 Dawn Perchik <dawn@cygnus.com>
1697 * configure, configure.in: Add target sparclet.
1698 * monitor.h, monitor.c: Added monitor flags MO_NO_ECHO_ON_SETMEM
1699 (don't expect echo on setmem command), MO_RUN_FIRST_TIME (if
1700 command to start process running on target is different from one
1701 to continue execution), MO_HEX_PREFIX (if addresses from monitor
1702 have a "0x" prefix).
1703 * monitor.c, parse.c, sparc-tdep.c: Don't require strings in the
1704 registers array. This is to allow NULLs to be place holders in
1705 the tm-*.h file so that only minor changes are needed when a new
1706 processor is introduced (eg, one without floating point).
1707 * sparc-tdep.c: Conditionally remove dependancies on floating
1709 * sparclet-rom.c, config/sparc/sparclet.mt,
1710 config/sparc/tm-sparclet.h: New files for target sparclet.
1711 * symfile.c (load_command): Add option for 2nd parameter; a load
1712 offset added to the vma of each section.
1714 Fri Jun 28 05:39:19 1996 Dawn Perchik <dawn@cygnus.com>
1716 * main.c (main): Add option "l" for setting remote_timeout.
1718 Fri Jun 28 05:25:18 1996 Dawn Perchik <dawn@cygnus.com>
1720 * remote-e7000.c, remote.c, target.h, top.c: Add set option
1721 "remote_timeout" for setting remote_timeout. Add set option
1722 "use_hard_breakpoints" for setting hardware .vs. memory
1725 Fri Jun 28 04:32:18 1996 Dawn Perchik <dawn@cygnus.com>
1727 * remote-e7000.c (e7000_parse_device): New function.
1728 Add option "tcp_remote" to target command if using
1729 tcp to connect to a remote host which is then connected
1730 via serial port to the e7000 (for exampole, a port master).
1731 (e7000_open): Change to call e7000_parse_device.
1733 Fri Jun 28 03:47:17 1996 Dawn Perchik <dawn@cygnus.com>
1735 * monitor.c (monitor_debug): Fix remotedebug buffering.
1737 Thu Jun 27 18:24:17 1996 Stan Shebs <shebs@andros.cygnus.com>
1739 * config/i386/cygwin32.mh, config/powerpc/cygwin32.mh
1740 (NATDEPFILES): Add a space.
1742 Wed Jun 26 06:05:39 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
1744 * gdbtypes.c (create_array_type): If TYPE_LENGTH (result_type)
1745 is zero, set TYPE_FLAG_TARGET_STUB to force reevaluation of the type.
1747 * ch-exp.c (calculate_array_length): Function removed.
1749 Tue Jun 25 17:41:06 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1751 * remote-e7000.c (e7000_read_inferior_memory_large): New function.
1752 (e7000_xfer_inferior_memory): Call it.
1754 Tue Jun 25 23:14:07 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1756 * gdb/gdbserver/Makefile.in (docdir): Removed.
1758 Tue Jun 25 22:05:38 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1760 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir):
1761 Use autoconf set values.
1763 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
1764 * nlm/Makefile.in (bindir, libdir, datadir, mandir, infodir,
1765 includedir): Use autoconf set values.
1767 * nlm/configure.in (AC_PREREQ): autoconf 2.5 or higher.
1768 * nlm/configure: Rebuilt.
1769 * gdb/gdbserver/Makefile.in (datadir): Set to $(prefix)/share.
1771 Mon Jun 24 09:56:14 1996 Angela Marie Thomas (angela@cygnus.com)
1773 * stabsread.c (read_cfront_member_functions): add type
1775 Sun Jun 23 23:40:48 1996 Doug Evans <dje@canuck.cygnus.com>
1777 * win32-nat.c: #include <unistd.h>.
1778 (unix_paths_to_dos_paths, dos_paths_to_unix_paths): Delete.
1779 (child_create_inferior): Convert only env var PATH to win32 style.
1780 (set_pathstyle_dos): Delete.
1781 (_initialize_inftarg): Delete dos-path-style command.
1783 start-sanitize-gdbtk
1784 Fri Jun 21 11:04:47 1996 Fred Fish <fnf@cygnus.com>
1786 * gdbtk.tcl (create_register_windows): Include missing '$'s.
1787 Add global declarations for various reg_format_* variables.
1788 * gdbtk.tcl (populate_register_window): Make initial window one
1789 line taller to account for new column header line.
1791 Fri Jun 21 09:46:47 1996 Fred Fish <fnf@cygnus.com>
1793 * gdbtk.c (get_register): Support for printing raw formats.
1794 * gdbtk.tcl: Add hint for using debug_interface.
1795 (center_window, add_breakpoint_frame, delete_breakpoint_frame):
1796 Enclose arg in braces for consistency.
1797 (create_registers_window, populate_reg_window, update_registers):
1798 Major rewrite to support displaying multiple formats in the register
1800 (init_reg_info): New function.
1801 (recompute_reg_display_list): Reset reg_display_list, start
1802 register display lines at line 2.
1805 Thu Jun 20 13:42:23 1996 Doug Evans <dje@canuck.cygnus.com>
1807 * configure.in: Revise sol-thread.o test.
1808 * configure: Regenerated.
1810 * source.c (find_source_lines): Reassign size to result of read.
1812 start-sanitize-gdbtk
1813 Thu Jun 20 08:18:59 1996 Fred Fish <fnf@cygnus.com>
1815 * gdbtk.tcl (gdbtk_tcl_readline_begin): Handle backspace to
1816 avoid backing up over prompt. At every input, make sure insert
1817 point is at least after command start, handle control-u to delete
1819 (tclsh): Handle backspace to avoid backing up over prompt. Handle
1820 control-u to delete current input line.
1822 Wed Jun 19 17:23:38 1996 Geoffrey Noer <noer@cygnus.com>
1824 * configure.in: disable gdbtk for *cygwin32* hosted compiles
1825 * configure: regenerated with autoconf 2.8
1828 Tue Jun 18 16:25:54 1996 Jeffrey A. Law <law@rtl.cygnus.com>
1830 * h8300-dep.c (gdb_print_insn_h8300): Handle the H8/S.
1831 (h8300_command): Likewise.
1832 (set_machine): Likewise.
1833 (set_machine_hook): Likewise.
1834 (_initialize_h8300m): Likewise.
1836 * config/h8300/tm-h8300.h (h8300smode): Declare.
1838 Sun Jun 16 15:21:51 1996 Jeffrey A. Law <law@rtl.cygnus.com>
1840 * somsolib.c (som_solib_create_inferior_hook): Handle tracking
1841 of shl_load calls for hpux10.
1843 Thu Jun 13 11:16:10 1996 Tom Tromey <tromey@thepub.cygnus.com>
1845 * config.in: Regenerated.
1846 * acconfig.h (HAVE_THREAD_DB_LIB): Added entry.
1848 * configure: Regenerated.
1849 * aclocal.m4 (CY_AC_PATH_TCLH, CY_AC_PATH_TKH): Use odd names to
1850 avoid name clashes with SunOS headers.
1852 Tue Jun 11 19:52:50 1996 Fred Fish <fnf@cygnus.com>
1854 From Michael Snyder <Michael_Snyder@next.com>:
1855 * bcache.c (print_bcache_statistics): Avoid divide-by-zero
1856 exception if one or more objfile has no symbols, such as when
1857 a dynamic library has been stripped.
1859 Tue Jun 11 12:02:55 1996 Stu Grossman (grossman@critters.cygnus.com)
1861 * Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
1862 * configure configure.in: Only make sol-thread.o for native.
1863 Also, switch to dlopened libthread_db.so.1.
1864 * sol-thread.c: Switch to using dlopen to get the thread_db
1867 Mon Jun 10 14:17:19 1996 Fred Fish <fnf@cygnus.com>
1869 * config/sparc/{xm-sun4sol2.h,xm-sun4os4.h} (MMAP_BASE_ADDRESS):
1870 Change from 0xE0000000 to 0xC0000000.
1872 Thu Jun 6 17:10:32 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1874 * config/powerpc/xm-solaris.h: Initial version of support for
1877 Wed Jun 5 01:52:57 1996 James G. Smith <jsmith@cygnus.co.uk>
1879 * configure.in (configdirs): Force 4100 builds to use 4300 GDB
1881 * configure: Rebuild.
1883 * config/mips/vr4300el.mt (SIM_OBS): Include simulator in
1884 little-endian builds.
1886 Mon Jun 3 11:48:29 1996 Jeffrey A Law (law@cygnus.com)
1888 * inftarg.c (child_thread_alive): Protect declaration with
1889 #ifndef CHILD_THREAD_ALIVE.
1891 * source.c (find_source_lines): Check the time on the symtab's bfd if
1892 it exists, else check the time on the exec_bfd.
1894 Thu May 30 09:43:17 1996 Mark Alexander <marka@cygnus.com>
1896 * dsrec.c (make_srec): Fix calculation of address size
1897 to allow addresses less than 0x100.
1899 Thu May 30 04:24:09 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
1901 * ch-exp.c (ch_lex): In case of LOC_TYPEDEF call calculate_array_length.
1903 Tue May 28 16:15:47 1996 Geoffrey Noer <noer@cygnus.com>
1905 * remote-mips.c: cannot use EINVAL for breakpoint test since
1906 its value varies for different hosts (e.g. go32's is 19, while
1907 sunos is 22). Changed to hardcoded 22 since that is what the
1910 Tue May 28 11:14:58 1996 Tom Tromey <tromey@creche.cygnus.com>
1912 * configure: Regenerated.
1913 * aclocal.m4 (CY_AC_PATH_TCLH): Don't use AC_TRY_RUN.
1914 (CY_AC_PATH_TKH): Don't use AC_TRY_RUN.
1916 Sun May 26 16:56:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
1918 * solib.c (solib_absolute_prefix, solib_search_path): New variables.
1919 (_initialize_solib): Add set/show commands for those variables.
1920 (solib_map_sections): Implement searching using them.
1922 Sun May 26 14:14:49 1996 Fred Fish <fnf@cygnus.com>
1924 Changes from: David Mosberger-Tang <davidm@azstarnet.com>
1926 * NEWS: Add Alpha Linux as a new native configuration.
1928 * mdebugread.c (parse_symbol): When we find a malloc() symbol with
1929 return type VOID, assume no debugging info is available for that
1930 object file and patch the return value into VOID *. Otherwise,
1931 operations requiring an implicit call to malloc() will fail.
1933 * infrun.c (wait_for_inferior): The criterion to detect entering a
1934 sigtramp handler is now: (a) the current pc is inside a sigtramp
1935 handler, (b) the previous pc is not in a sigtramp handler, and (c)
1936 the current stack pointer is "inner" than the old one. Condition
1937 (c) is new to avoid mistaking a return from a signal handler into
1938 sigtramp as a new sigtramp invocation.
1940 * dcache.c (struct dcache_block): Declare addr as CORE_ADDR. An
1941 int may not be big enough to hold an address.
1942 (dcache_hit): Ditto.
1943 (dcache_peek_byte): Fix indentation.
1945 * configure.in (alpha-*-linux*): Add target.
1946 * configure: Rebuild
1948 * config/alpha/tm-alpha.h (PROC_DESC_IS_DYN_SIGTRAMP): New macro.
1949 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1950 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
1951 (SIGCONTEXT_ADDR): Ditto.
1952 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
1954 * config/alpha/alpha-linux.mh: New file.
1955 * config/alpha/alpha-linux.mt: Ditto.
1956 * config/alpha/nm-linux.h: Ditto.
1957 * config/alpha/tm-alphalinux.h: Ditto.
1958 * config/alpha/xm-alphalinux.h: Ditto.
1959 * config/alpha/xm-alphaosf.h: Renamed from xm-alpha.h.
1960 * config/alpha/alpha-osf1.mh (XM_FILE): Change from xm-alpha.h to
1962 * config/alpha/alpha-osf2.mh: Ditto.
1964 * blockframe.c (find_pc_partial_function): Pass PC to
1965 SIGTRAMP_START and SIGTRAMP_END macros for the benefit of systems
1966 that detect sigtramp code via designated code sequences (as is the
1967 case for Linux/Alpha, for example).
1969 * config/i386/tm-i386bsd.h: Change SIGTRAMP_START and SIGTRAMP_END
1970 to ignore new PC argument.
1971 * config/m68k/tm-hp300bsd.h: Ditto.
1972 * config/vax/tm-vax.h: Ditto.
1974 * alpha-tdep.c (alpha_linux_sigtramp_offset): New function.
1975 (alpha_osf_skip_sigtramp_frame): Ditto.
1976 (push_sigtramp_desc): Ditto.
1977 (alpha_find_saved_regs): Use SIGCONTEXT_ADDR macro to extract
1978 sigcontext address from frame.
1979 (alpha_saved_pc_after_call): When in sigtramp, use
1980 alpha_frame_saved_pc() instead of read-register().
1981 (after_prologue): When inside a dynamically generated sigtramp
1982 function, there is no prologue, so return address of first
1984 (alpha_in_prologue): Fix typo in comment.
1985 (find_proc_desc): Use macro DYNAMIC_SIGTRAMP_OFFSET to determine
1986 whether we're inside a dynamicaly generated sigtramp function. If
1987 so, create and push and appropriate procedure descriptor.
1988 (alpha_frame_chain): Use macro FRAME_PAST_SIGTRAMP_FRAME to obtain
1989 the frame past a sigtramp frame (if the current frame is indeed a
1991 (init_extra_frame_info): Don't read next frame register off of
1992 stack-pointer when inside a dynamiccaly generated sigtramp.
1993 (alpha_pop_frame): Also unlink and destroy procedure descriptors
1994 created for dynamically generated sigtramp functions.
1996 * alpha-nat.c: When compiling under Linux, include <asm/reg.h> and
1997 <alpha/ptrace.h> instead of <machine/reg.h>
1999 Tue Jul 2 13:58:10 1996 Miles Bader <miles@gnu.ai.mit.edu>
2001 * gnu-nat.c (inf_validate_task_sc):
2002 Give terminal to gdb while asking question.
2003 (inf_resume): Don't validate the task suspend-count while execing.
2005 Thu Jun 13 11:04:52 1996 Miles Bader <miles@gnu.ai.mit.edu>
2007 * gnu-nat.c (inf_validate_task_sc): Query user before clearing any
2008 additional suspend count.
2009 (S_proc_wait_reply, gnu_attach): Don't call inf_validate_task_sc.
2010 (inf_resume): Call inf_validate_task_sc here.
2011 (gnu_resume): Call inf_update_procs to ensure noticing new threads.
2013 Fri Jun 7 17:00:43 1996 Miles Bader <miles@gnu.ai.mit.edu>
2015 * gnu-nat.c (gnu_create_inferior: attach_to_child): Return PID.
2017 Thu May 23 15:13:56 1996 Jeffrey A Law (law@cygnus.com)
2019 * h8300-tdep.c (IS_PUSH): Refine.
2020 (IS_MOVE_FP, IS_MOV_SP_FP): Accept H8/300H varaints.
2021 (IS_SUB4_SP, IS_SUBL_SP): New macros.
2022 (h8300_skip_prologue): Handle H8/300H prologue code sequences.
2023 (examine_prologue): Handle addresses from 0x010000 to 0xffffff
2024 when in H8/300H mode. Get the return pointer's address correctly
2025 for the H8/300H. Handle H8/300H prolouge code sequences.
2027 * symfile.c (generic_load): Print the starting address
2028 of the file just loaded.
2030 Thu May 23 12:09:52 1996 Stan Shebs <shebs@andros.cygnus.com>
2032 * mpw-make.sed: Edit @THREAD_DB_OBS@ out of makefile.
2034 Tue May 21 11:53:56 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2036 * breakpoint.c (bpstat_do_actions): Avoid endless recursion
2037 if a `source' command is contained in bs->commands.
2039 * infrun.c (wait_for_inferior): Update step_frame_address when
2040 stepping into a new line.
2042 From schwab@issan.informatik.uni-dortmund.de (Andreas Schwab):
2043 * breakpoint.c (breakpoint_1): Add shlib_disabled case to
2046 Mon May 20 22:52:00 1996 Mark Alexander <marka@cygnus.com>
2048 * dsrec.c (load_srec): Add WAITACK parameter, for machines
2049 like EST visionICE that send back an ACK after each S-record.
2050 * monitor.c (monitor_wait_srec_ack): New function.
2051 (monitor_load): Pass monitor_wait_srec_ack to load_srec
2052 if the monitor's MO_SREC_ACK flag is set.
2053 * monitor.h: Define MO_SREC_ACK flag.
2054 * remote-est.c (est_cmds): Add MO_SREC_ACK flag.
2055 * sh3-rom.c (sh3_load): Accomodate change in load_srec prototype.
2056 * srec.h: Add WAITACK parameter to load_srec prototype.
2058 Sun May 19 21:22:00 1996 Rob Savoye <rob@chinadoll>
2060 * config/sparc/sparclite.mt: Add the sparc simulator.
2062 Sun May 19 16:49:37 1996 Fred Fish <fnf@cygnus.com>
2064 * defs.h (read_command_lines, query_hook): Update prototypes.
2065 (readline_begin_hook, readline_hook, readline_end_hook): Declare.
2066 * breakpoint.c (commands_command): Build message in temporary buffer
2067 and pass that, as well as tty control flag, to read_command_lines.
2068 * top.c (readline_begin_hook, readline_hook, readline_end_hook):
2070 (command_loop): Check for non-NULL instream before looping.
2071 (command_line_input): Use readline_hook when appropriate, to get
2072 user input from a GUI window.
2073 (read_next_line): Also build prompt if getting user input from a GUI.
2074 (recurse_read_control_structure): Fix typo in comment.
2075 (read_command_lines): Use passed in prompt and tty flag to decide how
2076 to build message. Use readline_begin_hook when appropriate, to set
2077 up a GUI interaction window. Just return head, whether NULL or not,
2078 after using readline_end_hook to complete GUI interaction.
2079 (define_command, document_command): Build message in a temporary
2080 buffer and pass it to read_command_lines, along with tty flag.
2082 start-sanitize-gdbtk
2083 * gdbtk.c (gdbtk_readline_begin, gdbtk_readline, gdbtk_readline_end):
2085 (tk_command_loop): Set instream to NULL to enable Tk user interaction.
2086 (gdbtk_init): Set readline_begin_hook, readline_hook,
2087 and readline_end_hook.
2088 * gdbtk.tcl (gdbtk_tcl_readline_begin, gdbtk_tcl_readline,
2089 gdbtk_tcl_readline_end): New functions.
2090 (tclsh): Pack scroll bar on right side of window, not left.
2093 Sat May 18 02:43:58 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2095 * blockframe.c (frameless_look_for_prologue):
2096 Add FUNCTION_START_OFFSET only if func_start is non-zero.
2097 * minsyms.c (lookup_minimal_symbol_by_pc): Return NULL if
2098 pc is not in a known section.
2099 * stack.c (print_frame_info): Remove check for fi->pc in known
2100 section, now handled by lookup_minimal_symbol_by_pc.
2102 start-sanitize-gdbtk
2103 Fri May 17 13:54:34 1996 Fred Fish <fnf@cygnus.com>
2105 * gdbtk.tcl (create_command_window): Change a misspelled "get"
2106 to the intended "cget".
2107 (delete_line): Fix so it deletes the current line at the
2111 Fri May 17 13:31:04 1996 Stan Shebs <shebs@andros.cygnus.com>
2113 * sh-stub.c: New file, was config/sh/stub.c.
2115 start-sanitize-gdbtk
2116 Thu May 16 19:20:29 1996 Fred Fish <fnf@cygnus.com>
2118 * gdbtk.tcl (gdb_prompt): Set this early on.
2119 (create_command_window): Use gdb_prompt rather than "(gdb) ".
2120 (gdbtk_tcl_preloop): Proc executed just prior to Tk main loop.
2121 (tclsh): If an evaluation window already exists, just bring it
2122 to the front instead of trying to create another.
2123 * gdbtk.c (tk_command_loop): New function.
2124 (gdbtk_init): Call tk_command_loop rather than Tk_MainLoop.
2126 Thu May 16 16:16:35 1996 Fred Fish <fnf@cygnus.com>
2128 * gdbtk.tcl (evaluate_tcl_command, tclsh): New functions that
2129 implement a tcl evaluation window for gdbtk maintainers to use.
2131 Thu May 16 11:42:58 1996 Tom Tromey <tromey@creche.cygnus.com>
2133 * gdbtk.tcl (files_command): Correctly insert list of files into
2136 * gdbtk.tcl (files_command): listbox command no longer accepts
2139 Wed May 15 16:04:09 1996 Stan Shebs <shebs@andros.cygnus.com>
2141 * gdbtk.tcl (create_command_window): If command window's buffer
2142 is disabled, don't execute any of the key bindings.
2145 Wed May 15 08:25:12 1996 Jeffrey A Law (law@cygnus.com)
2147 * top.c (read_next_line): Fix thinkos. From Donn Seeley.
2149 * coffread.c (coff_symtab_read): Handle C_LABEL symbols like
2151 * h8300-tdep.c (h8300_pop_frame): Reset $sp and $pc correctly.
2152 Flush cached frames just before exiting.
2153 * remote-sim.c (gdbsim_resume): Complain if the program isn't
2155 * config/h8300/tm-h8300.h (BELIEVE_PCC_PROMOTION): Define.
2157 Tue May 14 18:05:16 1996 Stu Grossman (grossman@critters.cygnus.com)
2159 * procfs.c (procfs_thread_alive procfs_stop): Make static.
2160 (procfs_pid_to_str): New routine to print out thread id's in an
2161 intelligible manner.
2162 * sol-thread.c (sol_thread_fetch_registers): Re-order manner in
2163 which supply_register is called to fix bug with writing
2165 * config/sparc/tm-sun4sol2.h: Define default for
2166 target_pid_to_str in case host lacks libthread_db.
2168 Mon May 13 23:53:30 1996 Stu Grossman (grossman@critters.cygnus.com)
2170 * Makefile.in config.in configure configure.in
2171 config/sparc/nm-sun4sol2.h config/sparc/sun4sol2.mh
2172 config/sparc/tm-sun4sol2.h: Use autoconf to config Solaris thread
2173 and pthread support, since pre-2.5 systems don't come with
2176 * procfs.c (info_proc): Use int instead of id_t. Old versions of
2177 Irix don't seem to define this.
2179 start-sanitize-gdbtk
2180 Mon May 13 13:43:25 1996 Fred Fish <fnf@cygnus.com>
2182 * gdbtk.c (tk_command): Catch case where no argument is given
2183 since this will cause the tcl interpreter to dump core.
2186 Mon May 13 17:40:58 1996 Jeffrey A Law (law@cygnus.com)
2188 * top.c (execute_control_command, case while_control): Allow
2189 a while command to be interrupted.
2191 Mon May 13 16:17:36 1996 Stu Grossman (grossman@critters.cygnus.com)
2193 * sol-thread.c: More cleanup, add comments.
2194 (sol_thread_resume): Prevent people from trying to step
2196 (sol_thread_wait sol_thread_fetch_registers
2197 sol_thread_store_registers): Remove unnecessary check for
2198 sol_thread_active. These routines won't get called unless threads
2201 Mon May 13 11:29:37 1996 Stan Shebs <shebs@andros.cygnus.com>
2203 SH3-E support from Allan Tajii <atajii@hmsi.com>:
2204 * sh-tdep.c (sh_reg_names, sh3_reg_names): Add empty names for
2206 (sh3e_reg_names): New register name array.
2207 (sh_processor_type_table): Add sh3e processor type.
2208 * config/sh/tm-sh.h (REGISTER_VIRTUAL_TYPE): Fix test.
2209 (REGISTER_NAMES, NUM_REGS, NUM_REALREGS, etc): Adjust for
2210 full set of registers.
2211 * remote-e7000.c (want_sh3, want_sh3_nopc): New globals.
2212 (e7000_fetch_registers, e7000_wait): Use them.
2213 * sh3-rom.c (sh3_regnames): Add float registers.
2214 (sh3e_cmds, sh3e_ops): New globals.
2215 (sh3e_open): New function.
2216 (_initialize_sh3_rom): Rename from _initialize_sh3, set up
2219 Fri May 10 15:53:38 1996 Stu Grossman (grossman@lisa.cygnus.com)
2221 * sol-thread.c: Cleanup. gcc -Wall fixes. Add prototypes.
2222 Print out messages instead of codes for thread_db errors. Make
2223 access macros for thread and lwp manipulation. Make cleanups to
2224 fixup inferior_pid in case of errors.
2226 Thu May 9 19:06:02 1996 Fred Fish <fnf@cygnus.com>
2228 * aclocal.m4: Remove unused definition of AC_C_CROSS.
2229 * configure.in: Add powerpcle-*-solaris* host and target config
2230 so April 30th change does not get lost next time configure is
2233 Thu May 9 14:13:08 1996 Stu Grossman (grossman@critters.cygnus.com)
2235 * Makefile.in, breakpoint.c, corelow.c, fork-child.c, inflow.c,
2236 infrun.c, mac-nat.c, procfs.c, remote.c, sol-thread.c, thread.c,
2237 win32-nat.c, config/nm-lynx.h: Rename thread.h to gdbthread.h to
2238 avoid conflict with Solaris /usr/include/thread.h.
2240 Thu May 9 12:33:32 1996 Rob Savoye <rob@chinadoll.cygnus.com>
2242 * abug-rom.c: Config file for the older style ABug monitor that
2243 runs on the mvme13x boards.
2244 * config/m68k/monitor.mt: Add abug support for m68k cross
2247 Wed May 8 20:33:24 1996 Fred Fish <fnf@cygnus.com>
2249 * infcmd.c (do_registers_info): Always print the raw floating
2250 point value's bytes in big endian order, so the the leftmost bit
2251 is the most significant.
2252 * breakpoint.c (clear_momentary_breakpoints): Remove dead code
2253 that is referenced nowhere else.
2254 (set_breakpoint): Ditto.
2255 (do_enable_breakpoint): Created from enable_once_breakpoint
2256 with a couple of changes.
2257 (enable_breakpoint): Call do_enable_breakpoint with an appropriate
2258 bpdisp enum value to set disposition of breakpoint.
2259 (enable_once_breakpoint): Ditto.
2260 (enable_delete_breakpoint): Ditto.
2261 * breakpoint.h (clear_momentary_breakpoints): Remove prototype.
2262 * symtab.c (find_pc_line): Improve comments.
2263 start-sanitize-gdbtk
2264 * gdbtk.c: Fix a couple of misspellings.
2266 * xcoffread.c: Ditto.
2268 Tue May 7 18:37:06 1996 Stan Shebs <shebs@andros.cygnus.com>
2270 * target.c (debug_to_xfer_memory): Insert line breaks when
2271 dumping the memory block.
2273 Mon May 6 13:52:52 1996 Stu Grossman (grossman@critters.cygnus.com)
2275 * fork-child.c (fork_inferior), inferior.h: init_trace_fun now
2276 returns a possibly modified pid.
2277 * inftarg.c (ptrace_him): Now returns pid;
2278 * m3-nat.c (m3_trace_him): Now returns pid;
2279 * infcmd.c (run_command): Minor cleanup.
2280 * infrun.c (wait_for_inferior): Add another check for one_stepped
2281 near where we read the pc to avoid erroneously setting
2282 random_signal for multi-threaded support.
2283 * procfs.c: Add support for Solaris LWPs. Remove def of
2284 LOSING_POLL. Many cleanups... Several workarounds for Solaris
2285 lossage. System call entry and exit are now handled by
2286 dynamically registered handlers.
2287 * (syscallname): Don't barf when handed an unknown syscall
2289 * (info_proc_syscalls): Ditto.
2290 * sol-thread.c: New file. Implements Solaris thread support.
2291 * symfile.c (symbol_file_add): Add call to target_new_objfile to
2292 notify target-dependent code about new symbol tables.
2293 * (clear_symtab_users): Call target_new_objfile to notify it of
2294 the removal of all symbol tables.
2295 * target.c (push_target): Make sure that to_close is non-zero
2297 * target.h (target_new_objfile): Provide default.
2298 * config/alpha/nm-osf2.h: Define LOSING_POLL because this version
2299 of OSF can't hack using poll with /proc.
2300 * config/sparc/nm-sun4sol2.h (target_new_objfile): Define to be
2301 sol-thread-new-objfile.
2302 * config/sparc/sun4sol2.mh: Add sol-thread.o to NATDEFFILES, and
2303 add libthread_db.so.1 to NAT_CLIBS.
2304 * config/sparc/tm-sun4sol2.h: Define PIDGET, TIDGET, and
2307 Sat May 4 02:13:34 1996 N Srin Kumar <nsrin@wipinfo.soft.net>
2309 * procfs.c (remove_fd): Fix copy of fds to fill hole left after
2310 removal of the requested fd.
2312 Mon May 6 07:52:48 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2314 * rs6000-tdep.c (_initialize_rs6000_tdep): Don't do XCOFF specific
2317 * config/powerpc/tm-ppc-eabi.h: Define ELF_OBJECT_FORMAT.
2319 start-sanitize-gdbtk
2320 Thu May 2 19:17:49 1996 Stan Shebs <shebs@andros.cygnus.com>
2322 * gdbtk.tcl (debug_interface): New global, use to aid debugging.
2323 (insert_breakpoint_tag, delete_breakpoint_tag): Fix range.
2324 (file_popup_menu): Delete, never used.
2325 (listing_window_popup): Rename from listing_window_button_1,
2326 remove breakpoint toggling code.
2327 (toggle_breakpoint): New procedure.
2328 (create_file_win): Bind popup menu to button 2, toggle breakpoints
2329 with button 1 in breakpoint area, add display of tagged areas if
2333 Thu May 2 12:46:14 1996 Jeffrey A Law (law@cygnus.com)
2336 * breakpoint.h (enum bpdisp): Add del_at_next_stop.
2337 * breakpoint.c (insert_breakpoints, watchpoint_check,
2338 bpstat_stop_status): Avoid bad references to memory freed via
2339 delete_breakpoint on watchpoints going out of scope.
2340 Do not delete these watchpoints, disable them and change their
2341 disposition to del_at_next_stop instead.
2342 (breakpoint_auto_delete): Delete all breakpoints whose disposition
2343 is del_at_next_stop.
2344 (breakpoint_init_inferior): Use switch to avoid reference to
2345 already deleted breakpoint.
2347 Wed May 1 17:29:18 1996 Fred Fish <fnf@cygnus.com>
2349 * Makefile.in (rs6000-nat.o): Depend on xcoffsolib.h.
2350 * config/rs6000/rs6000.mh (NATDEPFILES): Move xcoffread.o ...
2351 * config/rs6000/rs6000.mt (TDEPFILES): ... to here.
2352 * xcoffsolib.c (xcoff_relocate_symtab_hook): Define and initialize.
2353 (solib_info): Call xcoff_relocate_symtab via the hook.
2354 (sharedlibrary_command): Ditto.
2355 * xcoffread.c: Remove all FAKING_RS6000 comments and defines.
2356 (xcoff_add_toc_to_loadinfo_hook): Define and initialize here.
2357 (xcoff_init_loadinfo_hook): Define and initialize here.
2358 (scan_xcoff_symtab): Call xcoff_add_toc_to_loadinfo via the hook.
2359 (xcoff_initial_scan): Call xcoff_init_loadinfo via the hook.
2360 * xcoffsolib.h (xcoff_relocate_symtab_hook): Declare extern func.
2361 * rs6000-tdep.c (_initialize_rs6000_tdep): Add initializations
2362 of xcoff_add_toc_to_loadinfo_hook and xcoff_init_loadinfo_hook.
2363 * rs6000-nat.c (_initialize_core_rs6000): Add initialization
2364 of xcoff_relocate_symtab_hook.
2366 Tue Apr 30 13:22:02 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2368 * configure (powerpcle-*-solaris*): Add Solaris support.
2370 * config/powerpc/{solaris.m[ht],tm-solaris.h}: New files for
2373 Mon Apr 29 16:17:31 1996 Dawn Perchik <dawn@cygnus.com>
2375 * c-valprint.c (c_val_print): Fix printing for arrays defined
2378 Sun Apr 28 15:08:05 1996 Stan Shebs <shebs@andros.cygnus.com>
2380 Support for bi-endian remote breakpoints.
2381 * remote.c (big_break_insn, little_break_insn): New globals.
2382 (break_insn): Remove.
2383 (remote_insert_breakpoint, remote_remove_breakpoint): Use own
2384 code if REMOTE_BREAKPOINT defined, otherwise call memory
2385 breakpoint functions.
2386 * config/sh/tm-sh.h (REMOTE_BREAKPOINT): Remove.
2387 (BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT): Define.
2389 * mon960-rom.c (mon960_cmds): Remove forward decl.
2390 (mon960_load): Use current_monitor instead of mon960_cmds.
2391 (mon960_regnames): Remove backslashes from line ends.
2392 (_initialize_mon960): Fix documentation string.
2394 Sun Apr 28 12:10:35 1996 Fred Fish <fnf@cygnus.com>
2396 * symfile.h (psymbol_allocation_list): Expand comments which
2397 describe the psymbol allocation list and how each field is
2400 Sun Apr 28 03:44:30 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2402 * breakpoint.c (delete_breakpoint): Fix bpt->val, bpt->exp
2404 (breakpoint_re_set_one): Fix b->exp, b->val, b->cond storage leaks.
2406 * infcmd.c (run_command), solib.c (locate_base): Check for
2407 target_has_execution in addition to inferior_pid, a core file
2408 from a threaded program is yielding a non-zero inferior_pid.
2410 * sparc-tdep.c (get_saved_register): Handle window registers
2411 in a dummy frame correctly.
2413 Sat Apr 27 20:38:32 1996 Fred Fish <fnf@cygnus.com>
2415 * Makefile.in (CLIBS): Move $(MMALLOC) past all other libs,
2416 so that anything that wants an allocation function not yet pulled
2417 in, will get it from mmalloc rather than a system library.
2418 * Makefile.in (INSTALLED_LIBS): Reorder to match order of CLIBS,
2419 to avoid surprising results when used.
2421 Sat Apr 27 00:12:05 1996 Dawn Perchik (dawn@cygnus.com)
2423 * stabsread.c: Changes and bug fixes for cfront support.
2424 Fix bug for class data members.
2425 Fix parsing bug when no base classes exist.
2426 Fix memory bug - allocate space for cplusplus specific info.
2427 Add support for static data.
2428 Add prototypes for static functions.
2429 Enhance comments to show what each function expects to parse.
2431 * stabsread.c(resolve_cont),dbxread.c(resolve_cont): Rename
2432 function to resolve_cfront_continuation.
2434 Fri Apr 26 23:58:26 1996 Jeffrey A Law (law@cygnus.com)
2436 * infrun.c (wait_for_inferior): Call registers_changed when
2437 restarting the inferior to get over a nullified instruction.
2439 Tue Apr 24 12:12:55 1996 Dawn Perchik (dawn@cygnus.com)
2441 * dbxread.c,stabsread.c,gdbtypes.c,partial-stab.h,valops.c:
2442 Add new support for parsing cfront stabs.
2444 Wed Apr 24 00:32:55 1996 Jeffrey A Law (law@cygnus.com)
2446 * infrun.c (wait_for_inferior): Move "have_waited" label
2447 outside of #ifdef conditionals. Don't trash the wait status
2448 if we get a signal and the current instruction is nullified.
2450 Mon Apr 22 20:17:01 1996 Fred Fish <fnf@cygnus.com>
2452 * Makefile.in (VERSION): Bump version number to 4.16.1.
2453 * NEWS: Update for 4.16 release.
2455 Mon Apr 22 16:32:29 1996 Stan Shebs <shebs@andros.cygnus.com>
2457 * monitor.h: Clean up comment formatting.
2458 (current_monitor): Remove decl.
2459 (LOADTYPES, LOADPROTOS, INIT_CMD, etc): Remove definitions.
2460 (push_monitor, SREC_SIZE): Remove.
2461 * monitor.c: Expand old macro into current_monitor derefs
2463 * remote-os9k.c (current_monitor): Remove definition.
2465 Mon Apr 22 14:54:45 1996 Mark Alexander <marka@superball.cygnus.com>
2467 * corefile.c (specify_exec_file_hook): Allow arbitrary number of
2469 (call_extra_exec_file_hooks): New function.
2470 * h8300-tdep.c: Lint; add .h files to provide missing declarations,
2471 remove unused variables.
2472 (set_machine_hook): New function.
2473 (_initialize_h8300m): Initialize it.
2475 Fri Apr 19 15:03:49 1996 Ian Lance Taylor <ian@cygnus.com>
2477 * remote-mips.c (encoding): Don't specify size, to avoid bug in
2478 SunOS native compiler.
2480 Thu Apr 18 18:46:57 1996 Stan Shebs <shebs@andros.cygnus.com>
2482 * monitor.c: Use int rather than LONGEST for values, since
2483 the formatting strings are not prepared to accept long longs.
2485 Wed Apr 17 20:17:27 1996 Doug Evans <dje@canuck.cygnus.com>
2487 * arm-tdep.c (initialize_arm_tdep): Make apcs32 a `zinteger'.
2489 Tue Apr 16 17:38:23 1996 Stu Grossman (grossman@critters.cygnus.com)
2491 * corelow.c (add_to_thread_list): Make sure reg_sect is non-null
2492 before de-referencing it. Prevents deref of NULL pointer if core
2493 file lacks .reg section.
2494 * defs.h: Rename floatformat_{to from}_long_double to
2495 floatformat_{to from}_doublest. Get rid of FLOATFORMAT_{TO
2497 * findvar.c (extract_floating store_floating): Change all refs to
2498 FLOATFORMAT_{FROM TO}... to floatformat_{from to}_doublest.
2499 * utils.c: Change floatformat_{to from}_long_double to
2500 floatformat_{to from}_doublest cuz the new routines will use
2501 whatever size (double or long double) is appropriate.
2502 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
2503 REGISTER_CONVERT_TO_RAW): Change FLOATFORMAT... macros to
2504 floatformat... routine calls.
2506 Mon Apr 15 16:34:11 1996 Per Bothner <bothner@kalessin.cygnus.com>
2508 * stabsread.c (read_type): Move handling of '@' from type
2509 number handling to handling of types proper (as emitted by gcc!).
2510 For typedefs, allocate the typedef type before reading its
2511 definition, to properly handling recursive types.
2513 Mon Apr 15 11:19:26 1996 Jeffrey A Law (law@cygnus.com)
2515 * ch-exp.c (calculate_array_length): Fix prototype.
2517 Sat Apr 13 14:21:16 1996 Stu Grossman (grossman@critters.cygnus.com)
2519 * remote-nindy.c (nindy_open): Acquire more target state so that
2520 user can attach to a previously running program.
2521 * (nindy_fetch_registers nindy_store_registers): Get rid of fp
2522 conversion code. That's all handled in {extract store}_floating
2524 * utils.c (floatformat_to_double): Don't bias exponent when
2525 handling zero's, denorms or NaNs.
2526 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
2527 REGISTER_CONVERT_TO_RAW): Change to using DOUBLST and
2528 FLOATFORMAT_TO/FROM_DOUBLEST macros.
2529 * config/i960/tm-nindy960.h: Undefine
2530 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW, and
2531 REGISTER_CONVERTIBLE. These are no longer necessary now that all
2532 the magic happens in extract/store_floating.
2534 Sat Apr 13 02:58:02 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2536 * eval.c (evaluate_subexp_standard): Report error when attempting to
2537 evaluate subscripts for types which cannot be subscripted.
2539 * valarith.c (value_x_binop, value_x_unop): Add noside parameter.
2540 Return a zero value with the return type of the member function
2541 if noside is EVAL_AVOID_SIDE_EFFECTS instead of calling the member
2543 * values.h (value_x_binop, value_x_unop): Update prototypes
2545 * eval.c (evaluate_subexp_standard): Update all callers of
2546 value_x_binop, value_x_unop accordingly.
2548 * valarith.c (value_neg, value_complement): Perform ANSI C/C++
2549 integral promotion on operands.
2551 Fri Apr 12 13:19:27 1996 Fred Fish <fnf@cygnus.com>
2553 * README: Update for 4.16 release.
2554 * configure.in (AC_CHECK_FUNCS): Also check for sbrk.
2555 * configure: Regenerate with autoconf.
2556 * config.in: Regenerate with autoheader.
2557 * main.c (main): Only use sbrk() when HAVE_SBRK is defined.
2558 * top.c (command_loop): Ditto.
2560 Fri Apr 12 09:45:29 1996 Stu Grossman (grossman@critters.cygnus.com)
2562 * defs.h: Define TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
2563 defaults for bi-endian targets. Replace function pointers for
2564 floatformat routines with macros. No need for these to be runtime
2566 * findvar.c: Get rid of floatformat function pointers. Use
2567 macros in extract_floating and store_floating.
2568 * remote-nindy.c (nindy_fetch_registers nindy_store_registers):
2569 Use floatformat macros.
2571 Thu Apr 11 21:28:02 1996 Fred Fish <fnf@cygnus.com>
2573 From: Miles Bader <miles@gnu.ai.mit.edu>
2574 * configure.in (AC_CHECK_HEADERS): check for endian.h.
2575 Use AC_CHECK_TOOL to find AR & RANLIB. Add AC_PROG_AWK.
2576 Add host & target cases for i[345]86-*-gnu*.
2577 * config.in: Regenerate with autoheader.
2578 * configure: Regenerate with autoconf.
2579 * Makefile.in (AR, AWK): Set from corresponding autoconf substs.
2580 (init.c): Don't scan mig-generated files.
2581 * defs.h (endian.h): Include if HAVE_ENDIAN_H defined.
2582 * config/nm-m3.h (ATTACH_NO_WAIT): Define.
2583 * infcmd.c (attach_command): Use "#ifndef ATTACH_NO_WAIT"
2584 rather than "#ifndef MACH".
2586 Thu Apr 11 18:49:42 1996 Stan Shebs <shebs@andros.cygnus.com>
2588 * remote.c (remotewritesize): New GDB variable, controls size
2589 of memory packets sent to the target.
2591 Thu Apr 11 13:47:52 1996 Stu Grossman (grossman@critters.cygnus.com)
2593 * dcache.c: Add prototypes. Make many functions static.
2594 * (dcache_peek dcache_fetch dcache_poke): Make dcache_fetch and
2595 dcache_poke call dcache_xfer_memory directly in order to fix
2596 problems with turning off dcache. dcache_peek is now unnecessary,
2599 * defs.h: Define new macros HOST_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
2600 and TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT to specify a pointer
2601 to a struct floatformat. This allows for better handling of
2602 targets whose floating point formats differ from the host by more
2603 than just byte order.
2604 * (floatformat_to_long_double floatformat_from_long_double):
2605 Prototypes for new functions in utils.c.
2606 * (floatformat_to_doublest floatformat_from_doublest): Prototypes
2607 for pointers to floating point conversion functions. The actual
2608 function uses either double or long double if the host supports it.
2609 * findvar.c (floatformat_to_doublest floatformat_from_doublest):
2610 Initialize to point at correct function depending on HAVE_LONG_DOUBLE.
2611 * (extract_floating store_floating): Rewrite. Now, if host fp
2612 format is the same as the target, we just do a copy. Otherwise,
2613 we call floatformat_{to from}_doublest.
2614 * remote-nindy.c (nindy_xfer_inferior_memory): Change param
2615 `write' to `should_write'.
2616 * utils.c (floatformat_to_long_double
2617 floatformat_from_long_double): New routines that implement long
2618 double versions of functions in libiberty/floatformat.c.
2619 * config/i960/tm-i960.h (TARGET_LONG_DOUBLE_FORMAT): Define this for
2620 i960 extended real (80 bit) numbers.
2621 * nindy-share/nindy.c (ninMemGet ninMemPut): Return number of bytes
2622 actually read or written.
2624 Wed Apr 10 02:56:06 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
2626 * ch-valprint.c (chill_val_print): Remove call to calculate_array_length.
2627 (calculate_array_length): Move function from here ...
2629 * ch-exp.c (calculate_array_length): ... to here.
2630 (parse_primval): If we have a symbol with an array type
2631 and the length is 0, call calculate_array_length.
2633 Tue Apr 9 01:23:05 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
2635 * eval.c (evaluate_subexp_standard): In case of TYPE_CODE_SET:
2636 Add some checks for powerset compatibility.
2638 * valops.c (value_slice): Use lowbound instead of lowerbound for
2639 call to slice_range_type to get correct bounds.
2641 Mon Apr 8 12:53:56 1996 Fred Fish <fnf@cygnus.com>
2643 * Makefile.in (scm-exp.o, scm-lang.o, scm-valprint.o): Add targets and
2645 * scm-lang.c (gdb_string.h): Include.
2646 * objfiles.c (add_to_objfile_sections): Cast second arg of obstack_grow
2647 call to correct type (char *).
2648 * cp-valprint.c (cp_print_static_field): Ditto.
2649 * somsolib.c (som_solib_create_inferior_hook): Add a declaration
2650 for external find_unwind_entry function (from hppa-tdep.c).
2651 * remote-pa.c (remote_write_bytes, remote_read_bytes): Change
2652 type of second arg to "char *" to be type compatible with
2654 (remote_wait): Cast second arg to strtol to correct type.
2655 * hppa-tdep.c (compare_unwind_entries): Change argument types to
2656 "const void *" to be type compatible with qsort, and then
2657 assign to local args prior to use.
2659 Mon Apr 8 15:35:52 1996 Jeffrey A Law (law@cygnus.com)
2661 * infptrace.c (kill_inferior): Remove call to "kill"; update
2664 Mon Apr 8 14:05:07 1996 Geoffrey Noer <noer@cygnus.com>
2666 * remote-e7000.c: don't append :23 to target port if __WIN32__
2667 is defined (it's WinGDB).
2669 Sun Apr 7 22:34:29 1996 Fred Fish <fnf@cygnus.com>
2671 From: Miles Bader <miles@gnu.ai.mit.edu>
2672 * gnu-nat.c, gnu-nat.h, msg.defs, exc_request.defs, i386gnu-nat.c,
2673 msg_reply.defs, notify.defs, process_reply.defs, reply_mig_hack.awk,
2674 config/nm-gnu.h, config/i386/{i386gnu.mh, i386gnu.mt, nm-gnu.h,
2675 m-i386gnu.h, xm-i386gnu.h}: New files for GNU hurd.
2677 Sun Apr 7 13:32:41 1996 Fred Fish <fnf@cygnus.com>
2679 * configure.in (case host): Add i386sco5 host.
2680 * configure: Regenerate.
2682 From: Robert Lipe <robertl@dgii.com>
2683 Add support for SCO OpenServer 5 (a.k.a. 3.2v5*) This
2684 target is an SVR3.2 with COFF, ELF, and shared libes, but
2686 * config/i386/i386sco5.mh: New file.
2687 * config/i386/nm-i386sco5.h: New file.
2689 Sat Apr 6 08:55:22 1996 Fred Fish <fnf@cygnus.com>
2691 * bcache.c (bcache): When size of chunk to cache is exactly equal to
2692 BCACHE_MAXLENGTH, stash chunk as unique copy.
2694 Sat Apr 6 00:46:26 1996 Fred Fish <fnf@cygnus.com>
2696 * symfile.c (INLINE_ADD_PSYMBOL): Remove ifdef.
2697 (add_psymbol_to_list): Add an arg for passing CORE_ADDR values and
2698 use it, rather than calling add_psymbol_addr_to_list.
2699 (add_psymbol_addr_to_list): Delete.
2700 (add_psymbol_to_list): Make psymbol static to avoid random data in
2701 gaps due to alignment of structure members.
2702 * symfile.h (INLINE_ADD_PSYMBOL, ADD_PSYMBOL_TO_LIST,
2703 ADD_PSYMBOL_ADDR_TO_LIST): Remove. Real world tests show no
2704 performance improvements by inlining via complicated macros and
2705 they just make gdb larger and harder to maintain.
2706 * dwarfread.c (add_enum_psymbol): Replace ADD_PSYMBOL_TO_LIST
2707 and/or ADD_PSYMBOL_ADDR_TO_LIST macro(s) with call to
2708 add_psymbol_to_list with appropriate long or CORE_ADDR args.
2709 (add_partial_symbol): Ditto.
2710 * partial-stab.h: Ditto.
2711 * os9kread.c (read_os9k_psymtab): Ditto
2712 * mdebugread.c (parse_partial_symbols): Ditto.
2713 (handle_psymbol_enumerators): Ditto.
2714 (demangle.h): Include.
2715 * hpread.c (hpread_build_psymtabs): Ditto.
2716 (hpread_build_psymtabs): Ditto.
2717 (demangle.h): Include
2719 start-sanitize-gdbtk
2720 Fri Apr 5 13:44:40 1996 Stan Shebs <shebs@andros.cygnus.com>
2722 * gdbtk.c (running_now): New global variable.
2723 (gdb_cmd): Test it before executing any command.
2724 (gdbtk_call_command): Set it when inferior is running.
2725 * gdbtk.tcl (gdbtk_tcl_busy, gdbtk_tcl_idle): Enable and
2726 disable interaction with command window's text appropriately.
2728 Fri Apr 5 13:25:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2730 * gdbtk.c (SIOCSPGRP, linux): If on Linux, undef SIOCSPGRP, since
2731 some versions of the kernel don't support it.
2734 Thu Apr 4 20:16:55 1996 Fred Fish <fnf@cygnus.com>
2736 * configure.in: Check for setpgid function.
2737 * config.in: Regenerate with autoheader.
2738 * configure: Regenerate with autoconf.
2739 * inflow.c (_initialize_inflow): Only try to use _SC_JOB_CONTROL
2740 if it is actually defined.
2741 (gdb_setpgid): Use HAVE_SETPGID.
2742 * ch-exp.c: Change include of <string.h> to "gdb_string.h".
2743 * c-exp.y, f-exp.y, m2-exp.y: Ditto.
2744 * c-exp.y, serial.c: Include <ctype.h>.
2745 * config/m68k/nm-news.h: Add typedef for pid_t which is
2746 apparently missing from <sys/types.h>. Enclose entire
2747 file in NM_NEWS_H ifndef and define when included.
2748 * config/mips/nm-news-mips.h: Ditto.
2749 * config/m68k/tm-m68k.h (REGISTER_CONVERT_TO_VIRTUAL,
2750 REGISTER_CONVERT_TO_RAW): Change name of temporary variable.
2752 Thu Apr 4 19:04:18 1996 Stan Shebs <shebs@andros.cygnus.com>
2754 * arm-xdep.c: Move native-specific code to here from arm-tdep.c.
2755 * arm-tdep.c (arm_apcs_32): New global.
2756 (arm_addr_bits_remove, arm_saved_pc_after_call,
2757 arm_push_dummy_frame, arm_pop_frame): New functions.
2758 (arm_skip_prologue): Updated version from Richard Earnshaw.
2759 (_initialize_arm_tdep): Add set/show "apcs32".
2760 * config/arm/tm-arm.h (ADDR_BITS_REMOVE): Call
2761 arm_addr_bits_remove.
2762 (SAVED_PC_AFTER_CALL): Call arm_saved_pc_after_call.
2763 (frame_find_saved_regs): Declare properly.
2764 (PUSH_DUMMY_FRAME): Call arm_push_dummy_frame.
2765 (POP_FRAME): Call arm_pop_frame, use ADDR_BITS_REMOVE instead of
2767 * config/arm/nm-arm.h: New file.
2768 * config/arm/xm-arm.h (KERNEL_U_ADDR, FETCH_INFERIOR_REGISTERS):
2769 Move definitions to nm-arm.h.
2770 * config/arm/arm.mh (NAT_FILE): Define.
2772 * symfile.c (generic_load): Initialize data_count properly.
2774 Thu Apr 4 17:17:53 1996 Fred Fish <fnf@cygnus.com>
2776 * symmisc.c (print_objfile_statistics): Print memory used by
2777 psymbol cache obstack.
2779 Thu Apr 4 15:43:07 1996 Stan Shebs <shebs@andros.cygnus.com>
2781 * symfile.c (report_transfer_performance): New function.
2782 (generic_load): Call it to report transfer rate.
2783 * remote-e7000.c (e7000_load): Ditto.
2785 Mon Apr 1 16:31:00 1996 Stan Shebs <shebs@andros.cygnus.com>
2787 * mpw-make.sed: Change references to config.h to be in objdir,
2788 edit out rules to rebuild config.h.
2790 Mon Apr 1 08:32:23 1996 Fred Fish <fnf@cygnus.com>
2792 * hppa-tdep.c (hppa_pop_frame): Call clear_proceed_status before
2795 Sun Mar 31 16:15:43 1996 Fred Fish <fnf@cygnus.com>
2797 * hppah-nat.c (store_inferior_registers, store_inferior_registers,
2798 fetch_register, child_xfer_memory): Use call_ptrace function supplied
2799 by infptrace.c rather than calling ptrace directly.
2801 Sun Mar 31 15:39:00 1996 Stan Shebs <shebs@andros.cygnus.com>
2803 * mon960-rom.c: Cleanups and elimination of unused code,
2804 clarify documentation string.
2805 (mon960_serial, mon960_ttyname): Remove.
2806 * config/i960/tm-mon960.h (ADDITIONAL_OPTIONS,
2807 ADDITIONAL_OPTION_CASES, ADDITIONAL_OPTION_HELP): Remove.
2809 Sat Mar 30 11:00:22 1996 Fred Fish <fnf@cygnus.com>
2811 * configure.in: Check whether printf family supports printing
2812 long doubles or not and define PRINTF_HAS_LONG_DOUBLE if so.
2813 * acconfig.h: Provide default undef for PRINTF_HAS_LONG_DOUBLE.
2814 * configure: Regenerate.
2815 * valprint.c (print_floating): Use PRINTF_HAS_LONG_DOUBLE.
2816 * c-exp.y (parse_number): Use PRINTF_HAS_LONG_DOUBLE.
2817 * configure.in: Fix have_gregset and have_fpregset autoconf
2818 variable names so that they match the pattern required to
2821 Fri Mar 29 21:39:56 1996 Fred Fish <fnf@cygnus.com>
2823 * core-aout.c (fetch_core_registers): Cast core_reg_size to int
2824 before testing against reg_ptr.
2825 * eval.c (evaluate_subexp_standard): Cast type of
2826 TYPE_FN_FIELD_VOFFSET to int.
2827 * findvar.c (extract_signed_integer, extract_unsigned_integer,
2828 extract_long_unsigned_integer): Cast type of sizeof to int.
2829 * values.c (unpack_field_as_long, modify_field): Ditto.
2830 * valops.c (value_assign, call_function_by_hand): Ditto.
2831 * infcmd.c (do_registers_info): Ditto.
2832 * ser-tcp.c (tcp_open): Ditto.
2833 * remote.c (putpkt): Ditto.
2834 * dcache.c (dcache_peek): Ditto.
2835 * dcache.c (dcache_poke): Ditto.
2836 * m2-exp.y (yylex): Ditto.
2837 * gnu-regex.c (re_match_2): Ditto.
2838 * f-lang.c (ADD_BF_SYMNUM, saved_bf_list_end, tmp_bf_ptr): Ifdef
2839 out unused macro definition and variables.
2840 * inftarg.c (proc_wait): Move from main.c to here, and make static.
2841 * valprint.c (val_print_string): Change bufsize from int to unsigned.
2842 * main.c (wait.h): Include.
2843 * top.c (command_line_input): Remove unused variable "c".
2844 * f-typeprint.c (f_type_print_varspec_prefix): Add missing enum
2845 value TYPE_CODE_TYPEDEF to switch statement.
2846 (f_type_print_varspec_suffix): Add missing enum value
2847 TYPE_CODE_TYPEDEF to switch statement.
2848 * ch-exp.c (parse_primval): Add remaining enumeration values to
2849 switch statement, with no specific action.
2850 (ch_lex): Add LOC_UNRESOLVED in switch statement.
2851 (pushback_token): Ifdef out, since code using it is ifdef'd out.
2852 * stabsread.c (cleanup_undefined_types): Remove unused label
2854 * objfiles.h (print_symbol_bcache_statistics): Add prototype.
2855 * maint.c (objfiles.h): Include.
2856 (maintenance_print_statistics): Remove unused variable "temp".
2857 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
2858 unused variable "found_file_symbol".
2859 * m2-exp.y (yylex): Add LOC_UNRESOLVED case to switch.
2860 * language.c (lang_bool_type): Use existing function local type
2861 variable rather than create block local variables.
2862 * solib.c (disable_break): Enclose in ifndef SVR4_SHARED_LIBS.
2863 * infptrace.c (wait.h, command.h): Include.
2864 * ser-tcp.c (gdb_string.h): Include
2865 * i386-tdep.c (codestream_seek): Change "place" to CORE_ADDR.
2866 (i386_get_frame_setup): Change "pc" from int to CORE_ADDR.
2867 * command.c (complete_on_enum): Make assignment used as truth value
2868 explictly check against NULL.
2870 * infrun.c (wait_for_inferior): Ifdef out prologue_pc since code
2871 that uses it is ifdef'd out.
2872 * parser-defs.h: Add prototype for write_dollar_variable.
2873 * infrun.c: Add prototype for write_pc_pid.
2874 * breakpoint.h: Add prototype for re_enable_breakpoints_in_shlibs.
2875 * symmisc.c (bcache.h): Include.
2876 * bcache.h: Add prototype for print_bcache_statistics.
2877 * symfile.c: Include <time.h>.
2878 * printcmd.c (print_scalar_formatted): Change len to unsigned int.
2879 * valarith.c (value_equal): Cast result of TYPE_LENGTH to int.
2880 * valarith.c (value_binop): Change result_len, promoted_len1,
2881 and promoted_len2 to unsigned int.
2882 * valarith.c (value_subscripted_rvalue): Change elt_offs and
2883 elt_size to unsigned int.
2884 * valops.c (value_array): Change typelength to unsigned int.
2885 (destructor_name_p): Change len to unsigned int.
2886 * scm-lang.h (scm_parse): Add prototype for scm_unpack.
2887 * symfile.c (decrement_reading_symtab): Change return type to void.
2888 * valarith.c (value_subscript): Remove unused variable "word".
2889 (value_subscript): Remove unused variable "tint".
2890 * valops.c (auto_abandon): Ifdef out, since code using it is also
2892 * eval.c (init_array_element): Remove unused variable "val".
2893 * Makefile.in (values.o): Depends on scm-lang.h.
2894 (command.o): Depends upon wait_h.
2895 (ser-tcp.o): Depends upon gdb_string.h.
2896 (infptrace.o): Depends upon wait_h and command_h.
2897 (maint.o): Depends on objfiles.h and symfile.h.
2898 * values.c (allocate_repeat_value): Remove unused variable
2900 (scm-lang.h): Include.
2901 * breakpoint.c (create_longjmp_breakpoint): Enclose in
2902 GET_LONGJMP_TARGET define, unused otherwise.
2903 * config/i386/nm-linux.h: Add prototypes for i386_insert_watchpoint,
2904 i386_remove_watchpoint and i386_stopped_by_watchpoint.
2906 Thu Mar 28 12:53:19 1996 Doug Evans <dje@canuck.cygnus.com>
2908 * configure.in (sparc64-*-solaris2*): Delete.
2909 Stick with sparc-*-solaris2*.
2910 * configure: Regenerated.
2912 Thu Mar 28 06:51:26 1996 Fred Fish <fnf@cygnus.com>
2914 * valops.c (value_assign): Make copy of internal variable value
2915 before returning it as a new value, since it is owned by the
2916 internal variable and will be freed along with it.
2918 Wed Mar 27 08:36:17 1996 Jeffrey A Law (law@cygnus.com)
2920 * From Peter Schauer.
2921 * breakpoint.c (breakpoint_re_set_one): Keep temporary
2922 breakpoints bp_until, bp_finish, bp_watchpoint_cope, bp_call_dummy
2923 and bp_step_resume in case breakpoint_re_set_one is called due
2924 to a step over a dlopen call.
2925 * infrun.c (wait_for_inferior): Always remove breakpoints from
2926 inferior in BPSTAT_WHAT_CHECK_SHLIBS case.
2928 Tue Mar 26 13:15:32 1996 Fred Fish <fnf@cygnus.com>
2930 * config/mips/tm-mips.h (COERCE_FLOAT_TO_DOUBLE): Only prefer
2931 non-prototyped case over prototyped case for C.
2932 * config/pa/tm-hppa.h (COERCE_FLOAT_TO_DOUBLE): Ditto.
2934 Sat Mar 23 17:24:28 1996 Fred Fish <fnf@cygnus.com>
2936 * os9kread.c (os9k_process_one_symbol): Note nonportable
2937 assumption that an int can hold a char *.
2939 * bcache.h (struct hashlink): Wrap data[] inside union with
2940 double to force longest alignment.
2941 (BCACHE_DATA): New macro to access data[].
2942 (BCACHE_ALIGNMENT): New macro to get offset to data[].
2943 * bcache.c (lookup_cache, bcache): Use BCACHE_DATA to get
2944 address of cached data. Use BCACHE_ALIGNMENT to compute
2945 amount of space to allocate for each hashlink struct.
2947 Sat Mar 23 12:14:02 1996 Fred Fish <fnf@cygnus.com>
2949 * ch-lang.c (evaluate_subexp_chill): Fix typo.
2951 Thu Mar 21 08:27:19 1996 Fred Fish <fnf@cygnus.com>
2953 * Makefile.in (VERSION): Bump version to 4.15.3
2955 Thu Mar 21 10:56:41 1996 Ian Lance Taylor <ian@cygnus.com>
2957 * config.in: Rename from config.h.in.
2958 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
2959 Change CONFIG_HEADERS test in AC_OUTPUT accordingly.
2960 * configure: Rebuild.
2961 * Makefile.in (stamp-h): Depend upon config.in, not config.h.in.
2962 Set CONFIG_HEADERS to config.h:config.in.
2964 Tue Mar 19 12:47:51 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2966 * partial-stab.h (case N_ENDM): Finish current partial symbol
2967 table for Solaris 2 cc.
2969 Tue Mar 19 10:39:15 1996 Jeffrey A Law (law@cygnus.com)
2971 * rs6000-nat.c (exec_one_dummy_insn): Don't clobber the
2972 PC in the registers array. From Peter Schauer.
2974 Mon Mar 18 13:47:09 1996 Fred Fish <fnf@cygnus.com>
2976 * symfile.c (reread_symbols): Reinitialize bcache struct
2977 members to zero using memset. Also use memset to reinit
2978 global_psymbols and static_psymbols, rather than explicitly
2979 resetting each structure member.
2981 Sat Mar 16 19:47:36 1996 Fred Fish <fnf@cygnus.com>
2983 * configure.in: Add fragment to create stamp-h.
2985 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2986 * configure.in (AC_CHECK_HEADERS): Check for link.h.
2987 * configure: Regenerate with autoconf.
2988 * config.h.in: Regenerate with autoheader.
2989 * config/i386/nm-linux.h: Include solib.h only if HAVE_LINK_H
2991 * solib.c: Exclude most of the code if HAVE_LINK_H is not defined.
2992 * config/i386/linux.mh: Reinstate XM_CLIBS, it is needed for
2993 older a.out based systems.
2995 Sat Mar 16 16:45:43 1996 Fred Fish <fnf@cygnus.com>
2997 * config.h.in: New file.
2998 * acconfig.h: New file, for autoheader.
2999 * configure.in (AC_CONFIG_HEADER): Add, generate config.h.
3000 * configure: Regenerate.
3001 * Makefile.in (defs_h): Add config.h
3002 (distclean): Remove config.h and stamp-h during distclean.
3003 (config.h, stamp-h): New targets to remake config.h when necessary.
3004 * defs.h (config.h): Include before any other includes or defines.
3005 * i386-tdep.c (gdb_string.h): Move include after include of defs.h.
3006 * i386v4-nat.c (defs.h): Include before testing HAVE_SYS_PROCFS_H.
3008 Sat Mar 16 14:55:27 1996 Fred Fish <fnf@cygnus.com>
3010 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3011 * Makefile.in (INSTALLED_LIBS): Make sure that @LIBS@ will not
3012 result in an empty line, to work around a bug in native Ultrix 4.4
3013 and OSF/1-3.2C make.
3015 Sat Mar 16 13:33:17 1996 Fred Fish <fnf@cygnus.com>
3017 * configure.in: Add gdbserver to configdirs under linux.
3018 * configure: Regenerate.
3020 Fri Mar 15 12:06:58 1996 J.T. Conklin <jtc@rtl.cygnus.com>
3022 * config/i386/nm-nbsd.h (FLOAT_INFO): Comment out.
3023 * config/i386/tm-nbsd.h (NUM_REGS): Define.
3025 Thu Mar 14 10:31:18 1996 Jeffrey A Law (law@cygnus.com)
3027 * solib.c (solib_break_names): Add _r_debug_state for
3028 vanilla SVR4 implementations. From Peter Schauer.
3030 Mon Mar 11 14:24:57 1996 Dawn Perchik <dawn@critters.cygnus.com>
3032 * mon960-rom.c: New file; support mon960 rom monitor on i960.
3033 * monitor.c (monitor_debug): Change remotedebug to buffer strings.
3034 * monitor.c (monitor_open): Add test for flag MO_NO_ECHO_ON_OPEN before
3035 epecting prompt and echo during open.
3036 * monitor.c (monitor_stop): Add test for flag MO_SEND_BREAK_ON_OPEN to
3037 determine if break should be sent as stop command.
3038 * monitor.h: Add flags MO_NO_ECHO_ON_OPEN and MO_SEND_BREAK_ON_OPEN.
3039 * i960-tdep.c (mon960_frame_chain_valid): New function for getting
3040 stack frame on mon960.
3041 * Makefile.in: Add mon960 files.
3042 * configure.in: Changed i960-*-coff* and i960-*-elf* to target mon960;
3043 added i960-nindy-coff* and i960-nindy-elf* for target nindy.
3044 * configure: Regenerated.
3045 * config/i960/mon960.mt, config/i960/tm-mon960.h: New files;
3046 support mon960 rom monitor on i960.
3048 Mon Mar 11 11:02:47 1996 Steve Chamberlain <sac@slash.cygnus.com>
3050 With Michael Snyder:
3051 * i386-tdep.c (skip_trampoline_code): Fix strncmp length.
3052 * win32-nat.c (CHECK, DEBUG*, debug_*): New.
3053 (handle_load_dll): Don't reload symbols.
3054 (handle_exception): Use the DEBUG_* names.
3055 (child_wait): Add DEBUG_* code.
3056 (_initialize_inftarg): Add new commands to set debug_ names.
3058 Mon Mar 11 09:19:58 1996 Jeffrey A Law (law@cygnus.com)
3060 * From Peter Schauer:
3061 * breakpoint.c (insert_breakpoints): Use ALL_BREAKPOINTS_SAFE.
3062 (bpstat_stop_status): Likewise.
3063 (remove_solib_event_breakpoints): Likewise.
3064 (clear_momentary_breakpoints): Likewise.
3065 (re_enable_breakpoints_in_shlibs): Don't reenable a breakpoint
3066 if we still can't read the memory for that breakpoint.
3067 (mention): Add bp_shlib_event case to keep gcc quiet.
3069 Fri Mar 8 12:08:12 1996 Jeffrey A Law (law@cygnus.com)
3071 * breakpoint.h (enum enable): New enum shlib_disabled for
3072 shared library breakpoints that have been temporarily disabled.
3073 * breakpoint.c: Handle temporarily disabled shared library
3074 breakpoints like disabled breakpoints in most places.
3075 (insert_breakpoints): Use shlib_disabled to indicate
3076 that an unsettable breakpoint is only temporarily disabled.
3077 (re_enable_breakpoints_in_shlibs): New function.
3078 * corelow.c (solib_add_stub): After adding shared libraries,
3079 try to reenable any temporarily disabled breakpoints.
3080 * infcmd.c (attach_command): Likewise.
3081 * infrun.c (wait_for_inferior): Likewise.
3083 Fri Mar 8 11:41:25 1996 Ian Lance Taylor <ian@cygnus.com>
3085 * defs.h (extract_long_unsigned_integer): Declare.
3086 * findvar.c (extract_long_unsigned_integer): New function.
3087 * printcmd.c (print_scalar_formatted): Use it.
3088 * valprint.c (val_print_type_code_int): Likewise.
3090 Thu Mar 7 17:40:50 1996 Stan Shebs <shebs@andros.cygnus.com>
3092 * infcmd.c (do_registers_info): Ignore anonymous registers.
3093 * sh-tdep.c (set processor): New command to set specific
3095 (sh_reg_names, sh3_reg_names): Arrays of register names for
3096 SH and SH3 processors.
3097 (sh_set_processor_type): New function.
3098 * sh3-rom.c (sh3_open): Call it.
3099 (sh3_regname): Add names of all the bank registers.
3100 (sh3_supply_register): Clean up formatting.
3101 * config/sh/tm-sh.h (NUM_REGS, NUM_REALREGS): Increase to include
3103 (REGISTER_NAMES): Add names of bank registers.
3104 (FP15_REGNUM): Define.
3105 (REGISTER_VIRTUAL_TYPE): Use it.
3106 * monitor.c: Clean up some comments.
3108 Thu Mar 7 12:09:51 1996 J.T. Conklin <jtc@rtl.cygnus.com>
3110 * i386b-nat.c: Revert part of Mar 5 change. FreeBSD collapsed the
3111 s* and t* symbols too.
3113 Thu Mar 7 15:18:51 1996 James G. Smith <jsmith@cygnus.co.uk>
3115 * symfile.c (generic_load): Avoid division by zero.
3117 Wed Mar 6 17:57:59 1996 Jeffrey A Law (law@cygnus.com)
3119 * breakpoint.c (bfd_lookup_symbol): Provide for all SVR4 systems,
3120 not just those with HANDLE_SVR4_EXEC_EMULATORS.
3123 * breakpoint.c (internal_breakpoint_number): Move to file scope.
3124 (create_solib_event_breakpoint): Use an internal breakpoint number.
3126 Wed Mar 6 00:32:44 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
3128 * valarith.c (value_in): Change builtin_type_chill_bool to
3131 Tue Mar 5 23:48:36 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
3133 * ch-exp.c (parse_primval): Handle CARD, MAX, MIN.
3134 (match_string_literal): Handle control sequence.
3135 (match_character_literal): Deto.
3137 * ch-lang.c (chill_printchar): Change formating of nonprintable
3138 characters from C'xx' to ^(num).
3139 (chill_printstr): Deto.
3140 (value_chill_card, value_chill_max_min): New functions to process
3141 Chill's CARD, MAX, MIN.
3142 (evaluate_subexp_chill): Process UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN.
3144 * expression.h (exp_opcode): Add UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN
3145 for Chill's CARD, MAX, MIN.
3147 * valarith.c (value_in): Add processing of TYPE_CODE_RANGE
3148 and change return type from builtin_type_int to
3149 builtin_type_chill_bool.
3151 Tue Mar 5 18:54:04 1996 Stan Shebs <shebs@andros.cygnus.com>
3153 * config/nm-nbsd.h (link_object, lo_name, etc): Move to here
3154 from config/nm-nbsd.h.
3155 * config/sparc/nm-nbsd.h (regs, fp_status, etc): Move to here
3156 from config/sparc/tm-nbsd.h.
3158 * config/m68k/nm-hp300hpux.h (FIVE_ARG_PTRACE): Define here
3159 instead of in config/m68k/xm-hp300hpux.h.
3161 Tue Mar 5 12:05:35 1996 J.T. Conklin <jtc@rtl.cygnus.com>
3163 * i386b-nat.c, m68knbsd-nat.c (fetch_core_registers): Provide
3164 implementation for NetBSD systems.
3166 Mon Mar 4 23:44:16 1996 Per Bothner <bothner@kalessin.cygnus.com>
3168 * valarith.c (binop_user_defined_p): Return 0 for BINOP_CONCAT.
3169 (value_concat): Handle varying strings (add COERCE_VARYING_ARRAY).
3171 * ch-lang.c (evaluate_subexp_chill case MULTI_SUBSCRIPT): Error
3172 if "function" is pointer to non-function.
3174 Mon Mar 4 17:47:03 1996 Stan Shebs <shebs@andros.cygnus.com>
3176 * top.c (print_gdb_version): Update copyright year.
3178 Mon Mar 4 14:44:54 1996 Jeffrey A Law (law@cygnus.com)
3181 * infrun.c (wait_for_inferior): Remove breakpoints and
3182 switch terminal settings before calling SOLIB_ADD.
3183 * solib.c (enable_break, SVR4 variant): Don't map in symbols
3184 for the dynamic linker, the namespace pollution causes real
3187 Sun Mar 3 17:18:57 1996 James G. Smith <jsmith@cygnus.co.uk>
3189 * remote-mips.c (common_breakpoint): Explicitly terminate the
3192 Wed Feb 28 22:32:18 1996 Stan Shebs <shebs@andros.cygnus.com>
3194 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
3195 * remote.c (remote_detach): Send a command 'D' to the target
3196 when detaching, update the function's comments.
3198 Thu Jun 6 16:11:38 1996 Miles Bader <miles@gnu.ai.mit.edu>
3200 * gnu-nat.c (thread_cmd_list): New declaration.
3201 (parse_int_arg): New function.
3203 Wed Jun 5 17:28:04 1996 Miles Bader <miles@gnu.ai.mit.edu>
3205 * gnu-nat.h (struct proc): Add DETACH_SC field.
3206 * gnu-nat.c (make_proc): Set DETACH_SC.
3207 (struct inf): Add DETACH_SC & DEFAULT_THREAD_DETACH_SC fields.
3208 (make_inf): Set DETACH_SC & DEFAULT_THREAD_DETACH_SC fields.
3209 (add_thread_commands): Add set/show for detach-suspend-count.
3210 Add takeover-suspend-count cmd.
3211 (inf_detach): Set suspend counts to the detach SC, not 0.
3212 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd,
3213 set_task_detach_sc_cmd, show_task_detach_sc_cmd,
3214 set_thread_default_thread_detach_sc_cmd,
3215 show_thread_default_thread_detach_sc_cmd): New functions.
3216 (show_task_cmd): Also show detach-suspend-count values.
3217 (thread_takeover_sc_cmd): New function.
3219 Fri May 31 16:49:24 1996 Miles Bader <miles@gnu.ai.mit.edu>
3221 * gnu-nat.c (show_thread_run_cmd): Actually print state.
3223 Thu May 30 10:47:56 1996 Miles Bader <miles@gnu.ai.mit.edu>
3225 * gnu-nat.c (inf_signal): Make unforwardable exceptions an error.
3227 Tue May 28 17:06:36 1996 Miles Bader <miles@gnu.ai.mit.edu>
3229 * gnu-nat.c (inf_validate_stopped): proc_getprocinfo takes a
3230 pointer to the flags now, not the flags themselves.
3232 Mon May 27 13:31:17 1996 Miles Bader <miles@gnu.ai.mit.edu>
3234 * gnu-nat.c (gnu_wait): Print debugging msgs for pending execs.
3235 (gnu_create_inferior): Check return from ptrace.
3237 Sun May 26 16:56:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
3239 * gnu-nat.h (struct proc): Add DEAD field.
3240 * gnu-nat.c (make_proc): Initialize DEAD.
3241 (inf_set_traced, inf_validate_task_sc, inf_validate_procs: Frob it.
3242 (gnu_wait): Only abort for 0 threads if the task isn't dead.
3244 Sat May 25 17:06:05 1996 Miles Bader <miles@gnu.ai.mit.edu>
3246 * gnu-nat.c (inf_signal): Pass SIGCODE when posting a signal.
3248 Wed May 22 18:44:28 1996 Miles Bader <miles@gnu.ai.mit.edu>
3250 * gnu-nat.c (S_proc_wait_reply): Add SIGCODE argument.
3251 (inf_set_traced): Only give no-signal-thread error message if
3252 turning *on* tracing.
3254 Wed May 15 13:03:16 1996 Miles Bader <miles@gnu.ai.mit.edu>
3256 * gnu-nat.c (inf_validate_procs): If INF has no threads, always
3257 set inf->threads_up_to_date to 0.
3258 (inf_signal): Pass in new SIGCODE argument to msg_sig_post_untraced.
3259 (gnu_wait): Pass in new TIMEOUT arg to interrupt_operation.
3260 (proc_update_sc): Cast thread state arg to thread_set_state.
3261 (proc_get_state): Cast thread state arg to thread_get_state.
3262 (inf_validate_task_sc): Cast task_basic_info arg to task_info.
3263 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Call
3264 inf_update_procs before we lookup the thread.
3265 * config/i386/i386gnu.mh (MH_CFLAGS): New variable.
3267 Tue May 7 17:52:33 1996 Miles Bader <miles@gnu.ai.mit.edu>
3269 * gnu-nat.c (gnu_kill_inferior): Use inf_set_task to clear the task.
3271 Mon May 6 19:06:49 1996 Miles Bader <miles@gnu.ai.mit.edu>
3273 * gnu-nat.c (inf_set_traced): Use msg_set_init_int with
3274 INIT_TRACEMASK instead of setting the exec flags.
3276 Fri May 3 19:10:57 1996 Miles Bader <miles@gnu.ai.mit.edu>
3278 * gnu-nat.c (inf_validate_procs): Don't clear INF->task if we find
3279 the task's died, so others have a chance at it.
3280 (gnu_resume): When single-stepping a single thread, given an error
3281 if there is no such thread. When single-stepping one but running
3282 the others, just given a warning and still run all the threads.
3283 (gnu_wait): If there seem to be no threads, look harder, and
3284 signal an error if there really aren't any.
3285 (gnu_attach): Reset thread numbering to 0.
3287 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Give
3288 thread name in warning messages.
3290 * gnu-nat.c (active_inf): New function.
3291 (show_sig_thread_cmd, show_stopped_cmd): Use it.
3292 (info_port_rights, info_send_rights_cmd, info_port_sets_cmd,
3293 info_recv_rights_cmd, info_port_rights_cmd, info_port_rights_cmd):
3295 (add_task_commands): Add new port-right info commands.
3297 Fri Apr 26 20:42:16 1996 Miles Bader <miles@gnu.ai.mit.edu>
3299 * gnu-nat.c (gnu_wait): Instead of _hurd_intr_rpc_mach_msg, just
3300 use mach_msg with MACH_RCV_INTERRUPT.
3301 (set_noninvasive_cmd): New function.
3302 (add_task_commands): Add command entry for `set noninvasive'.
3304 Mon Mar 4 14:12:02 1996 Miles Bader <miles@gnu.ai.mit.edu>
3306 * gnu-nat.c (gnu_read_inferior): Use hurd_safe_memmove, not safe_bcopy.
3307 (safe_bcopy): Function removed.
3309 Mon Dec 4 14:18:26 1995 Miles Bader <miles@gnu.ai.mit.edu>
3311 * gnu-nat.c (proc_update_sc): Assert only threads can have state.
3312 (make_proc): Initialize state_valid & state_changed fields.
3314 Tue Nov 28 17:51:21 1995 Miles Bader <miles@gnu.ai.mit.edu>
3316 * reply_mig_hack.awk: New file.
3318 Tue Nov 14 14:31:03 1995 Miles Bader <miles@gnu.ai.mit.edu>
3320 * breakpoint.c (breakpoint_1): Print breakpoint thread field.
3322 * lynx-nat.c (child_wait): Return TARGET_WAITKIND_SPURIOUS for new
3325 Mon Nov 13 18:30:53 1995 Miles Bader <miles@gnu.ai.mit.edu>
3327 * target.c (debug_to_check_threads): New function.
3329 * inflow.c (terminal_init_inferior_with_pgrp): New function.
3330 (terminal_init_inferior): Call terminal_init_inferior_with_pgrp.
3331 * inferior.h (terminal_init_inferior_with_pgrp): New declaration,
3332 but only if PROCESS_GROUP_TYPE is defined.
3334 Mon Nov 6 16:42:09 1995 Miles Bader <miles@gnu.ai.mit.edu>
3336 * target.c (debug_to_thread_alive): Pass through the return value.
3338 Thu Nov 2 18:05:00 1995 Miles Bader <miles@gnu.ai.mit.edu>
3340 * target.c (signals, target_signal_from_host, target_signal_to_host):
3341 Add mach exceptions.
3342 * target.h (enum target_signal): Add mach exceptions.
3344 Mon Oct 30 16:41:04 1995 Miles Bader <miles@gnu.ai.mit.edu>
3346 * gnu-nat.c: New file: gnu native backend.
3347 * i386gnu-nat.c: New file: i386-specific part of gnu native backend.
3348 * gnu-nat.h: New file.
3349 * config/nm-gnu.h: New file.
3350 * config/tm-i386gnu.h: New file.
3351 * config/xm-i386gnu.h: New file.
3352 * config/i386/i386gnu.mh: New file.
3353 * config/i386/i386gnu.mt: New file.
3355 Wed Feb 28 15:50:12 1996 Fred Fish <fnf@cygnus.com>
3357 * Makefile.in (VERSION): Bump version to 4.15.2 to establish
3358 baseline for gdb 4.16 rerelease testing.
3360 Wed Feb 28 13:32:05 1996 Jeffrey A Law (law@cygnus.com)
3362 * somsolib.c (som_solib_create_inferior_hook): Before returning
3363 call clear_symtab_users.
3365 Tue Feb 27 00:04:46 1996 Stu Grossman (grossman@critters.cygnus.com)
3367 * remote-e7000.c (e7000_open): Delete all breakpoints when
3368 connecting to e7000. Change connect message to allow use of
3369 monitor.exp in test suite.
3370 * (e7000_load): Print transfer rate of download.
3371 * symfile.c (generic_load): Print transfer rate of download.
3373 Sun Feb 25 13:58:33 1996 Stan Shebs <shebs@andros.cygnus.com>
3375 * configure.in (mips*-*-vxworks*): New config.
3376 * configure: Regenerated.
3378 * config/mips/vxmips.mt, config/mips/tm-vxmips.h: New files.
3379 * remote-vxmips.c (vx_convert_to_virtual, vx_convert_from_virtual):
3382 Sat Feb 24 12:30:28 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3384 * partial-stab.h (case N_FUN): Function symbols generated
3385 by SPARCworks cc have a meaningless zero value, do not update
3386 pst->textlow if the function symbol value is zero.
3388 * stabsread.c (define_symbol): Initialize SYMBOL_TYPE field
3389 for function prototype declaration symbols.
3391 Fri Feb 23 22:33:04 1996 Stu Grossman (grossman@critters.cygnus.com)
3393 * remote-e7000.c (e7000_load): New routine to download via the
3395 * (e7000_wait): Don't backup PC when we hit a breakpoint.
3396 Apparantly new sh2 pods get this right...
3397 * (e7000_ops): Add call to e7000_load.
3399 Thu Feb 22 00:52:42 1996 J.T. Conklin <jtc@rtl.cygnus.com>
3401 * config/m68k/{nbsd.mh,nbsd.mt,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h},
3402 m68knbsd-nat.c: New files, support for NetBSD/m68k.
3404 * configure.in (m68k-*-netbsd*): New config.
3405 * configure: Regenerated.
3407 Wed Feb 21 19:00:21 1996 Fred Fish <fnf@cygnus.com>
3409 * standalone.c (open, _initialize_standalone): Fix obvious typos
3410 reported by Martin Pool <martin@citr.uq.oz.au>.
3412 Wed Feb 21 14:24:04 1996 Jeffrey A Law (law@cygnus.com)
3414 * solib.c (solib_create_inferior_hook): Fix thinko.
3416 Tue Feb 20 23:59:19 1996 Jeffrey A Law (law@cygnus.com)
3418 * solib.c (solib_break_names): Define for Solaris and Linux.
3419 (enable_break): For SVR4 systems, first try to use the debugger
3420 interfaces in the dynamic linker to track shared library events
3421 as they happen, then fall back to BKPT_AT_SYMBOL code. Convert
3422 BKPT_AT_SYMBOL code to use shared library event breakpoints.
3423 (solib_create_inferior_hook): Simplify BKPT_AT_SYMBOL code,
3424 it no longer needs to restart/wait on the inferior.
3425 * symfile.c (find_lowest_section): No longer static.
3426 * symfile.h (find_lowest_section): Corresponding changes.
3428 Tue Feb 20 18:54:08 1996 Fred Fish <fnf@cygnus.com>
3430 * valops.c (COERCE_FLOAT_TO_DOUBLE): Define default value.
3431 (value_arg_coerce): Use COERCE_FLOAT_TO_DOUBLE.
3432 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Define to 1.
3433 * config/mips/tm-mips.h: Ditto.
3434 * config/pa/tm-hppa.h: Ditto.
3435 * config/rs6000/tm-rs6000.h: Ditto.
3436 * config/sparc/tm-sparc.h: Ditto.
3438 Tue Feb 20 17:32:05 1996 J.T. Conklin <jtc@rtl.cygnus.com>
3440 * config/{i386,ns32k}/nbsd.mh (NATDEPFILES): Remove core-aout.o.
3442 * config/nm-nbsd.h (FETCH_INFERIOR_REGISTERS): Defined.
3443 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
3444 #ifdef'd out definitions --- Causes serious gdb failures on
3445 the i386. Need to investigate further before enabling.
3447 * i386b-nat.c (fetch_inferior_registers, store_inferior_registers,
3448 fetch_core_registers): New functions. These functions are defined
3449 if FETCH_INFERIOR_REGISTERS is set. Registers are fetched/stored
3450 with ptrace PT_GETREGS/PT_SETREGS.
3452 Tue Feb 20 16:55:06 1996 Stu Grossman (grossman@critters.cygnus.com)
3454 * findvar.c (extract_floating store_floating): Replace `long
3455 double' with `DOUBLEST'.
3457 Mon Feb 19 15:25:51 1996 J.T. Conklin <jtc@rtl.cygnus.com>
3459 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
3462 Mon Feb 19 10:32:05 1996 Jeffrey A Law (law@cygnus.com)
3464 * symtab.h (looup_minimal_symbol_solib_trampoline): Declare.
3466 * breakpoint.h (remove_solib_event_breakpoints): Declare.
3467 * breakpoint.c (remove_solib_event_breakpoints): New function.
3468 * somsolib.c (solib_create_inferior_hook): Remove all solib event
3469 breakpoints before inserting any new ones. Use a solib event
3470 breakpoint for the breakpoint at "_start".
3471 Remove extraneous "\n" from calls to warning.
3473 * breakpoint.c (breakpoint_1): Add missing "sigtramp" to bptypes
3476 Mon Feb 19 01:09:32 1996 Doug Evans <dje@cygnus.com>
3478 * dwarfread.c (add_partial_symbol): Use ADD_PSYMBOL_ADDR_TO_LIST
3479 for CORE_ADDR values.
3480 (new_symbol): Use SYMBOL_VALUE_ADDRESS for CORE_ADDR values.
3481 * symfile.h (add_psymbol_{,addr}to_list): Add prototypes.
3483 Sun Feb 18 14:37:13 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3485 * mipsread.c (mipscoff_symfile_read): Unconditionally add
3486 alpha coff dynamic symbols for all symbol files. Makes skipping
3487 over the trampoline code work when stepping from a function in a
3488 shared library into a function in a different shared library.
3490 Sun Feb 18 09:27:10 1996 Stu Grossman (grossman@cygnus.com)
3492 * config/sparc/tm-sparc.h: Define PS_FLAG_CARRY. Define
3493 RETURN_VALUE_ON_STACK to return long doubles on the stack.
3495 Sat Feb 17 16:33:11 1996 Fred Fish <fnf@cygnus.com>
3497 * Makefile.in (ch-exp.o): Add dependencies.
3498 (various): Add gdb_string.h to dependencies that need it.
3500 Sat Feb 17 08:57:50 1996 Fred Fish <fnf@cygnus.com>
3502 * symmisc.c (print_symbol_bcache_statistics): Update description for
3503 printing byte cache statistics.
3505 Thu Feb 16 16:02:03 1996 Stu Grossman (grossman@cygnus.com)
3507 * Add native support for long double data type.
3508 * c-exp.y (%union): Change dval to typed_val_float. Use DOUBLEST
3509 to store actual data. Change types of INT and FLOAT tokens to
3510 typed_val_int and typed_val_float respectively. Create new token
3511 DOUBLE_KEYWORD to specify the string `double'. Make production
3512 for FLOAT use type determined by parse_number. Add production for
3513 "long double" data type.
3514 * (parse_number): Use sscanf to parse numbers as float, double or
3515 long double depending upon the type of typed_val_float.dval. Also
3516 allow user to specify `f' or `l' suffix to explicitly specify
3517 float or long double constants. Change typed_val to
3519 * (yylex): Change typed_val to typed_val_int. Also, scan for
3521 * coffread.c (decode_base_type): Add support for T_LNGDBL basic
3523 * configure, configure.in: Add check for long double support in
3525 * defs.h: Define DOUBLEST appropriatly depending on whether
3526 HAVE_LONG_DOUBLE (from autoconf) is defined. Also, fix prototypes
3527 for functions that handle this type.
3528 * expression.h (union exp_element): doubleconst is now type
3530 * m2-exp.y f-exp.y (%union): dval becomes type DOUBLEST.
3531 * findvar.c (extract_floating): Make return value be DOUBLEST.
3532 Also, add support for numbers with size of long double.
3533 * (store_floating): Arg `val' is now type DOUBLEST. Handle all
3535 * parser-defs.h parse.c (write_exp_elt_dblcst): Arg expelt is now
3537 * valarith.c (value_binop): Change temp variables v1, v2 and v to
3538 type DOUBLEST. Coerce type of result to long double if either op
3540 * valops.c (value_arg_coerce): If argument type is bigger than
3541 double, coerce to long double.
3542 * (call_function_by_hand): If REG_STRUCT_HAS_ADDR is defined, and
3543 arg type is float and > 8 bytes, then use pointer-to-object
3544 calling conventions.
3545 * valprint.c (print_floating): Arg doub is now type DOUBLEST.
3546 Use appropriate format and precision to print out floating point
3548 * value.h: Fixup prototypes for value_as_double,
3549 value_from_double, and unpack_double to use DOUBLEST.
3550 * values.c (record_latest_value): Remove check for invalid
3551 floats. Allow history to store them so that people may examine
3552 them in hex if they want.
3553 * (value_as_double unpack_double): Change return value to DOUBLEST.
3554 * (value_from_double): Arg `num' is now DOUBLEST.
3555 * (using_struct_return): Use RETURN_VALUE_ON_STACK macro (target
3556 specific) to expect certain types to always be returned on the stack.
3558 Fri Feb 16 14:00:54 1996 Fred Fish <fnf@cygnus.com>
3560 * bcache.c, bcache.h: New files to implement a byte cache.
3561 * Makefile.in (SFILES): Add bcache.c.
3562 (symtab_h): Add bcache.h.
3563 (HFILES_NO_SRCDIR): add bcache.h
3564 (COMMON_OBJS): Add bcache.o
3565 (bcache.o): New target.
3566 * dbxread.c (start_psymtab): Make global_syms & static_syms
3567 type "partial_symbol **".
3568 * hpread.c (hpread_start_symtab): Ditto.
3569 * os9kread.c (os9k_start_psymtab): Ditto.
3570 * stabsread.h (start_psymtab): Ditto.
3571 * {symfile.c, symfile.h} (start_psymtab_common): Ditto.
3572 * maint.c (maintenance_print_statistics): Call
3573 print_symbol_bcache_statistics.
3574 * objfiles.c (allocate_objfile): Initialize psymbol bcache malloc
3576 * solib.c (allocate_rt_common_objfile): Ditto.
3577 * symfile.c (reread_symbols): Ditto.
3578 (free_objfile): Free psymbol bcache when objfile is freed.
3579 (objfile_relocate): Use new indirect psymbol pointers.
3580 * objfiles.h (struct objfile): Add psymbol cache.
3581 * symfile.c (compare_psymbols): Now passed pointers to pointers to
3583 (reread_symbols): Free psymbol bcache when freeing other objfile
3585 (add_psymbol_to_list, add_psymbol_addr_to_list): Initialize new
3586 psymbol using the psymbol bcache.
3587 (init_psymbol_list): Psymbol lists now contain pointers rather than
3588 the actual psymbols.
3589 * symfile.h (psymbol_allocation_list): Psymbol lists now dynamically
3590 grown arrays of pointers.
3591 (ADD_PSYMBOL_VT_TO_LIST): Initialize new symbol using the psymbol
3593 * symmisc.c (print_partial_symbols): Now takes pointer to pointer
3595 (print_symbol_bcache_statistics): New function to print per objfile
3597 (print_partial_symbol, print_partial_symbols,
3598 maintenance_check_symtabs, extend_psymbol_list):
3599 Account for change to pointer to pointer to partial symbol.
3600 * symtab.c (find_pc_psymbol, lookup_partial_symbol, decode_line_2,
3601 make_symbol_completion_list):
3602 Account for change to pointer to pointer to partial symbol.
3603 * symtab.h (bcache.h): Include.
3604 * xcoffread.c (xcoff_start_psymtab): Make global_syms & static_syms
3605 type "partial_symbol **".
3607 Fri Feb 16 10:02:34 1996 Fred Fish <fnf@cygnus.com>
3609 * dwarfread.c (free_utypes): New function.
3610 (read_file_scope): Call free_utypes as cleanup, rather than just
3611 freeing the utypes pointer.
3613 Thu Feb 15 21:40:52 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3615 * demangle.c (is_cplus_marker): New function, checks if a
3616 character is one of the commonly used C++ marker characters.
3617 * defs.h (is_cplus_marker): Add prototype.
3618 * c-typeprint.c (c_type_print_base), ch-lang.c (chill_demangle),
3619 cp-valprint.c (cp_print_class_method), mdebugread.c (parse_symbol),
3620 stabsread.c (define_symbol, read_member_functions, read_struct_fields),
3621 symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P),
3622 values.c (vb_match): Use is_cplus_marker instead of comparison
3625 Thu Feb 15 18:08:13 1996 Fred Fish <fnf@cygnus.com>
3627 * symfile.h (INLINE_ADD_PSYMBOL): Default this to 0 and possibly
3628 delete entirely someday.
3630 Thu Feb 15 15:25:34 1996 Stan Shebs <shebs@andros.cygnus.com>
3632 * mpw-make.sed: Edit out makefile rebuild rule.
3633 (host_alias, target_alias): Comment out instead of deleting.
3634 (@LIBS@): Edit out references.
3636 Tue Feb 13 22:56:46 1996 Fred Fish <fnf@cygnus.com>
3638 * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
3639 Use n_psyms in OBJSTAT, not psyms.
3641 Mon Feb 12 15:59:31 1996 Doug Evans <dje@charmed.cygnus.com>
3643 * configure.in (sparclet-*-aout*): New config.
3644 * configure: Regenerated.
3646 Mon Feb 12 14:17:52 1996 Fred Fish <fnf@cygnus.com>
3648 * somsolib.c (som_solib_add): Use xmalloc rather than bare
3649 unchecked call to malloc.
3650 * remote-mips.c (pmon_load_fast): ditto.
3651 * remote-mm.c (mm_open): ditto.
3652 * hpread.c (hpread_lookup_type): ditto.
3653 * remote-adapt.c (adapt_open): ditto.
3655 Mon Feb 12 13:11:32 1996 Fred Fish <fnf@cygnus.com>
3657 * f-lang.c (allocate_saved_bf_node, allocate_saved_function_node,
3658 allocate_saved_f77_common_node, allocate_common_entry_node,
3659 add_common_block): Use xmalloc rather than malloc, some of which
3661 * gnu-regex.c: At same point as other gdb specific changes
3662 #undef malloc and then #define it to xmalloc.
3663 * ch-exp.c (growbuf_by_size): Use xmalloc/xrealloc rather than
3664 bare unchecked calls to malloc/realloc.
3665 * stabsread.c (dbx_lookup_type): Use xmalloc rather than bare
3666 unchecked call to malloc.
3668 Wed Feb 7 11:31:26 1996 Stu Grossman (grossman@cygnus.com)
3670 * symtab.c (gdb_mangle_name): Change opname var to be const to
3671 match return val of cplus_mangle_name.
3672 * i960-tdep.c: Change arg types of next_insn to match callers.
3674 Wed Feb 7 07:34:24 1996 Fred Fish <fnf@cygnus.com>
3676 * config/i386/linux.mh (XM_CLIBS, GDBSERVER_LIBS): Remove. These
3677 apparently aren't needed in any reasonably recent version of
3680 Tue Feb 6 21:37:03 1996 Per Bothner <bothner@kalessin.cygnus.com>
3682 * stabsread.c (read_range_type): If !self-subrange and language
3683 is Chill, assume a true range. If a true_range is a sub_subrange,
3684 use builtin_type_int for index_type.
3686 Tue Feb 6 18:38:51 1996 J.T. Conklin <jtc@slave.cygnus.com>
3688 * nindy-share/nindy.c (say): Use stdarg.h macros when compiling
3689 with an ANSI compiler.
3691 start-sanitize-gdbtk
3692 Tue Feb 6 16:31:25 1996 Tom Tromey <tromey@creche.cygnus.com>
3694 * gdbtk.tcl (create_file_win): Eliminate text widget B1 binding so
3695 double-clicking will work again.
3696 (create_asm_win): Put "break" at end of all B1 bindings.
3697 (create_file_win): Lower "sel" tag, don't raise it.
3698 (ensure_line_visible): New proc.
3699 (update_listing, update_assembly): Use it.
3700 (create_copyright_window): Destroy window on Leave event.
3701 (create_command_window): Put "break" at end of all B2 bindings.
3704 Mon Feb 5 18:24:28 1996 Steve Chamberlain <sac@slash.cygnus.com>
3706 From Michael_Snyder@NeXT.COM (Michael Snyder):
3707 * valops.c (value_arg_coerce): Coerce float to double, unless the
3708 function prototype specifies float.
3710 Mon Feb 5 09:51:55 1996 Tom Tromey <tromey@creche.cygnus.com>
3712 * language.c (set_language_command): Use languages table when
3713 printing available languages.
3715 Sat Feb 3 12:22:05 1996 Fred Fish <fnf@cygnus.com>
3717 Fix problems reported by Hans Verkuil (hans@wyst.hobby.nl):
3718 * command.c (add_cmd): Add missing initialization for enums member.
3719 Reorder members to match structure declaration to make it easier to
3720 tell when one is missing.
3721 * exec.c (exec_file_command): Fix problem where filename in malloc'd
3722 memory is referenced after being freed.
3724 Sat Feb 3 03:26:21 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3726 * dwarfread.c (read_func_scope): Avoid GDB core dumps if
3727 AT_name tag is missing.
3729 * procfs.c (procfs_stopped_by_watchpoint): Fix logic when
3730 FLTWATCH and FLTKWATCH are defined.
3732 * remote.c (remote_read_bytes): Advance memaddr for transfers,
3733 return number of bytes transferred for partial reads.
3735 * top.c (init_signals): Reset SIGTRAP to SIG_DFL.
3737 Fri Feb 2 13:40:50 1996 Steve Chamberlain <sac@slash.cygnus.com>
3739 * win32-nat.c (mappings): Add ppc registers.
3740 (child_resume): Turn off step for ppc.
3742 Thu Feb 1 10:29:31 1996 Steve Chamberlain <sac@slash.cygnus.com>
3744 * config/powerpc/(cygwin32.mh, cygwin32.mt, tm-cygwin32.h,
3745 xm-cygwin32.h): New.
3746 * config/i386/(*win32*): Becomes *cygwin32*.
3747 * configure.in (i[3456]86-*-win32*): Becomes i[3456]86-*-cygwin32.
3748 (powerpcle-*-cygwin32): New.
3749 * configure: Regenerate.
3750 * win32-nat.c (child_create_inferior): Call CreateProcess
3751 with the right program arg.
3753 Thu Feb 1 11:01:10 1996 Jeffrey A Law (law@cygnus.com)
3755 * config/pa/tm-hppa.h (SOFT_FLOAT): Provide a default definition.
3757 Wed Jan 31 19:01:28 1996 Fred Fish <fnf@cygnus.com>
3759 * serial.c: Change fputc/fputs/fprintf to _unfiltered forms.
3761 Wed Jan 31 18:36:27 1996 Stan Shebs <shebs@andros.cygnus.com>
3763 * config/sparc/xm-sun4os4.h (HAVE_TERMIOS): Remove.
3765 * config/sparc/xm-sparc.h (HAVE_WAIT_STRUCT): Remove, never used.
3767 * config/i386/nm-i386mach.h (CHILD_PREPARE_TO_STORE): Move to
3768 here from config/i386/xm-i386mach.h, fix name.
3769 * config/i386/nm-sun386.h: Ditto, from config/i386/xm-sun386.h.
3770 * config/i386/nm-ptx4.h (CHILD_PREPARE_TO_STORE): Move to
3771 here from config/i386/xm-ptx4.h.
3772 * config/i386/nm-ptx4.h: Ditto, from config/i386/xm-ptx.h.
3773 * config/i386/nm-symmetry.h: Ditto, from config/i386/xm-symmetry.h.
3774 * config/m68k/nm-sun3.h: Ditto, from config/m68k/xm-sun3.h.
3775 * config/sparc/nm-nbsd.h: Ditto, from config/sparc/xm-nbsd.h.
3776 * config/sparc/nm-sun4os4: Ditto, from config/sparc/xm-sparc.h.
3778 * config/sparc/nm-sun4sol2.h: New file, renamed from nm-sysv4.h.
3779 (PRSVADDR_BROKEN): Move here from xm-sun4sol2.h.
3780 * config/sparc/sun4sol2.mh (NAT_FILE): Update.
3782 Wed Jan 31 17:20:26 1996 Jeffrey A Law (law@cygnus.com)
3784 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Handle software
3785 floating point correctly.
3786 (STORE_RETURN_VALUE): Likewise.
3787 * config/pa/tm-pro.h (SOFT_FLOAT): define.
3789 Wed Jan 31 13:34:52 1996 Fred Fish <fnf@cygnus.com>
3791 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
3792 Define to what should be reasonable values. However, apparently
3793 a bug in linux mmap prevents mapped symbol tables from working.
3795 Tue Jan 30 18:26:19 1996 Fred Fish <fnf@cygnus.com>
3797 * defs.h (errno.h>: Move #include closer to head of file to solve
3798 obscure problem with systems that declare perror with const arg, in
3799 both errno.h and stdio.h, and const is defined away by intervening
3802 Tue Jan 30 15:41:10 1996 Fred Fish <fnf@cygnus.com>
3804 From Jon Reeves <reeves@zk3.dec.com>:
3805 * i386-stub.c (getpacket): Change fprintf stream from "gdb" to stderr.
3806 (mem_fault_routine): Fix misplaced volatile type qualifier in decl.
3808 Mon Jan 29 19:05:58 1996 Fred Fish <fnf@cygnus.com>
3810 * Makefile.in (diststuff): Make all-doc; diststuff target does not
3811 exist in doc/Makefile.in.
3813 Mon Jan 29 18:44:57 1996 Stan Shebs <shebs@andros.cygnus.com>
3815 * config/m88k/xm-cxux.h (BP_HIT_COUNT): Remove, never used.
3817 Mon Jan 29 00:10:35 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
3819 * ch-valprint.c (calculate_array_length): New function to
3820 determine the length of an array type.
3821 (chill_val_print (case TYPE_CODE_ARRAY)): If the length of an
3822 array type is zero, call calculate_array_length.
3824 * gdbtypes.c (get_discrete_bounds (case TYPE_CODE_ENUM)): The
3825 values may not be sorted. Scan all entries and set the real lower
3828 Sun Jan 28 15:50:42 1996 Fred Fish <fnf@cygnus.com>
3830 * config/xm-linux.h: Move include of solib.h and #define of
3831 SVR4_SHARED_LIBS from here ...
3832 * config/nm-linux.h: ...to here.
3834 Sat Jan 27 10:34:05 1996 Fred Fish <fnf@cygnus.com>
3836 * configure.in (AC_CHECK_HEADERS): Check for sys/procfs.h.
3837 Also check for gregset_t and fpregset_t types.
3838 * configure: Regenerate.
3839 * core-regset.c (sys/procfs.h): Only include if HAVE_SYS_PROCFS_H
3841 (fetch_core_registers): Turn into stub unless both HAVE_GREGSET_T
3842 and HAVE_FPREGSET_T are defined. These changes allow systems
3843 like linux that are migrating to /proc support to use a single
3844 configuration for both new and old versions.
3846 * config/i386/linux.mt: Note that this is now for both a.out and
3848 * config/i386/linux.mh (NATDEPFILES): Add solib.o, core-regset.o,
3850 * config/i386/tm-linux.h (tm-sysv4.h): Include.
3851 * config/i386/xm-linux.h (solib.h): Include
3852 (SVR4_SHARED_LIBS): Define.
3853 * i386v4-nat.c: Only compile if HAVE_SYS_PROCFS_H is defined.
3854 (supply_gregset, fill_gregset): Compile if HAVE_GREGSET_T defined.
3855 (supply_fpregset, fill_fpregset): Compile if HAVE_FPREGSET_T
3858 Fri Jan 26 13:48:14 1996 Stan Shebs <shebs@andros.cygnus.com>
3860 * config/sparc/xm-sparc.h (NEW_SUN_CORE): Remove, never used.
3861 * config/i386/xm-sun386.h: Ditto.
3862 * config/m68k/xm-sun2.h, config/m68k/xm-sun3.h: Ditto.
3864 Thu Jan 25 16:05:53 1996 Tom Tromey <tromey@creche.cygnus.com>
3866 * Makefile.in (INSTALLED_LIBS, CLIBS): Include @LIBS@.
3868 Thu Jan 25 09:22:15 1996 Steve Chamberlain <sac@slash.cygnus.com>
3870 From Greg McGary <gkm@gnu.ai.mit.edu>:
3871 * dcache.c (dcache_peek, dcache_poke): Advance addr for
3874 Thu Jan 25 13:08:51 1996 Doug Evans (dje@cygnus.com)
3876 * infrun.c (normal_stop): Fix test for shared library event.
3878 Thu Jan 25 03:26:38 1996 Doug Evans <dje@charmed.cygnus.com>
3880 * configure.in (sparc64-*-*): Add default host configuration.
3881 start-sanitize-gdbtk
3882 (sparc64-*-solaris2* host): Link statically if GCC used.
3884 (sparc64-*-solaris2*): Add target configuration.
3885 * configure: Regenerated.
3886 * sparc/sp64sol2.mt: New file.
3888 Wed Jan 24 22:31:37 1996 Doug Evans <dje@charmed.cygnus.com>
3890 * Makefile.in (RUNTEST): srcdir renamed to rootsrc.
3892 Wed Jan 24 15:42:24 1996 Tom Tromey <tromey@creche.cygnus.com>
3894 * Makefile.in (lint): Close backquotes.
3896 start-sanitize-gdbtk
3897 Wed Jan 24 15:28:41 1996 Tom Tromey <tromey@creche.cygnus.com>
3899 * gdbtk.tcl, gdbtk.c: Updated copyrights.
3901 * configure.in: Look for -ldl or -ldld when using Tcl 7.5 or
3903 * configure: Rebuilt.
3906 Wed Jan 24 13:19:10 1996 Fred Fish <fnf@cygnus.com>
3908 * NEWS: Make note of new record and replay feature for
3909 remote debug sessions.
3910 * serial.c (gdbcmd.h): Include.
3911 (serial_logfile, serial_logfp, serial_reading, serial_writing):
3912 Define here, for remote debug session logging.
3913 (serial_log_command, serial_logchar, serial_write, serial_readchar):
3914 New functions for remote debug session logging.
3915 (serial_open): Open remote debug session log file when needed.
3916 (serial_close): Close remote debug session log file when needed.
3917 (_initialize_serial): Add set/show commands for name of remote
3918 debug session log file.
3919 * serial.h (serial_readchar): Declare
3920 (SERIAL_READCHAR): Call serial_readchar().
3921 (SERIAL_WRITE): Call serial_write().
3922 (serial_close): Declare as extern.
3923 (serial_logfile, serial_logfp): Declare.
3924 * top.c (execute_command): Declare serial_logfp. Log user command
3925 in remote debug session log if log file is open.
3926 * remote-array.c (array_wait): #ifdef out echo to gdb_stdout.
3927 (array_read_inferior_memory): Rewrite to fix memory overwrite bug.
3928 * remote-array.c (SREC_SIZE): Remove, duplicates define in
3930 * remote-array.c (hexchars, hex2mem): Remove, unused.
3931 * gdbserver/low-linux.c (store_inferior_registers): Remove
3932 unnecessary extern declaration of registers[].
3933 * gdbserver/Makefile.in (all): Add gdbreplay.
3934 * gdbserver/gdbreplay.c: New file.
3935 * gdbserver/README: Give example of recording a remote
3936 debug session with gdb and then replaying it with gdbreplay.
3938 Tue Jan 23 18:02:35 1996 Per Bothner <bothner@kalessin.cygnus.com>
3940 * stabsread.c (rs6000_builtin_type): Make bool type unsigned.
3941 (read_one_struct_field): Support boolean bitfields.
3942 * c-valprint.c (c_val_print): Print booleans properly.
3944 Tue Jan 23 18:54:09 1996 Stan Shebs <shebs@andros.cygnus.com>
3946 * remote-vxsparc.c (vx_convert_to_virtual, vx_convert_from_virtual):
3948 * config/sparc/vxsparc.mt (TDEPFILES): Add remote-vxsparc.o.
3950 Tue Jan 23 14:36:05 1996 Per Bothner <bothner@kalessin.cygnus.com>
3952 * ch-exp.c (parse_tuple): Error if invalid mode.
3954 * value.h (COERCE_ARRAY): Don't coerce enums.
3955 (COERCE_ENUM): Don't COERCE_REF.
3956 (COERCE_NUMBER): New macro (same as COERCE_ARRAY then COERCE_ENUM).
3957 * valops.c (value_assign): Only do COERCE_ARRAY if internalvar (let
3958 value_cast handle it otherwise); do *not* COERCE_ENUM either way.
3959 * valarith.c: Use COERCE_NUMBER instead od COEREC_ARRAY.
3960 Add COERCE_REF before COERCE_ENUM.
3961 * values.c (value_as_long): Simplify.
3963 * valops.c (value_array): Create internalvar if !c_style_arrays.
3965 * language.c (lang_bool_type): Add Fortran support.
3966 * eval.c (OP_BOOL): Use LA_BOOL_TYPE.
3968 Tue Jan 23 13:08:26 1996 Jeffrey A Law (law@cygnus.com)
3970 * symfile.c (auto_solib_add): Renamed from auto_solib_add_at_startup.
3971 All references changed.
3972 * breakpoint.c (bpstat_what): Add shlib_event to the class types.
3973 Update state table. Reformat so that it's still readable.
3974 When we hit the shlib_event breakpoint, set the calss of shlib_event.
3975 (breakpoint_1): Add "shlib events" as a breakpoint type.
3976 Print the shlib_event breakpoint like other breakpoints.
3977 (create_solib_event_breakpoint): New function.
3978 (breakpoint_re_set_one): Handle solib_event breakpoints.
3979 * breakpoint.h (enum bytype): Add bp_shlib_event breakpoint type.
3980 (enum bpstat_what_main_action): Add BPSTAT_WHAT_CHECK_SHLIBS
3982 (create_solib_event_breakpoint): Declare.
3983 * infrun.c (wait_for_inferior): Handle CHECK_SHLIBS bpstat.
3984 (normal_stop): Inform the user when the inferior stoped due
3985 to a shared library event.
3986 (_initialize_infrun): Add new set/show variable "stop-on-solib-events"
3987 to control whether or not gdb continues the inferior or stops it when
3988 a shared library event occurs.
3989 * minsyms.c (lookup_minimal_symbol_solib_trampoline): New function.
3990 * somsolib.c (TODO list): Update.
3991 (som_solib_create_inferior_hook): Arrange for gdb to be notified
3992 when significant shared library events occur.
3993 * hppa-tdep.c (find_unwind_entry): No longer static.
3995 Tue Jan 23 09:00:48 1996 Doug Evans <dje@charmed.cygnus.com>
3997 * printcmd.c (print_insn): Pass fprintf_unfiltered to
3998 INIT_DISASSEMBLE_INFO.
3999 start-sanitize-gdbtk
4000 * gdbtk.c (gdb_disassemble): Likewise.
4003 Mon Jan 22 16:59:40 1996 Stan Shebs <shebs@andros.cygnus.com>
4005 * remote.c (remotebreak): New GDB variable.
4006 (remote_break): New global.
4007 (remote_interrupt): Send a break instead of ^C if remote_break.
4008 * NEWS: Describe the new variable.
4010 Mon Jan 22 16:24:11 1996 Doug Evans <dje@charmed.cygnus.com>
4012 * sparc-tdep.c (_initialize_sparc_tdep): Always use print_insn_sparc.
4014 Fri Jan 19 07:19:38 1996 Fred Fish <fnf@cygnus.com>
4016 * hp300ux-nat.c (getpagesize): Remove unused function
4017 fetch_core_registers.
4018 (hp300ux_core_fns): Remove, is unused.
4019 (_initialize_core_hp300ux): Remove, is unused.
4020 (gdbcore.h): Remove #include, no longer needed.
4022 Fri Jan 19 00:59:53 1996 Jeffrey A Law (law@cygnus.com)
4024 * rs6000-nat.c (exec_one_dummy_insn): Rework to avoid
4025 ptrace bug in aix4.1.3 on the rs6000.
4027 Wed Jan 17 13:22:27 1996 Stan Shebs <shebs@andros.cygnus.com>
4029 * remote-hms.c (hms_ops): Add value for to_thread_alive.
4030 * remote-nindy.c (nindy_ops): Ditto.
4031 * remote-udi.c (udi_ops): Ditto.
4033 Tue Jan 16 18:00:35 1996 James G. Smith <jsmith@cygnus.co.uk>
4035 * remote-mips.c (pmon_opn, pmon_wait, pmon_makeb64, pmon_zeroset,
4036 pmon_checkset, pmon_make_fastrec, pmon_check_ack,
4037 pmon_load_fast): New functions. Support for the PMON monitor world.
4038 (common_open): New function to merge support for different monitors.
4039 (mips_open): Use common_open().
4040 (mips_send_command): New function.
4041 (mips_send_packet): Scan out-of-sequence packets.
4042 (mips_enter_debug, mips_exit_debug): New functions.
4043 (pmon_ops): New target definition structure.
4045 Tue Jan 16 11:22:58 1996 Stu Grossman (grossman@cygnus.com)
4047 * Makefile.in (CLIBS): Add LIBS to allow libraries to be
4048 specified on the make command line (via make LIBS=xxx).
4050 * configure.in (enable-gm): magic.o -> gmagic.o.
4053 start-sanitize-gdbtk
4054 Mon Jan 15 09:58:41 1996 Tom Tromey <tromey@creche.cygnus.com>
4056 * gdbtk.tcl (create_expr_window): Many changes to update GUI.
4057 (add_expr): Changes from create_expr_window.
4058 (create_command_window): Set focus.
4059 (delete_expr): Rewrote.
4060 (expr_update_button): New proc.
4061 (add_expr): Put bindings on FocusIn, FocusOut.
4062 Don't allow .file_popup to be torn off.
4065 Fri Jan 12 21:41:58 1996 Jeffrey A Law (law@cygnus.com)
4067 * symtab.c (find_pc_symtab): Don't lose if OBJF_REORDERED
4068 is set but there are no psymtabs.
4070 Fri Jan 12 15:56:12 1996 Steve Chamberlain <sac@slash.cygnus.com>
4072 * dsrec.c (load_srec): Remove unused variable.
4073 * monitor.c (monitor_expect): Don't expect a ^C to echo.
4074 * serial.c (serial_open): Add parallel interface.
4075 * sh3-rom.c (parallel, parallel_in_use): New.
4076 (sh3_load): If parallel_in_use, download though the
4078 (sh3_open): Open parallel port if specified.
4079 (sh3_close): New function.
4080 (_inititalize_sh3): Add sh3_close hook and documentation.
4081 * monitor.c (monitor_close): Export.
4082 * monitor.h (monitor_close): Add prototype.
4084 Fri Jan 12 13:11:42 1996 Stan Shebs <shebs@andros.cygnus.com>
4086 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
4087 * remote.c (remotetimeout): New GDB variable, use to set the
4088 remote timeout for reading.
4090 start-sanitize-gdbtk
4091 Fri Jan 12 09:36:17 1996 Tom Tromey <tromey@creche.cygnus.com>
4093 * gdbtk.tcl (gdbtk_tcl_query): Swap Yes and No buttons.
4094 (update_listing): Use lassign. Use "see" to scroll. Don't need
4095 screen_top, screen_bot, screen_height.
4096 (update_assembly): Use "see" to scroll.
4097 (textscrollproc): Removed.
4098 (create_file_win): Don't use textscrollproc.
4099 (asmscrollproc): Removed.
4100 (create_asm_window): Don't use asmscrollproc.
4101 (create_asm_win): Ditto.
4102 (screen_height, screen_top, screen_bot): Removed.
4103 (run_editor): New proc.
4104 (build_framework): Use it.
4105 (create_file_win, create_source_window): Don't use textscrollproc.
4106 (create_breakpoints_window): Set -xscrollcommand on canvas.
4107 (not_implemented_yet): Default button is 0.
4108 (delete_char): Don't use tk_textBackspace.
4109 (create_command_window): Allow Tk bindings to fire after deleting
4111 (create_command_window): Make Delete delete left, not right.
4114 Fri Jan 12 07:14:27 1996 Fred Fish <fnf@cygnus.com>
4116 * lynx-nat.c, irix4-nat.c, sparc-nat.c: Include gdbcore.h
4117 to get "struct core_fns" defined.
4118 * Makefile.in (lynx-nat.o, irix4-nat.o, sparc-nat.o):
4119 Are dependent upon gdbcore_h.
4121 Thu Jan 11 23:13:24 1996 Per Bothner <bothner@cygnus.com>
4123 * symfile.c (decrement_reading_symtab): New function.
4124 * symfile.c, symtab.h (currently_reading_symtab): New variable.
4125 * symfile.c (psymtab_to_symtab): Adjust currently_reading_symtab.
4126 * gdbtypes.c (check_typedef): Don't call lookup_symbol if
4127 currently_reading_symtab (since that could infinitely recurse).
4129 Thu Jan 11 17:21:25 1996 Per Bothner <bothner@kalessin.cygnus.com>
4131 * stabsread.c (read_struct_type): Trivial simplification.
4133 * stabsread.c (define-symbol): Use invisible references
4134 for TYPE_CODE_SET and TYPE_CODE_BITSTRING too.
4135 * valops.c (call_function_by_hand): Likewise.
4136 * eval.c (evaluate_subexp_standard): When known, use the formal
4137 parameter type as the expected type when evaluating arg expressions.
4138 * ch-lang.c (evaluate_subexp_chill): Likewise (for MULTI_SUBSCRIPT).
4140 start-sanitize-gdbtk
4141 Thu Jan 11 10:08:14 1996 Tom Tromey <tromey@creche.cygnus.com>
4143 * main.c (main): Disable window interface if --help or --version
4146 * gdbtk.tcl (FSBox): Don't use tk_listboxSingleSelect.
4148 Changes in sync with expect:
4149 * configure.in (ENABLE_GDBTK): Use CY_AC_PATH_TCL and
4151 * aclocal.m4: Replaced with version from expect.
4152 * configure: Regenerated.
4155 Wed Jan 10 16:08:49 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
4157 * configure.in, configure: Recognize rs6000-*-aix4*.
4158 * config/powerpc/xm-aix.h: Reduce to include "xm-aix4.h".
4159 * config/rs6000/aix4.mh (XM_FILE): Point to xm-aix4.h.
4160 * config/rs6000/xm-aix4.h: New file.
4161 * config/xm-aix4.h: New file.
4163 Wed Jan 10 11:25:37 1996 Fred Fish <fnf@cygnus.com>
4165 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
4166 * gdbserver/low-linux.c: New file.
4167 * remote.c (remote_read_bytes): Fix aborts on larger packets.
4169 * config/i386/linux.mh (GDBSERVER_DEPFILES, GDBSERVER_LIBS):
4171 * stabsread.c (define_symbol): If register value is too large,
4172 tell what it is and what max is.
4174 start-sanitize-gdbtk
4175 Wed Jan 10 09:07:22 1996 Tom Tromey <tromey@creche.cygnus.com>
4177 * gdbtk.tcl (gdbtk_tcl_fputs, gdbtk_tcl_fputs_error,
4178 gdbtk_tcl_flush): Use "see", not "yview".
4179 (gdbtk_tcl_query): Use questhead bitmap.
4180 various: Always wrap condition of 'if' in {...}.
4181 (add_breakpoint_frame): Set -value on radiobuttons.
4182 (lassign): New proc.
4183 (add_breakpoint_frame): Use lassign, not series of assignments.
4184 (decr): Made faster.
4185 (interactive_cmd): Use "see", not "yview".
4186 (not_implemented_yet): Use warning bitmap.
4187 (update_expr): Don't allow $expr to be evalled by Tcl.
4188 (create_expr_window): Don't use "focus".
4189 (delete_char, delete_line): Define globally.
4190 (delete_line, delete_char, create_command_window, update_autocmd,
4191 build_framework, create_asm_win, create_file_win): Use "see", not
4193 (create_copyright_window, center_window, bind_widget_after_class):
4195 (FSBox,create_command_window, create_autocmd_window): Binding
4197 (textscrollproc): Define globally.
4198 (build_framework): tk_menuBar no longer needed. Keys Prior, Next,
4199 Home, End, Up, and Down are all defined by Tk.
4200 (apply_filespec): Use error bitmap in dialog.
4201 (files_command): Don't use tk_listboxSingleSelect.
4202 (files_command): Don't use "uniq" to remove duplicates from a
4204 (update_assembly): Use lassign.
4205 (create_asm_win): Removed redundant bindings.
4206 (listing_window_button_1, file_popup_menu): Use tk_popup.
4207 (ButtonRelease-1 binding): Just remove tag from window; rest
4210 * gdbtk.c (gdbtk_query): Use Tcl_Merge to provide quoting.
4211 (call_wrapper): Use Tcl_Eval, not Tcl_VarEval.
4212 (gdbtk_call_command): Ditto.
4215 Tue Jan 9 09:33:53 1996 Jeffrey A Law (law@cygnus.com)
4217 * hpread.c (hpread_build_psymtabs): Finish Jan 4th
4218 enum namespace -> enum_namespace change.
4220 Tue Jan 9 04:44:47 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
4222 * ch-exp.c (parse_primval): In case ARRAY, add missing
4225 Mon Jan 8 13:29:34 1996 Stan Shebs <shebs@andros.cygnus.com>
4227 * remote-mips.c (mips_receive_header): Recognize \012 instead
4228 of \n, but write \n when program sends a \012.
4229 * ser-mac.c (mac_input_buffer): Increase size of buffer.
4231 Mon Jan 8 12:00:40 1996 Jeffrey A Law (law@cygnus.com)
4233 * infptrace.c (initialize_infptrace): Move function out of
4234 #ifdef conditional; put code within the function inside an
4237 * buildsym.c (end_symtab): Remove sort_pending and sort_linevec
4238 arguments. Sorting is now dependent on OBJF_REORDERED. All
4239 callers/references changed.
4240 * dbxread.c (read_ofile_symtab): Correctly determine value for
4241 last_source_start_addr for reordered executables.
4242 (process_one_symbol): Handle N_FUN with no name as an end of
4244 * partial-stab.h (case N_FN, N_TEXT): Don't assume CUR_SYMBOL_VALUE
4245 is the high text address for a psymtab.
4246 (case N_SO): Likewise.
4247 (case N_FUN): Handle N_FUN with no name as an end of function
4249 * minsyms.c (lookup_minimal_symbol_by_pc): Examine all symbols
4250 at the same address rather than a random subset of them.
4251 * coffread.c (coff_symfile_init): Set OBJF_REORDERED.
4252 * elfread.c (elf_symfile_init): Similarly.
4253 * somread.c (som_symfile_init): Similarly.
4254 * xcoffread.c (xcoff_symfile_init): Similarly.
4256 Fri Jan 5 17:46:01 1996 Stu Grossman (grossman@cygnus.com)
4258 * stack.c (print_stack_frame print_frame_info) symmisc.c
4259 (dump_symtab): Change RETURN_MASK_ERROR to RETURN_MASK_ALL so
4260 that catch_errors doesn't get blindsided by QUIT and lose the
4261 cleanup chain. This fixes a problem where ^C while in a
4262 user-defined command sometimes leaves instream NULL and causes a
4263 segfault in command_loop.
4265 Fri Jan 5 13:59:16 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
4267 * configure.in, configure: Add `-ldl -lw' for Solaris linking.
4269 Fri Jan 5 12:02:00 1996 Steve Chamberlain <sac@slash.cygnus.com>
4271 * config/sh/sh.mt, config/powerpc/*.mt, config/pa/hppapro.mt,
4272 config/m68k/monitor.mt, config/h8500/h8500.mt, config/h8300/h8300.mt:
4273 srec.o renamed to dsrec.o.
4275 Thu Jan 4 16:04:54 1996 Stu Grossman (grossman@cygnus.com)
4277 * breakpoint.c (remove_breakpoint): Change error to warning so
4278 that hardware watchpoint removal problems won't leave breakpoint
4279 traps in the target.
4280 start-sanitize-gdbtk
4281 * configure configure.in: Make --enable-gdbtk be the default.
4283 * remote-e7000.c (e7000_insert_breakpoint,
4284 e7000_remove_breakpoint): Use e7000 based breakpoints, not memory
4286 * (e7000_wait): Adjust PC back by two when we see a breakpoint to
4287 compensate for e7000 maladjustment.
4288 * sparcl-tdep.c (sparclite_check_watch_resources): Fix logic bug
4289 which prevented hardware watchpoints from working.
4291 Thu Jan 4 10:44:17 1996 Fred Fish <fnf@cygnus.com>
4293 * infptrace.c (udot_info): New function.
4294 (PT_*): Define each individually if that one is not defined.
4295 * rs6000-nat.c (kernel_u_size): New function
4296 Include <sys/user.h> for "struct user"
4297 * alpha-nat.c (kernel_u_size): New function.
4298 Include <sys/user.h> for "struct user"
4299 * sparc-nat.c (kernel_u_size): New function.
4300 Include <sys/user.h> for "struct user"
4301 * i386b-nat.c (kernel_u_size): New function.
4302 * i386v-nat.c (kernel_u_size): New function.
4303 * config/i386/nm-fbsd.h (KERNEL_U_SIZE): Define.
4304 (kernel_u_size): Declare.
4305 * config/i386/nm-linux.h (KERNEL_U_SIZE): Define.
4306 (kernel_u_size): Declare.
4307 * config/sparc/nm-sun4os4.h (KERNEL_U_SIZE): Define.
4308 (kernel_u_size): Declare.
4309 * config/alpha/nm-osf2.h (KERNEL_U_SIZE): Define.
4310 (kernel_u_size): Declare.
4311 * config/rs6000/nm-rs6000.h (KERNEL_U_SIZE): Define.
4312 (kernel_u_size): Declare.
4314 Thu Jan 4 11:00:01 1996 steve chamberlain <sac@slash.cygnus.com>
4316 * mdebugread.c (mylookup_symbol): enum namespace becomes
4317 enum_namespace type.
4318 * symfile.c (add_psymbol_to_list)
4319 (add_psymbol_addr_to_list): Ditto.
4320 * symtab.c (lookup_partial_symbol): Ditto.
4321 (lookup_symbol): Ditto.
4322 (lookup_block_symbol): Ditto.
4323 * win32-nat.c (handle_load_dll): Use incoming dll base.
4324 (child_wait): Catch DLL load errors.
4325 (create_child_inferior): Translated between paths correctly.
4327 Wed Jan 3 23:13:53 1996 Fred Fish <fnf@cygnus.com>
4329 * i386v4-nat.c (supply_gregset, fill_gregset): Subtract NUM_FREGS
4330 from NUM_REGS to get number of general registers that we care about.
4331 * config/i386/tm-i386.h (REGISTER_BYTES): Define in terms
4332 of number of general regs and number of floating point regs.
4334 Wed Jan 3 19:49:54 1996 steve chamberlain <sac@slash.cygnus.com>
4336 * config/i386/tm-win32.h (IN_SOLIB_CALL_TRAMPOLINE): New.
4337 (SKIP_TRAMPOLINE_CODE): New.
4338 * config/i386/xm-win32.h (CANT_FORK): Deleted.
4339 (SLASH*) Changed to use unix style slash.
4340 * symtab.h (namespace enum): becomes typedef to avoid namespace
4342 * infcmd.c (path_command): Use empty string if PATH name not set.
4343 * i386-tdep.c (skip_trampoline_code): New function.
4344 * srec.c: Renamed dsrec.c to avoid filename collision.
4345 * Makefile.in: Cope with renaming.
4347 Wed Jan 3 13:09:04 1996 Fred Fish <fnf@cygnus.com>
4349 * symmisc.c (print_objfile_statistics): Print memory use statistics
4350 for objfile psymbol, symbol, and type obstacks.
4352 Tue Jan 2 13:41:14 1996 Stan Shebs <shebs@andros.cygnus.com>
4354 * config/mips/nm-irix5.h: Restore.
4355 (TARGET_HAS_HARDWARE_WATCHPOINTS, etc): Define as for Irix 4;
4356 from Lee Iverson <leei@ai.sri.com>.
4357 * config/mips/irix5.mh (NAT_FILE): Use nm-irix5.h.
4358 * config/mips/irix[345].mh (MUNCH_DEFINE): Remove.
4360 For older changes see ChangeLog-95
4366 version-control: never