1 Fri Sep 6 13:14:13 1996 Geoffrey Noer <noer@cygnus.com>
3 * ser-tcp.c: don't include netinet/tcp.h if __CYGWIN32__
5 Thu Sep 5 17:05:13 1996 Geoffrey Noer <noer@cygnus.com>
7 * config/i386/cygwin32.mh:
8 * config/powerpc/cygwin32.mh: build ser-tcp.o for both hosts
10 Thu Sep 5 12:09:13 1996 Per Bothner <bothner@deneb.cygnus.com>
12 * value.h (COERCE_REF): Fix previous change.
13 (COERCE_ENUM): Add a check_typedef (this is the real fix).
15 Thu Sep 5 03:28:30 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
17 * eval.c (evaluate_subexp_standard): In case of OP_ARRAY: make a
18 better check of array boundaries.
20 Thu Sep 5 01:29:42 1996 Stu Grossman (grossman@critters.cygnus.com)
22 * configure: Update aclocal.m4 and re-run autoconf to get correct
24 * remote-wiggler.c (wiggler_error): Error codes are hex. Also,
25 fix default message generation.
27 Wed Sep 4 17:28:40 1996 Stu Grossman (grossman@critters.cygnus.com)
29 * Makefile.in: Add mswin to SUBDIRS. Add rules for
30 mswin/libwingdb.a and remote-wiggler.o.
31 * breakpoint.c (breakpoint_here_p): Clean up bp enabled test.
32 * (breakpoint_inserted_here_p): New func, just like
33 breakpoint_here_p, except it's honest. Honestly.
34 * breakpoint.h: Proto for above.
36 * configure configure.in: Add host *windows* to list of hosts
37 that don't support GDBtk.
39 * configure configure.in: Add mswin to configdirs if host is
41 * core-aout.c (fetch_core_registers register_addr) gdbcore.h:
42 Change all vars that can contain addresses to type CORE_ADDR.
43 * findvar.c (supply_register): Allow val to be NULL. This means
44 that regno is unsupported.
45 * (read_pc read_pc_pid write_pc write_pc_pid): Make non-pid forms
46 just call pid forms with inferior_pid so that there's only once
47 place to hack PC's and such.
48 * infrun.c (proceed): Don't skip breakpoints if user changed PC.
49 * remote-wiggler.c: New file. Support for BDM interface from
51 * serial.c: Enhance serial logging capability. Add hex and octal
52 output modes (set remotelogbase {hex|octal|ascii}. Also log
53 breaks, timeouts, errors, and eofs.
54 * serial.h: Redefine SERIAL_SEND_BREAK to go through a wrapper
55 function so that we can log breaks. Don't export serial_logfile
57 * top.c (execute_command): Don't test for serial_logfp here.
58 Just call serial_log_comand, and let serial.c sort it out.
59 * valops.c (value_of_variable): Don't attempt to establish frames
60 for static and global variables. This makes things work a bit
61 better if the stack or frame pointer is trashed.
62 * config/m68k/monitor.mt (TDEPFILES): Add remote-wiggler.o.
63 * config/m68k/tm-m68k.h: Define STACK_ALIGN. CPU32 can't hack
64 misaligned stacks during function calls.
66 Wed Sep 4 13:06:26 1996 Ian Lance Taylor <ian@cygnus.com>
68 * terminal.h: Don't use #elif.
70 Wed Sep 4 06:49:35 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
72 * ch-exp.c (parse_tuple_element): Allow (*): for array tuples
75 * eval.c (evaluate_subexp_standard): In case of OP_ARRAY:
76 check number of args against bounds of array to avoid
79 * value.h (COERCE_REF): Do a CHECK_TYPEDEF in case we get
82 Fri Aug 30 15:07:14 1996 James G. Smith <jsmith@cygnus.co.uk>
84 * remote-mips.c: Provide support for CAIRO target board.
85 (cairo_open, cairo_ops): Added.
86 (mips_monitor_type): MON_CAIRO Added.
87 (mips_enter_debug, mips_exit_debug, mips_initialize,
88 mips_fetch_registers, common_breakpoint, mips_load,
89 _initialize_remote_mips): Updated.
91 Thu Aug 29 17:00:18 1996 Michael Meissner <meissner@tiktok.cygnus.com>
93 * nlm/configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
94 * nlm/configure: Regenerate.
96 * gdbserver/configure.in (i[345]86-*-*): Recognize i686 for
99 Wed Aug 28 13:11:15 1996 Ian Lance Taylor <ian@cygnus.com>
101 * configure.in: If CY_AC_PATH_TCLCONFIG can't find TCL, don't run
102 CY_AC_LOAD_TCLCONFIG.
103 * configure: Rebuild.
105 Tue Aug 27 12:40:40 1996 Fred Fish <fnf@cygnus.com>
107 * infrun.c (wait_for_inferior): Initialize stop_func_end before calling
108 find_pc_partial_function.
110 Tue Aug 27 10:17:34 1996 Michael Meissner <meissner@tiktok.cygnus.com>
112 * configure: Regenerate again.
114 Tue Aug 27 04:25:08 1996 Geoffrey Noer <noer@cygnus.com>
116 * configure.in: work around host_alias configure bug.
117 AC_CANONICAL_HOST is called twice (first by AC_CHECK_TOOL
118 and second by AC_CANONICAL_SYSTEM). The second clobbers the
119 previous setting. Circumventing by moving the second check
121 * configure: regenerated
124 Mon Aug 26 18:36:54 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
126 * config/d10v/d10v.mt: New file.
127 * config/d10v/tm-d10v.h: New file.
128 * configure.in: New target D10V.
129 * d10v-tdep.c: New file.
132 Sun Aug 25 00:09:47 1996 Fred Fish <fnf@rtl.cygnus.com>
134 * rs6000-tdep.c: Fix typo in comment.
135 * valops.c (call_function_by_hand): Set using_gcc to 2
136 for code compiled without -g, per comment in code.
137 * config/a29k/tm-a29k.h (STACK_ALIGN): Add comment.
138 * config/sparc/tm-sparc.h (STACK_ALIGN): Add comment.
139 * config/sparc/tm-sp64.h (STACK_ALIGN): Add comment.
140 * config/pyr/tm-pyr.h (STACK_ALIGN): Add comment.
141 * config/m88k/tm-m88k.h (STACK_ALIGN): Add comment.
142 * config/pa/tm-hppa.h (PUSH_ARGUMENTS): Enclose args in ()'s.
143 (STACK_ALIGN): Add comment, move to be with other associated
144 macros, and document.
145 * config/mips/tm-mips.h (PUSH_ARGUMENTS): Enclose args in ()'s.
146 (STACK_ALIGN): Remove completely, handled by PUSH_ARGUMENTS.
147 * config/alpha/tm-alpha.h (PUSH_ARGUMENTS): Enclose args in ()'s.
148 * config/rs6000/tm-rs6000.h (STACK_ALIGN): Remove completely,
149 handled by PUSH_ARGUMENTS.
150 (PUSH_ARGUMENTS): Enclose args in ()'s.
152 Fri Aug 23 13:55:05 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
154 * infrun.c (wait_for_inferior): Try to reenable shared library
155 breakpoints even if auto_solib_load is not set.
157 Fri Aug 23 00:44:57 1996 Fred Fish <fnf@cygnus.com>
159 * gdbtk.c (gdbtk_init): Check for a DISPLAY env variable and
160 gracefully degrade to using command line interface if none is
163 Wed Aug 21 16:31:27 1996 Fred Fish <fnf@cygnus.com>
165 * valprint.c (print_longest): Test for CC_HAS_LONG_LONG as well as
166 PRINTF_HAS_LONG_LONG.
167 * expprint.c (dump_expression): Ditto.
168 * configure.in: Fix check for long long support in compiler to
169 use a function body, not a nested function.
170 * configure: Rebuild with autoconf.
172 Tue Aug 20 17:59:42 1996 Ian Lance Taylor <ian@cygnus.com>
174 * aclocal.m4: Include ../bfd/aclocal.m4.
175 * configure.in: Add stdlib.h to AC_CHECK_HEADERS. Call
176 BFD_NEED_DECLARATION on malloc, realloc, and free.
177 * acconfig.h: Add NEED_DECLARATION_MALLOC,
178 NEED_DECLARATION_REALLOC, and NEED_DECLARATION_FREE.
179 * configure, config.in: Rebuild.
180 * defs.h: Include <stddef.h> and <stdlib.h> based on HAVE_*_H
181 rather than __STDC__. Only declare malloc, realloc, and free if
182 NEED_DECLARATION_* is defined.
184 Tue Aug 20 15:37:03 1996 Fred Fish <fnf@cygnus.com>
186 * solib.c (_initialize_solib): Add missing '\' chars at ends of
187 strings that continue on next line.
188 (enable_break): Replace "return 0" with setting success to zero
189 and letting normal return handle the return.
191 Sat Aug 17 14:16:23 1996 Fred Fish <fnf@cygnus.com>
193 * mips-tdep.c (mips_push_arguments): Make sure sp and struct_addr
194 are properly aligned.
196 Fri Aug 16 17:54:26 1996 Stan Shebs <shebs@andros.cygnus.com>
198 * rs6000-tdep.c (rs6000_fix_call_dummy): Add full set of arguments.
199 * config/rs6000/tm-rs6000.h (FIX_CALL_DUMMY): Pass all arguments
200 to function, declare function correctly.
202 Fri Aug 16 17:24:35 1996 Dawn Perchik <dawn@critters.cygnus.com>
204 * symtab.h: changed namespace to _namespace for compiling under
207 Fri Aug 16 13:52:21 1996 Stan Shebs <shebs@andros.cygnus.com>
209 * mpw-make.sed: Update for various recent changes, add some
212 * mpw-config.in: Fix name of Magic Cap-specific file.
215 Fri Aug 16 15:47:36 1996 Michael Meissner <meissner@tiktok.cygnus.com>
217 * config/rs6000/tm-rs6000.h (FIX_CALL_DUMMY): Cast args to be an
218 integer for type correctness.
220 Fri Aug 16 15:15:37 1996 James G. Smith <jsmith@cygnus.co.uk>
222 * config/mips/{vr4300.mt, vr4300el.mt} (SIM): Add -lm when
223 simulator is included.
225 Thu Aug 15 13:44:13 1996 Fred Fish <fnf@cygnus.com>
227 * findvar.c (write_register_pid): Only needed when TARGET_WRITE_PC
229 (read_register_pid): Only needed when TARGET_READ_PC is not
231 * hppa-tdep.c (frame_saved_pc): Remove prototype.
232 * infptrace.c (udot_info): Prototype when CHILD_XFER_MEMORY is
234 * config/xm-aix4.h (aix_resizewindow): Convert old style decl
236 * xcoffsolib.c (command.h): Include for needed prototypes.
238 Wed Aug 14 17:54:19 1996 Stu Grossman (grossman@critters.cygnus.com)
240 * config/i386/cygwin32.mh: Set NAT_FILE to nm-empty.h to make
243 Wed Aug 14 02:03:42 1996 Fred Fish <fnf@cygnus.com>
245 From Blair MacIntyre <bm@cs.columbia.edu>:
246 * hppa-tdep.c (hppa_fix_call_dummy): Use MSYMBOL_TYPE rather
247 than SYMBOL_TYPE on msymbols.
248 * somsolib.c (som_solib_create_inferior_hook): Ditto.
250 * Makefile.in (init.c): Generate with prototypes.
252 * config/pa/tm-hppa.h (frame_saved_pc): Add prototype.
253 * config/rs6000/xm-rs6000.h (aix_resizewindow): Ditto.
254 * config/rs6000/tm-rs6000.h (frame_initial_stack_address): Ditto.
255 (pc_load_segment_name): Ditto.
257 (extract_return_value): Ditto.
258 (is_magic_function_pointer): Ditto.
259 (push_dummy_frame): Ditto.
260 (fix_call_dummy): Ditto.
261 (push_arguments): Ditto.
262 (skip_trampoline_code): Ditto.
263 (aix_process_linenos): Ditto.
265 * config/m68k/tm-cisco.h (get_longjmp_target): Add prototype.
266 * config/m68k/tm-es1800.h: Ditto.
267 * config/m68k/tm-vx68.h: Ditto.
268 * config/m68k/tm-sun3.h: Ditto.
269 * config/m68k/tm-m68kv4.h: Ditto.
271 Tue Aug 13 23:04:36 1996 Fred Fish <fnf@cygnus.com>
273 * config/mips/nm-mips.h (get_longjmp_target): Add prototype.
274 * config/mips/nm-irix3.h (get_longjmp_target): Add prototype.
275 * remote-mips.c (mips_read_processor_type): Remove prototype.
276 * mips-tdep.c (gdb_print_insn_mips): Add prototype and make static.
277 * irix5-nat.c (fetch_core_registers): Add prototype.
279 Mon Aug 12 21:23:44 1996 Fred Fish <fnf@cygnus.com>
281 * remote-pa.c (boot_board): Add dummy params to make type compatible
282 for passing to add_com.
283 * scm-exp.c (scm_lreadr): Ensure svalue is not used uninitialized.
284 * buildsym.c (compare_line_numbers): Change function to match
285 prototype and also what qsort expects.
287 Mon Aug 12 19:19:00 1996 Mark Alexander <marka@cygnus.com>
289 * remote.c: Make remote_write_size public.
290 * sh-tdep.c (_initialize_sh_tdep): Set remote_write_size to 300
291 to prevent packet errors with some versions of CMON.
293 Mon Aug 12 16:20:58 1996 Stu Grossman (grossman@critters.cygnus.com)
295 * defs.h: Define CONST_PTR as blank if compiling with Microsoft
296 C, else it's `const'.
297 * c-lang.c c-lang.h ch-lang.c f-lang.c language.c m2-lang.c
298 scm-lang.c: Microsoft C can't hack const pointers. Use CONST_PTR
300 * configure configure.in defs.h: Use AC_C_CONST to figure out if
301 the compiler supports const. Gets rid of some cruft in defs.h.
302 * dwarf2read.c: <string.h> -> "gdb_string.h"
303 * remote-sim.c: Add prototypes. Fix call to gdbsim_kill.
304 * sparcl-tdep.c (download): Add prototypes to write_routine and
307 * mswin/gdbwin.c: Don't include both varargs.h AND stdarg.h. Get
308 rid of varargs.h Include string.h.
309 * (gdbwin_update gdbwin_fputs regs_changed_f bpt_changed_f
310 update): Fix prototypes, fix calls.
311 * (update): Return value for catch_errors.
312 * (run_execute_command togdb_command_from_tty togdb_command):
313 Cleanup catching of errors from calls to execute_command. Also,
314 dup command string to avoid modifying const strings.
315 * (togdb_breakinfo_i_init togdb_breakinfo_i_next): Use 0 instead
316 of NULL when see if b->address isn't set.
317 * (bi_disable_bpt bi_enable_bpt bi_delete_all
318 bi_delete_breakpoint): Add arg to calls to update.
319 * (gui_command): Add prototype.
320 * (mswin_query): Fix prototype.
321 * (_initialize_gdbwin): Dup string to avoid modifying const.
322 * (info_path togdb_get_info_path): Remove const from decls cuz
323 this can't be const (it points at malloc'ed memory).
324 * (togdb_searchpath): Remove const from path. Dup string to
325 avoid modifying const strings.
327 * (gdbwin_list_symbols): Regexp param is const.
328 * Fix lots of refs to psymtabs to deref correct pointers.
329 * (togdb_set_breakpoint_sal): Call set_breakpoint_sal with sal,
331 * mswin/gdbwin.h (togdb_searchpath togdb_get_info_path
332 toget_set_info_path): Fix prototypes to match reality.
333 * mswin/gui.cpp: Define _beginthreadex and _endthreadex routines
334 with proper prototypes.
335 * mswin/iface.cpp (gdbwin_fputs): Define with correct number of args.
336 * mswin/ser-win32s.c: Fix defs of min and max.
337 * mswin/serdll32.c (OpenComm16): Make cbInQueue and cbOutQueue be
339 * (WriteComm16): Change lpBug from LPVOID to LPCSTR.
340 * mswin/serdll32.h: Fix prototypes for OpenComm16 and WriteComm16.
342 Sun Aug 11 20:54:16 1996 Stu Grossman (grossman@critters.cygnus.com)
344 * main.c (main): Make sure command loop is used with cygwin32.
345 * terminal.h: Allow cygwin32 to use termios.h.
348 Fri Aug 9 12:32:53 1996 Tom Tromey <tromey@creche.cygnus.com>
350 * Makefile.in (LIB_INSTALL_DIR): New macro.
351 (TCL): Include @TCL_LD_SEARCH_FLAGS@.
354 Fri Aug 9 12:42:49 1996 Jeffrey A Law (law@cygnus.com)
356 * somread.c (som_symtab_read): Handle secondary definition
357 symbols (aka weak symbols).
359 * config/tm-hppa.h (EXTRACT_RETURN_VALUE): Fix thinko in
362 Thu Aug 8 10:12:36 1996 Stu Grossman (grossman@critters.cygnus.com)
364 * symfile.c (symfile_bfd_open): Change ifdef from __WIN32__ to
367 * somread.c: Rearrange order of includes to fix warnings under
368 hpux-10.10. Also don't include sys/file.h.
370 Wed Aug 7 21:45:52 1996 Stu Grossman (grossman@critters.cygnus.com)
372 * dbxread.c: Don't include param.h or sys/file.h.
373 * (dbx_symfile_read): Determine symfile_relocatable from bfd
374 flags instead of file extension. Also clean up a little bit.
376 Wed Aug 7 17:18:37 1996 Stu Grossman (grossman@critters.cygnus.com)
378 * dwarf2read.c dwarfread.c exec.c infcmd.c infrun.c main.c
379 mdebugread.c os9kread.c source.c top.c utils.c: Don't
380 include param.h or sys/file.h (or unistd.h in some cases).
381 * defs.h exec.c inflow.c remote-array.c remote-e7000.c
382 sparcl-tdep.c terminal.h utils.c: Replace all occurances of
383 __WIN32__, WINGDB, WIN32, etc... with _WIN32.
384 * main.c: Remove #ifndef WINGDB around option processing. Fix
385 bug with passing argc==0 and argv==NULL to getopt.
386 * (main) Remove calls to access() before source_command. Let
387 soure_command handle access errors.
388 * maint.c (maintenance_dump_me): #ifdef out for _WIN32.
389 * symtab.c (operator_chars): Make this global for wingdb.
390 * top.c (disconnect): #ifdef out for _WIN32.
391 * (source_command): If got an error and from_tty, then call print
392 error, else just return quietly.
393 * utils.c (fatal_dump_core): Can't kill ourselves under windows.
395 * (pollquit notice_quit): #ifdef out stuff that doesn't exist
398 Wed Aug 7 09:59:19 1996 Jeffrey A Law (law@cygnus.com)
400 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Tweak for
401 structures > 4 bytes in size.
403 * valops.c (call_function_by_hand): Handle aligning stacks that
405 * config/pa/tm-hppa.h (USE_STRUCT_CONVENTION): Define.
406 (STACK_ALIGN): Define.
407 * hppa-tdep.c (hppa_alignof): Don't demand a minumim two byte
408 alignment on structs/unions.
410 Sun Aug 4 16:22:42 1996 Fred Fish <fnf@cygnus.com>
412 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Define to "int *",
413 which is the documented type under at least AIX 3 and AIX 4.
415 Sat Aug 3 04:02:46 1996 Fred Fish <fnf@cygnus.com>
417 * config/alpha/alpha-osf3.mh (XM_FILE): Change from xm-alpha.h to
419 (MMALLOC_CFLAGS): Define NO_MMCHECK to not install consistency
423 Thu Aug 1 20:35:01 1996 Tom Tromey <tromey@creche.cygnus.com>
425 * gdbtk.c (mainWindow): Deleted.
426 (cleanup_init): Don't destroy main window.
427 (gdbtk_init): Main window now created by Tk_Init.
429 * configure.in: Most X checks now handled automatically by Tk.
430 Use new macros to find Tcl/Tk.
431 * aclocal.m4: New version for new Tcl/Tk; from Don Libes.
432 * config.in, configure: Regenerated.
434 * Makefile.in (TCL, TCL_CFLAGS, TK, TK_CFLAGS, X11_CFLAGS,
435 X11_LDFLAGS, X11_LIBS): Changed for new Tcl and Tk.
438 Thu Aug 1 10:11:34 1996 Fred Fish <fnf@cygnus.com>
440 * config/mips/tm-mips.h (TM_MIPS_H): Enclose file contents in
441 this, define when contents are included.
442 (mips_read_processor_type): Add prototype.
443 * config/mips/xm-mips.h: Remove strdup decl, now in gdb_string.h
444 * mdebugread.c (ecoff_relocate_efi): Add prototype.
445 (fixup_sigtramp): Only needed when TM_MIPS_H is defined.
448 Thu Aug 1 16:12:05 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
450 * Makefile.in (gdbtk.tcl): put in $(datadir), not $(libdir).
453 Wed Jul 31 20:21:24 1996 Fred Fish <fnf@cygnus.com>
455 * rs6000-nat.c (add_vmap): Return 0 to caller rather than random value.
456 (vmap_ldinfo): Ensure got_exec_file is not used uninitialized.
457 (fetch_core_registers): Add prototype.
458 (vmap_symtab): Ditto.
459 (objfile_symbol_add): Ditto.
461 (vmap_ldinfo): Ditto.
464 Tue Jul 30 17:57:46 1996 Stan Shebs <shebs@andros.cygnus.com>
466 * stabsread.c (get_substring): Declare second arg as int.
468 * remote-es.c: Include gdb_string.h after defs.h.
470 Mon Jul 29 21:13:20 1996 Fred Fish <fnf@cygnus.com>
472 * rs6000-tdep.c (push_arguments): Remove unused variable "pc".
473 (branch_dest): Remove unused variable "offset".
474 (pop_dummy_frame): Add prototype and make static.
475 (push_arguments): Guard against using len uninitialized.
476 (push_arguments): Guard against using arg uninitialized.
477 (frame_saved_pc): Remove unused variable "frameless".
478 (free_loadinfo): Ifdef out unused function.
480 * xcoffread.c (compare_lte): Change prototype and function to
481 be correct type for passing to qsort.
482 (add_stab_to_list): Ifdef out unused function and prototype.
483 (compare_lte): Add prototype
484 (arrange_linetable): Ditto.
485 (record_include_begin): Ditto.
486 (record_include_end): Ditto.
487 (process_linenos): Ditto.
488 (xcoff_next_symbol_text): Ditto.
489 (scan_xcoff_symtab): Ditto.
490 (xcoff_initial_scan): Ditto.
492 * mips-tdep.c (mips_read_processor_type): Add parens around
493 bitwise-and operands in comparison; previous expression always
494 evaluated to 0 because of equality comparison of two constants.
496 * rs6000-tdep.c (skip_prologue): Add missing parens around
497 operands of logical-or so that first operand does not bind
498 to previous logical-and.
500 * configure.in: Expand "long long" test to include code that triggers
501 known problem on HPUX with native compiler.
502 (configure): Regenerated.
504 Mon Jul 29 18:12:27 1996 Jeffrey A Law (law@cygnus.com)
506 * somsolib.c (som_solib_create_inferior_hook): Don't
507 warn if __d_pid can't be found.
509 Sun Jul 28 10:46:39 1996 Fred Fish <fnf@cygnus.com>
511 * config/mips/tm-mips.h (struct frame_info): Forward decl.
512 (struct type): Ditto.
513 (struct value): Ditto.
515 * config/mips/tm-mips.h (sigtramp_address): Move extern decl
516 from mips-tdep.c to here.
517 (sigtramp_end): Ditto.
518 (fixup_sigtramp): Ditto.
520 * config/mips/tm-mips.h (init_extra_frame_info): Add prototype.
521 (mips_frame_chain): Ditto.
522 (mips_step_skips_delay): Ditto.
523 (mips_frame_saved_pc): Ditto.
524 (mips_find_saved_regs): Ditto.
525 (mips_frame_num_args): Ditto.
526 (mips_pop_frame): Ditto.
527 (mips_extract_return_value): Ditto.
528 (mips_store_return_value): Ditto.
529 (mips_push_dummy_frame): Ditto.
530 (mips_push_arguments): Ditto.
531 (mips_do_registers_info): Ditto.
532 (ecoff_relocate_efi): Ditto.
533 (ecoff_relocate_efi): Ditto.
534 * irix4-nat.c (fetch_core_registers): Add prototype.
535 * mips-tdep.c (read_next_frame_reg): Add prototype
536 (heuristic_proc_start): Ditto.
537 (heuristic_proc_desc): Ditto.
538 (mips_print_register): Ditto.
539 * config/mips/nm-irix5.h (procfs_set_watchpoint): Add prototype.
540 (procfs_stopped_by_watchpoint): Ditto.
541 * config/mips/nm-irix4.h (procfs_set_watchpoint): Add prototype.
542 (procfs_stopped_by_watchpoint): Ditto.
543 * config/alpha/tm-alpha.h (ecoff_relocate_efi): Add prototype.
544 (struct symbol): Add forward decl for prototype.
546 * breakpoint.c (internal_breakpoint_number): Only needed if
547 GET_LONGJMP_TARGET or SOLIB_ADD is defined.
549 * objfiles.c (ecoff_relocate_efi): Remove prototype.
551 Sat Jul 27 17:47:35 1996 Fred Fish <fnf@cygnus.com>
553 * configure.in: Add test for "long long" support.
554 * configure: Regenerate with autoconf.
555 * acconfig.h: Add CC_HAS_LONG_LONG
556 * config.in: Regenerate with autoheader.
557 * config/mips/tm-mips64.h (FORCE_LONG_LONG): Remove
558 * config/sparc/tm-sp64.h (CC_HAS_LONG_LONG): Remove.
559 * config/mips/tm-vr4300el.h (CC_HAS_LONG_LONG): Remove.
560 * config/mips/tm-vr4300.h (CC_HAS_LONG_LONG): Remove.
561 * config/mips/xm-irix5.h (CC_HAS_LONG_LONG): Remove
562 (PRINTF_HAS_LONG_LONG): Remove.
563 (FORCE_LONG_LONG): Remove.
564 * config/powerpc/xm-aix.h (UINT_MAX): Undef and use gdb's version.
565 * config/convex/xm-convex.h (CC_HAS_LONG_LONG): Remove
566 (PRINTF_HAS_LONG_LONG): Remove.
567 * config/xm-nbsd.h (CC_HAS_LONG_LONG): Remove.
568 (PRINTF_HAS_LONG_LONG): Remove.
569 * config/pa/tm-hppa.h (GET_FIELD): Put parens around
570 subtraction inside shift. Put parens around subtraction
571 in operand of bitwise and.
572 (struct frame_info): Forward declare
574 (frame_saved_regs): Ditto.
575 (struct value): Ditto.
576 (struct type): Ditto.
577 (struct inferior_status): Ditto.
578 (init_extra_frame_info): Add prototype.
579 (skip_prologue): Ditto.
580 (frameless_function_invocation): Ditto.
581 (frame_chain): Ditto.
582 (frame_chain_valid): Ditto.
583 (saved_pc_after_call): Ditto.
584 (hppa_fix_call_dummy): Ditto.
585 (hppa_push_arguments): Ditto.
586 (pa_do_registers_info): Ditto.
587 (in_solib_call_trampoline): Ditto.
588 (in_solib_return_trampoline): Ditto.
589 (push_dummy_frame): Ditto.
590 * convex-tdep.c (decout): Use print_longest rather than
592 * defs.h: Remove use of FORCE_LONG_LONG and __GNUC__ to set
594 (INT_MIN): Fix so it works correctly when assigned to a long long.
595 * valprint.c (longest_to_int): Rewrite to remove dependence
596 on INT_MIN and INT_MAX.
597 (print_longest): Rewrite the code that falls back to synthesized
598 hex output when LONGEST value is not representable as in a long and
599 printf doesn't support printing long longs.
600 * ch-valprint.c (chill_val_print): Cast 2nd arg of
601 chill_print_type_scalar to LONGEST.
602 chill_print_type_scalar): Make static and add prototype.
603 * hppa-tdep.c (get_field): Ifdef out unused function.
606 (extract_5_store): Ditto.
610 (extract_14): Convert to static and add prototype.
615 (extract_5r_store): Ditto.
616 (extract_5R_store): Ditto.
617 (extract_5_load): Ditto.
618 (find_proc_framesize): Ditto.
619 (find_dummy_frame_regs): Ditto.
620 (sign_extend): Ditto.
621 (find_unwind_entry): Add prototype.
622 (find_return_regnum): Ditto.
623 (unwind_command): Ditto.
624 (find_dummy_frame_regs): Add parens around subtraction in operand
626 (skip_prologue): Add parens around operands of logical-and inside
627 operand of logical-or.
628 (sign_extend): Add parens around operands of subtraction inside
630 (low_sign_extend): Ditto.
631 * top.c (filename_completer): Convert old style decl of
632 filename_completion_function into prototype.
633 * f-lang.c (patch_common_entries): Ifdef out unused function.
634 * stabsread.c (read_cfront_baseclasses): Remove unused local
635 variable "msg_noterm".
636 (resolve_cfront_continuation): Remove unused local variable "fip".
637 (read_type): Remove unused variable xtypenums.
638 (read_cfront_static_fields): Remove unused variable "i".
639 (read_cfront_static_fields): Remove unused variable "nfields".
640 (read_cfront_member_functions): Add missing comment terminator.
641 (read_cfront_static_fields): Return 1 rather than random value.
642 (read_cfront_baseclasses): Ditto.
643 (read_cfront_baseclasses): Ditto.
644 (read_cfront_baseclasses): Ditto.
645 * somsolib.c (som_solib_create_inferior_hook): Remove unused
647 (som_solib_create_inferior_hook): Remove unused variable
649 (language.h): Add for needed prototypes.
650 (som_solib_sharedlibrary_command): Add prototype.
651 * hpread.c: (hpread_read_array_type): Add prototype.
652 * somread.c (hpread_build_pysmtabs): Add prototype.
653 (hpread_symfile_finish): Ditto.
654 (hpread_symfile_init): Ditto.
655 * hppah-nat.c (fetch_register): Convert old style decl
657 (gdbcore.h): Include for needed prototypes.
658 (fetch_register): Remove unused variable "mess".
659 * remote-pa.c (get_offsets): Ifdef out unused function.
660 (remote_start_remote): Remove unused variable "timeout".
661 (boot_board): Add prototype.
662 (reaad_frame): Add prototype.
663 (getpkt): Remove unused variable "bp".
664 (remote_kill): Add prototype.
665 (remote_mourn): Add prototype.
666 (remote_insert_breakpoint): Add prototype.
667 (remote_remove_breakpoint): Add prototype.
668 * valops.c (value_push): Only use if PUSH_ARGUMENTS is not defined.
669 * infcmd.c (do_registers_info): Only need prototype if
670 DO_REGISTERS_INFO is not defined.
671 (breakpoint_auto_delete_contents): Only need if
672 CALL_DUMMY_BREAKPOINT_OFFSET is defined.
674 Sat Jul 27 08:49:49 1996 Fred Fish <fnf@cygnus.com>
676 * xcoffread.c (xcoff_end_psymtab): Add textlow_not_set parameter.
677 (END_PSYMTAB): Ditto.
678 (scan_xcoff_symtab): Call xcoff_end_psymtab with textlow_not_set.
680 Fri Jul 26 14:07:37 1996 Ian Lance Taylor <ian@cygnus.com>
682 * printcmd.c (_initialize_printcmd): Initialize
683 tm_print_insn_info.flavour.
685 * gdbtk.c (gdb_disassemble): Initialize di.flavour.
688 Thu Jul 25 19:41:31 1996 Fred Fish <fnf@cygnus.com>
690 * Makefile.in (scm-valprint.o): Depends upon gdbcore_h.
693 (i386ly-tdep.o): Ditto.
694 (i960-tdep.o): Ditto.
695 (m68k-tdep.o): Ditto.
696 (nindy-tdep.o): Ditto.
700 (m68k-tdep.o): Depends upon value_h and gdb_string.h
701 (m2-valprint.o): Depends upon m2-lang.h.
702 (sparc-tdep.o): Depends upon gdb_string.h
703 (valprint.o): Depends upon valprint.h
705 * remote-e7000.c (notice_quit): Remove prototype.
706 * top.c (initialize_targets): Remove prototype, now in target.h.
707 * stabsread.c (resolve_cfront_continuation): Remove prototype.
708 * dbxread.c (resolve_cfront_continuation): Remove prototype.
709 * symfile.h (set_demangling_style): Remove prototype.
710 * config/tm-sysv4.h (in_plt_section): Remove prototype, in objfiles.h.
711 * config/sparc/tm-sparc.h (single_step): Remove extern decl, now in
713 * config/arc/tm-arc.h (one_stepped, single_step): Remove extern decls,
715 * ser-unix.c (hardwire_restore): Remove obsolete prototype.
716 * sparc-tdep.c (single_step): Remove forward decl of isbranch.
717 * scm-lang.c (find_function_in_inferior): Remove prototype.
718 (value_allocate_space_in_inferior): Ditto.
719 * infrun.c (write_pc_pid): Remove prototype, now in inferior.h.
720 * defs.h (strchr): Remove declarations, they are declared in
726 * f-valprint.c (f77_print_array_1): Remove extra arg that was being
727 passed to f77_print_array_1.
728 * gdbtypes.c (add_name): Remove unused variables lenstrlen and lenstr.
729 * scm-exp.c (scm_istr2int): Remove unused variable "j".
730 (scm_parse): Remove unused variable "str".
731 * hp300ux-nat.c (store_inferior_register): Remove unused variable
733 (store_inferior_registers): Remove unnecessary decl "registers".
734 * m68k-tdep.c (m68k_pop_frame): Remove unused variable "fi".
735 * scm-lang.c (scm_get_field): Remove unused variable "val".
736 (scm_lookup_name): Remove unused variable "symval".
737 * objfiles.c (map_to_file): Remove unused local variable "tempfd".
738 * procfs.c (do_attach, do_detach): Remove unused variable "result".
739 (last_resume_pid): Remove unused static variable.
740 * alpha-tdep.c (alpha_linux_sigtramp_offset): Remove unused variable
742 * objfiles.c (map_to_address): Remove unused function.
743 * f-valprint.c (print_max): Remove extraneous extern decl,
745 (calc_f77_array_dims): Remove extraneous prototype, in f-lang.h.
746 * ch-exp.c (write_lower_upper_value): Remove prototype for
749 * gdbtypes.c (cfront_mangle_name): #ifdef out unused function.
750 * ch-exp.c (parse_mode_call): Ditto.
751 * f-valprint.c (there_is_a_visible_common_named): Ditto.
752 * f-lang.c (clear_function_list): Ditto.
753 (get_bf_for_fcn): Ditto.
754 (clear_bf_list): Ditto.
755 (add_common_block): Ditto.
756 (patch_all_commons_by_name): Ditto.
757 (find_first_common_named): Ditto.
758 (add_common_entry): Ditto.
759 (allocate_saved_function_node): Ditto.
760 (allocate_saved_bf_node): Ditto.
761 (allocate_common_entry_node): Ditto.
762 (allocate_saved_f77_common_node): Ditto.
764 * arm-tdep.c (gdbcore.h): Include for necessary prototypes.
765 * dcache.c (gdbcore.h): Ditto.
766 * i386ly-tdep.c (gdbcore.h): Ditto.
767 * i960-tdep.c (gdbcore.h): Ditto.
768 * m2-valprint.c (m2-lang.h): Ditto.
769 * m68k-tdep.c (gdbcore.h): Ditto.
771 (gdb_string.h): Ditto.
772 * nindy-tdep.c (gdbcore.h): Ditto.
773 * scm-lang.c (gdbcore.h): Ditto.
774 * scm-valprint.c (gdbcore.h): Ditto.
775 * w65-tdep.c (gdbcore.h): Ditto.
776 * z8k-tdep.c (gdbcore.h): Ditto.
777 * sparc-tdep.c (gdb_string.h): Include.
778 * valprint.c (valprint.h): Include.
780 * config/xm-lynx.h: Remove part of comment about INT_MIN
781 redefined warnings from defs.h, since INT_MIN define in
782 defs.h is now protected by #ifndef INT_MIN.
783 * config/i386/xm-i386bsd.h: Ditto.
784 * config/m68k/xm-hp300bsd.h: Ditto.
785 * config/m68k/xm-news.h: Ditto.
787 * config/pa/xm-hppah.h (INT_MIN): Remove bogus INT_MIN
788 definition as 0x80000000. The macro in defs.h is better.
789 * config/i386/xm-i386m3.h (INT_MIN): Ditto.
790 * config/i386/xm-i386mach.h (INT_MIN): Ditto.
791 * config/ns32k/xm-ns32km3.h (INT_MIN): Ditto.
792 * config/pa/xm-hppab.h: Ditto.
794 * core-aout.c (fetch_core_registers): Add prototype.
795 * hp300ux-nat.c (fetch_inferior_register): Ditto.
796 (store_inferior_register_1): Ditto.
797 (store_inferior_register): Ditto.
798 * config/m68k/tm-m68k.h (find_saved_regs): Ditto.
799 *scm-valprint.c (c_val_print): Ditto.
800 * procfs.c (add_fd): Ditto.
803 (sigcodename): Ditto.
804 (sigcodedesc): Ditto.
805 (procfs_kill_inferior): Ditto.
806 (procfs_xfer_memory): Ditto.
807 (procfs_store_registers): Ditto.
808 (create_procinfo): Ditto.
809 (procfs_init_inferior): Ditto.
810 (proc_set_exec_trap): Ditto.
811 (procfs_attach): Ditto.
812 (procfs_detach): Ditto.
813 (procfs_prepare_to_store): Ditto.
814 (procfs_files_info): Ditto.
815 (procfs_open): Ditto.
816 (procfs_wait): Ditto.
817 (procfs_fetch_registers): Ditto.
818 (procfs_mourn_inferior): Ditto.
819 (procfs_can_run): Ditto.
820 (procfs_thread_alive): Ditto.
821 (procfs_stop): Ditto.
822 * alpha-nat.c (fetch_core_registers): Ditto.
823 * config/alpha/tm-alpha.h (alpha_osf_skip_sigtramp_frame): Ditto.
824 * objfiles.c (ecoff_relocate_efi): Ditto.
825 * inflow.c (pass_signal): Ditto.
826 (handle_sigio): Ditto.
827 * annotate.c (breakpoint_changed): Ditto.
828 * callback.c (wrap): Ditto.
831 * utils.c (malloc_botch): Ditto.
832 (fputs_maybe_filtered): Ditto.
833 (vfprintf_maybe_filtered): Ditto.
834 * defs.h (notice_quit): Ditto.
835 * defs.h (xmalloc, xrealloc): Ditto.
836 * top.c (stop_sig): Ditto.
837 (init_signals): Ditto.
838 (user_defined_command): Ditto.
839 (source_cleanup_lines): Ditto.
840 (dont_repeat_command): Ditto.
841 (serial_log_command): Ditto.
843 * target.h (initialize_targets): Ditto.
844 * os9kread.c (read_minimal_symbols): Ditto.
845 * mdebugread.c (mdebug_psymtab_to_symtab): Ditto.
847 (push_parse_stack): Ditto.
848 (pop_parse_stack): Ditto.
849 (is_pending_symbol): Ditto.
850 (add_pending): Ditto.
851 * serial.c (serial_logchar): Ditto.
852 (serial_interface_lookup): Ditto.
853 * serial.h (serial_log_command): Ditto.
854 * f-valprint.c (info_common_command): Ditto.
855 * gdbtypes.h (print_type_scalar): Ditto.
856 * scm-valprint.c (scm_scmlist_print): Ditto.
858 * scm-lang.c (scm_printstr): Ditto.
860 (evaluate_subexp_scm): Ditto.
861 * scm-exp.c (scm_read_token): Ditto.
862 (scm_skip_ws): Ditto.
863 (scm_lreadparen): Ditto.
864 * m2-lang.c (emit_char): Ditto.
865 (m2_printchar): Ditto.
866 (m2_printstr): Ditto.
867 (m2_create_fundamental_type): Ditto.
868 * f-lang.c (emit_char): Ditto.
869 (f_printchar): Ditto.
871 (f_create_fundamental_type): Ditto.
872 * ch-lang.c (chill_printchar): Ditto.
873 (chill_printstr): Ditto.
874 (chill_create_fundamental_type): Ditto.
875 (value_chill_length): Ditto.
876 (value_chill_card): Ditto.
877 (value_chill_max_min): Ditto.
878 (evaluate_subexp_chill): Ditto.
879 * ch-exp.c (PEEK_TOKEN): Ditto.
880 (peek_token_): Ditto.
881 (forward_token_): Ditto.
882 (parse_case_label): Ditto.
883 (parse_opt_untyped_expr): Ditto.
884 (parse_unary_call): Ditto.
886 (parse_named_record_element): Ditto.
887 (parse_tuple_element): Ditto.
888 (parse_opt_element_list): Ditto.
889 (parse_tuple): Ditto.
890 (parse_primval): Ditto.
891 (parse_operand6): Ditto.
892 (parse_operand5): Ditto.
893 (parse_operand4): Ditto.
894 (parse_operand3): Ditto.
895 (parse_operand2): Ditto.
896 (parse_operand1): Ditto.
897 (parse_operand0): Ditto.
899 (parse_then_alternative): Ditto.
900 (parse_else_alternative): Ditto.
901 (parse_if_expression): Ditto.
902 (parse_untyped_expr): Ditto.
903 (growbuf_by_size): Ditto.
904 (match_simple_name_string): Ditto.
905 (decode_integer_value): Ditto.
906 (decode_integer_literal): Ditto.
907 (match_float_literal): Ditto.
908 (match_float_literal): Ditto.
909 (match_string_literal): Ditto.
910 (match_character_literal): Ditto.
911 (match_integer_literal): Ditto.
912 (match_bitstring_literal): Ditto.
913 (write_lower_upper_value): Ditto.
914 * ch-lang.h (type_lower_upper): Ditto.
915 * c-lang.c (emit_char): Ditto.
916 * dwarfread.c (free_utypes): Ditto.
917 * stabsread.h (resolve_cfront_continuation): Ditto.
918 * stabsread.c (get_substring): Ditto.
919 (read_one_struct_field): Ditto.
920 * stabsread.h (process_later): Ditto.
921 * demangle.c (set_demangling_command): Ditto.
922 * defs.h (set_demangling_style): Ditto.
923 * maint.c (maintenance_info_command): Ditto.
924 (print_section_table): Ditto.
925 (maintenance_info_sections): Ditto.
926 (maintenance_print_command): Ditto.
927 * symtab.h (maintenance_print_statistics): Ditto.
928 * objfiles.h (in_plt_section): Ditto.
929 * objfiles.c (add_to_objfile_sections): Ditto.
930 * bcache.c (hash): Ditto.
931 (lookup_cache): Ditto.
932 * exec.c (bfdsec_to_vmap): Ditto.
934 * f-exp.y (growbuf_by_size, match_string_literal): Ditto.
935 * language.c (unk_lang_printchar): Ditto.
936 (unk_lang_printstr): Ditto.
937 (unk_lang_create_fundamental_type): Ditto.
938 (unk_lang_print_type): Ditto.
939 (unk_lang_val_print): Ditto.
940 (unk_lang_value_print): Ditto.
941 * target.c (update_current_target): Ditto.
942 (debug_to_open): Ditto.
943 (debug_to_close): Ditto.
944 (debug_to_attach): Ditto.
945 (debug_to_detach): Ditto.
946 (debug_to_resume): Ditto.
947 (debug_to_wait): Ditto.
948 (debug_to_fetch_registers): Ditto.
949 (debug_to_store_registers): Ditto.
950 (debug_to_prepare_to_store): Ditto.
951 (debug_to_xfer_memory): Ditto.
952 (debug_to_files_info): Ditto.
953 (debug_to_insert_breakpoint): Ditto.
954 (debug_to_remove_breakpoint): Ditto.
955 (debug_to_terminal_init): Ditto.
956 (debug_to_terminal_inferior): Ditto.
957 (debug_to_terminal_ours_for_output): Ditto.
958 (debug_to_terminal_ours): Ditto.
959 (debug_to_terminal_info): Ditto.
960 (debug_to_kill): Ditto.
961 (debug_to_load): Ditto.
962 (debug_to_lookup_symbol): Ditto.
963 (debug_to_create_inferior): Ditto.
964 (debug_to_mourn_inferior): Ditto.
965 (debug_to_can_run): Ditto.
966 (debug_to_notice_signals): Ditto.
967 (debug_to_thread_alive): Ditto.
968 (debug_to_stop): Ditto.
970 * gdbtk.c (null_routine): Ditto.
971 (gdbtk_flush): Ditto.
972 (gdbtk_fputs): Ditto.
973 (gdbtk_query): Ditto.
974 (gdbtk_readline): Ditto.
975 (gdbtk_readline_end): Ditto.
976 (gdb_get_breakpoint_list): Ditto.
977 (gdb_get_breakpoint_info): Ditto.
978 (breakpoint_notify): Ditto.
979 (gdbtk_create_breakpoint): Ditto.
980 (gdbtk_delete_breakpoint): Ditto.
981 (gdbtk_modify_breakpoint): Ditto.
984 (gdb_sourcelines): Ditto.
985 (map_arg_registers): Ditto.
986 (get_register_name): Ditto.
987 (gdb_regnames): Ditto.
988 (get_register): Ditto.
989 (gdb_fetch_registers): Ditto.
990 (register_changed_p): Ditto.
991 (gdb_changed_register_list): Ditto.
993 (call_wrapper): Ditto.
994 (gdb_listfiles): Ditto.
996 (gdbtk_dis_asm_read_memory): Ditto.
997 (compare_lines): Ditto.
998 (gdb_disassemble): Ditto.
1000 (cleanup_init): Ditto.
1001 (gdbtk_interactive): Ditto.
1003 (gdbtk_wait): Ditto.
1004 (gdbtk_call_command): Ditto.
1005 (tk_command_loop): Ditto.
1006 (gdbtk_init): Ditto.
1008 * breakpoint.h (set_breakpoint_sal): Ditto.
1009 * remote-utils.c (usage): Ditto.
1010 * remote.c (set_thread): Ditto.
1011 (remote_thread_alive): Ditto.
1012 (get_offsets): Ditto.
1013 (read_frame): Ditto.
1014 (remote_insert_breakpoint): Ditto.
1015 (remote_remove_breakpoint): Ditto.
1016 * sparc-nat.c (fetch_core_registers): Ditto.
1017 * corelow.c (add_to_thread_list): Ditto.
1019 * inftarg.c (proc_wait): Ditto.
1020 * infptrace.c (udot_info): Ditto.
1021 (fetch_register): Ditto.
1022 * ser-unix.c (hardwire_noflush_set_tty_state): Ditto.
1023 (hardwire_print_tty_state): Ditto.
1024 (hardwire_flush_output): Ditto.
1025 (hardwire_flush_input): Ditto.
1026 (hardwire_send_break): Ditto.
1027 (hardwire_setstopbits): Ditto.
1028 * ser-tcp.c (tcp_return_0): Ditto.
1029 (tcp_noflush_set_tty_state): Ditto.
1030 (tcp_print_tty_state): Ditto.
1031 * solib.c (match_main): Ditto.
1032 * gdbtypes.c (print_bit_vector): Ditto.
1033 (print_arg_types): Ditto.
1034 (dump_fn_fieldlists): Ditto.
1035 (print_cplus_stuff): Ditto.
1036 * symfile.h (entry_point_address): Ditto.
1037 * symfile.c (decrement_reading_symtab): Ditto.
1038 * valops.c (value_arg_coerce): Ditto.
1039 * value.h (find_function_in_inferior): Ditto.
1040 (value_allocate_space_in_inferior): Ditto.
1041 * values.c (vb_match): Ditto.
1042 * thread.c (info_thread_command): Ditto.
1043 (restore_current_thread): Ditto.
1044 (thread_apply_all_command): Ditto.
1045 (thread_apply_command): Ditto.
1046 * inferior.h (write_pc_pid): Ditto.
1047 * infrun.c (delete_breakpoint_current_contents): Ditto.
1048 * breakpoint.c (print_it_normal): Ditto.
1049 (watchpoint_check): Ditto.
1050 (print_it_done): Ditto.
1051 (print_it_noop): Ditto.
1052 (maintenance_info_breakpoints): Ditto.
1053 (create_longjmp_breakpoint): Ditto.
1054 (hbreak_command): Ditto.
1055 (thbreak_command): Ditto.
1056 (watch_commnd_1): Ditto.
1057 (rwatch_command): Ditto.
1058 (awatch_command): Ditto.
1059 (do_enable_breakpoint): Ditto.
1060 * ch-valprint.c (chill_val_print_array_elements): Ditto.
1061 * eval.c (evaluate_subexp): Ditto.
1063 (evaluate_struct_tuple): Ditto.
1064 * eval.c (init_array_element): Ditto.
1066 * alpha-tdep.c (push_sigtramp_desc): Add prototype and make static.
1067 * breakpoint.c (hw_breakpoint_used_count): Ditto.
1068 (hw_watchpoint_used_count): Ditto.
1069 * findvar.c (write_register_gen): Ditto.
1070 (read_register_pid): Ditto.
1071 * symtab.c (cplusplus_hint): Ditto.
1072 * infcmd.c (breakpoint_auto_delete_contents): Ditto.
1073 * ch-valprint.c (chill_print_type_scalar): Ditto.
1074 * gdbtypes.c (add_name): Ditto.
1075 (add_mangled_type): Ditto.
1076 (cfront_mangle_name): Ditto.
1077 * sparc-tdep.c (isbranch): Ditto.
1078 * inftarg.c (child_stop): Ditto.
1079 * win32-nat.c (child_stop): Ditto.
1080 * mac-nat.c (child_stop): Ditto.
1081 * remote-utils.c (sr_com): Ditto.
1082 * dbxread.c (process_now): Ditto.
1083 * ch-exp.c (require): Ditto.
1084 (check_token): Ditto.
1086 (parse_mode_call): Ditto.
1087 (parse_mode_or_normal_call): Ditto.
1088 * scm-lang.c (scm_lookup_name): Ditto
1089 * f-lang.c (allocate_saved_bf_node): Ditto.
1090 (allocate_saved_function_node): Ditto.
1091 (allocate_saved_f77_common_node): Ditto.
1092 (allocate_common_entry_node): Ditto.
1093 (add_common_block): Ditto.
1094 (add_common_entry): Ditto.
1095 (find_first_common_named): Ditto.
1096 (patch_common_entries): Ditto.
1097 (patch_all_commons_by_name): Ditto.
1098 (clear_bf_list): Ditto.
1099 (get_bf_for_fcn): Ditto.
1100 (clear_function_list): Ditto.
1101 * scm-exp.c (scm_istr2int): Ditto.
1102 (scm_istring2number): Ditto.
1103 * scm-valprint.c (scm_inferior_print): Ditto.
1104 * f-typeprint.c (print_equivalent_f77_float_type): Ditto.
1105 * f-valprint.c (f77_get_dynamic_length_of_aggregate): Ditto.
1106 (f77_create_arrayprint_offset_tbl): Ditto.
1107 (f77_print_array_1): Ditto.
1108 (f77_print_array): Ditto.
1109 (list_all_visible_commons): Ditto.
1110 (there_is_a_visible_common_named): Ditto.
1111 * mdebugread.c (ecoff_relocate_efi): Ditto.
1112 * callback.c (os_close): Ditto.
1113 (os_get_errno): Ditto.
1118 (os_read_stdin): Ditto.
1120 (os_write_stdout): Ditto.
1125 (os_shutdown): Ditto.
1127 (os_printf_filtered): Ditto.
1129 * scm-lang.h (scm_parse): Change old style decl to prototype.
1130 * config/alpha/tm-alphalinux.h (alpha_linux_sigtramp_offset): Ditto.
1131 * top.c (init_proc): Ditto.
1132 (query_hook): Ditto.
1133 (error_hook): Ditto.
1134 * f-lang.c (c_value_print): Ditto.
1135 * ch-exp.c (parse_expression): Ditto.
1136 (parse_primval): Ditto.
1137 (parse_untyped_expr): Ditto.
1138 (parse_opt_untyped_expr): Ditto.
1140 * config/sparc/tm-sparc.h (sparc_init_extra_frame_info): Ditto.
1141 (sparc_frame_saved_pc): Ditto.
1142 (sparc_push_dummy_frame): Ditto.
1143 (sparc_pop_frame): Ditto.
1144 * defs.h (fclose): Ditto.
1146 (error_hook): Ditto.
1148 * arc-tdep.c (single_step): Change arg to type "enum target_signal".
1149 * rs6000-tdep.c (single_step): Ditto.
1150 * sparc-tdep.c (single_step): Ditto.
1152 * breakpoint.c (cleanup_executing_breakpoints): Change unused arg type
1153 to PTR which is what make_cleanup expects.
1154 * utils.c (null_cleanup): Change arg type to PTR.
1155 * defs.h (null_cleanup): Change prototype to match actual function.
1156 * config/sparc/tm-sparc.h (struct frame_info): Move forward decl.
1157 * ch-valprint.c (chill_val_print): Cast 2nd arg of
1158 chill_print_type_scalar to LONGEST.
1159 * infrun.c (wait_for_inferior): Have empty switch case for
1160 BPSTAT_WHAT_CHECK_SHLIBS when SOLIB_ADD is not defined.
1161 (stop_on_solib_events): Only needed if SOLIB_ADD is defined.
1162 * infcmd.c (attach_command): Only need auto_solib_add if SOLIB_ADD
1164 * symfile.c (generic_load): Scan long int using a long int spec,
1166 * infptrace.c (udot_info): Only need local variables if KERNEL_U_SIZE
1168 (fetch_register): Only need function if FETCH_INFERIOR_REGISTERS is
1170 * inflow.c (handle_sigio): Only need prototype when the actual
1171 function is compiled in.
1172 * valprint.c (longest_to_int): Expand error message to be
1173 separate messages for args larger than largest signed int
1174 and args smaller than smallest signed int.
1175 * valprint.c (print_longest): Fix problems with support for case
1176 where compiler supports type "long long" but the runtime doesn't
1177 support printing them with "%ll".
1178 * scm-valprint.c (scm_scmlist_print, scm_scmval_print): Change
1179 return types to void since we don't actually return anything
1180 meaningful and callees ignore the values anyway.
1181 * procfs.c (modify_inherit_on_fork_flag): Enclose pr_flags in PIOCSET
1183 (modify_run_on_last_close_flag): Ditto.
1184 (wait_fd): Enclose local variables "num_fds" and "i" LOSING_POLL
1186 * alpha-tdep.c (push_sigtramp_desc): Return proc_desc rather than
1188 * infrun.c (wait_for_inferior): Ensure random_signal is not used
1190 * valops.c (call_function_by_hand): Ensure struct_addr is not used
1192 * breakpoint.c (watch_command_1): Ensure prev_frame is not used
1194 * utils.c (vfprintf_maybe_filtered): Change second arg from "char *"
1196 start-sanitize-gdbtk
1197 * gdbtk.c (gdb_fetch_registers): Cast fourth arg to map_arg_registers
1198 to proper pointer type, from int.
1199 (gdbtk_query): Change first arg to "const char *" from "char *".
1201 * infptrace.c (udot_info): Add two dummy args so that the type is
1202 correct for passing to add_info.
1203 * f-lang.c (saved_fcn): Move decl to head of file so it can be used
1205 (saved_bf_symnum): Ditto.
1206 (SAVED_FUNCTION): Ditto.
1207 (SAVED_FUNCTION_PTR): Ditto.
1209 (SAVED_BF_PTR): Ditto.
1210 * ch-exp.c (parse_named_record_element): Build error message in
1211 temporary buffer before passing it to expect, rather than passing
1212 wrong number of args to expect.
1213 * demangle.c (set_demangling_style): Call set_demangling_command with
1214 correct number of arguments.
1215 * inferior.h (terminal_init_inferior_with_pgrp): Change arg type to
1216 int to match actual function.
1217 (os_isatty): Call fdmap with right number of arguments, was missing
1218 the host_callback* arg.
1219 * target.c (cleanup_target): Prototype all functions casts.
1220 * target.h (one_stepped, single_step): Declare here and convert
1221 single_step to prototype.
1222 * infrun.c (one_stepped, single_step): Don't declare externs
1223 here, they have moved to target.h.
1224 * eval.c (init_array_element): Declare previously undeclared
1225 last two args as LONGEST.
1226 * dcache.c (dcache_xfer_memory): Change xfunc decls to prototype form.
1227 start-sanitize-gdbtk
1228 * gdbtk.c (register_changed_p): Remove unused local variable "buf".
1231 Thu Jul 25 16:11:54 1996 Doug Evans <dje@canuck.cygnus.com>
1233 * dsrec.c (load_srec): Protect ANSI style function parms with PARAMS.
1235 Mon Jul 22 18:13:27 1996 Stu Grossman (grossman@critters.cygnus.com)
1237 * Makefile.in (os9kread.o): Remove dependency on partial-stab.h.
1238 * dbxread.c (read_dbx_symtab end_psymtab), partial-stab.h: Don't
1239 use partial_symtab->textlow==0 as a flag, as 0 is a legitimate
1240 text address. Use a seperate flag (textlow_not_set) instead.
1241 This makes stabs in ELF .o files work a lot better.
1242 * mdebugread.c xcoffread.c: Define textlow_not_set for
1244 * stabsread.h (end_psymtab): Add textlow_not_set arg to prototype.
1246 start-sanitize-gdbtk
1247 Sat Jul 20 17:46:40 1996 Fred Fish <fnf@cygnus.com>
1249 * gdbtk.tcl (files_command): Reorder the binding tags for
1250 the listbox widget to avoid referencing the listbox after
1251 the containing widget has been destroyed by the action of
1255 Sat Jul 20 10:41:06 1996 Fred Fish <fnf@cygnus.com>
1257 * dwarf2read.c (struct filenames): Change internal "struct file"
1258 to "struct fileinfo" to avoid conflict with "struct file" in
1259 <sys/file.h> on HPUX and Solaris.
1261 start-sanitize-gdbtk
1262 Sat Jul 20 10:09:28 1996 Fred Fish <fnf@cygnus.com>
1264 * gdbtk.tcl (delete_expr): Unset corresponding element of
1265 expr_update_list when destroying an expression.
1266 (create_expr_window): Initialize expr_num, delete_expr_num,
1267 and expr_update_list here when each new expression window
1268 is created, rather than once at startup.
1271 Fri Jul 19 14:05:57 1996 Stan Shebs <shebs@andros.cygnus.com>
1273 * dwarf2read.c: New file, DWARF 2 reader originally contributed by
1274 Brent Benson, with additions by Gary Funck and Jerry Kreuscher.
1275 * Makefile.in (COMMON_OBS): Add dwarf2read.o.
1276 (SFILES): Add dwarf2read.c.
1277 (dwarf2read.o): Add build rule.
1278 * symfile.h (dwarf2_has_info, dwarf2_build_psymtabs): Declare
1280 * elfread.c (elf_symfile_read): Call them.
1281 (elf_symtab_read) [HARRIS_TARGET]: Skip some special symbols.
1283 Thu Jul 18 01:22:01 1996 Geoffrey Noer <noer@cygnus.com>
1285 * symfile.c (symfile_bfd_open):
1286 * exec.c (exec_file_command): for __GO32__ and __WIN32__ systems,
1287 free the user from having to type the .exe extension.
1289 Wed Jul 17 06:54:50 1996 Mark Alexander <marka@cygnus.com>
1291 * mon960-rom.c: Shorten the mon960_inits string to a single
1292 carriage return; this prevents a hang on connecting immediately
1293 after powerup, when MON960 is attempting autobaud detection.
1295 Tue Jul 16 23:47:04 1996 Mark Alexander <marka@cygnus.com>
1297 * a29k-tdep.c (get_saved_register): Allow PC to be modified
1298 when innermost frame is selected, but not in outer frames.
1300 Tue Jul 16 23:37:25 1996 Stu Grossman (grossman@critters.cygnus.com)
1302 * command.c (do_setshow_command): Don't segfault when showing
1303 var_string and var_string_noescape vars that are NULL.
1305 Mon Jul 15 16:55:48 1996 Doug Evans <dje@canuck.cygnus.com>
1307 * win32-nat.c (handle_load_dll): dos_path_to_unix_path renamed to
1308 cygwin32_conv_to_posix_path.
1309 (child_create_inferior): unix_path_to_dos_path renamed to
1310 cygwin32_conv_to_win32_path. Rewrite code to translate PATH.
1312 Mon Jul 15 16:44:05 1996 Stu Grossman (grossman@critters.cygnus.com)
1314 * defs.h printcmd.c: Create global disassemble_info structure
1316 start-sanitize-gdbtk
1317 * gdbtk.c (gdb_disassemble): Setup di.mach from
1318 tm_print_insn_info.mach, and set endian from TARGET_BYTE_ORDER.
1320 * i386-tdep.c (set_assembly_language_command): set
1321 tm_print_insn_info.mach to the appropriate value for 386 or 8086
1323 * printcmd.c (print_insn): Move init of disassembler_info to
1324 _initialize_printcmd. Set endian for disassembler here.
1325 * sparc-tdep.c: Set tm_print_insn_info.mach as appropriate to
1326 select sparc/sparclite.
1327 * config/sparc/{tm-sparc.h tm-sparclite.h}: Get rid of
1328 TM_PRINT_INSN. Set TM_PRINT_INSN_MACH to
1329 bfd_mach_sparc/bfd_mach_sparc_sparclite.
1331 Fri Jul 12 19:04:32 1996 Fred Fish <fnf@cygnus.com>
1333 * hpread.c (hpread_lookup_type): Use xmmalloc/xmrealloc rather
1334 than xmalloc/xrealloc.
1336 Fri Jul 12 17:59:47 1996 Fred Fish <fnf@cygnus.com>
1338 * objfiles.c (map_to_file): Error return from mmalloc_findbase is
1339 a NULL pointer, not a -1.
1341 Fri Jul 12 10:16:24 1996 Stu Grossman (grossman@critters.cygnus.com)
1343 * i386-tdep.c (set_assembly_language_command): New routine to
1344 select between i386 and i8086 instruction sets for disassembly.
1345 New command `set assembly-language {i386 i8086}'.
1347 Thu Jul 11 21:13:21 1996 Mark Alexander <marka@cygnus.com>
1349 * monitor.c (monitor_write_memory, monitor_read_memory_single):
1350 Disable use of "long long" memory read/write commands; can't
1351 use them because we hold the values to read/write in an int
1352 variable, and because strtoul fails on values that exceed the
1353 size of a long. This fixes breakpoint problems on MON960.
1355 Thu Jul 11 11:39:31 1996 Fred Fish <fnf@cygnus.com>
1357 * config/m68k/xm-hp300hpux.h (HAVE_MMAP): Remove definition.
1358 * config/pa/xm-hppah.h (HAVE_MMAP): Ditto.
1360 Wed Jul 10 16:54:41 1996 Fred Fish <fnf@cygnus.com>
1362 * Makefile.in (MMALLOC_CFLAGS): Eliminate intermediate MMALLOC_DISABLE
1363 and MMALLOC_CHECK macros, and add comment indicating how host dependent
1364 makefile fragment should modify MMALLOC_CFLAGS to not use mmalloc, or
1365 to use it but to not do heap corruption checking.
1366 * gdbserver/Makefile.in: Ditto.
1367 * utils.c (init_malloc): Replace warning() use with direct call of
1368 fprintf_unfiltered, since current_target has not yet been set and thus
1369 we cannot use warning(). If we try to use mmcheck and it fails,
1370 suggest that this configuration needs NO_MMCHECK or MMCHECK_FORCE
1371 defined. Other small mmalloc related cleanups.
1372 * config/sparc/sun4os4.mh (MMALLOC_CFLAGS): Define MMCHECK_FORCE to 1.
1373 * config/alpha/alpha-osf2.mh (MMALLOC_CFLAGS): Set to -DNO_MMCHECK.
1375 * config/sparc/xm-sun4os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1376 * config/i386/xm-i386v4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1377 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1378 * config/m68k/xm-hp300hpux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1379 * config/m68k/xm-m68kv4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT);
1380 * config/m68k/xm-sun3os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1381 * config/pa/xm-hppah.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1382 * config/sparc/xm-sun4sol2.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1383 Remove obsolete defines.
1385 * config/alpha/alpha-linux.mh (MMALLOC_DISABLE):
1386 * config/alpha/alpha-osf1.mh (MMALLOC_DISABLE):
1387 * config/rs6000/rs6000.mh (MMALLOC_DISABLE):
1388 * config/rs6000/aix4.mh (MMALLOC_DISABLE):
1389 * config/powerpc/aix4.mh (MMALLOC_DISABLE):
1390 * config/powerpc/aix.mh (MMALLOC_DISABLE):
1391 * config/ns32k/ns32km3.mh (MMALLOC_DISABLE):
1392 * config/mips/mipsm3.mh (MMALLOC_DISABLE):
1393 * config/mips/decstation.mh (MMALLOC_DISABLE):
1394 * config/m88k/cxux.mh (MMALLOC_DISABLE):
1395 * config/i386/i386mk.mh (MMALLOC_DISABLE):
1396 * config/i386/i386m3.mh (MMALLOC_DISABLE):
1397 * config/i386/i386gnu.mh (MMALLOC_DISABLE):
1398 Use MMALLOC_CFLAGS instead.
1400 Tue Jul 9 22:41:12 1996 Jeffrey A Law (law@cygnus.com)
1402 * h8300-tdep.c: Remove some outdated comments.
1403 (h8300_skip_prologue): Rework to be more correct for the H8/300H.
1404 Handle stm.l insns for the H8/S.
1405 (examine_prologue): Likewise.
1407 Tue Jul 9 16:48:55 1996 Raymond Jou <rjou@mexican.cygnus.com>
1409 * ser-mac.c (mac_close): Change a typo SetSetBuf to SerSetBuf.
1411 Mon Jul 08 08:50:39 1996 Mark Alexander <marka@cygnus.com>
1413 * mon960-rom.c (mon960_open): Add floating point detection to
1414 prevent hang on non-FPU processors (PR 9775).
1415 (mon960_cmds): Swap setmem.cmdw and setmem.cmdl to fix problem
1416 setting breakpoints and improve loading speed.
1418 Sun Jul 7 14:57:34 1996 Fred Fish <fnf@cygnus.com>
1420 * coffread.c (record_minimal_symbol): Don't presave name string
1421 on symbol_obstack before passing to prim_record_minimal_symbol.
1422 It now handles saving the string itself.
1423 * dbxread.c (read_dbx_dynamic_symtab): Ditto.
1424 * mipsread.c (read_alphacoff_dynamic_symtab): Ditto.
1425 * os9kread.c (record_minimal_symbol): Ditto.
1426 * solib.c (solib_add_common_symbols): Ditto.
1428 * coffread.c (coff_symtab_read): Don't presave name string on
1429 symbol_obstack before passing to prim_record_minimal_symbol_and_info.
1430 It now handles saving the string itself.
1431 * dbxread.c (record_minimal_symbol): Ditto.
1432 * elfread.c (record_minimal_symbol_and_info): Ditto.
1434 * dstread.c (record_minimal_symbol): Remove static function that just
1435 called prim_record_minimal_symbol with the same args (after change to
1436 prim_record_minimal_symbol to do it's own name string saves).
1437 * nlmread.c (record_minimal_symbol): Ditto.
1438 * somread.c (record_minimal_symbol): Ditto.
1440 * hpread.c (hpread_read_enum_type): Save symbol name on symbol obstack.
1441 (hpread_read_function_type): Ditto.
1442 (hpread_process_one_debug_symbol): Ditto.
1443 * mdebugread.c (parse_symbol): Ditto.
1444 (new_symbol): Ditto.
1445 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
1447 * coffread.c (process_coff_symbol): Use obsavestring to save
1448 SYMBOL_NAME, rather than obstack_copy0.
1449 * dstread.c (create_new_symbol): Ditto
1450 * symfile.c (obconcat): Ditto.
1451 * stabsread.c (patch_block_stabs): Ditto.
1452 * xcoffread.c (SYMNAME_ALLOC): Ditto.
1454 * symfile.c (obsavestring): Update comments
1455 * solib.c (solib_add_common_symbols): Remove local var origname.
1457 Wed Jul 3 15:56:08 1996 Stu Grossman (grossman@critters.cygnus.com)
1459 * configure: Re-build with autoconf-2.10.
1461 * sparcl-tdep.c (_initialize_sparc_tdep) config/sparc/tm-sparc.h,
1462 config/sparc/tm-sparclite.h: Initialize tm_print_insn from
1463 TM_PRINT_INSN, which comes from the tm file.
1465 Tue Jul 02 21:41:20 1996 Mark Alexander <marka@cygnus.com>
1467 * coffread.c, dbxread.c, elfread.c, mipsread.c, nlmread.c,
1468 os9kread.c: Replace identical sym_offsets functions with
1469 default_symfile_offsets.
1470 * somread.c (som_symfile_offsets): Use new SIZEOF_SECTION_OFFSETS
1471 macro to allocate section_offsets.
1472 * symfile.c (default_symfile_offsets): New function.
1473 * symfile.h: Declare default_symfile_offsets.
1474 * symtab.h: Define SIZEOF_SECTION_OFFSETS macro to
1475 simplify allocation of section_offsets.
1477 Tue Jun 11 12:02:55 1996 Stu Grossman (grossman@critters.cygnus.com)
1479 * Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
1480 * configure configure.in: Only make sol-thread.o for native.
1481 Also, switch to dlopened libthread_db.so.1.
1482 * sol-thread.c: Switch to using dlopen to get the thread_db
1485 Thu Jun 13 16:53:25 1996 Stu Grossman (grossman@critters.cygnus.com)
1487 * configure, configure.in: Change test for libthread_db to only
1488 work for configs where build/host/target are the same.
1490 Tue Jul 2 15:04:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1492 * config/powerpc/{linux.mh,xm-linux.h}: New files, for Linux on
1495 * configure.in (powerpc-*-linux): Add Linux, System V, and ELF
1497 * configure: Regenerate.
1499 Mon Jul 1 13:00:43 1996 Stan Shebs <shebs@andros.cygnus.com>
1501 From Raymond Jou <rjou@mexican.cygnus.com>:
1502 * mpw-make.sed: Add lines to whack out autoconf hook
1505 Mon Jul 01 11:07:15 1996 Mark Alexander <marka@cygnus.com>
1507 * remote-e7000.c (e7000_stop): New function.
1509 Fri Jun 28 06:34:19 1996 Dawn Perchik <dawn@cygnus.com>
1511 * configure, configure.in: Add target sparclet.
1512 * monitor.h, monitor.c: Added monitor flags MO_NO_ECHO_ON_SETMEM
1513 (don't expect echo on setmem command), MO_RUN_FIRST_TIME (if
1514 command to start process running on target is different from one
1515 to continue execution), MO_HEX_PREFIX (if addresses from monitor
1516 have a "0x" prefix).
1517 * monitor.c, parse.c, sparc-tdep.c: Don't require strings in the
1518 registers array. This is to allow NULLs to be place holders in
1519 the tm-*.h file so that only minor changes are needed when a new
1520 processor is introduced (eg, one without floating point).
1521 * sparc-tdep.c: Conditionally remove dependancies on floating
1523 * sparclet-rom.c, config/sparc/sparclet.mt,
1524 config/sparc/tm-sparclet.h: New files for target sparclet.
1525 * symfile.c (load_command): Add option for 2nd parameter; a load
1526 offset added to the vma of each section.
1528 Fri Jun 28 05:39:19 1996 Dawn Perchik <dawn@cygnus.com>
1530 * main.c (main): Add option "l" for setting remote_timeout.
1532 Fri Jun 28 05:25:18 1996 Dawn Perchik <dawn@cygnus.com>
1534 * remote-e7000.c, remote.c, target.h, top.c: Add set option
1535 "remote_timeout" for setting remote_timeout. Add set option
1536 "use_hard_breakpoints" for setting hardware .vs. memory
1539 Fri Jun 28 04:32:18 1996 Dawn Perchik <dawn@cygnus.com>
1541 * remote-e7000.c (e7000_parse_device): New function.
1542 Add option "tcp_remote" to target command if using
1543 tcp to connect to a remote host which is then connected
1544 via serial port to the e7000 (for exampole, a port master).
1545 (e7000_open): Change to call e7000_parse_device.
1547 Fri Jun 28 03:47:17 1996 Dawn Perchik <dawn@cygnus.com>
1549 * monitor.c (monitor_debug): Fix remotedebug buffering.
1551 Thu Jun 27 18:24:17 1996 Stan Shebs <shebs@andros.cygnus.com>
1553 * config/i386/cygwin32.mh, config/powerpc/cygwin32.mh
1554 (NATDEPFILES): Add a space.
1556 Wed Jun 26 06:05:39 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
1558 * gdbtypes.c (create_array_type): If TYPE_LENGTH (result_type)
1559 is zero, set TYPE_FLAG_TARGET_STUB to force reevaluation of the type.
1561 * ch-exp.c (calculate_array_length): Function removed.
1563 Tue Jun 25 17:41:06 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1565 * remote-e7000.c (e7000_read_inferior_memory_large): New function.
1566 (e7000_xfer_inferior_memory): Call it.
1568 Tue Jun 25 23:14:07 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1570 * gdb/gdbserver/Makefile.in (docdir): Removed.
1572 Tue Jun 25 22:05:38 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1574 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir):
1575 Use autoconf set values.
1577 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
1578 * nlm/Makefile.in (bindir, libdir, datadir, mandir, infodir,
1579 includedir): Use autoconf set values.
1581 * nlm/configure.in (AC_PREREQ): autoconf 2.5 or higher.
1582 * nlm/configure: Rebuilt.
1583 * gdb/gdbserver/Makefile.in (datadir): Set to $(prefix)/share.
1585 Mon Jun 24 09:56:14 1996 Angela Marie Thomas (angela@cygnus.com)
1587 * stabsread.c (read_cfront_member_functions): add type
1589 Sun Jun 23 23:40:48 1996 Doug Evans <dje@canuck.cygnus.com>
1591 * win32-nat.c: #include <unistd.h>.
1592 (unix_paths_to_dos_paths, dos_paths_to_unix_paths): Delete.
1593 (child_create_inferior): Convert only env var PATH to win32 style.
1594 (set_pathstyle_dos): Delete.
1595 (_initialize_inftarg): Delete dos-path-style command.
1597 start-sanitize-gdbtk
1598 Fri Jun 21 11:04:47 1996 Fred Fish <fnf@cygnus.com>
1600 * gdbtk.tcl (create_register_windows): Include missing '$'s.
1601 Add global declarations for various reg_format_* variables.
1602 * gdbtk.tcl (populate_register_window): Make initial window one
1603 line taller to account for new column header line.
1605 Fri Jun 21 09:46:47 1996 Fred Fish <fnf@cygnus.com>
1607 * gdbtk.c (get_register): Support for printing raw formats.
1608 * gdbtk.tcl: Add hint for using debug_interface.
1609 (center_window, add_breakpoint_frame, delete_breakpoint_frame):
1610 Enclose arg in braces for consistency.
1611 (create_registers_window, populate_reg_window, update_registers):
1612 Major rewrite to support displaying multiple formats in the register
1614 (init_reg_info): New function.
1615 (recompute_reg_display_list): Reset reg_display_list, start
1616 register display lines at line 2.
1619 Thu Jun 20 13:42:23 1996 Doug Evans <dje@canuck.cygnus.com>
1621 * configure.in: Revise sol-thread.o test.
1622 * configure: Regenerated.
1624 * source.c (find_source_lines): Reassign size to result of read.
1626 start-sanitize-gdbtk
1627 Thu Jun 20 08:18:59 1996 Fred Fish <fnf@cygnus.com>
1629 * gdbtk.tcl (gdbtk_tcl_readline_begin): Handle backspace to
1630 avoid backing up over prompt. At every input, make sure insert
1631 point is at least after command start, handle control-u to delete
1633 (tclsh): Handle backspace to avoid backing up over prompt. Handle
1634 control-u to delete current input line.
1636 Wed Jun 19 17:23:38 1996 Geoffrey Noer <noer@cygnus.com>
1638 * configure.in: disable gdbtk for *cygwin32* hosted compiles
1639 * configure: regenerated with autoconf 2.8
1642 Tue Jun 18 16:25:54 1996 Jeffrey A. Law <law@rtl.cygnus.com>
1644 * h8300-dep.c (gdb_print_insn_h8300): Handle the H8/S.
1645 (h8300_command): Likewise.
1646 (set_machine): Likewise.
1647 (set_machine_hook): Likewise.
1648 (_initialize_h8300m): Likewise.
1650 * config/h8300/tm-h8300.h (h8300smode): Declare.
1652 Sun Jun 16 15:21:51 1996 Jeffrey A. Law <law@rtl.cygnus.com>
1654 * somsolib.c (som_solib_create_inferior_hook): Handle tracking
1655 of shl_load calls for hpux10.
1657 Thu Jun 13 11:16:10 1996 Tom Tromey <tromey@thepub.cygnus.com>
1659 * config.in: Regenerated.
1660 * acconfig.h (HAVE_THREAD_DB_LIB): Added entry.
1662 * configure: Regenerated.
1663 * aclocal.m4 (CY_AC_PATH_TCLH, CY_AC_PATH_TKH): Use odd names to
1664 avoid name clashes with SunOS headers.
1666 Tue Jun 11 19:52:50 1996 Fred Fish <fnf@cygnus.com>
1668 From Michael Snyder <Michael_Snyder@next.com>:
1669 * bcache.c (print_bcache_statistics): Avoid divide-by-zero
1670 exception if one or more objfile has no symbols, such as when
1671 a dynamic library has been stripped.
1673 Tue Jun 11 12:02:55 1996 Stu Grossman (grossman@critters.cygnus.com)
1675 * Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
1676 * configure configure.in: Only make sol-thread.o for native.
1677 Also, switch to dlopened libthread_db.so.1.
1678 * sol-thread.c: Switch to using dlopen to get the thread_db
1681 Mon Jun 10 14:17:19 1996 Fred Fish <fnf@cygnus.com>
1683 * config/sparc/{xm-sun4sol2.h,xm-sun4os4.h} (MMAP_BASE_ADDRESS):
1684 Change from 0xE0000000 to 0xC0000000.
1686 Thu Jun 6 17:10:32 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1688 * config/powerpc/xm-solaris.h: Initial version of support for
1691 Wed Jun 5 01:52:57 1996 James G. Smith <jsmith@cygnus.co.uk>
1693 * configure.in (configdirs): Force 4100 builds to use 4300 GDB
1695 * configure: Rebuild.
1697 * config/mips/vr4300el.mt (SIM_OBS): Include simulator in
1698 little-endian builds.
1700 Mon Jun 3 11:48:29 1996 Jeffrey A Law (law@cygnus.com)
1702 * inftarg.c (child_thread_alive): Protect declaration with
1703 #ifndef CHILD_THREAD_ALIVE.
1705 * source.c (find_source_lines): Check the time on the symtab's bfd if
1706 it exists, else check the time on the exec_bfd.
1708 Thu May 30 09:43:17 1996 Mark Alexander <marka@cygnus.com>
1710 * dsrec.c (make_srec): Fix calculation of address size
1711 to allow addresses less than 0x100.
1713 Thu May 30 04:24:09 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
1715 * ch-exp.c (ch_lex): In case of LOC_TYPEDEF call calculate_array_length.
1717 Tue May 28 16:15:47 1996 Geoffrey Noer <noer@cygnus.com>
1719 * remote-mips.c: cannot use EINVAL for breakpoint test since
1720 its value varies for different hosts (e.g. go32's is 19, while
1721 sunos is 22). Changed to hardcoded 22 since that is what the
1724 Tue May 28 11:14:58 1996 Tom Tromey <tromey@creche.cygnus.com>
1726 * configure: Regenerated.
1727 * aclocal.m4 (CY_AC_PATH_TCLH): Don't use AC_TRY_RUN.
1728 (CY_AC_PATH_TKH): Don't use AC_TRY_RUN.
1730 Sun May 26 16:56:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
1732 * solib.c (solib_absolute_prefix, solib_search_path): New variables.
1733 (_initialize_solib): Add set/show commands for those variables.
1734 (solib_map_sections): Implement searching using them.
1736 Sun May 26 14:14:49 1996 Fred Fish <fnf@cygnus.com>
1738 Changes from: David Mosberger-Tang <davidm@azstarnet.com>
1740 * NEWS: Add Alpha Linux as a new native configuration.
1742 * mdebugread.c (parse_symbol): When we find a malloc() symbol with
1743 return type VOID, assume no debugging info is available for that
1744 object file and patch the return value into VOID *. Otherwise,
1745 operations requiring an implicit call to malloc() will fail.
1747 * infrun.c (wait_for_inferior): The criterion to detect entering a
1748 sigtramp handler is now: (a) the current pc is inside a sigtramp
1749 handler, (b) the previous pc is not in a sigtramp handler, and (c)
1750 the current stack pointer is "inner" than the old one. Condition
1751 (c) is new to avoid mistaking a return from a signal handler into
1752 sigtramp as a new sigtramp invocation.
1754 * dcache.c (struct dcache_block): Declare addr as CORE_ADDR. An
1755 int may not be big enough to hold an address.
1756 (dcache_hit): Ditto.
1757 (dcache_peek_byte): Fix indentation.
1759 * configure.in (alpha-*-linux*): Add target.
1760 * configure: Rebuild
1762 * config/alpha/tm-alpha.h (PROC_DESC_IS_DYN_SIGTRAMP): New macro.
1763 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1764 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
1765 (SIGCONTEXT_ADDR): Ditto.
1766 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
1768 * config/alpha/alpha-linux.mh: New file.
1769 * config/alpha/alpha-linux.mt: Ditto.
1770 * config/alpha/nm-linux.h: Ditto.
1771 * config/alpha/tm-alphalinux.h: Ditto.
1772 * config/alpha/xm-alphalinux.h: Ditto.
1773 * config/alpha/xm-alphaosf.h: Renamed from xm-alpha.h.
1774 * config/alpha/alpha-osf1.mh (XM_FILE): Change from xm-alpha.h to
1776 * config/alpha/alpha-osf2.mh: Ditto.
1778 * blockframe.c (find_pc_partial_function): Pass PC to
1779 SIGTRAMP_START and SIGTRAMP_END macros for the benefit of systems
1780 that detect sigtramp code via designated code sequences (as is the
1781 case for Linux/Alpha, for example).
1783 * config/i386/tm-i386bsd.h: Change SIGTRAMP_START and SIGTRAMP_END
1784 to ignore new PC argument.
1785 * config/m68k/tm-hp300bsd.h: Ditto.
1786 * config/vax/tm-vax.h: Ditto.
1788 * alpha-tdep.c (alpha_linux_sigtramp_offset): New function.
1789 (alpha_osf_skip_sigtramp_frame): Ditto.
1790 (push_sigtramp_desc): Ditto.
1791 (alpha_find_saved_regs): Use SIGCONTEXT_ADDR macro to extract
1792 sigcontext address from frame.
1793 (alpha_saved_pc_after_call): When in sigtramp, use
1794 alpha_frame_saved_pc() instead of read-register().
1795 (after_prologue): When inside a dynamically generated sigtramp
1796 function, there is no prologue, so return address of first
1798 (alpha_in_prologue): Fix typo in comment.
1799 (find_proc_desc): Use macro DYNAMIC_SIGTRAMP_OFFSET to determine
1800 whether we're inside a dynamicaly generated sigtramp function. If
1801 so, create and push and appropriate procedure descriptor.
1802 (alpha_frame_chain): Use macro FRAME_PAST_SIGTRAMP_FRAME to obtain
1803 the frame past a sigtramp frame (if the current frame is indeed a
1805 (init_extra_frame_info): Don't read next frame register off of
1806 stack-pointer when inside a dynamiccaly generated sigtramp.
1807 (alpha_pop_frame): Also unlink and destroy procedure descriptors
1808 created for dynamically generated sigtramp functions.
1810 * alpha-nat.c: When compiling under Linux, include <asm/reg.h> and
1811 <alpha/ptrace.h> instead of <machine/reg.h>
1813 Tue Jul 2 13:58:10 1996 Miles Bader <miles@gnu.ai.mit.edu>
1815 * gnu-nat.c (inf_validate_task_sc):
1816 Give terminal to gdb while asking question.
1817 (inf_resume): Don't validate the task suspend-count while execing.
1819 Thu Jun 13 11:04:52 1996 Miles Bader <miles@gnu.ai.mit.edu>
1821 * gnu-nat.c (inf_validate_task_sc): Query user before clearing any
1822 additional suspend count.
1823 (S_proc_wait_reply, gnu_attach): Don't call inf_validate_task_sc.
1824 (inf_resume): Call inf_validate_task_sc here.
1825 (gnu_resume): Call inf_update_procs to ensure noticing new threads.
1827 Fri Jun 7 17:00:43 1996 Miles Bader <miles@gnu.ai.mit.edu>
1829 * gnu-nat.c (gnu_create_inferior: attach_to_child): Return PID.
1831 Thu May 23 15:13:56 1996 Jeffrey A Law (law@cygnus.com)
1833 * h8300-tdep.c (IS_PUSH): Refine.
1834 (IS_MOVE_FP, IS_MOV_SP_FP): Accept H8/300H varaints.
1835 (IS_SUB4_SP, IS_SUBL_SP): New macros.
1836 (h8300_skip_prologue): Handle H8/300H prologue code sequences.
1837 (examine_prologue): Handle addresses from 0x010000 to 0xffffff
1838 when in H8/300H mode. Get the return pointer's address correctly
1839 for the H8/300H. Handle H8/300H prolouge code sequences.
1841 * symfile.c (generic_load): Print the starting address
1842 of the file just loaded.
1844 Thu May 23 12:09:52 1996 Stan Shebs <shebs@andros.cygnus.com>
1846 * mpw-make.sed: Edit @THREAD_DB_OBS@ out of makefile.
1848 Tue May 21 11:53:56 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1850 * breakpoint.c (bpstat_do_actions): Avoid endless recursion
1851 if a `source' command is contained in bs->commands.
1853 * infrun.c (wait_for_inferior): Update step_frame_address when
1854 stepping into a new line.
1856 From schwab@issan.informatik.uni-dortmund.de (Andreas Schwab):
1857 * breakpoint.c (breakpoint_1): Add shlib_disabled case to
1860 Mon May 20 22:52:00 1996 Mark Alexander <marka@cygnus.com>
1862 * dsrec.c (load_srec): Add WAITACK parameter, for machines
1863 like EST visionICE that send back an ACK after each S-record.
1864 * monitor.c (monitor_wait_srec_ack): New function.
1865 (monitor_load): Pass monitor_wait_srec_ack to load_srec
1866 if the monitor's MO_SREC_ACK flag is set.
1867 * monitor.h: Define MO_SREC_ACK flag.
1868 * remote-est.c (est_cmds): Add MO_SREC_ACK flag.
1869 * sh3-rom.c (sh3_load): Accomodate change in load_srec prototype.
1870 * srec.h: Add WAITACK parameter to load_srec prototype.
1872 Sun May 19 21:22:00 1996 Rob Savoye <rob@chinadoll>
1874 * config/sparc/sparclite.mt: Add the sparc simulator.
1876 Sun May 19 16:49:37 1996 Fred Fish <fnf@cygnus.com>
1878 * defs.h (read_command_lines, query_hook): Update prototypes.
1879 (readline_begin_hook, readline_hook, readline_end_hook): Declare.
1880 * breakpoint.c (commands_command): Build message in temporary buffer
1881 and pass that, as well as tty control flag, to read_command_lines.
1882 * top.c (readline_begin_hook, readline_hook, readline_end_hook):
1884 (command_loop): Check for non-NULL instream before looping.
1885 (command_line_input): Use readline_hook when appropriate, to get
1886 user input from a GUI window.
1887 (read_next_line): Also build prompt if getting user input from a GUI.
1888 (recurse_read_control_structure): Fix typo in comment.
1889 (read_command_lines): Use passed in prompt and tty flag to decide how
1890 to build message. Use readline_begin_hook when appropriate, to set
1891 up a GUI interaction window. Just return head, whether NULL or not,
1892 after using readline_end_hook to complete GUI interaction.
1893 (define_command, document_command): Build message in a temporary
1894 buffer and pass it to read_command_lines, along with tty flag.
1896 start-sanitize-gdbtk
1897 * gdbtk.c (gdbtk_readline_begin, gdbtk_readline, gdbtk_readline_end):
1899 (tk_command_loop): Set instream to NULL to enable Tk user interaction.
1900 (gdbtk_init): Set readline_begin_hook, readline_hook,
1901 and readline_end_hook.
1902 * gdbtk.tcl (gdbtk_tcl_readline_begin, gdbtk_tcl_readline,
1903 gdbtk_tcl_readline_end): New functions.
1904 (tclsh): Pack scroll bar on right side of window, not left.
1907 Sat May 18 02:43:58 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1909 * blockframe.c (frameless_look_for_prologue):
1910 Add FUNCTION_START_OFFSET only if func_start is non-zero.
1911 * minsyms.c (lookup_minimal_symbol_by_pc): Return NULL if
1912 pc is not in a known section.
1913 * stack.c (print_frame_info): Remove check for fi->pc in known
1914 section, now handled by lookup_minimal_symbol_by_pc.
1916 start-sanitize-gdbtk
1917 Fri May 17 13:54:34 1996 Fred Fish <fnf@cygnus.com>
1919 * gdbtk.tcl (create_command_window): Change a misspelled "get"
1920 to the intended "cget".
1921 (delete_line): Fix so it deletes the current line at the
1925 Fri May 17 13:31:04 1996 Stan Shebs <shebs@andros.cygnus.com>
1927 * sh-stub.c: New file, was config/sh/stub.c.
1929 start-sanitize-gdbtk
1930 Thu May 16 19:20:29 1996 Fred Fish <fnf@cygnus.com>
1932 * gdbtk.tcl (gdb_prompt): Set this early on.
1933 (create_command_window): Use gdb_prompt rather than "(gdb) ".
1934 (gdbtk_tcl_preloop): Proc executed just prior to Tk main loop.
1935 (tclsh): If an evaluation window already exists, just bring it
1936 to the front instead of trying to create another.
1937 * gdbtk.c (tk_command_loop): New function.
1938 (gdbtk_init): Call tk_command_loop rather than Tk_MainLoop.
1940 Thu May 16 16:16:35 1996 Fred Fish <fnf@cygnus.com>
1942 * gdbtk.tcl (evaluate_tcl_command, tclsh): New functions that
1943 implement a tcl evaluation window for gdbtk maintainers to use.
1945 Thu May 16 11:42:58 1996 Tom Tromey <tromey@creche.cygnus.com>
1947 * gdbtk.tcl (files_command): Correctly insert list of files into
1950 * gdbtk.tcl (files_command): listbox command no longer accepts
1953 Wed May 15 16:04:09 1996 Stan Shebs <shebs@andros.cygnus.com>
1955 * gdbtk.tcl (create_command_window): If command window's buffer
1956 is disabled, don't execute any of the key bindings.
1959 Wed May 15 08:25:12 1996 Jeffrey A Law (law@cygnus.com)
1961 * top.c (read_next_line): Fix thinkos. From Donn Seeley.
1963 * coffread.c (coff_symtab_read): Handle C_LABEL symbols like
1965 * h8300-tdep.c (h8300_pop_frame): Reset $sp and $pc correctly.
1966 Flush cached frames just before exiting.
1967 * remote-sim.c (gdbsim_resume): Complain if the program isn't
1969 * config/h8300/tm-h8300.h (BELIEVE_PCC_PROMOTION): Define.
1971 Tue May 14 18:05:16 1996 Stu Grossman (grossman@critters.cygnus.com)
1973 * procfs.c (procfs_thread_alive procfs_stop): Make static.
1974 (procfs_pid_to_str): New routine to print out thread id's in an
1975 intelligible manner.
1976 * sol-thread.c (sol_thread_fetch_registers): Re-order manner in
1977 which supply_register is called to fix bug with writing
1979 * config/sparc/tm-sun4sol2.h: Define default for
1980 target_pid_to_str in case host lacks libthread_db.
1982 Mon May 13 23:53:30 1996 Stu Grossman (grossman@critters.cygnus.com)
1984 * Makefile.in config.in configure configure.in
1985 config/sparc/nm-sun4sol2.h config/sparc/sun4sol2.mh
1986 config/sparc/tm-sun4sol2.h: Use autoconf to config Solaris thread
1987 and pthread support, since pre-2.5 systems don't come with
1990 * procfs.c (info_proc): Use int instead of id_t. Old versions of
1991 Irix don't seem to define this.
1993 start-sanitize-gdbtk
1994 Mon May 13 13:43:25 1996 Fred Fish <fnf@cygnus.com>
1996 * gdbtk.c (tk_command): Catch case where no argument is given
1997 since this will cause the tcl interpreter to dump core.
2000 Mon May 13 17:40:58 1996 Jeffrey A Law (law@cygnus.com)
2002 * top.c (execute_control_command, case while_control): Allow
2003 a while command to be interrupted.
2005 Mon May 13 16:17:36 1996 Stu Grossman (grossman@critters.cygnus.com)
2007 * sol-thread.c: More cleanup, add comments.
2008 (sol_thread_resume): Prevent people from trying to step
2010 (sol_thread_wait sol_thread_fetch_registers
2011 sol_thread_store_registers): Remove unnecessary check for
2012 sol_thread_active. These routines won't get called unless threads
2015 Mon May 13 11:29:37 1996 Stan Shebs <shebs@andros.cygnus.com>
2017 SH3-E support from Allan Tajii <atajii@hmsi.com>:
2018 * sh-tdep.c (sh_reg_names, sh3_reg_names): Add empty names for
2020 (sh3e_reg_names): New register name array.
2021 (sh_processor_type_table): Add sh3e processor type.
2022 * config/sh/tm-sh.h (REGISTER_VIRTUAL_TYPE): Fix test.
2023 (REGISTER_NAMES, NUM_REGS, NUM_REALREGS, etc): Adjust for
2024 full set of registers.
2025 * remote-e7000.c (want_sh3, want_sh3_nopc): New globals.
2026 (e7000_fetch_registers, e7000_wait): Use them.
2027 * sh3-rom.c (sh3_regnames): Add float registers.
2028 (sh3e_cmds, sh3e_ops): New globals.
2029 (sh3e_open): New function.
2030 (_initialize_sh3_rom): Rename from _initialize_sh3, set up
2033 Fri May 10 15:53:38 1996 Stu Grossman (grossman@lisa.cygnus.com)
2035 * sol-thread.c: Cleanup. gcc -Wall fixes. Add prototypes.
2036 Print out messages instead of codes for thread_db errors. Make
2037 access macros for thread and lwp manipulation. Make cleanups to
2038 fixup inferior_pid in case of errors.
2040 Thu May 9 19:06:02 1996 Fred Fish <fnf@cygnus.com>
2042 * aclocal.m4: Remove unused definition of AC_C_CROSS.
2043 * configure.in: Add powerpcle-*-solaris* host and target config
2044 so April 30th change does not get lost next time configure is
2047 Thu May 9 14:13:08 1996 Stu Grossman (grossman@critters.cygnus.com)
2049 * Makefile.in, breakpoint.c, corelow.c, fork-child.c, inflow.c,
2050 infrun.c, mac-nat.c, procfs.c, remote.c, sol-thread.c, thread.c,
2051 win32-nat.c, config/nm-lynx.h: Rename thread.h to gdbthread.h to
2052 avoid conflict with Solaris /usr/include/thread.h.
2054 Thu May 9 12:33:32 1996 Rob Savoye <rob@chinadoll.cygnus.com>
2056 * abug-rom.c: Config file for the older style ABug monitor that
2057 runs on the mvme13x boards.
2058 * config/m68k/monitor.mt: Add abug support for m68k cross
2061 Wed May 8 20:33:24 1996 Fred Fish <fnf@cygnus.com>
2063 * infcmd.c (do_registers_info): Always print the raw floating
2064 point value's bytes in big endian order, so the the leftmost bit
2065 is the most significant.
2066 * breakpoint.c (clear_momentary_breakpoints): Remove dead code
2067 that is referenced nowhere else.
2068 (set_breakpoint): Ditto.
2069 (do_enable_breakpoint): Created from enable_once_breakpoint
2070 with a couple of changes.
2071 (enable_breakpoint): Call do_enable_breakpoint with an appropriate
2072 bpdisp enum value to set disposition of breakpoint.
2073 (enable_once_breakpoint): Ditto.
2074 (enable_delete_breakpoint): Ditto.
2075 * breakpoint.h (clear_momentary_breakpoints): Remove prototype.
2076 * symtab.c (find_pc_line): Improve comments.
2077 start-sanitize-gdbtk
2078 * gdbtk.c: Fix a couple of misspellings.
2080 * xcoffread.c: Ditto.
2082 Tue May 7 18:37:06 1996 Stan Shebs <shebs@andros.cygnus.com>
2084 * target.c (debug_to_xfer_memory): Insert line breaks when
2085 dumping the memory block.
2087 Mon May 6 13:52:52 1996 Stu Grossman (grossman@critters.cygnus.com)
2089 * fork-child.c (fork_inferior), inferior.h: init_trace_fun now
2090 returns a possibly modified pid.
2091 * inftarg.c (ptrace_him): Now returns pid;
2092 * m3-nat.c (m3_trace_him): Now returns pid;
2093 * infcmd.c (run_command): Minor cleanup.
2094 * infrun.c (wait_for_inferior): Add another check for one_stepped
2095 near where we read the pc to avoid erroneously setting
2096 random_signal for multi-threaded support.
2097 * procfs.c: Add support for Solaris LWPs. Remove def of
2098 LOSING_POLL. Many cleanups... Several workarounds for Solaris
2099 lossage. System call entry and exit are now handled by
2100 dynamically registered handlers.
2101 * (syscallname): Don't barf when handed an unknown syscall
2103 * (info_proc_syscalls): Ditto.
2104 * sol-thread.c: New file. Implements Solaris thread support.
2105 * symfile.c (symbol_file_add): Add call to target_new_objfile to
2106 notify target-dependent code about new symbol tables.
2107 * (clear_symtab_users): Call target_new_objfile to notify it of
2108 the removal of all symbol tables.
2109 * target.c (push_target): Make sure that to_close is non-zero
2111 * target.h (target_new_objfile): Provide default.
2112 * config/alpha/nm-osf2.h: Define LOSING_POLL because this version
2113 of OSF can't hack using poll with /proc.
2114 * config/sparc/nm-sun4sol2.h (target_new_objfile): Define to be
2115 sol-thread-new-objfile.
2116 * config/sparc/sun4sol2.mh: Add sol-thread.o to NATDEFFILES, and
2117 add libthread_db.so.1 to NAT_CLIBS.
2118 * config/sparc/tm-sun4sol2.h: Define PIDGET, TIDGET, and
2121 Sat May 4 02:13:34 1996 N Srin Kumar <nsrin@wipinfo.soft.net>
2123 * procfs.c (remove_fd): Fix copy of fds to fill hole left after
2124 removal of the requested fd.
2126 Mon May 6 07:52:48 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2128 * rs6000-tdep.c (_initialize_rs6000_tdep): Don't do XCOFF specific
2131 * config/powerpc/tm-ppc-eabi.h: Define ELF_OBJECT_FORMAT.
2133 start-sanitize-gdbtk
2134 Thu May 2 19:17:49 1996 Stan Shebs <shebs@andros.cygnus.com>
2136 * gdbtk.tcl (debug_interface): New global, use to aid debugging.
2137 (insert_breakpoint_tag, delete_breakpoint_tag): Fix range.
2138 (file_popup_menu): Delete, never used.
2139 (listing_window_popup): Rename from listing_window_button_1,
2140 remove breakpoint toggling code.
2141 (toggle_breakpoint): New procedure.
2142 (create_file_win): Bind popup menu to button 2, toggle breakpoints
2143 with button 1 in breakpoint area, add display of tagged areas if
2147 Thu May 2 12:46:14 1996 Jeffrey A Law (law@cygnus.com)
2150 * breakpoint.h (enum bpdisp): Add del_at_next_stop.
2151 * breakpoint.c (insert_breakpoints, watchpoint_check,
2152 bpstat_stop_status): Avoid bad references to memory freed via
2153 delete_breakpoint on watchpoints going out of scope.
2154 Do not delete these watchpoints, disable them and change their
2155 disposition to del_at_next_stop instead.
2156 (breakpoint_auto_delete): Delete all breakpoints whose disposition
2157 is del_at_next_stop.
2158 (breakpoint_init_inferior): Use switch to avoid reference to
2159 already deleted breakpoint.
2161 Wed May 1 17:29:18 1996 Fred Fish <fnf@cygnus.com>
2163 * Makefile.in (rs6000-nat.o): Depend on xcoffsolib.h.
2164 * config/rs6000/rs6000.mh (NATDEPFILES): Move xcoffread.o ...
2165 * config/rs6000/rs6000.mt (TDEPFILES): ... to here.
2166 * xcoffsolib.c (xcoff_relocate_symtab_hook): Define and initialize.
2167 (solib_info): Call xcoff_relocate_symtab via the hook.
2168 (sharedlibrary_command): Ditto.
2169 * xcoffread.c: Remove all FAKING_RS6000 comments and defines.
2170 (xcoff_add_toc_to_loadinfo_hook): Define and initialize here.
2171 (xcoff_init_loadinfo_hook): Define and initialize here.
2172 (scan_xcoff_symtab): Call xcoff_add_toc_to_loadinfo via the hook.
2173 (xcoff_initial_scan): Call xcoff_init_loadinfo via the hook.
2174 * xcoffsolib.h (xcoff_relocate_symtab_hook): Declare extern func.
2175 * rs6000-tdep.c (_initialize_rs6000_tdep): Add initializations
2176 of xcoff_add_toc_to_loadinfo_hook and xcoff_init_loadinfo_hook.
2177 * rs6000-nat.c (_initialize_core_rs6000): Add initialization
2178 of xcoff_relocate_symtab_hook.
2180 Tue Apr 30 13:22:02 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2182 * configure (powerpcle-*-solaris*): Add Solaris support.
2184 * config/powerpc/{solaris.m[ht],tm-solaris.h}: New files for
2187 Mon Apr 29 16:17:31 1996 Dawn Perchik <dawn@cygnus.com>
2189 * c-valprint.c (c_val_print): Fix printing for arrays defined
2192 Sun Apr 28 15:08:05 1996 Stan Shebs <shebs@andros.cygnus.com>
2194 Support for bi-endian remote breakpoints.
2195 * remote.c (big_break_insn, little_break_insn): New globals.
2196 (break_insn): Remove.
2197 (remote_insert_breakpoint, remote_remove_breakpoint): Use own
2198 code if REMOTE_BREAKPOINT defined, otherwise call memory
2199 breakpoint functions.
2200 * config/sh/tm-sh.h (REMOTE_BREAKPOINT): Remove.
2201 (BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT): Define.
2203 * mon960-rom.c (mon960_cmds): Remove forward decl.
2204 (mon960_load): Use current_monitor instead of mon960_cmds.
2205 (mon960_regnames): Remove backslashes from line ends.
2206 (_initialize_mon960): Fix documentation string.
2208 Sun Apr 28 12:10:35 1996 Fred Fish <fnf@cygnus.com>
2210 * symfile.h (psymbol_allocation_list): Expand comments which
2211 describe the psymbol allocation list and how each field is
2214 Sun Apr 28 03:44:30 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2216 * breakpoint.c (delete_breakpoint): Fix bpt->val, bpt->exp
2218 (breakpoint_re_set_one): Fix b->exp, b->val, b->cond storage leaks.
2220 * infcmd.c (run_command), solib.c (locate_base): Check for
2221 target_has_execution in addition to inferior_pid, a core file
2222 from a threaded program is yielding a non-zero inferior_pid.
2224 * sparc-tdep.c (get_saved_register): Handle window registers
2225 in a dummy frame correctly.
2227 Sat Apr 27 20:38:32 1996 Fred Fish <fnf@cygnus.com>
2229 * Makefile.in (CLIBS): Move $(MMALLOC) past all other libs,
2230 so that anything that wants an allocation function not yet pulled
2231 in, will get it from mmalloc rather than a system library.
2232 * Makefile.in (INSTALLED_LIBS): Reorder to match order of CLIBS,
2233 to avoid surprising results when used.
2235 Sat Apr 27 00:12:05 1996 Dawn Perchik (dawn@cygnus.com)
2237 * stabsread.c: Changes and bug fixes for cfront support.
2238 Fix bug for class data members.
2239 Fix parsing bug when no base classes exist.
2240 Fix memory bug - allocate space for cplusplus specific info.
2241 Add support for static data.
2242 Add prototypes for static functions.
2243 Enhance comments to show what each function expects to parse.
2245 * stabsread.c(resolve_cont),dbxread.c(resolve_cont): Rename
2246 function to resolve_cfront_continuation.
2248 Fri Apr 26 23:58:26 1996 Jeffrey A Law (law@cygnus.com)
2250 * infrun.c (wait_for_inferior): Call registers_changed when
2251 restarting the inferior to get over a nullified instruction.
2253 Tue Apr 24 12:12:55 1996 Dawn Perchik (dawn@cygnus.com)
2255 * dbxread.c,stabsread.c,gdbtypes.c,partial-stab.h,valops.c:
2256 Add new support for parsing cfront stabs.
2258 Wed Apr 24 00:32:55 1996 Jeffrey A Law (law@cygnus.com)
2260 * infrun.c (wait_for_inferior): Move "have_waited" label
2261 outside of #ifdef conditionals. Don't trash the wait status
2262 if we get a signal and the current instruction is nullified.
2264 Mon Apr 22 20:17:01 1996 Fred Fish <fnf@cygnus.com>
2266 * Makefile.in (VERSION): Bump version number to 4.16.1.
2267 * NEWS: Update for 4.16 release.
2269 Mon Apr 22 16:32:29 1996 Stan Shebs <shebs@andros.cygnus.com>
2271 * monitor.h: Clean up comment formatting.
2272 (current_monitor): Remove decl.
2273 (LOADTYPES, LOADPROTOS, INIT_CMD, etc): Remove definitions.
2274 (push_monitor, SREC_SIZE): Remove.
2275 * monitor.c: Expand old macro into current_monitor derefs
2277 * remote-os9k.c (current_monitor): Remove definition.
2279 Mon Apr 22 14:54:45 1996 Mark Alexander <marka@superball.cygnus.com>
2281 * corefile.c (specify_exec_file_hook): Allow arbitrary number of
2283 (call_extra_exec_file_hooks): New function.
2284 * h8300-tdep.c: Lint; add .h files to provide missing declarations,
2285 remove unused variables.
2286 (set_machine_hook): New function.
2287 (_initialize_h8300m): Initialize it.
2289 Fri Apr 19 15:03:49 1996 Ian Lance Taylor <ian@cygnus.com>
2291 * remote-mips.c (encoding): Don't specify size, to avoid bug in
2292 SunOS native compiler.
2294 Thu Apr 18 18:46:57 1996 Stan Shebs <shebs@andros.cygnus.com>
2296 * monitor.c: Use int rather than LONGEST for values, since
2297 the formatting strings are not prepared to accept long longs.
2299 Wed Apr 17 20:17:27 1996 Doug Evans <dje@canuck.cygnus.com>
2301 * arm-tdep.c (initialize_arm_tdep): Make apcs32 a `zinteger'.
2303 Tue Apr 16 17:38:23 1996 Stu Grossman (grossman@critters.cygnus.com)
2305 * corelow.c (add_to_thread_list): Make sure reg_sect is non-null
2306 before de-referencing it. Prevents deref of NULL pointer if core
2307 file lacks .reg section.
2308 * defs.h: Rename floatformat_{to from}_long_double to
2309 floatformat_{to from}_doublest. Get rid of FLOATFORMAT_{TO
2311 * findvar.c (extract_floating store_floating): Change all refs to
2312 FLOATFORMAT_{FROM TO}... to floatformat_{from to}_doublest.
2313 * utils.c: Change floatformat_{to from}_long_double to
2314 floatformat_{to from}_doublest cuz the new routines will use
2315 whatever size (double or long double) is appropriate.
2316 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
2317 REGISTER_CONVERT_TO_RAW): Change FLOATFORMAT... macros to
2318 floatformat... routine calls.
2320 Mon Apr 15 16:34:11 1996 Per Bothner <bothner@kalessin.cygnus.com>
2322 * stabsread.c (read_type): Move handling of '@' from type
2323 number handling to handling of types proper (as emitted by gcc!).
2324 For typedefs, allocate the typedef type before reading its
2325 definition, to properly handling recursive types.
2327 Mon Apr 15 11:19:26 1996 Jeffrey A Law (law@cygnus.com)
2329 * ch-exp.c (calculate_array_length): Fix prototype.
2331 Sat Apr 13 14:21:16 1996 Stu Grossman (grossman@critters.cygnus.com)
2333 * remote-nindy.c (nindy_open): Acquire more target state so that
2334 user can attach to a previously running program.
2335 * (nindy_fetch_registers nindy_store_registers): Get rid of fp
2336 conversion code. That's all handled in {extract store}_floating
2338 * utils.c (floatformat_to_double): Don't bias exponent when
2339 handling zero's, denorms or NaNs.
2340 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
2341 REGISTER_CONVERT_TO_RAW): Change to using DOUBLST and
2342 FLOATFORMAT_TO/FROM_DOUBLEST macros.
2343 * config/i960/tm-nindy960.h: Undefine
2344 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW, and
2345 REGISTER_CONVERTIBLE. These are no longer necessary now that all
2346 the magic happens in extract/store_floating.
2348 Sat Apr 13 02:58:02 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2350 * eval.c (evaluate_subexp_standard): Report error when attempting to
2351 evaluate subscripts for types which cannot be subscripted.
2353 * valarith.c (value_x_binop, value_x_unop): Add noside parameter.
2354 Return a zero value with the return type of the member function
2355 if noside is EVAL_AVOID_SIDE_EFFECTS instead of calling the member
2357 * values.h (value_x_binop, value_x_unop): Update prototypes
2359 * eval.c (evaluate_subexp_standard): Update all callers of
2360 value_x_binop, value_x_unop accordingly.
2362 * valarith.c (value_neg, value_complement): Perform ANSI C/C++
2363 integral promotion on operands.
2365 Fri Apr 12 13:19:27 1996 Fred Fish <fnf@cygnus.com>
2367 * README: Update for 4.16 release.
2368 * configure.in (AC_CHECK_FUNCS): Also check for sbrk.
2369 * configure: Regenerate with autoconf.
2370 * config.in: Regenerate with autoheader.
2371 * main.c (main): Only use sbrk() when HAVE_SBRK is defined.
2372 * top.c (command_loop): Ditto.
2374 Fri Apr 12 09:45:29 1996 Stu Grossman (grossman@critters.cygnus.com)
2376 * defs.h: Define TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
2377 defaults for bi-endian targets. Replace function pointers for
2378 floatformat routines with macros. No need for these to be runtime
2380 * findvar.c: Get rid of floatformat function pointers. Use
2381 macros in extract_floating and store_floating.
2382 * remote-nindy.c (nindy_fetch_registers nindy_store_registers):
2383 Use floatformat macros.
2385 Thu Apr 11 21:28:02 1996 Fred Fish <fnf@cygnus.com>
2387 From: Miles Bader <miles@gnu.ai.mit.edu>
2388 * configure.in (AC_CHECK_HEADERS): check for endian.h.
2389 Use AC_CHECK_TOOL to find AR & RANLIB. Add AC_PROG_AWK.
2390 Add host & target cases for i[345]86-*-gnu*.
2391 * config.in: Regenerate with autoheader.
2392 * configure: Regenerate with autoconf.
2393 * Makefile.in (AR, AWK): Set from corresponding autoconf substs.
2394 (init.c): Don't scan mig-generated files.
2395 * defs.h (endian.h): Include if HAVE_ENDIAN_H defined.
2396 * config/nm-m3.h (ATTACH_NO_WAIT): Define.
2397 * infcmd.c (attach_command): Use "#ifndef ATTACH_NO_WAIT"
2398 rather than "#ifndef MACH".
2400 Thu Apr 11 18:49:42 1996 Stan Shebs <shebs@andros.cygnus.com>
2402 * remote.c (remotewritesize): New GDB variable, controls size
2403 of memory packets sent to the target.
2405 Thu Apr 11 13:47:52 1996 Stu Grossman (grossman@critters.cygnus.com)
2407 * dcache.c: Add prototypes. Make many functions static.
2408 * (dcache_peek dcache_fetch dcache_poke): Make dcache_fetch and
2409 dcache_poke call dcache_xfer_memory directly in order to fix
2410 problems with turning off dcache. dcache_peek is now unnecessary,
2413 * defs.h: Define new macros HOST_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
2414 and TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT to specify a pointer
2415 to a struct floatformat. This allows for better handling of
2416 targets whose floating point formats differ from the host by more
2417 than just byte order.
2418 * (floatformat_to_long_double floatformat_from_long_double):
2419 Prototypes for new functions in utils.c.
2420 * (floatformat_to_doublest floatformat_from_doublest): Prototypes
2421 for pointers to floating point conversion functions. The actual
2422 function uses either double or long double if the host supports it.
2423 * findvar.c (floatformat_to_doublest floatformat_from_doublest):
2424 Initialize to point at correct function depending on HAVE_LONG_DOUBLE.
2425 * (extract_floating store_floating): Rewrite. Now, if host fp
2426 format is the same as the target, we just do a copy. Otherwise,
2427 we call floatformat_{to from}_doublest.
2428 * remote-nindy.c (nindy_xfer_inferior_memory): Change param
2429 `write' to `should_write'.
2430 * utils.c (floatformat_to_long_double
2431 floatformat_from_long_double): New routines that implement long
2432 double versions of functions in libiberty/floatformat.c.
2433 * config/i960/tm-i960.h (TARGET_LONG_DOUBLE_FORMAT): Define this for
2434 i960 extended real (80 bit) numbers.
2435 * nindy-share/nindy.c (ninMemGet ninMemPut): Return number of bytes
2436 actually read or written.
2438 Wed Apr 10 02:56:06 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
2440 * ch-valprint.c (chill_val_print): Remove call to calculate_array_length.
2441 (calculate_array_length): Move function from here ...
2443 * ch-exp.c (calculate_array_length): ... to here.
2444 (parse_primval): If we have a symbol with an array type
2445 and the length is 0, call calculate_array_length.
2447 Tue Apr 9 01:23:05 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
2449 * eval.c (evaluate_subexp_standard): In case of TYPE_CODE_SET:
2450 Add some checks for powerset compatibility.
2452 * valops.c (value_slice): Use lowbound instead of lowerbound for
2453 call to slice_range_type to get correct bounds.
2455 Mon Apr 8 12:53:56 1996 Fred Fish <fnf@cygnus.com>
2457 * Makefile.in (scm-exp.o, scm-lang.o, scm-valprint.o): Add targets and
2459 * scm-lang.c (gdb_string.h): Include.
2460 * objfiles.c (add_to_objfile_sections): Cast second arg of obstack_grow
2461 call to correct type (char *).
2462 * cp-valprint.c (cp_print_static_field): Ditto.
2463 * somsolib.c (som_solib_create_inferior_hook): Add a declaration
2464 for external find_unwind_entry function (from hppa-tdep.c).
2465 * remote-pa.c (remote_write_bytes, remote_read_bytes): Change
2466 type of second arg to "char *" to be type compatible with
2468 (remote_wait): Cast second arg to strtol to correct type.
2469 * hppa-tdep.c (compare_unwind_entries): Change argument types to
2470 "const void *" to be type compatible with qsort, and then
2471 assign to local args prior to use.
2473 Mon Apr 8 15:35:52 1996 Jeffrey A Law (law@cygnus.com)
2475 * infptrace.c (kill_inferior): Remove call to "kill"; update
2478 Mon Apr 8 14:05:07 1996 Geoffrey Noer <noer@cygnus.com>
2480 * remote-e7000.c: don't append :23 to target port if __WIN32__
2481 is defined (it's WinGDB).
2483 Sun Apr 7 22:34:29 1996 Fred Fish <fnf@cygnus.com>
2485 From: Miles Bader <miles@gnu.ai.mit.edu>
2486 * gnu-nat.c, gnu-nat.h, msg.defs, exc_request.defs, i386gnu-nat.c,
2487 msg_reply.defs, notify.defs, process_reply.defs, reply_mig_hack.awk,
2488 config/nm-gnu.h, config/i386/{i386gnu.mh, i386gnu.mt, nm-gnu.h,
2489 m-i386gnu.h, xm-i386gnu.h}: New files for GNU hurd.
2491 Sun Apr 7 13:32:41 1996 Fred Fish <fnf@cygnus.com>
2493 * configure.in (case host): Add i386sco5 host.
2494 * configure: Regenerate.
2496 From: Robert Lipe <robertl@dgii.com>
2497 Add support for SCO OpenServer 5 (a.k.a. 3.2v5*) This
2498 target is an SVR3.2 with COFF, ELF, and shared libes, but
2500 * config/i386/i386sco5.mh: New file.
2501 * config/i386/nm-i386sco5.h: New file.
2503 Sat Apr 6 08:55:22 1996 Fred Fish <fnf@cygnus.com>
2505 * bcache.c (bcache): When size of chunk to cache is exactly equal to
2506 BCACHE_MAXLENGTH, stash chunk as unique copy.
2508 Sat Apr 6 00:46:26 1996 Fred Fish <fnf@cygnus.com>
2510 * symfile.c (INLINE_ADD_PSYMBOL): Remove ifdef.
2511 (add_psymbol_to_list): Add an arg for passing CORE_ADDR values and
2512 use it, rather than calling add_psymbol_addr_to_list.
2513 (add_psymbol_addr_to_list): Delete.
2514 (add_psymbol_to_list): Make psymbol static to avoid random data in
2515 gaps due to alignment of structure members.
2516 * symfile.h (INLINE_ADD_PSYMBOL, ADD_PSYMBOL_TO_LIST,
2517 ADD_PSYMBOL_ADDR_TO_LIST): Remove. Real world tests show no
2518 performance improvements by inlining via complicated macros and
2519 they just make gdb larger and harder to maintain.
2520 * dwarfread.c (add_enum_psymbol): Replace ADD_PSYMBOL_TO_LIST
2521 and/or ADD_PSYMBOL_ADDR_TO_LIST macro(s) with call to
2522 add_psymbol_to_list with appropriate long or CORE_ADDR args.
2523 (add_partial_symbol): Ditto.
2524 * partial-stab.h: Ditto.
2525 * os9kread.c (read_os9k_psymtab): Ditto
2526 * mdebugread.c (parse_partial_symbols): Ditto.
2527 (handle_psymbol_enumerators): Ditto.
2528 (demangle.h): Include.
2529 * hpread.c (hpread_build_psymtabs): Ditto.
2530 (hpread_build_psymtabs): Ditto.
2531 (demangle.h): Include
2533 start-sanitize-gdbtk
2534 Fri Apr 5 13:44:40 1996 Stan Shebs <shebs@andros.cygnus.com>
2536 * gdbtk.c (running_now): New global variable.
2537 (gdb_cmd): Test it before executing any command.
2538 (gdbtk_call_command): Set it when inferior is running.
2539 * gdbtk.tcl (gdbtk_tcl_busy, gdbtk_tcl_idle): Enable and
2540 disable interaction with command window's text appropriately.
2542 Fri Apr 5 13:25:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2544 * gdbtk.c (SIOCSPGRP, linux): If on Linux, undef SIOCSPGRP, since
2545 some versions of the kernel don't support it.
2548 Thu Apr 4 20:16:55 1996 Fred Fish <fnf@cygnus.com>
2550 * configure.in: Check for setpgid function.
2551 * config.in: Regenerate with autoheader.
2552 * configure: Regenerate with autoconf.
2553 * inflow.c (_initialize_inflow): Only try to use _SC_JOB_CONTROL
2554 if it is actually defined.
2555 (gdb_setpgid): Use HAVE_SETPGID.
2556 * ch-exp.c: Change include of <string.h> to "gdb_string.h".
2557 * c-exp.y, f-exp.y, m2-exp.y: Ditto.
2558 * c-exp.y, serial.c: Include <ctype.h>.
2559 * config/m68k/nm-news.h: Add typedef for pid_t which is
2560 apparently missing from <sys/types.h>. Enclose entire
2561 file in NM_NEWS_H ifndef and define when included.
2562 * config/mips/nm-news-mips.h: Ditto.
2563 * config/m68k/tm-m68k.h (REGISTER_CONVERT_TO_VIRTUAL,
2564 REGISTER_CONVERT_TO_RAW): Change name of temporary variable.
2566 Thu Apr 4 19:04:18 1996 Stan Shebs <shebs@andros.cygnus.com>
2568 * arm-xdep.c: Move native-specific code to here from arm-tdep.c.
2569 * arm-tdep.c (arm_apcs_32): New global.
2570 (arm_addr_bits_remove, arm_saved_pc_after_call,
2571 arm_push_dummy_frame, arm_pop_frame): New functions.
2572 (arm_skip_prologue): Updated version from Richard Earnshaw.
2573 (_initialize_arm_tdep): Add set/show "apcs32".
2574 * config/arm/tm-arm.h (ADDR_BITS_REMOVE): Call
2575 arm_addr_bits_remove.
2576 (SAVED_PC_AFTER_CALL): Call arm_saved_pc_after_call.
2577 (frame_find_saved_regs): Declare properly.
2578 (PUSH_DUMMY_FRAME): Call arm_push_dummy_frame.
2579 (POP_FRAME): Call arm_pop_frame, use ADDR_BITS_REMOVE instead of
2581 * config/arm/nm-arm.h: New file.
2582 * config/arm/xm-arm.h (KERNEL_U_ADDR, FETCH_INFERIOR_REGISTERS):
2583 Move definitions to nm-arm.h.
2584 * config/arm/arm.mh (NAT_FILE): Define.
2586 * symfile.c (generic_load): Initialize data_count properly.
2588 Thu Apr 4 17:17:53 1996 Fred Fish <fnf@cygnus.com>
2590 * symmisc.c (print_objfile_statistics): Print memory used by
2591 psymbol cache obstack.
2593 Thu Apr 4 15:43:07 1996 Stan Shebs <shebs@andros.cygnus.com>
2595 * symfile.c (report_transfer_performance): New function.
2596 (generic_load): Call it to report transfer rate.
2597 * remote-e7000.c (e7000_load): Ditto.
2599 Mon Apr 1 16:31:00 1996 Stan Shebs <shebs@andros.cygnus.com>
2601 * mpw-make.sed: Change references to config.h to be in objdir,
2602 edit out rules to rebuild config.h.
2604 Mon Apr 1 08:32:23 1996 Fred Fish <fnf@cygnus.com>
2606 * hppa-tdep.c (hppa_pop_frame): Call clear_proceed_status before
2609 Sun Mar 31 16:15:43 1996 Fred Fish <fnf@cygnus.com>
2611 * hppah-nat.c (store_inferior_registers, store_inferior_registers,
2612 fetch_register, child_xfer_memory): Use call_ptrace function supplied
2613 by infptrace.c rather than calling ptrace directly.
2615 Sun Mar 31 15:39:00 1996 Stan Shebs <shebs@andros.cygnus.com>
2617 * mon960-rom.c: Cleanups and elimination of unused code,
2618 clarify documentation string.
2619 (mon960_serial, mon960_ttyname): Remove.
2620 * config/i960/tm-mon960.h (ADDITIONAL_OPTIONS,
2621 ADDITIONAL_OPTION_CASES, ADDITIONAL_OPTION_HELP): Remove.
2623 Sat Mar 30 11:00:22 1996 Fred Fish <fnf@cygnus.com>
2625 * configure.in: Check whether printf family supports printing
2626 long doubles or not and define PRINTF_HAS_LONG_DOUBLE if so.
2627 * acconfig.h: Provide default undef for PRINTF_HAS_LONG_DOUBLE.
2628 * configure: Regenerate.
2629 * valprint.c (print_floating): Use PRINTF_HAS_LONG_DOUBLE.
2630 * c-exp.y (parse_number): Use PRINTF_HAS_LONG_DOUBLE.
2631 * configure.in: Fix have_gregset and have_fpregset autoconf
2632 variable names so that they match the pattern required to
2635 Fri Mar 29 21:39:56 1996 Fred Fish <fnf@cygnus.com>
2637 * core-aout.c (fetch_core_registers): Cast core_reg_size to int
2638 before testing against reg_ptr.
2639 * eval.c (evaluate_subexp_standard): Cast type of
2640 TYPE_FN_FIELD_VOFFSET to int.
2641 * findvar.c (extract_signed_integer, extract_unsigned_integer,
2642 extract_long_unsigned_integer): Cast type of sizeof to int.
2643 * values.c (unpack_field_as_long, modify_field): Ditto.
2644 * valops.c (value_assign, call_function_by_hand): Ditto.
2645 * infcmd.c (do_registers_info): Ditto.
2646 * ser-tcp.c (tcp_open): Ditto.
2647 * remote.c (putpkt): Ditto.
2648 * dcache.c (dcache_peek): Ditto.
2649 * dcache.c (dcache_poke): Ditto.
2650 * m2-exp.y (yylex): Ditto.
2651 * gnu-regex.c (re_match_2): Ditto.
2652 * f-lang.c (ADD_BF_SYMNUM, saved_bf_list_end, tmp_bf_ptr): Ifdef
2653 out unused macro definition and variables.
2654 * inftarg.c (proc_wait): Move from main.c to here, and make static.
2655 * valprint.c (val_print_string): Change bufsize from int to unsigned.
2656 * main.c (wait.h): Include.
2657 * top.c (command_line_input): Remove unused variable "c".
2658 * f-typeprint.c (f_type_print_varspec_prefix): Add missing enum
2659 value TYPE_CODE_TYPEDEF to switch statement.
2660 (f_type_print_varspec_suffix): Add missing enum value
2661 TYPE_CODE_TYPEDEF to switch statement.
2662 * ch-exp.c (parse_primval): Add remaining enumeration values to
2663 switch statement, with no specific action.
2664 (ch_lex): Add LOC_UNRESOLVED in switch statement.
2665 (pushback_token): Ifdef out, since code using it is ifdef'd out.
2666 * stabsread.c (cleanup_undefined_types): Remove unused label
2668 * objfiles.h (print_symbol_bcache_statistics): Add prototype.
2669 * maint.c (objfiles.h): Include.
2670 (maintenance_print_statistics): Remove unused variable "temp".
2671 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
2672 unused variable "found_file_symbol".
2673 * m2-exp.y (yylex): Add LOC_UNRESOLVED case to switch.
2674 * language.c (lang_bool_type): Use existing function local type
2675 variable rather than create block local variables.
2676 * solib.c (disable_break): Enclose in ifndef SVR4_SHARED_LIBS.
2677 * infptrace.c (wait.h, command.h): Include.
2678 * ser-tcp.c (gdb_string.h): Include
2679 * i386-tdep.c (codestream_seek): Change "place" to CORE_ADDR.
2680 (i386_get_frame_setup): Change "pc" from int to CORE_ADDR.
2681 * command.c (complete_on_enum): Make assignment used as truth value
2682 explictly check against NULL.
2684 * infrun.c (wait_for_inferior): Ifdef out prologue_pc since code
2685 that uses it is ifdef'd out.
2686 * parser-defs.h: Add prototype for write_dollar_variable.
2687 * infrun.c: Add prototype for write_pc_pid.
2688 * breakpoint.h: Add prototype for re_enable_breakpoints_in_shlibs.
2689 * symmisc.c (bcache.h): Include.
2690 * bcache.h: Add prototype for print_bcache_statistics.
2691 * symfile.c: Include <time.h>.
2692 * printcmd.c (print_scalar_formatted): Change len to unsigned int.
2693 * valarith.c (value_equal): Cast result of TYPE_LENGTH to int.
2694 * valarith.c (value_binop): Change result_len, promoted_len1,
2695 and promoted_len2 to unsigned int.
2696 * valarith.c (value_subscripted_rvalue): Change elt_offs and
2697 elt_size to unsigned int.
2698 * valops.c (value_array): Change typelength to unsigned int.
2699 (destructor_name_p): Change len to unsigned int.
2700 * scm-lang.h (scm_parse): Add prototype for scm_unpack.
2701 * symfile.c (decrement_reading_symtab): Change return type to void.
2702 * valarith.c (value_subscript): Remove unused variable "word".
2703 (value_subscript): Remove unused variable "tint".
2704 * valops.c (auto_abandon): Ifdef out, since code using it is also
2706 * eval.c (init_array_element): Remove unused variable "val".
2707 * Makefile.in (values.o): Depends on scm-lang.h.
2708 (command.o): Depends upon wait_h.
2709 (ser-tcp.o): Depends upon gdb_string.h.
2710 (infptrace.o): Depends upon wait_h and command_h.
2711 (maint.o): Depends on objfiles.h and symfile.h.
2712 * values.c (allocate_repeat_value): Remove unused variable
2714 (scm-lang.h): Include.
2715 * breakpoint.c (create_longjmp_breakpoint): Enclose in
2716 GET_LONGJMP_TARGET define, unused otherwise.
2717 * config/i386/nm-linux.h: Add prototypes for i386_insert_watchpoint,
2718 i386_remove_watchpoint and i386_stopped_by_watchpoint.
2720 Thu Mar 28 12:53:19 1996 Doug Evans <dje@canuck.cygnus.com>
2722 * configure.in (sparc64-*-solaris2*): Delete.
2723 Stick with sparc-*-solaris2*.
2724 * configure: Regenerated.
2726 Thu Mar 28 06:51:26 1996 Fred Fish <fnf@cygnus.com>
2728 * valops.c (value_assign): Make copy of internal variable value
2729 before returning it as a new value, since it is owned by the
2730 internal variable and will be freed along with it.
2732 Wed Mar 27 08:36:17 1996 Jeffrey A Law (law@cygnus.com)
2734 * From Peter Schauer.
2735 * breakpoint.c (breakpoint_re_set_one): Keep temporary
2736 breakpoints bp_until, bp_finish, bp_watchpoint_cope, bp_call_dummy
2737 and bp_step_resume in case breakpoint_re_set_one is called due
2738 to a step over a dlopen call.
2739 * infrun.c (wait_for_inferior): Always remove breakpoints from
2740 inferior in BPSTAT_WHAT_CHECK_SHLIBS case.
2742 Tue Mar 26 13:15:32 1996 Fred Fish <fnf@cygnus.com>
2744 * config/mips/tm-mips.h (COERCE_FLOAT_TO_DOUBLE): Only prefer
2745 non-prototyped case over prototyped case for C.
2746 * config/pa/tm-hppa.h (COERCE_FLOAT_TO_DOUBLE): Ditto.
2748 Sat Mar 23 17:24:28 1996 Fred Fish <fnf@cygnus.com>
2750 * os9kread.c (os9k_process_one_symbol): Note nonportable
2751 assumption that an int can hold a char *.
2753 * bcache.h (struct hashlink): Wrap data[] inside union with
2754 double to force longest alignment.
2755 (BCACHE_DATA): New macro to access data[].
2756 (BCACHE_ALIGNMENT): New macro to get offset to data[].
2757 * bcache.c (lookup_cache, bcache): Use BCACHE_DATA to get
2758 address of cached data. Use BCACHE_ALIGNMENT to compute
2759 amount of space to allocate for each hashlink struct.
2761 Sat Mar 23 12:14:02 1996 Fred Fish <fnf@cygnus.com>
2763 * ch-lang.c (evaluate_subexp_chill): Fix typo.
2765 Thu Mar 21 08:27:19 1996 Fred Fish <fnf@cygnus.com>
2767 * Makefile.in (VERSION): Bump version to 4.15.3
2769 Thu Mar 21 10:56:41 1996 Ian Lance Taylor <ian@cygnus.com>
2771 * config.in: Rename from config.h.in.
2772 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
2773 Change CONFIG_HEADERS test in AC_OUTPUT accordingly.
2774 * configure: Rebuild.
2775 * Makefile.in (stamp-h): Depend upon config.in, not config.h.in.
2776 Set CONFIG_HEADERS to config.h:config.in.
2778 Tue Mar 19 12:47:51 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2780 * partial-stab.h (case N_ENDM): Finish current partial symbol
2781 table for Solaris 2 cc.
2783 Tue Mar 19 10:39:15 1996 Jeffrey A Law (law@cygnus.com)
2785 * rs6000-nat.c (exec_one_dummy_insn): Don't clobber the
2786 PC in the registers array. From Peter Schauer.
2788 Mon Mar 18 13:47:09 1996 Fred Fish <fnf@cygnus.com>
2790 * symfile.c (reread_symbols): Reinitialize bcache struct
2791 members to zero using memset. Also use memset to reinit
2792 global_psymbols and static_psymbols, rather than explicitly
2793 resetting each structure member.
2795 Sat Mar 16 19:47:36 1996 Fred Fish <fnf@cygnus.com>
2797 * configure.in: Add fragment to create stamp-h.
2799 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2800 * configure.in (AC_CHECK_HEADERS): Check for link.h.
2801 * configure: Regenerate with autoconf.
2802 * config.h.in: Regenerate with autoheader.
2803 * config/i386/nm-linux.h: Include solib.h only if HAVE_LINK_H
2805 * solib.c: Exclude most of the code if HAVE_LINK_H is not defined.
2806 * config/i386/linux.mh: Reinstate XM_CLIBS, it is needed for
2807 older a.out based systems.
2809 Sat Mar 16 16:45:43 1996 Fred Fish <fnf@cygnus.com>
2811 * config.h.in: New file.
2812 * acconfig.h: New file, for autoheader.
2813 * configure.in (AC_CONFIG_HEADER): Add, generate config.h.
2814 * configure: Regenerate.
2815 * Makefile.in (defs_h): Add config.h
2816 (distclean): Remove config.h and stamp-h during distclean.
2817 (config.h, stamp-h): New targets to remake config.h when necessary.
2818 * defs.h (config.h): Include before any other includes or defines.
2819 * i386-tdep.c (gdb_string.h): Move include after include of defs.h.
2820 * i386v4-nat.c (defs.h): Include before testing HAVE_SYS_PROCFS_H.
2822 Sat Mar 16 14:55:27 1996 Fred Fish <fnf@cygnus.com>
2824 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2825 * Makefile.in (INSTALLED_LIBS): Make sure that @LIBS@ will not
2826 result in an empty line, to work around a bug in native Ultrix 4.4
2827 and OSF/1-3.2C make.
2829 Sat Mar 16 13:33:17 1996 Fred Fish <fnf@cygnus.com>
2831 * configure.in: Add gdbserver to configdirs under linux.
2832 * configure: Regenerate.
2834 Fri Mar 15 12:06:58 1996 J.T. Conklin <jtc@rtl.cygnus.com>
2836 * config/i386/nm-nbsd.h (FLOAT_INFO): Comment out.
2837 * config/i386/tm-nbsd.h (NUM_REGS): Define.
2839 Thu Mar 14 10:31:18 1996 Jeffrey A Law (law@cygnus.com)
2841 * solib.c (solib_break_names): Add _r_debug_state for
2842 vanilla SVR4 implementations. From Peter Schauer.
2844 Mon Mar 11 14:24:57 1996 Dawn Perchik <dawn@critters.cygnus.com>
2846 * mon960-rom.c: New file; support mon960 rom monitor on i960.
2847 * monitor.c (monitor_debug): Change remotedebug to buffer strings.
2848 * monitor.c (monitor_open): Add test for flag MO_NO_ECHO_ON_OPEN before
2849 epecting prompt and echo during open.
2850 * monitor.c (monitor_stop): Add test for flag MO_SEND_BREAK_ON_OPEN to
2851 determine if break should be sent as stop command.
2852 * monitor.h: Add flags MO_NO_ECHO_ON_OPEN and MO_SEND_BREAK_ON_OPEN.
2853 * i960-tdep.c (mon960_frame_chain_valid): New function for getting
2854 stack frame on mon960.
2855 * Makefile.in: Add mon960 files.
2856 * configure.in: Changed i960-*-coff* and i960-*-elf* to target mon960;
2857 added i960-nindy-coff* and i960-nindy-elf* for target nindy.
2858 * configure: Regenerated.
2859 * config/i960/mon960.mt, config/i960/tm-mon960.h: New files;
2860 support mon960 rom monitor on i960.
2862 Mon Mar 11 11:02:47 1996 Steve Chamberlain <sac@slash.cygnus.com>
2864 With Michael Snyder:
2865 * i386-tdep.c (skip_trampoline_code): Fix strncmp length.
2866 * win32-nat.c (CHECK, DEBUG*, debug_*): New.
2867 (handle_load_dll): Don't reload symbols.
2868 (handle_exception): Use the DEBUG_* names.
2869 (child_wait): Add DEBUG_* code.
2870 (_initialize_inftarg): Add new commands to set debug_ names.
2872 Mon Mar 11 09:19:58 1996 Jeffrey A Law (law@cygnus.com)
2874 * From Peter Schauer:
2875 * breakpoint.c (insert_breakpoints): Use ALL_BREAKPOINTS_SAFE.
2876 (bpstat_stop_status): Likewise.
2877 (remove_solib_event_breakpoints): Likewise.
2878 (clear_momentary_breakpoints): Likewise.
2879 (re_enable_breakpoints_in_shlibs): Don't reenable a breakpoint
2880 if we still can't read the memory for that breakpoint.
2881 (mention): Add bp_shlib_event case to keep gcc quiet.
2883 Fri Mar 8 12:08:12 1996 Jeffrey A Law (law@cygnus.com)
2885 * breakpoint.h (enum enable): New enum shlib_disabled for
2886 shared library breakpoints that have been temporarily disabled.
2887 * breakpoint.c: Handle temporarily disabled shared library
2888 breakpoints like disabled breakpoints in most places.
2889 (insert_breakpoints): Use shlib_disabled to indicate
2890 that an unsettable breakpoint is only temporarily disabled.
2891 (re_enable_breakpoints_in_shlibs): New function.
2892 * corelow.c (solib_add_stub): After adding shared libraries,
2893 try to reenable any temporarily disabled breakpoints.
2894 * infcmd.c (attach_command): Likewise.
2895 * infrun.c (wait_for_inferior): Likewise.
2897 Fri Mar 8 11:41:25 1996 Ian Lance Taylor <ian@cygnus.com>
2899 * defs.h (extract_long_unsigned_integer): Declare.
2900 * findvar.c (extract_long_unsigned_integer): New function.
2901 * printcmd.c (print_scalar_formatted): Use it.
2902 * valprint.c (val_print_type_code_int): Likewise.
2904 Thu Mar 7 17:40:50 1996 Stan Shebs <shebs@andros.cygnus.com>
2906 * infcmd.c (do_registers_info): Ignore anonymous registers.
2907 * sh-tdep.c (set processor): New command to set specific
2909 (sh_reg_names, sh3_reg_names): Arrays of register names for
2910 SH and SH3 processors.
2911 (sh_set_processor_type): New function.
2912 * sh3-rom.c (sh3_open): Call it.
2913 (sh3_regname): Add names of all the bank registers.
2914 (sh3_supply_register): Clean up formatting.
2915 * config/sh/tm-sh.h (NUM_REGS, NUM_REALREGS): Increase to include
2917 (REGISTER_NAMES): Add names of bank registers.
2918 (FP15_REGNUM): Define.
2919 (REGISTER_VIRTUAL_TYPE): Use it.
2920 * monitor.c: Clean up some comments.
2922 Thu Mar 7 12:09:51 1996 J.T. Conklin <jtc@rtl.cygnus.com>
2924 * i386b-nat.c: Revert part of Mar 5 change. FreeBSD collapsed the
2925 s* and t* symbols too.
2927 Thu Mar 7 15:18:51 1996 James G. Smith <jsmith@cygnus.co.uk>
2929 * symfile.c (generic_load): Avoid division by zero.
2931 Wed Mar 6 17:57:59 1996 Jeffrey A Law (law@cygnus.com)
2933 * breakpoint.c (bfd_lookup_symbol): Provide for all SVR4 systems,
2934 not just those with HANDLE_SVR4_EXEC_EMULATORS.
2937 * breakpoint.c (internal_breakpoint_number): Move to file scope.
2938 (create_solib_event_breakpoint): Use an internal breakpoint number.
2940 Wed Mar 6 00:32:44 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
2942 * valarith.c (value_in): Change builtin_type_chill_bool to
2945 Tue Mar 5 23:48:36 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
2947 * ch-exp.c (parse_primval): Handle CARD, MAX, MIN.
2948 (match_string_literal): Handle control sequence.
2949 (match_character_literal): Deto.
2951 * ch-lang.c (chill_printchar): Change formating of nonprintable
2952 characters from C'xx' to ^(num).
2953 (chill_printstr): Deto.
2954 (value_chill_card, value_chill_max_min): New functions to process
2955 Chill's CARD, MAX, MIN.
2956 (evaluate_subexp_chill): Process UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN.
2958 * expression.h (exp_opcode): Add UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN
2959 for Chill's CARD, MAX, MIN.
2961 * valarith.c (value_in): Add processing of TYPE_CODE_RANGE
2962 and change return type from builtin_type_int to
2963 builtin_type_chill_bool.
2965 Tue Mar 5 18:54:04 1996 Stan Shebs <shebs@andros.cygnus.com>
2967 * config/nm-nbsd.h (link_object, lo_name, etc): Move to here
2968 from config/nm-nbsd.h.
2969 * config/sparc/nm-nbsd.h (regs, fp_status, etc): Move to here
2970 from config/sparc/tm-nbsd.h.
2972 * config/m68k/nm-hp300hpux.h (FIVE_ARG_PTRACE): Define here
2973 instead of in config/m68k/xm-hp300hpux.h.
2975 Tue Mar 5 12:05:35 1996 J.T. Conklin <jtc@rtl.cygnus.com>
2977 * i386b-nat.c, m68knbsd-nat.c (fetch_core_registers): Provide
2978 implementation for NetBSD systems.
2980 Mon Mar 4 23:44:16 1996 Per Bothner <bothner@kalessin.cygnus.com>
2982 * valarith.c (binop_user_defined_p): Return 0 for BINOP_CONCAT.
2983 (value_concat): Handle varying strings (add COERCE_VARYING_ARRAY).
2985 * ch-lang.c (evaluate_subexp_chill case MULTI_SUBSCRIPT): Error
2986 if "function" is pointer to non-function.
2988 Mon Mar 4 17:47:03 1996 Stan Shebs <shebs@andros.cygnus.com>
2990 * top.c (print_gdb_version): Update copyright year.
2992 Mon Mar 4 14:44:54 1996 Jeffrey A Law (law@cygnus.com)
2995 * infrun.c (wait_for_inferior): Remove breakpoints and
2996 switch terminal settings before calling SOLIB_ADD.
2997 * solib.c (enable_break, SVR4 variant): Don't map in symbols
2998 for the dynamic linker, the namespace pollution causes real
3001 Sun Mar 3 17:18:57 1996 James G. Smith <jsmith@cygnus.co.uk>
3003 * remote-mips.c (common_breakpoint): Explicitly terminate the
3006 Wed Feb 28 22:32:18 1996 Stan Shebs <shebs@andros.cygnus.com>
3008 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
3009 * remote.c (remote_detach): Send a command 'D' to the target
3010 when detaching, update the function's comments.
3012 Thu Jun 6 16:11:38 1996 Miles Bader <miles@gnu.ai.mit.edu>
3014 * gnu-nat.c (thread_cmd_list): New declaration.
3015 (parse_int_arg): New function.
3017 Wed Jun 5 17:28:04 1996 Miles Bader <miles@gnu.ai.mit.edu>
3019 * gnu-nat.h (struct proc): Add DETACH_SC field.
3020 * gnu-nat.c (make_proc): Set DETACH_SC.
3021 (struct inf): Add DETACH_SC & DEFAULT_THREAD_DETACH_SC fields.
3022 (make_inf): Set DETACH_SC & DEFAULT_THREAD_DETACH_SC fields.
3023 (add_thread_commands): Add set/show for detach-suspend-count.
3024 Add takeover-suspend-count cmd.
3025 (inf_detach): Set suspend counts to the detach SC, not 0.
3026 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd,
3027 set_task_detach_sc_cmd, show_task_detach_sc_cmd,
3028 set_thread_default_thread_detach_sc_cmd,
3029 show_thread_default_thread_detach_sc_cmd): New functions.
3030 (show_task_cmd): Also show detach-suspend-count values.
3031 (thread_takeover_sc_cmd): New function.
3033 Fri May 31 16:49:24 1996 Miles Bader <miles@gnu.ai.mit.edu>
3035 * gnu-nat.c (show_thread_run_cmd): Actually print state.
3037 Thu May 30 10:47:56 1996 Miles Bader <miles@gnu.ai.mit.edu>
3039 * gnu-nat.c (inf_signal): Make unforwardable exceptions an error.
3041 Tue May 28 17:06:36 1996 Miles Bader <miles@gnu.ai.mit.edu>
3043 * gnu-nat.c (inf_validate_stopped): proc_getprocinfo takes a
3044 pointer to the flags now, not the flags themselves.
3046 Mon May 27 13:31:17 1996 Miles Bader <miles@gnu.ai.mit.edu>
3048 * gnu-nat.c (gnu_wait): Print debugging msgs for pending execs.
3049 (gnu_create_inferior): Check return from ptrace.
3051 Sun May 26 16:56:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
3053 * gnu-nat.h (struct proc): Add DEAD field.
3054 * gnu-nat.c (make_proc): Initialize DEAD.
3055 (inf_set_traced, inf_validate_task_sc, inf_validate_procs: Frob it.
3056 (gnu_wait): Only abort for 0 threads if the task isn't dead.
3058 Sat May 25 17:06:05 1996 Miles Bader <miles@gnu.ai.mit.edu>
3060 * gnu-nat.c (inf_signal): Pass SIGCODE when posting a signal.
3062 Wed May 22 18:44:28 1996 Miles Bader <miles@gnu.ai.mit.edu>
3064 * gnu-nat.c (S_proc_wait_reply): Add SIGCODE argument.
3065 (inf_set_traced): Only give no-signal-thread error message if
3066 turning *on* tracing.
3068 Wed May 15 13:03:16 1996 Miles Bader <miles@gnu.ai.mit.edu>
3070 * gnu-nat.c (inf_validate_procs): If INF has no threads, always
3071 set inf->threads_up_to_date to 0.
3072 (inf_signal): Pass in new SIGCODE argument to msg_sig_post_untraced.
3073 (gnu_wait): Pass in new TIMEOUT arg to interrupt_operation.
3074 (proc_update_sc): Cast thread state arg to thread_set_state.
3075 (proc_get_state): Cast thread state arg to thread_get_state.
3076 (inf_validate_task_sc): Cast task_basic_info arg to task_info.
3077 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Call
3078 inf_update_procs before we lookup the thread.
3079 * config/i386/i386gnu.mh (MH_CFLAGS): New variable.
3081 Tue May 7 17:52:33 1996 Miles Bader <miles@gnu.ai.mit.edu>
3083 * gnu-nat.c (gnu_kill_inferior): Use inf_set_task to clear the task.
3085 Mon May 6 19:06:49 1996 Miles Bader <miles@gnu.ai.mit.edu>
3087 * gnu-nat.c (inf_set_traced): Use msg_set_init_int with
3088 INIT_TRACEMASK instead of setting the exec flags.
3090 Fri May 3 19:10:57 1996 Miles Bader <miles@gnu.ai.mit.edu>
3092 * gnu-nat.c (inf_validate_procs): Don't clear INF->task if we find
3093 the task's died, so others have a chance at it.
3094 (gnu_resume): When single-stepping a single thread, given an error
3095 if there is no such thread. When single-stepping one but running
3096 the others, just given a warning and still run all the threads.
3097 (gnu_wait): If there seem to be no threads, look harder, and
3098 signal an error if there really aren't any.
3099 (gnu_attach): Reset thread numbering to 0.
3101 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Give
3102 thread name in warning messages.
3104 * gnu-nat.c (active_inf): New function.
3105 (show_sig_thread_cmd, show_stopped_cmd): Use it.
3106 (info_port_rights, info_send_rights_cmd, info_port_sets_cmd,
3107 info_recv_rights_cmd, info_port_rights_cmd, info_port_rights_cmd):
3109 (add_task_commands): Add new port-right info commands.
3111 Fri Apr 26 20:42:16 1996 Miles Bader <miles@gnu.ai.mit.edu>
3113 * gnu-nat.c (gnu_wait): Instead of _hurd_intr_rpc_mach_msg, just
3114 use mach_msg with MACH_RCV_INTERRUPT.
3115 (set_noninvasive_cmd): New function.
3116 (add_task_commands): Add command entry for `set noninvasive'.
3118 Mon Mar 4 14:12:02 1996 Miles Bader <miles@gnu.ai.mit.edu>
3120 * gnu-nat.c (gnu_read_inferior): Use hurd_safe_memmove, not safe_bcopy.
3121 (safe_bcopy): Function removed.
3123 Mon Dec 4 14:18:26 1995 Miles Bader <miles@gnu.ai.mit.edu>
3125 * gnu-nat.c (proc_update_sc): Assert only threads can have state.
3126 (make_proc): Initialize state_valid & state_changed fields.
3128 Tue Nov 28 17:51:21 1995 Miles Bader <miles@gnu.ai.mit.edu>
3130 * reply_mig_hack.awk: New file.
3132 Tue Nov 14 14:31:03 1995 Miles Bader <miles@gnu.ai.mit.edu>
3134 * breakpoint.c (breakpoint_1): Print breakpoint thread field.
3136 * lynx-nat.c (child_wait): Return TARGET_WAITKIND_SPURIOUS for new
3139 Mon Nov 13 18:30:53 1995 Miles Bader <miles@gnu.ai.mit.edu>
3141 * target.c (debug_to_check_threads): New function.
3143 * inflow.c (terminal_init_inferior_with_pgrp): New function.
3144 (terminal_init_inferior): Call terminal_init_inferior_with_pgrp.
3145 * inferior.h (terminal_init_inferior_with_pgrp): New declaration,
3146 but only if PROCESS_GROUP_TYPE is defined.
3148 Mon Nov 6 16:42:09 1995 Miles Bader <miles@gnu.ai.mit.edu>
3150 * target.c (debug_to_thread_alive): Pass through the return value.
3152 Thu Nov 2 18:05:00 1995 Miles Bader <miles@gnu.ai.mit.edu>
3154 * target.c (signals, target_signal_from_host, target_signal_to_host):
3155 Add mach exceptions.
3156 * target.h (enum target_signal): Add mach exceptions.
3158 Mon Oct 30 16:41:04 1995 Miles Bader <miles@gnu.ai.mit.edu>
3160 * gnu-nat.c: New file: gnu native backend.
3161 * i386gnu-nat.c: New file: i386-specific part of gnu native backend.
3162 * gnu-nat.h: New file.
3163 * config/nm-gnu.h: New file.
3164 * config/tm-i386gnu.h: New file.
3165 * config/xm-i386gnu.h: New file.
3166 * config/i386/i386gnu.mh: New file.
3167 * config/i386/i386gnu.mt: New file.
3169 Wed Feb 28 15:50:12 1996 Fred Fish <fnf@cygnus.com>
3171 * Makefile.in (VERSION): Bump version to 4.15.2 to establish
3172 baseline for gdb 4.16 rerelease testing.
3174 Wed Feb 28 13:32:05 1996 Jeffrey A Law (law@cygnus.com)
3176 * somsolib.c (som_solib_create_inferior_hook): Before returning
3177 call clear_symtab_users.
3179 Tue Feb 27 00:04:46 1996 Stu Grossman (grossman@critters.cygnus.com)
3181 * remote-e7000.c (e7000_open): Delete all breakpoints when
3182 connecting to e7000. Change connect message to allow use of
3183 monitor.exp in test suite.
3184 * (e7000_load): Print transfer rate of download.
3185 * symfile.c (generic_load): Print transfer rate of download.
3187 Sun Feb 25 13:58:33 1996 Stan Shebs <shebs@andros.cygnus.com>
3189 * configure.in (mips*-*-vxworks*): New config.
3190 * configure: Regenerated.
3192 * config/mips/vxmips.mt, config/mips/tm-vxmips.h: New files.
3193 * remote-vxmips.c (vx_convert_to_virtual, vx_convert_from_virtual):
3196 Sat Feb 24 12:30:28 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3198 * partial-stab.h (case N_FUN): Function symbols generated
3199 by SPARCworks cc have a meaningless zero value, do not update
3200 pst->textlow if the function symbol value is zero.
3202 * stabsread.c (define_symbol): Initialize SYMBOL_TYPE field
3203 for function prototype declaration symbols.
3205 Fri Feb 23 22:33:04 1996 Stu Grossman (grossman@critters.cygnus.com)
3207 * remote-e7000.c (e7000_load): New routine to download via the
3209 * (e7000_wait): Don't backup PC when we hit a breakpoint.
3210 Apparantly new sh2 pods get this right...
3211 * (e7000_ops): Add call to e7000_load.
3213 Thu Feb 22 00:52:42 1996 J.T. Conklin <jtc@rtl.cygnus.com>
3215 * config/m68k/{nbsd.mh,nbsd.mt,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h},
3216 m68knbsd-nat.c: New files, support for NetBSD/m68k.
3218 * configure.in (m68k-*-netbsd*): New config.
3219 * configure: Regenerated.
3221 Wed Feb 21 19:00:21 1996 Fred Fish <fnf@cygnus.com>
3223 * standalone.c (open, _initialize_standalone): Fix obvious typos
3224 reported by Martin Pool <martin@citr.uq.oz.au>.
3226 Wed Feb 21 14:24:04 1996 Jeffrey A Law (law@cygnus.com)
3228 * solib.c (solib_create_inferior_hook): Fix thinko.
3230 Tue Feb 20 23:59:19 1996 Jeffrey A Law (law@cygnus.com)
3232 * solib.c (solib_break_names): Define for Solaris and Linux.
3233 (enable_break): For SVR4 systems, first try to use the debugger
3234 interfaces in the dynamic linker to track shared library events
3235 as they happen, then fall back to BKPT_AT_SYMBOL code. Convert
3236 BKPT_AT_SYMBOL code to use shared library event breakpoints.
3237 (solib_create_inferior_hook): Simplify BKPT_AT_SYMBOL code,
3238 it no longer needs to restart/wait on the inferior.
3239 * symfile.c (find_lowest_section): No longer static.
3240 * symfile.h (find_lowest_section): Corresponding changes.
3242 Tue Feb 20 18:54:08 1996 Fred Fish <fnf@cygnus.com>
3244 * valops.c (COERCE_FLOAT_TO_DOUBLE): Define default value.
3245 (value_arg_coerce): Use COERCE_FLOAT_TO_DOUBLE.
3246 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Define to 1.
3247 * config/mips/tm-mips.h: Ditto.
3248 * config/pa/tm-hppa.h: Ditto.
3249 * config/rs6000/tm-rs6000.h: Ditto.
3250 * config/sparc/tm-sparc.h: Ditto.
3252 Tue Feb 20 17:32:05 1996 J.T. Conklin <jtc@rtl.cygnus.com>
3254 * config/{i386,ns32k}/nbsd.mh (NATDEPFILES): Remove core-aout.o.
3256 * config/nm-nbsd.h (FETCH_INFERIOR_REGISTERS): Defined.
3257 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
3258 #ifdef'd out definitions --- Causes serious gdb failures on
3259 the i386. Need to investigate further before enabling.
3261 * i386b-nat.c (fetch_inferior_registers, store_inferior_registers,
3262 fetch_core_registers): New functions. These functions are defined
3263 if FETCH_INFERIOR_REGISTERS is set. Registers are fetched/stored
3264 with ptrace PT_GETREGS/PT_SETREGS.
3266 Tue Feb 20 16:55:06 1996 Stu Grossman (grossman@critters.cygnus.com)
3268 * findvar.c (extract_floating store_floating): Replace `long
3269 double' with `DOUBLEST'.
3271 Mon Feb 19 15:25:51 1996 J.T. Conklin <jtc@rtl.cygnus.com>
3273 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
3276 Mon Feb 19 10:32:05 1996 Jeffrey A Law (law@cygnus.com)
3278 * symtab.h (looup_minimal_symbol_solib_trampoline): Declare.
3280 * breakpoint.h (remove_solib_event_breakpoints): Declare.
3281 * breakpoint.c (remove_solib_event_breakpoints): New function.
3282 * somsolib.c (solib_create_inferior_hook): Remove all solib event
3283 breakpoints before inserting any new ones. Use a solib event
3284 breakpoint for the breakpoint at "_start".
3285 Remove extraneous "\n" from calls to warning.
3287 * breakpoint.c (breakpoint_1): Add missing "sigtramp" to bptypes
3290 Mon Feb 19 01:09:32 1996 Doug Evans <dje@cygnus.com>
3292 * dwarfread.c (add_partial_symbol): Use ADD_PSYMBOL_ADDR_TO_LIST
3293 for CORE_ADDR values.
3294 (new_symbol): Use SYMBOL_VALUE_ADDRESS for CORE_ADDR values.
3295 * symfile.h (add_psymbol_{,addr}to_list): Add prototypes.
3297 Sun Feb 18 14:37:13 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3299 * mipsread.c (mipscoff_symfile_read): Unconditionally add
3300 alpha coff dynamic symbols for all symbol files. Makes skipping
3301 over the trampoline code work when stepping from a function in a
3302 shared library into a function in a different shared library.
3304 Sun Feb 18 09:27:10 1996 Stu Grossman (grossman@cygnus.com)
3306 * config/sparc/tm-sparc.h: Define PS_FLAG_CARRY. Define
3307 RETURN_VALUE_ON_STACK to return long doubles on the stack.
3309 Sat Feb 17 16:33:11 1996 Fred Fish <fnf@cygnus.com>
3311 * Makefile.in (ch-exp.o): Add dependencies.
3312 (various): Add gdb_string.h to dependencies that need it.
3314 Sat Feb 17 08:57:50 1996 Fred Fish <fnf@cygnus.com>
3316 * symmisc.c (print_symbol_bcache_statistics): Update description for
3317 printing byte cache statistics.
3319 Thu Feb 16 16:02:03 1996 Stu Grossman (grossman@cygnus.com)
3321 * Add native support for long double data type.
3322 * c-exp.y (%union): Change dval to typed_val_float. Use DOUBLEST
3323 to store actual data. Change types of INT and FLOAT tokens to
3324 typed_val_int and typed_val_float respectively. Create new token
3325 DOUBLE_KEYWORD to specify the string `double'. Make production
3326 for FLOAT use type determined by parse_number. Add production for
3327 "long double" data type.
3328 * (parse_number): Use sscanf to parse numbers as float, double or
3329 long double depending upon the type of typed_val_float.dval. Also
3330 allow user to specify `f' or `l' suffix to explicitly specify
3331 float or long double constants. Change typed_val to
3333 * (yylex): Change typed_val to typed_val_int. Also, scan for
3335 * coffread.c (decode_base_type): Add support for T_LNGDBL basic
3337 * configure, configure.in: Add check for long double support in
3339 * defs.h: Define DOUBLEST appropriatly depending on whether
3340 HAVE_LONG_DOUBLE (from autoconf) is defined. Also, fix prototypes
3341 for functions that handle this type.
3342 * expression.h (union exp_element): doubleconst is now type
3344 * m2-exp.y f-exp.y (%union): dval becomes type DOUBLEST.
3345 * findvar.c (extract_floating): Make return value be DOUBLEST.
3346 Also, add support for numbers with size of long double.
3347 * (store_floating): Arg `val' is now type DOUBLEST. Handle all
3349 * parser-defs.h parse.c (write_exp_elt_dblcst): Arg expelt is now
3351 * valarith.c (value_binop): Change temp variables v1, v2 and v to
3352 type DOUBLEST. Coerce type of result to long double if either op
3354 * valops.c (value_arg_coerce): If argument type is bigger than
3355 double, coerce to long double.
3356 * (call_function_by_hand): If REG_STRUCT_HAS_ADDR is defined, and
3357 arg type is float and > 8 bytes, then use pointer-to-object
3358 calling conventions.
3359 * valprint.c (print_floating): Arg doub is now type DOUBLEST.
3360 Use appropriate format and precision to print out floating point
3362 * value.h: Fixup prototypes for value_as_double,
3363 value_from_double, and unpack_double to use DOUBLEST.
3364 * values.c (record_latest_value): Remove check for invalid
3365 floats. Allow history to store them so that people may examine
3366 them in hex if they want.
3367 * (value_as_double unpack_double): Change return value to DOUBLEST.
3368 * (value_from_double): Arg `num' is now DOUBLEST.
3369 * (using_struct_return): Use RETURN_VALUE_ON_STACK macro (target
3370 specific) to expect certain types to always be returned on the stack.
3372 Fri Feb 16 14:00:54 1996 Fred Fish <fnf@cygnus.com>
3374 * bcache.c, bcache.h: New files to implement a byte cache.
3375 * Makefile.in (SFILES): Add bcache.c.
3376 (symtab_h): Add bcache.h.
3377 (HFILES_NO_SRCDIR): add bcache.h
3378 (COMMON_OBJS): Add bcache.o
3379 (bcache.o): New target.
3380 * dbxread.c (start_psymtab): Make global_syms & static_syms
3381 type "partial_symbol **".
3382 * hpread.c (hpread_start_symtab): Ditto.
3383 * os9kread.c (os9k_start_psymtab): Ditto.
3384 * stabsread.h (start_psymtab): Ditto.
3385 * {symfile.c, symfile.h} (start_psymtab_common): Ditto.
3386 * maint.c (maintenance_print_statistics): Call
3387 print_symbol_bcache_statistics.
3388 * objfiles.c (allocate_objfile): Initialize psymbol bcache malloc
3390 * solib.c (allocate_rt_common_objfile): Ditto.
3391 * symfile.c (reread_symbols): Ditto.
3392 (free_objfile): Free psymbol bcache when objfile is freed.
3393 (objfile_relocate): Use new indirect psymbol pointers.
3394 * objfiles.h (struct objfile): Add psymbol cache.
3395 * symfile.c (compare_psymbols): Now passed pointers to pointers to
3397 (reread_symbols): Free psymbol bcache when freeing other objfile
3399 (add_psymbol_to_list, add_psymbol_addr_to_list): Initialize new
3400 psymbol using the psymbol bcache.
3401 (init_psymbol_list): Psymbol lists now contain pointers rather than
3402 the actual psymbols.
3403 * symfile.h (psymbol_allocation_list): Psymbol lists now dynamically
3404 grown arrays of pointers.
3405 (ADD_PSYMBOL_VT_TO_LIST): Initialize new symbol using the psymbol
3407 * symmisc.c (print_partial_symbols): Now takes pointer to pointer
3409 (print_symbol_bcache_statistics): New function to print per objfile
3411 (print_partial_symbol, print_partial_symbols,
3412 maintenance_check_symtabs, extend_psymbol_list):
3413 Account for change to pointer to pointer to partial symbol.
3414 * symtab.c (find_pc_psymbol, lookup_partial_symbol, decode_line_2,
3415 make_symbol_completion_list):
3416 Account for change to pointer to pointer to partial symbol.
3417 * symtab.h (bcache.h): Include.
3418 * xcoffread.c (xcoff_start_psymtab): Make global_syms & static_syms
3419 type "partial_symbol **".
3421 Fri Feb 16 10:02:34 1996 Fred Fish <fnf@cygnus.com>
3423 * dwarfread.c (free_utypes): New function.
3424 (read_file_scope): Call free_utypes as cleanup, rather than just
3425 freeing the utypes pointer.
3427 Thu Feb 15 21:40:52 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3429 * demangle.c (is_cplus_marker): New function, checks if a
3430 character is one of the commonly used C++ marker characters.
3431 * defs.h (is_cplus_marker): Add prototype.
3432 * c-typeprint.c (c_type_print_base), ch-lang.c (chill_demangle),
3433 cp-valprint.c (cp_print_class_method), mdebugread.c (parse_symbol),
3434 stabsread.c (define_symbol, read_member_functions, read_struct_fields),
3435 symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P),
3436 values.c (vb_match): Use is_cplus_marker instead of comparison
3439 Thu Feb 15 18:08:13 1996 Fred Fish <fnf@cygnus.com>
3441 * symfile.h (INLINE_ADD_PSYMBOL): Default this to 0 and possibly
3442 delete entirely someday.
3444 Thu Feb 15 15:25:34 1996 Stan Shebs <shebs@andros.cygnus.com>
3446 * mpw-make.sed: Edit out makefile rebuild rule.
3447 (host_alias, target_alias): Comment out instead of deleting.
3448 (@LIBS@): Edit out references.
3450 Tue Feb 13 22:56:46 1996 Fred Fish <fnf@cygnus.com>
3452 * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
3453 Use n_psyms in OBJSTAT, not psyms.
3455 Mon Feb 12 15:59:31 1996 Doug Evans <dje@charmed.cygnus.com>
3457 * configure.in (sparclet-*-aout*): New config.
3458 * configure: Regenerated.
3460 Mon Feb 12 14:17:52 1996 Fred Fish <fnf@cygnus.com>
3462 * somsolib.c (som_solib_add): Use xmalloc rather than bare
3463 unchecked call to malloc.
3464 * remote-mips.c (pmon_load_fast): ditto.
3465 * remote-mm.c (mm_open): ditto.
3466 * hpread.c (hpread_lookup_type): ditto.
3467 * remote-adapt.c (adapt_open): ditto.
3469 Mon Feb 12 13:11:32 1996 Fred Fish <fnf@cygnus.com>
3471 * f-lang.c (allocate_saved_bf_node, allocate_saved_function_node,
3472 allocate_saved_f77_common_node, allocate_common_entry_node,
3473 add_common_block): Use xmalloc rather than malloc, some of which
3475 * gnu-regex.c: At same point as other gdb specific changes
3476 #undef malloc and then #define it to xmalloc.
3477 * ch-exp.c (growbuf_by_size): Use xmalloc/xrealloc rather than
3478 bare unchecked calls to malloc/realloc.
3479 * stabsread.c (dbx_lookup_type): Use xmalloc rather than bare
3480 unchecked call to malloc.
3482 Wed Feb 7 11:31:26 1996 Stu Grossman (grossman@cygnus.com)
3484 * symtab.c (gdb_mangle_name): Change opname var to be const to
3485 match return val of cplus_mangle_name.
3486 * i960-tdep.c: Change arg types of next_insn to match callers.
3488 Wed Feb 7 07:34:24 1996 Fred Fish <fnf@cygnus.com>
3490 * config/i386/linux.mh (XM_CLIBS, GDBSERVER_LIBS): Remove. These
3491 apparently aren't needed in any reasonably recent version of
3494 Tue Feb 6 21:37:03 1996 Per Bothner <bothner@kalessin.cygnus.com>
3496 * stabsread.c (read_range_type): If !self-subrange and language
3497 is Chill, assume a true range. If a true_range is a sub_subrange,
3498 use builtin_type_int for index_type.
3500 Tue Feb 6 18:38:51 1996 J.T. Conklin <jtc@slave.cygnus.com>
3502 * nindy-share/nindy.c (say): Use stdarg.h macros when compiling
3503 with an ANSI compiler.
3505 start-sanitize-gdbtk
3506 Tue Feb 6 16:31:25 1996 Tom Tromey <tromey@creche.cygnus.com>
3508 * gdbtk.tcl (create_file_win): Eliminate text widget B1 binding so
3509 double-clicking will work again.
3510 (create_asm_win): Put "break" at end of all B1 bindings.
3511 (create_file_win): Lower "sel" tag, don't raise it.
3512 (ensure_line_visible): New proc.
3513 (update_listing, update_assembly): Use it.
3514 (create_copyright_window): Destroy window on Leave event.
3515 (create_command_window): Put "break" at end of all B2 bindings.
3518 Mon Feb 5 18:24:28 1996 Steve Chamberlain <sac@slash.cygnus.com>
3520 From Michael_Snyder@NeXT.COM (Michael Snyder):
3521 * valops.c (value_arg_coerce): Coerce float to double, unless the
3522 function prototype specifies float.
3524 Mon Feb 5 09:51:55 1996 Tom Tromey <tromey@creche.cygnus.com>
3526 * language.c (set_language_command): Use languages table when
3527 printing available languages.
3529 Sat Feb 3 12:22:05 1996 Fred Fish <fnf@cygnus.com>
3531 Fix problems reported by Hans Verkuil (hans@wyst.hobby.nl):
3532 * command.c (add_cmd): Add missing initialization for enums member.
3533 Reorder members to match structure declaration to make it easier to
3534 tell when one is missing.
3535 * exec.c (exec_file_command): Fix problem where filename in malloc'd
3536 memory is referenced after being freed.
3538 Sat Feb 3 03:26:21 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3540 * dwarfread.c (read_func_scope): Avoid GDB core dumps if
3541 AT_name tag is missing.
3543 * procfs.c (procfs_stopped_by_watchpoint): Fix logic when
3544 FLTWATCH and FLTKWATCH are defined.
3546 * remote.c (remote_read_bytes): Advance memaddr for transfers,
3547 return number of bytes transferred for partial reads.
3549 * top.c (init_signals): Reset SIGTRAP to SIG_DFL.
3551 Fri Feb 2 13:40:50 1996 Steve Chamberlain <sac@slash.cygnus.com>
3553 * win32-nat.c (mappings): Add ppc registers.
3554 (child_resume): Turn off step for ppc.
3556 Thu Feb 1 10:29:31 1996 Steve Chamberlain <sac@slash.cygnus.com>
3558 * config/powerpc/(cygwin32.mh, cygwin32.mt, tm-cygwin32.h,
3559 xm-cygwin32.h): New.
3560 * config/i386/(*win32*): Becomes *cygwin32*.
3561 * configure.in (i[3456]86-*-win32*): Becomes i[3456]86-*-cygwin32.
3562 (powerpcle-*-cygwin32): New.
3563 * configure: Regenerate.
3564 * win32-nat.c (child_create_inferior): Call CreateProcess
3565 with the right program arg.
3567 Thu Feb 1 11:01:10 1996 Jeffrey A Law (law@cygnus.com)
3569 * config/pa/tm-hppa.h (SOFT_FLOAT): Provide a default definition.
3571 Wed Jan 31 19:01:28 1996 Fred Fish <fnf@cygnus.com>
3573 * serial.c: Change fputc/fputs/fprintf to _unfiltered forms.
3575 Wed Jan 31 18:36:27 1996 Stan Shebs <shebs@andros.cygnus.com>
3577 * config/sparc/xm-sun4os4.h (HAVE_TERMIOS): Remove.
3579 * config/sparc/xm-sparc.h (HAVE_WAIT_STRUCT): Remove, never used.
3581 * config/i386/nm-i386mach.h (CHILD_PREPARE_TO_STORE): Move to
3582 here from config/i386/xm-i386mach.h, fix name.
3583 * config/i386/nm-sun386.h: Ditto, from config/i386/xm-sun386.h.
3584 * config/i386/nm-ptx4.h (CHILD_PREPARE_TO_STORE): Move to
3585 here from config/i386/xm-ptx4.h.
3586 * config/i386/nm-ptx4.h: Ditto, from config/i386/xm-ptx.h.
3587 * config/i386/nm-symmetry.h: Ditto, from config/i386/xm-symmetry.h.
3588 * config/m68k/nm-sun3.h: Ditto, from config/m68k/xm-sun3.h.
3589 * config/sparc/nm-nbsd.h: Ditto, from config/sparc/xm-nbsd.h.
3590 * config/sparc/nm-sun4os4: Ditto, from config/sparc/xm-sparc.h.
3592 * config/sparc/nm-sun4sol2.h: New file, renamed from nm-sysv4.h.
3593 (PRSVADDR_BROKEN): Move here from xm-sun4sol2.h.
3594 * config/sparc/sun4sol2.mh (NAT_FILE): Update.
3596 Wed Jan 31 17:20:26 1996 Jeffrey A Law (law@cygnus.com)
3598 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Handle software
3599 floating point correctly.
3600 (STORE_RETURN_VALUE): Likewise.
3601 * config/pa/tm-pro.h (SOFT_FLOAT): define.
3603 Wed Jan 31 13:34:52 1996 Fred Fish <fnf@cygnus.com>
3605 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
3606 Define to what should be reasonable values. However, apparently
3607 a bug in linux mmap prevents mapped symbol tables from working.
3609 Tue Jan 30 18:26:19 1996 Fred Fish <fnf@cygnus.com>
3611 * defs.h (errno.h>: Move #include closer to head of file to solve
3612 obscure problem with systems that declare perror with const arg, in
3613 both errno.h and stdio.h, and const is defined away by intervening
3616 Tue Jan 30 15:41:10 1996 Fred Fish <fnf@cygnus.com>
3618 From Jon Reeves <reeves@zk3.dec.com>:
3619 * i386-stub.c (getpacket): Change fprintf stream from "gdb" to stderr.
3620 (mem_fault_routine): Fix misplaced volatile type qualifier in decl.
3622 Mon Jan 29 19:05:58 1996 Fred Fish <fnf@cygnus.com>
3624 * Makefile.in (diststuff): Make all-doc; diststuff target does not
3625 exist in doc/Makefile.in.
3627 Mon Jan 29 18:44:57 1996 Stan Shebs <shebs@andros.cygnus.com>
3629 * config/m88k/xm-cxux.h (BP_HIT_COUNT): Remove, never used.
3631 Mon Jan 29 00:10:35 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
3633 * ch-valprint.c (calculate_array_length): New function to
3634 determine the length of an array type.
3635 (chill_val_print (case TYPE_CODE_ARRAY)): If the length of an
3636 array type is zero, call calculate_array_length.
3638 * gdbtypes.c (get_discrete_bounds (case TYPE_CODE_ENUM)): The
3639 values may not be sorted. Scan all entries and set the real lower
3642 Sun Jan 28 15:50:42 1996 Fred Fish <fnf@cygnus.com>
3644 * config/xm-linux.h: Move include of solib.h and #define of
3645 SVR4_SHARED_LIBS from here ...
3646 * config/nm-linux.h: ...to here.
3648 Sat Jan 27 10:34:05 1996 Fred Fish <fnf@cygnus.com>
3650 * configure.in (AC_CHECK_HEADERS): Check for sys/procfs.h.
3651 Also check for gregset_t and fpregset_t types.
3652 * configure: Regenerate.
3653 * core-regset.c (sys/procfs.h): Only include if HAVE_SYS_PROCFS_H
3655 (fetch_core_registers): Turn into stub unless both HAVE_GREGSET_T
3656 and HAVE_FPREGSET_T are defined. These changes allow systems
3657 like linux that are migrating to /proc support to use a single
3658 configuration for both new and old versions.
3660 * config/i386/linux.mt: Note that this is now for both a.out and
3662 * config/i386/linux.mh (NATDEPFILES): Add solib.o, core-regset.o,
3664 * config/i386/tm-linux.h (tm-sysv4.h): Include.
3665 * config/i386/xm-linux.h (solib.h): Include
3666 (SVR4_SHARED_LIBS): Define.
3667 * i386v4-nat.c: Only compile if HAVE_SYS_PROCFS_H is defined.
3668 (supply_gregset, fill_gregset): Compile if HAVE_GREGSET_T defined.
3669 (supply_fpregset, fill_fpregset): Compile if HAVE_FPREGSET_T
3672 Fri Jan 26 13:48:14 1996 Stan Shebs <shebs@andros.cygnus.com>
3674 * config/sparc/xm-sparc.h (NEW_SUN_CORE): Remove, never used.
3675 * config/i386/xm-sun386.h: Ditto.
3676 * config/m68k/xm-sun2.h, config/m68k/xm-sun3.h: Ditto.
3678 Thu Jan 25 16:05:53 1996 Tom Tromey <tromey@creche.cygnus.com>
3680 * Makefile.in (INSTALLED_LIBS, CLIBS): Include @LIBS@.
3682 Thu Jan 25 09:22:15 1996 Steve Chamberlain <sac@slash.cygnus.com>
3684 From Greg McGary <gkm@gnu.ai.mit.edu>:
3685 * dcache.c (dcache_peek, dcache_poke): Advance addr for
3688 Thu Jan 25 13:08:51 1996 Doug Evans (dje@cygnus.com)
3690 * infrun.c (normal_stop): Fix test for shared library event.
3692 Thu Jan 25 03:26:38 1996 Doug Evans <dje@charmed.cygnus.com>
3694 * configure.in (sparc64-*-*): Add default host configuration.
3695 start-sanitize-gdbtk
3696 (sparc64-*-solaris2* host): Link statically if GCC used.
3698 (sparc64-*-solaris2*): Add target configuration.
3699 * configure: Regenerated.
3700 * sparc/sp64sol2.mt: New file.
3702 Wed Jan 24 22:31:37 1996 Doug Evans <dje@charmed.cygnus.com>
3704 * Makefile.in (RUNTEST): srcdir renamed to rootsrc.
3706 Wed Jan 24 15:42:24 1996 Tom Tromey <tromey@creche.cygnus.com>
3708 * Makefile.in (lint): Close backquotes.
3710 start-sanitize-gdbtk
3711 Wed Jan 24 15:28:41 1996 Tom Tromey <tromey@creche.cygnus.com>
3713 * gdbtk.tcl, gdbtk.c: Updated copyrights.
3715 * configure.in: Look for -ldl or -ldld when using Tcl 7.5 or
3717 * configure: Rebuilt.
3720 Wed Jan 24 13:19:10 1996 Fred Fish <fnf@cygnus.com>
3722 * NEWS: Make note of new record and replay feature for
3723 remote debug sessions.
3724 * serial.c (gdbcmd.h): Include.
3725 (serial_logfile, serial_logfp, serial_reading, serial_writing):
3726 Define here, for remote debug session logging.
3727 (serial_log_command, serial_logchar, serial_write, serial_readchar):
3728 New functions for remote debug session logging.
3729 (serial_open): Open remote debug session log file when needed.
3730 (serial_close): Close remote debug session log file when needed.
3731 (_initialize_serial): Add set/show commands for name of remote
3732 debug session log file.
3733 * serial.h (serial_readchar): Declare
3734 (SERIAL_READCHAR): Call serial_readchar().
3735 (SERIAL_WRITE): Call serial_write().
3736 (serial_close): Declare as extern.
3737 (serial_logfile, serial_logfp): Declare.
3738 * top.c (execute_command): Declare serial_logfp. Log user command
3739 in remote debug session log if log file is open.
3740 * remote-array.c (array_wait): #ifdef out echo to gdb_stdout.
3741 (array_read_inferior_memory): Rewrite to fix memory overwrite bug.
3742 * remote-array.c (SREC_SIZE): Remove, duplicates define in
3744 * remote-array.c (hexchars, hex2mem): Remove, unused.
3745 * gdbserver/low-linux.c (store_inferior_registers): Remove
3746 unnecessary extern declaration of registers[].
3747 * gdbserver/Makefile.in (all): Add gdbreplay.
3748 * gdbserver/gdbreplay.c: New file.
3749 * gdbserver/README: Give example of recording a remote
3750 debug session with gdb and then replaying it with gdbreplay.
3752 Tue Jan 23 18:02:35 1996 Per Bothner <bothner@kalessin.cygnus.com>
3754 * stabsread.c (rs6000_builtin_type): Make bool type unsigned.
3755 (read_one_struct_field): Support boolean bitfields.
3756 * c-valprint.c (c_val_print): Print booleans properly.
3758 Tue Jan 23 18:54:09 1996 Stan Shebs <shebs@andros.cygnus.com>
3760 * remote-vxsparc.c (vx_convert_to_virtual, vx_convert_from_virtual):
3762 * config/sparc/vxsparc.mt (TDEPFILES): Add remote-vxsparc.o.
3764 Tue Jan 23 14:36:05 1996 Per Bothner <bothner@kalessin.cygnus.com>
3766 * ch-exp.c (parse_tuple): Error if invalid mode.
3768 * value.h (COERCE_ARRAY): Don't coerce enums.
3769 (COERCE_ENUM): Don't COERCE_REF.
3770 (COERCE_NUMBER): New macro (same as COERCE_ARRAY then COERCE_ENUM).
3771 * valops.c (value_assign): Only do COERCE_ARRAY if internalvar (let
3772 value_cast handle it otherwise); do *not* COERCE_ENUM either way.
3773 * valarith.c: Use COERCE_NUMBER instead od COEREC_ARRAY.
3774 Add COERCE_REF before COERCE_ENUM.
3775 * values.c (value_as_long): Simplify.
3777 * valops.c (value_array): Create internalvar if !c_style_arrays.
3779 * language.c (lang_bool_type): Add Fortran support.
3780 * eval.c (OP_BOOL): Use LA_BOOL_TYPE.
3782 Tue Jan 23 13:08:26 1996 Jeffrey A Law (law@cygnus.com)
3784 * symfile.c (auto_solib_add): Renamed from auto_solib_add_at_startup.
3785 All references changed.
3786 * breakpoint.c (bpstat_what): Add shlib_event to the class types.
3787 Update state table. Reformat so that it's still readable.
3788 When we hit the shlib_event breakpoint, set the calss of shlib_event.
3789 (breakpoint_1): Add "shlib events" as a breakpoint type.
3790 Print the shlib_event breakpoint like other breakpoints.
3791 (create_solib_event_breakpoint): New function.
3792 (breakpoint_re_set_one): Handle solib_event breakpoints.
3793 * breakpoint.h (enum bytype): Add bp_shlib_event breakpoint type.
3794 (enum bpstat_what_main_action): Add BPSTAT_WHAT_CHECK_SHLIBS
3796 (create_solib_event_breakpoint): Declare.
3797 * infrun.c (wait_for_inferior): Handle CHECK_SHLIBS bpstat.
3798 (normal_stop): Inform the user when the inferior stoped due
3799 to a shared library event.
3800 (_initialize_infrun): Add new set/show variable "stop-on-solib-events"
3801 to control whether or not gdb continues the inferior or stops it when
3802 a shared library event occurs.
3803 * minsyms.c (lookup_minimal_symbol_solib_trampoline): New function.
3804 * somsolib.c (TODO list): Update.
3805 (som_solib_create_inferior_hook): Arrange for gdb to be notified
3806 when significant shared library events occur.
3807 * hppa-tdep.c (find_unwind_entry): No longer static.
3809 Tue Jan 23 09:00:48 1996 Doug Evans <dje@charmed.cygnus.com>
3811 * printcmd.c (print_insn): Pass fprintf_unfiltered to
3812 INIT_DISASSEMBLE_INFO.
3813 start-sanitize-gdbtk
3814 * gdbtk.c (gdb_disassemble): Likewise.
3817 Mon Jan 22 16:59:40 1996 Stan Shebs <shebs@andros.cygnus.com>
3819 * remote.c (remotebreak): New GDB variable.
3820 (remote_break): New global.
3821 (remote_interrupt): Send a break instead of ^C if remote_break.
3822 * NEWS: Describe the new variable.
3824 Mon Jan 22 16:24:11 1996 Doug Evans <dje@charmed.cygnus.com>
3826 * sparc-tdep.c (_initialize_sparc_tdep): Always use print_insn_sparc.
3828 Fri Jan 19 07:19:38 1996 Fred Fish <fnf@cygnus.com>
3830 * hp300ux-nat.c (getpagesize): Remove unused function
3831 fetch_core_registers.
3832 (hp300ux_core_fns): Remove, is unused.
3833 (_initialize_core_hp300ux): Remove, is unused.
3834 (gdbcore.h): Remove #include, no longer needed.
3836 Fri Jan 19 00:59:53 1996 Jeffrey A Law (law@cygnus.com)
3838 * rs6000-nat.c (exec_one_dummy_insn): Rework to avoid
3839 ptrace bug in aix4.1.3 on the rs6000.
3841 Wed Jan 17 13:22:27 1996 Stan Shebs <shebs@andros.cygnus.com>
3843 * remote-hms.c (hms_ops): Add value for to_thread_alive.
3844 * remote-nindy.c (nindy_ops): Ditto.
3845 * remote-udi.c (udi_ops): Ditto.
3847 Tue Jan 16 18:00:35 1996 James G. Smith <jsmith@cygnus.co.uk>
3849 * remote-mips.c (pmon_opn, pmon_wait, pmon_makeb64, pmon_zeroset,
3850 pmon_checkset, pmon_make_fastrec, pmon_check_ack,
3851 pmon_load_fast): New functions. Support for the PMON monitor world.
3852 (common_open): New function to merge support for different monitors.
3853 (mips_open): Use common_open().
3854 (mips_send_command): New function.
3855 (mips_send_packet): Scan out-of-sequence packets.
3856 (mips_enter_debug, mips_exit_debug): New functions.
3857 (pmon_ops): New target definition structure.
3859 Tue Jan 16 11:22:58 1996 Stu Grossman (grossman@cygnus.com)
3861 * Makefile.in (CLIBS): Add LIBS to allow libraries to be
3862 specified on the make command line (via make LIBS=xxx).
3864 * configure.in (enable-gm): magic.o -> gmagic.o.
3867 start-sanitize-gdbtk
3868 Mon Jan 15 09:58:41 1996 Tom Tromey <tromey@creche.cygnus.com>
3870 * gdbtk.tcl (create_expr_window): Many changes to update GUI.
3871 (add_expr): Changes from create_expr_window.
3872 (create_command_window): Set focus.
3873 (delete_expr): Rewrote.
3874 (expr_update_button): New proc.
3875 (add_expr): Put bindings on FocusIn, FocusOut.
3876 Don't allow .file_popup to be torn off.
3879 Fri Jan 12 21:41:58 1996 Jeffrey A Law (law@cygnus.com)
3881 * symtab.c (find_pc_symtab): Don't lose if OBJF_REORDERED
3882 is set but there are no psymtabs.
3884 Fri Jan 12 15:56:12 1996 Steve Chamberlain <sac@slash.cygnus.com>
3886 * dsrec.c (load_srec): Remove unused variable.
3887 * monitor.c (monitor_expect): Don't expect a ^C to echo.
3888 * serial.c (serial_open): Add parallel interface.
3889 * sh3-rom.c (parallel, parallel_in_use): New.
3890 (sh3_load): If parallel_in_use, download though the
3892 (sh3_open): Open parallel port if specified.
3893 (sh3_close): New function.
3894 (_inititalize_sh3): Add sh3_close hook and documentation.
3895 * monitor.c (monitor_close): Export.
3896 * monitor.h (monitor_close): Add prototype.
3898 Fri Jan 12 13:11:42 1996 Stan Shebs <shebs@andros.cygnus.com>
3900 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
3901 * remote.c (remotetimeout): New GDB variable, use to set the
3902 remote timeout for reading.
3904 start-sanitize-gdbtk
3905 Fri Jan 12 09:36:17 1996 Tom Tromey <tromey@creche.cygnus.com>
3907 * gdbtk.tcl (gdbtk_tcl_query): Swap Yes and No buttons.
3908 (update_listing): Use lassign. Use "see" to scroll. Don't need
3909 screen_top, screen_bot, screen_height.
3910 (update_assembly): Use "see" to scroll.
3911 (textscrollproc): Removed.
3912 (create_file_win): Don't use textscrollproc.
3913 (asmscrollproc): Removed.
3914 (create_asm_window): Don't use asmscrollproc.
3915 (create_asm_win): Ditto.
3916 (screen_height, screen_top, screen_bot): Removed.
3917 (run_editor): New proc.
3918 (build_framework): Use it.
3919 (create_file_win, create_source_window): Don't use textscrollproc.
3920 (create_breakpoints_window): Set -xscrollcommand on canvas.
3921 (not_implemented_yet): Default button is 0.
3922 (delete_char): Don't use tk_textBackspace.
3923 (create_command_window): Allow Tk bindings to fire after deleting
3925 (create_command_window): Make Delete delete left, not right.
3928 Fri Jan 12 07:14:27 1996 Fred Fish <fnf@cygnus.com>
3930 * lynx-nat.c, irix4-nat.c, sparc-nat.c: Include gdbcore.h
3931 to get "struct core_fns" defined.
3932 * Makefile.in (lynx-nat.o, irix4-nat.o, sparc-nat.o):
3933 Are dependent upon gdbcore_h.
3935 Thu Jan 11 23:13:24 1996 Per Bothner <bothner@cygnus.com>
3937 * symfile.c (decrement_reading_symtab): New function.
3938 * symfile.c, symtab.h (currently_reading_symtab): New variable.
3939 * symfile.c (psymtab_to_symtab): Adjust currently_reading_symtab.
3940 * gdbtypes.c (check_typedef): Don't call lookup_symbol if
3941 currently_reading_symtab (since that could infinitely recurse).
3943 Thu Jan 11 17:21:25 1996 Per Bothner <bothner@kalessin.cygnus.com>
3945 * stabsread.c (read_struct_type): Trivial simplification.
3947 * stabsread.c (define-symbol): Use invisible references
3948 for TYPE_CODE_SET and TYPE_CODE_BITSTRING too.
3949 * valops.c (call_function_by_hand): Likewise.
3950 * eval.c (evaluate_subexp_standard): When known, use the formal
3951 parameter type as the expected type when evaluating arg expressions.
3952 * ch-lang.c (evaluate_subexp_chill): Likewise (for MULTI_SUBSCRIPT).
3954 start-sanitize-gdbtk
3955 Thu Jan 11 10:08:14 1996 Tom Tromey <tromey@creche.cygnus.com>
3957 * main.c (main): Disable window interface if --help or --version
3960 * gdbtk.tcl (FSBox): Don't use tk_listboxSingleSelect.
3962 Changes in sync with expect:
3963 * configure.in (ENABLE_GDBTK): Use CY_AC_PATH_TCL and
3965 * aclocal.m4: Replaced with version from expect.
3966 * configure: Regenerated.
3969 Wed Jan 10 16:08:49 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
3971 * configure.in, configure: Recognize rs6000-*-aix4*.
3972 * config/powerpc/xm-aix.h: Reduce to include "xm-aix4.h".
3973 * config/rs6000/aix4.mh (XM_FILE): Point to xm-aix4.h.
3974 * config/rs6000/xm-aix4.h: New file.
3975 * config/xm-aix4.h: New file.
3977 Wed Jan 10 11:25:37 1996 Fred Fish <fnf@cygnus.com>
3979 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
3980 * gdbserver/low-linux.c: New file.
3981 * remote.c (remote_read_bytes): Fix aborts on larger packets.
3983 * config/i386/linux.mh (GDBSERVER_DEPFILES, GDBSERVER_LIBS):
3985 * stabsread.c (define_symbol): If register value is too large,
3986 tell what it is and what max is.
3988 start-sanitize-gdbtk
3989 Wed Jan 10 09:07:22 1996 Tom Tromey <tromey@creche.cygnus.com>
3991 * gdbtk.tcl (gdbtk_tcl_fputs, gdbtk_tcl_fputs_error,
3992 gdbtk_tcl_flush): Use "see", not "yview".
3993 (gdbtk_tcl_query): Use questhead bitmap.
3994 various: Always wrap condition of 'if' in {...}.
3995 (add_breakpoint_frame): Set -value on radiobuttons.
3996 (lassign): New proc.
3997 (add_breakpoint_frame): Use lassign, not series of assignments.
3998 (decr): Made faster.
3999 (interactive_cmd): Use "see", not "yview".
4000 (not_implemented_yet): Use warning bitmap.
4001 (update_expr): Don't allow $expr to be evalled by Tcl.
4002 (create_expr_window): Don't use "focus".
4003 (delete_char, delete_line): Define globally.
4004 (delete_line, delete_char, create_command_window, update_autocmd,
4005 build_framework, create_asm_win, create_file_win): Use "see", not
4007 (create_copyright_window, center_window, bind_widget_after_class):
4009 (FSBox,create_command_window, create_autocmd_window): Binding
4011 (textscrollproc): Define globally.
4012 (build_framework): tk_menuBar no longer needed. Keys Prior, Next,
4013 Home, End, Up, and Down are all defined by Tk.
4014 (apply_filespec): Use error bitmap in dialog.
4015 (files_command): Don't use tk_listboxSingleSelect.
4016 (files_command): Don't use "uniq" to remove duplicates from a
4018 (update_assembly): Use lassign.
4019 (create_asm_win): Removed redundant bindings.
4020 (listing_window_button_1, file_popup_menu): Use tk_popup.
4021 (ButtonRelease-1 binding): Just remove tag from window; rest
4024 * gdbtk.c (gdbtk_query): Use Tcl_Merge to provide quoting.
4025 (call_wrapper): Use Tcl_Eval, not Tcl_VarEval.
4026 (gdbtk_call_command): Ditto.
4029 Tue Jan 9 09:33:53 1996 Jeffrey A Law (law@cygnus.com)
4031 * hpread.c (hpread_build_psymtabs): Finish Jan 4th
4032 enum namespace -> enum_namespace change.
4034 Tue Jan 9 04:44:47 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
4036 * ch-exp.c (parse_primval): In case ARRAY, add missing
4039 Mon Jan 8 13:29:34 1996 Stan Shebs <shebs@andros.cygnus.com>
4041 * remote-mips.c (mips_receive_header): Recognize \012 instead
4042 of \n, but write \n when program sends a \012.
4043 * ser-mac.c (mac_input_buffer): Increase size of buffer.
4045 Mon Jan 8 12:00:40 1996 Jeffrey A Law (law@cygnus.com)
4047 * infptrace.c (initialize_infptrace): Move function out of
4048 #ifdef conditional; put code within the function inside an
4051 * buildsym.c (end_symtab): Remove sort_pending and sort_linevec
4052 arguments. Sorting is now dependent on OBJF_REORDERED. All
4053 callers/references changed.
4054 * dbxread.c (read_ofile_symtab): Correctly determine value for
4055 last_source_start_addr for reordered executables.
4056 (process_one_symbol): Handle N_FUN with no name as an end of
4058 * partial-stab.h (case N_FN, N_TEXT): Don't assume CUR_SYMBOL_VALUE
4059 is the high text address for a psymtab.
4060 (case N_SO): Likewise.
4061 (case N_FUN): Handle N_FUN with no name as an end of function
4063 * minsyms.c (lookup_minimal_symbol_by_pc): Examine all symbols
4064 at the same address rather than a random subset of them.
4065 * coffread.c (coff_symfile_init): Set OBJF_REORDERED.
4066 * elfread.c (elf_symfile_init): Similarly.
4067 * somread.c (som_symfile_init): Similarly.
4068 * xcoffread.c (xcoff_symfile_init): Similarly.
4070 Fri Jan 5 17:46:01 1996 Stu Grossman (grossman@cygnus.com)
4072 * stack.c (print_stack_frame print_frame_info) symmisc.c
4073 (dump_symtab): Change RETURN_MASK_ERROR to RETURN_MASK_ALL so
4074 that catch_errors doesn't get blindsided by QUIT and lose the
4075 cleanup chain. This fixes a problem where ^C while in a
4076 user-defined command sometimes leaves instream NULL and causes a
4077 segfault in command_loop.
4079 Fri Jan 5 13:59:16 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
4081 * configure.in, configure: Add `-ldl -lw' for Solaris linking.
4083 Fri Jan 5 12:02:00 1996 Steve Chamberlain <sac@slash.cygnus.com>
4085 * config/sh/sh.mt, config/powerpc/*.mt, config/pa/hppapro.mt,
4086 config/m68k/monitor.mt, config/h8500/h8500.mt, config/h8300/h8300.mt:
4087 srec.o renamed to dsrec.o.
4089 Thu Jan 4 16:04:54 1996 Stu Grossman (grossman@cygnus.com)
4091 * breakpoint.c (remove_breakpoint): Change error to warning so
4092 that hardware watchpoint removal problems won't leave breakpoint
4093 traps in the target.
4094 start-sanitize-gdbtk
4095 * configure configure.in: Make --enable-gdbtk be the default.
4097 * remote-e7000.c (e7000_insert_breakpoint,
4098 e7000_remove_breakpoint): Use e7000 based breakpoints, not memory
4100 * (e7000_wait): Adjust PC back by two when we see a breakpoint to
4101 compensate for e7000 maladjustment.
4102 * sparcl-tdep.c (sparclite_check_watch_resources): Fix logic bug
4103 which prevented hardware watchpoints from working.
4105 Thu Jan 4 10:44:17 1996 Fred Fish <fnf@cygnus.com>
4107 * infptrace.c (udot_info): New function.
4108 (PT_*): Define each individually if that one is not defined.
4109 * rs6000-nat.c (kernel_u_size): New function
4110 Include <sys/user.h> for "struct user"
4111 * alpha-nat.c (kernel_u_size): New function.
4112 Include <sys/user.h> for "struct user"
4113 * sparc-nat.c (kernel_u_size): New function.
4114 Include <sys/user.h> for "struct user"
4115 * i386b-nat.c (kernel_u_size): New function.
4116 * i386v-nat.c (kernel_u_size): New function.
4117 * config/i386/nm-fbsd.h (KERNEL_U_SIZE): Define.
4118 (kernel_u_size): Declare.
4119 * config/i386/nm-linux.h (KERNEL_U_SIZE): Define.
4120 (kernel_u_size): Declare.
4121 * config/sparc/nm-sun4os4.h (KERNEL_U_SIZE): Define.
4122 (kernel_u_size): Declare.
4123 * config/alpha/nm-osf2.h (KERNEL_U_SIZE): Define.
4124 (kernel_u_size): Declare.
4125 * config/rs6000/nm-rs6000.h (KERNEL_U_SIZE): Define.
4126 (kernel_u_size): Declare.
4128 Thu Jan 4 11:00:01 1996 steve chamberlain <sac@slash.cygnus.com>
4130 * mdebugread.c (mylookup_symbol): enum namespace becomes
4131 enum_namespace type.
4132 * symfile.c (add_psymbol_to_list)
4133 (add_psymbol_addr_to_list): Ditto.
4134 * symtab.c (lookup_partial_symbol): Ditto.
4135 (lookup_symbol): Ditto.
4136 (lookup_block_symbol): Ditto.
4137 * win32-nat.c (handle_load_dll): Use incoming dll base.
4138 (child_wait): Catch DLL load errors.
4139 (create_child_inferior): Translated between paths correctly.
4141 Wed Jan 3 23:13:53 1996 Fred Fish <fnf@cygnus.com>
4143 * i386v4-nat.c (supply_gregset, fill_gregset): Subtract NUM_FREGS
4144 from NUM_REGS to get number of general registers that we care about.
4145 * config/i386/tm-i386.h (REGISTER_BYTES): Define in terms
4146 of number of general regs and number of floating point regs.
4148 Wed Jan 3 19:49:54 1996 steve chamberlain <sac@slash.cygnus.com>
4150 * config/i386/tm-win32.h (IN_SOLIB_CALL_TRAMPOLINE): New.
4151 (SKIP_TRAMPOLINE_CODE): New.
4152 * config/i386/xm-win32.h (CANT_FORK): Deleted.
4153 (SLASH*) Changed to use unix style slash.
4154 * symtab.h (namespace enum): becomes typedef to avoid namespace
4156 * infcmd.c (path_command): Use empty string if PATH name not set.
4157 * i386-tdep.c (skip_trampoline_code): New function.
4158 * srec.c: Renamed dsrec.c to avoid filename collision.
4159 * Makefile.in: Cope with renaming.
4161 Wed Jan 3 13:09:04 1996 Fred Fish <fnf@cygnus.com>
4163 * symmisc.c (print_objfile_statistics): Print memory use statistics
4164 for objfile psymbol, symbol, and type obstacks.
4166 Tue Jan 2 13:41:14 1996 Stan Shebs <shebs@andros.cygnus.com>
4168 * config/mips/nm-irix5.h: Restore.
4169 (TARGET_HAS_HARDWARE_WATCHPOINTS, etc): Define as for Irix 4;
4170 from Lee Iverson <leei@ai.sri.com>.
4171 * config/mips/irix5.mh (NAT_FILE): Use nm-irix5.h.
4172 * config/mips/irix[345].mh (MUNCH_DEFINE): Remove.
4174 For older changes see ChangeLog-95
4180 version-control: never