1 Wed Aug 14 02:03:42 1996 Fred Fish <fnf@rtl.cygnus.com>
3 * Makefile.in (init.c): Generate with prototypes.
5 * config/pa/tm-hppa.h (frame_saved_pc): Add prototype.
6 * config/rs6000/xm-rs6000.h (aix_resizewindow): Ditto.
7 * config/rs6000/tm-rs6000.h (frame_initial_stack_address): Ditto.
8 (pc_load_segment_name): Ditto.
10 (extract_return_value): Ditto.
11 (is_magic_function_pointer): Ditto.
12 (push_dummy_frame): Ditto.
13 (fix_call_dummy): Ditto.
14 (push_arguments): Ditto.
15 (skip_trampoline_code): Ditto.
16 (aix_process_linenos): Ditto.
18 * config/m68k/tm-cisco.h (get_longjmp_target): Add prototype.
19 * config/m68k/tm-es1800.h: Ditto.
20 * config/m68k/tm-vx68.h: Ditto.
21 * config/m68k/tm-sun3.h: Ditto.
22 * config/m68k/tm-m68kv4.h: Ditto.
24 Tue Aug 13 23:04:36 1996 Fred Fish <fnf@cygnus.com>
26 * config/mips/nm-mips.h (get_longjmp_target): Add prototype.
27 * config/mips/nm-irix3.h (get_longjmp_target): Add prototype.
28 * remote-mips.c (mips_read_processor_type): Remove prototype.
29 * mips-tdep.c (gdb_print_insn_mips): Add prototype and make static.
30 * irix5-nat.c (fetch_core_registers): Add prototype.
32 Mon Aug 12 21:23:44 1996 Fred Fish <fnf@cygnus.com>
34 * remote-pa.c (boot_board): Add dummy params to make type compatible
35 for passing to add_com.
36 * scm-exp.c (scm_lreadr): Ensure svalue is not used uninitialized.
37 * buildsym.c (compare_line_numbers): Change function to match
38 prototype and also what qsort expects.
40 Mon Aug 12 19:19:00 1996 Mark Alexander <marka@cygnus.com>
42 * remote.c: Make remote_write_size public.
43 * sh-tdep.c (_initialize_sh_tdep): Set remote_write_size to 300
44 to prevent packet errors with some versions of CMON.
46 Mon Aug 12 16:20:58 1996 Stu Grossman (grossman@critters.cygnus.com)
48 * defs.h: Define CONST_PTR as blank if compiling with Microsoft
50 * c-lang.c c-lang.h ch-lang.c f-lang.c language.c m2-lang.c
51 scm-lang.c: Microsoft C can't hack const pointers. Use CONST_PTR
53 * configure configure.in defs.h: Use AC_C_CONST to figure out if
54 the compiler supports const. Gets rid of some cruft in defs.h.
55 * dwarf2read.c: <string.h> -> "gdb_string.h"
56 * remote-sim.c: Add prototypes. Fix call to gdbsim_kill.
57 * sparcl-tdep.c (download): Add prototypes to write_routine and
60 * mswin/gdbwin.c: Don't include both varargs.h AND stdarg.h. Get
61 rid of varargs.h Include string.h.
62 * (gdbwin_update gdbwin_fputs regs_changed_f bpt_changed_f
63 update): Fix prototypes, fix calls.
64 * (update): Return value for catch_errors.
65 * (run_execute_command togdb_command_from_tty togdb_command):
66 Cleanup catching of errors from calls to execute_command. Also,
67 dup command string to avoid modifying const strings.
68 * (togdb_breakinfo_i_init togdb_breakinfo_i_next): Use 0 instead
69 of NULL when see if b->address isn't set.
70 * (bi_disable_bpt bi_enable_bpt bi_delete_all
71 bi_delete_breakpoint): Add arg to calls to update.
72 * (gui_command): Add prototype.
73 * (mswin_query): Fix prototype.
74 * (_initialize_gdbwin): Dup string to avoid modifying const.
75 * (info_path togdb_get_info_path): Remove const from decls cuz
76 this can't be const (it points at malloc'ed memory).
77 * (togdb_searchpath): Remove const from path. Dup string to
78 avoid modifying const strings.
80 * (gdbwin_list_symbols): Regexp param is const.
81 * Fix lots of refs to psymtabs to deref correct pointers.
82 * (togdb_set_breakpoint_sal): Call set_breakpoint_sal with sal,
84 * mswin/gdbwin.h (togdb_searchpath togdb_get_info_path
85 toget_set_info_path): Fix prototypes to match reality.
86 * mswin/gui.cpp: Define _beginthreadex and _endthreadex routines
87 with proper prototypes.
88 * mswin/iface.cpp (gdbwin_fputs): Define with correct number of args.
89 * mswin/ser-win32s.c: Fix defs of min and max.
90 * mswin/serdll32.c (OpenComm16): Make cbInQueue and cbOutQueue be
92 * (WriteComm16): Change lpBug from LPVOID to LPCSTR.
93 * mswin/serdll32.h: Fix prototypes for OpenComm16 and WriteComm16.
95 Sun Aug 11 20:54:16 1996 Stu Grossman (grossman@critters.cygnus.com)
97 * main.c (main): Make sure command loop is used with cygwin32.
98 * terminal.h: Allow cygwin32 to use termios.h.
101 Fri Aug 9 12:32:53 1996 Tom Tromey <tromey@creche.cygnus.com>
103 * Makefile.in (LIB_INSTALL_DIR): New macro.
104 (TCL): Include @TCL_LD_SEARCH_FLAGS@.
107 Fri Aug 9 12:42:49 1996 Jeffrey A Law (law@cygnus.com)
109 * somread.c (som_symtab_read): Handle secondary definition
110 symbols (aka weak symbols).
112 * config/tm-hppa.h (EXTRACT_RETURN_VALUE): Fix thinko in
115 Thu Aug 8 10:12:36 1996 Stu Grossman (grossman@critters.cygnus.com)
117 * symfile.c (symfile_bfd_open): Change ifdef from __WIN32__ to
120 * somread.c: Rearrange order of includes to fix warnings under
121 hpux-10.10. Also don't include sys/file.h.
123 Wed Aug 7 21:45:52 1996 Stu Grossman (grossman@critters.cygnus.com)
125 * dbxread.c: Don't include param.h or sys/file.h.
126 * (dbx_symfile_read): Determine symfile_relocatable from bfd
127 flags instead of file extension. Also clean up a little bit.
129 Wed Aug 7 17:18:37 1996 Stu Grossman (grossman@critters.cygnus.com)
131 * dwarf2read.c dwarfread.c exec.c infcmd.c infrun.c main.c
132 mdebugread.c os9kread.c source.c top.c utils.c: Don't
133 include param.h or sys/file.h (or unistd.h in some cases).
134 * defs.h exec.c inflow.c remote-array.c remote-e7000.c
135 sparcl-tdep.c terminal.h utils.c: Replace all occurances of
136 __WIN32__, WINGDB, WIN32, etc... with _WIN32.
137 * main.c: Remove #ifndef WINGDB around option processing. Fix
138 bug with passing argc==0 and argv==NULL to getopt.
139 * (main) Remove calls to access() before source_command. Let
140 soure_command handle access errors.
141 * maint.c (maintenance_dump_me): #ifdef out for _WIN32.
142 * symtab.c (operator_chars): Make this global for wingdb.
143 * top.c (disconnect): #ifdef out for _WIN32.
144 * (source_command): If got an error and from_tty, then call print
145 error, else just return quietly.
146 * utils.c (fatal_dump_core): Can't kill ourselves under windows.
148 * (pollquit notice_quit): #ifdef out stuff that doesn't exist
151 Wed Aug 7 09:59:19 1996 Jeffrey A Law (law@cygnus.com)
153 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Tweak for
154 structures > 4 bytes in size.
156 * valops.c (call_function_by_hand): Handle aligning stacks that
158 * config/pa/tm-hppa.h (USE_STRUCT_CONVENTION): Define.
159 (STACK_ALIGN): Define.
160 * hppa-tdep.c (hppa_alignof): Don't demand a minumim two byte
161 alignment on structs/unions.
163 Sun Aug 4 16:22:42 1996 Fred Fish <fnf@cygnus.com>
165 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Define to "int *",
166 which is the documented type under at least AIX 3 and AIX 4.
168 Sat Aug 3 04:02:46 1996 Fred Fish <fnf@cygnus.com>
170 * config/alpha/alpha-osf3.mh (XM_FILE): Change from xm-alpha.h to
172 (MMALLOC_CFLAGS): Define NO_MMCHECK to not install consistency
176 Thu Aug 1 20:35:01 1996 Tom Tromey <tromey@creche.cygnus.com>
178 * gdbtk.c (mainWindow): Deleted.
179 (cleanup_init): Don't destroy main window.
180 (gdbtk_init): Main window now created by Tk_Init.
182 * configure.in: Most X checks now handled automatically by Tk.
183 Use new macros to find Tcl/Tk.
184 * aclocal.m4: New version for new Tcl/Tk; from Don Libes.
185 * config.in, configure: Regenerated.
187 * Makefile.in (TCL, TCL_CFLAGS, TK, TK_CFLAGS, X11_CFLAGS,
188 X11_LDFLAGS, X11_LIBS): Changed for new Tcl and Tk.
191 Thu Aug 1 10:11:34 1996 Fred Fish <fnf@cygnus.com>
193 * config/mips/tm-mips.h (TM_MIPS_H): Enclose file contents in
194 this, define when contents are included.
195 (mips_read_processor_type): Add prototype.
196 * config/mips/xm-mips.h: Remove strdup decl, now in gdb_string.h
197 * mdebugread.c (ecoff_relocate_efi): Add prototype.
198 (fixup_sigtramp): Only needed when TM_MIPS_H is defined.
201 Thu Aug 1 16:12:05 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
203 * Makefile.in (gdbtk.tcl): put in $(datadir), not $(libdir).
206 Wed Jul 31 20:21:24 1996 Fred Fish <fnf@cygnus.com>
208 * rs6000-nat.c (add_vmap): Return 0 to caller rather than random value.
209 (vmap_ldinfo): Ensure got_exec_file is not used uninitialized.
210 (fetch_core_registers): Add prototype.
211 (vmap_symtab): Ditto.
212 (objfile_symbol_add): Ditto.
214 (vmap_ldinfo): Ditto.
217 Tue Jul 30 17:57:46 1996 Stan Shebs <shebs@andros.cygnus.com>
219 * stabsread.c (get_substring): Declare second arg as int.
221 * remote-es.c: Include gdb_string.h after defs.h.
223 Mon Jul 29 21:13:20 1996 Fred Fish <fnf@cygnus.com>
225 * rs6000-tdep.c (push_arguments): Remove unused variable "pc".
226 (branch_dest): Remove unused variable "offset".
227 (pop_dummy_frame): Add prototype and make static.
228 (push_arguments): Guard against using len uninitialized.
229 (push_arguments): Guard against using arg uninitialized.
230 (frame_saved_pc): Remove unused variable "frameless".
231 (free_loadinfo): Ifdef out unused function.
233 * xcoffread.c (compare_lte): Change prototype and function to
234 be correct type for passing to qsort.
235 (add_stab_to_list): Ifdef out unused function and prototype.
236 (compare_lte): Add prototype
237 (arrange_linetable): Ditto.
238 (record_include_begin): Ditto.
239 (record_include_end): Ditto.
240 (process_linenos): Ditto.
241 (xcoff_next_symbol_text): Ditto.
242 (scan_xcoff_symtab): Ditto.
243 (xcoff_initial_scan): Ditto.
245 * mips-tdep.c (mips_read_processor_type): Add parens around
246 bitwise-and operands in comparison; previous expression always
247 evaluated to 0 because of equality comparison of two constants.
249 * rs6000-tdep.c (skip_prologue): Add missing parens around
250 operands of logical-or so that first operand does not bind
251 to previous logical-and.
253 * configure.in: Expand "long long" test to include code that triggers
254 known problem on HPUX with native compiler.
255 (configure): Regenerated.
257 Mon Jul 29 18:12:27 1996 Jeffrey A Law (law@cygnus.com)
259 * somsolib.c (som_solib_create_inferior_hook): Don't
260 warn if __d_pid can't be found.
262 Sun Jul 28 10:46:39 1996 Fred Fish <fnf@cygnus.com>
264 * config/mips/tm-mips.h (struct frame_info): Forward decl.
265 (struct type): Ditto.
266 (struct value): Ditto.
268 * config/mips/tm-mips.h (sigtramp_address): Move extern decl
269 from mips-tdep.c to here.
270 (sigtramp_end): Ditto.
271 (fixup_sigtramp): Ditto.
273 * config/mips/tm-mips.h (init_extra_frame_info): Add prototype.
274 (mips_frame_chain): Ditto.
275 (mips_step_skips_delay): Ditto.
276 (mips_frame_saved_pc): Ditto.
277 (mips_find_saved_regs): Ditto.
278 (mips_frame_num_args): Ditto.
279 (mips_pop_frame): Ditto.
280 (mips_extract_return_value): Ditto.
281 (mips_store_return_value): Ditto.
282 (mips_push_dummy_frame): Ditto.
283 (mips_push_arguments): Ditto.
284 (mips_do_registers_info): Ditto.
285 (ecoff_relocate_efi): Ditto.
286 (ecoff_relocate_efi): Ditto.
287 * irix4-nat.c (fetch_core_registers): Add prototype.
288 * mips-tdep.c (read_next_frame_reg): Add prototype
289 (heuristic_proc_start): Ditto.
290 (heuristic_proc_desc): Ditto.
291 (mips_print_register): Ditto.
292 * config/mips/nm-irix5.h (procfs_set_watchpoint): Add prototype.
293 (procfs_stopped_by_watchpoint): Ditto.
294 * config/mips/nm-irix4.h (procfs_set_watchpoint): Add prototype.
295 (procfs_stopped_by_watchpoint): Ditto.
296 * config/alpha/tm-alpha.h (ecoff_relocate_efi): Add prototype.
297 (struct symbol): Add forward decl for prototype.
299 * breakpoint.c (internal_breakpoint_number): Only needed if
300 GET_LONGJMP_TARGET or SOLIB_ADD is defined.
302 * objfiles.c (ecoff_relocate_efi): Remove prototype.
304 Sat Jul 27 17:47:35 1996 Fred Fish <fnf@cygnus.com>
306 * configure.in: Add test for "long long" support.
307 * configure: Regenerate with autoconf.
308 * acconfig.h: Add CC_HAS_LONG_LONG
309 * config.in: Regenerate with autoheader.
310 * config/mips/tm-mips64.h (FORCE_LONG_LONG): Remove
311 * config/sparc/tm-sp64.h (CC_HAS_LONG_LONG): Remove.
312 * config/mips/tm-vr4300el.h (CC_HAS_LONG_LONG): Remove.
313 * config/mips/tm-vr4300.h (CC_HAS_LONG_LONG): Remove.
314 * config/mips/xm-irix5.h (CC_HAS_LONG_LONG): Remove
315 (PRINTF_HAS_LONG_LONG): Remove.
316 (FORCE_LONG_LONG): Remove.
317 * config/powerpc/xm-aix.h (UINT_MAX): Undef and use gdb's version.
318 * config/convex/xm-convex.h (CC_HAS_LONG_LONG): Remove
319 (PRINTF_HAS_LONG_LONG): Remove.
320 * config/xm-nbsd.h (CC_HAS_LONG_LONG): Remove.
321 (PRINTF_HAS_LONG_LONG): Remove.
322 * config/pa/tm-hppa.h (GET_FIELD): Put parens around
323 subtraction inside shift. Put parens around subtraction
324 in operand of bitwise and.
325 (struct frame_info): Forward declare
327 (frame_saved_regs): Ditto.
328 (struct value): Ditto.
329 (struct type): Ditto.
330 (struct inferior_status): Ditto.
331 (init_extra_frame_info): Add prototype.
332 (skip_prologue): Ditto.
333 (frameless_function_invocation): Ditto.
334 (frame_chain): Ditto.
335 (frame_chain_valid): Ditto.
336 (saved_pc_after_call): Ditto.
337 (hppa_fix_call_dummy): Ditto.
338 (hppa_push_arguments): Ditto.
339 (pa_do_registers_info): Ditto.
340 (in_solib_call_trampoline): Ditto.
341 (in_solib_return_trampoline): Ditto.
342 (push_dummy_frame): Ditto.
343 * convex-tdep.c (decout): Use print_longest rather than
345 * defs.h: Remove use of FORCE_LONG_LONG and __GNUC__ to set
347 (INT_MIN): Fix so it works correctly when assigned to a long long.
348 * valprint.c (longest_to_int): Rewrite to remove dependence
349 on INT_MIN and INT_MAX.
350 (print_longest): Rewrite the code that falls back to synthesized
351 hex output when LONGEST value is not representable as in a long and
352 printf doesn't support printing long longs.
353 * ch-valprint.c (chill_val_print): Cast 2nd arg of
354 chill_print_type_scalar to LONGEST.
355 chill_print_type_scalar): Make static and add prototype.
356 * hppa-tdep.c (get_field): Ifdef out unused function.
359 (extract_5_store): Ditto.
363 (extract_14): Convert to static and add prototype.
368 (extract_5r_store): Ditto.
369 (extract_5R_store): Ditto.
370 (extract_5_load): Ditto.
371 (find_proc_framesize): Ditto.
372 (find_dummy_frame_regs): Ditto.
373 (sign_extend): Ditto.
374 (find_unwind_entry): Add prototype.
375 (find_return_regnum): Ditto.
376 (unwind_command): Ditto.
377 (find_dummy_frame_regs): Add parens around subtraction in operand
379 (skip_prologue): Add parens around operands of logical-and inside
380 operand of logical-or.
381 (sign_extend): Add parens around operands of subtraction inside
383 (low_sign_extend): Ditto.
384 * top.c (filename_completer): Convert old style decl of
385 filename_completion_function into prototype.
386 * f-lang.c (patch_common_entries): Ifdef out unused function.
387 * stabsread.c (read_cfront_baseclasses): Remove unused local
388 variable "msg_noterm".
389 (resolve_cfront_continuation): Remove unused local variable "fip".
390 (read_type): Remove unused variable xtypenums.
391 (read_cfront_static_fields): Remove unused variable "i".
392 (read_cfront_static_fields): Remove unused variable "nfields".
393 (read_cfront_member_functions): Add missing comment terminator.
394 (read_cfront_static_fields): Return 1 rather than random value.
395 (read_cfront_baseclasses): Ditto.
396 (read_cfront_baseclasses): Ditto.
397 (read_cfront_baseclasses): Ditto.
398 * somsolib.c (som_solib_create_inferior_hook): Remove unused
400 (som_solib_create_inferior_hook): Remove unused variable
402 (language.h): Add for needed prototypes.
403 (som_solib_sharedlibrary_command): Add prototype.
404 * hpread.c: (hpread_read_array_type): Add prototype.
405 * somread.c (hpread_build_pysmtabs): Add prototype.
406 (hpread_symfile_finish): Ditto.
407 (hpread_symfile_init): Ditto.
408 * hppah-nat.c (fetch_register): Convert old style decl
410 (gdbcore.h): Include for needed prototypes.
411 (fetch_register): Remove unused variable "mess".
412 * remote-pa.c (get_offsets): Ifdef out unused function.
413 (remote_start_remote): Remove unused variable "timeout".
414 (boot_board): Add prototype.
415 (reaad_frame): Add prototype.
416 (getpkt): Remove unused variable "bp".
417 (remote_kill): Add prototype.
418 (remote_mourn): Add prototype.
419 (remote_insert_breakpoint): Add prototype.
420 (remote_remove_breakpoint): Add prototype.
421 * valops.c (value_push): Only use if PUSH_ARGUMENTS is not defined.
422 * infcmd.c (do_registers_info): Only need prototype if
423 DO_REGISTERS_INFO is not defined.
424 (breakpoint_auto_delete_contents): Only need if
425 CALL_DUMMY_BREAKPOINT_OFFSET is defined.
427 Sat Jul 27 08:49:49 1996 Fred Fish <fnf@cygnus.com>
429 * xcoffread.c (xcoff_end_psymtab): Add textlow_not_set parameter.
430 (END_PSYMTAB): Ditto.
431 (scan_xcoff_symtab): Call xcoff_end_psymtab with textlow_not_set.
433 Fri Jul 26 14:07:37 1996 Ian Lance Taylor <ian@cygnus.com>
435 * printcmd.c (_initialize_printcmd): Initialize
436 tm_print_insn_info.flavour.
438 * gdbtk.c (gdb_disassemble): Initialize di.flavour.
441 Thu Jul 25 19:41:31 1996 Fred Fish <fnf@cygnus.com>
443 * Makefile.in (scm-valprint.o): Depends upon gdbcore_h.
446 (i386ly-tdep.o): Ditto.
447 (i960-tdep.o): Ditto.
448 (m68k-tdep.o): Ditto.
449 (nindy-tdep.o): Ditto.
453 (m68k-tdep.o): Depends upon value_h and gdb_string.h
454 (m2-valprint.o): Depends upon m2-lang.h.
455 (sparc-tdep.o): Depends upon gdb_string.h
456 (valprint.o): Depends upon valprint.h
458 * remote-e7000.c (notice_quit): Remove prototype.
459 * top.c (initialize_targets): Remove prototype, now in target.h.
460 * stabsread.c (resolve_cfront_continuation): Remove prototype.
461 * dbxread.c (resolve_cfront_continuation): Remove prototype.
462 * symfile.h (set_demangling_style): Remove prototype.
463 * config/tm-sysv4.h (in_plt_section): Remove prototype, in objfiles.h.
464 * config/sparc/tm-sparc.h (single_step): Remove extern decl, now in
466 * config/arc/tm-arc.h (one_stepped, single_step): Remove extern decls,
468 * ser-unix.c (hardwire_restore): Remove obsolete prototype.
469 * sparc-tdep.c (single_step): Remove forward decl of isbranch.
470 * scm-lang.c (find_function_in_inferior): Remove prototype.
471 (value_allocate_space_in_inferior): Ditto.
472 * infrun.c (write_pc_pid): Remove prototype, now in inferior.h.
473 * defs.h (strchr): Remove declarations, they are declared in
479 * f-valprint.c (f77_print_array_1): Remove extra arg that was being
480 passed to f77_print_array_1.
481 * gdbtypes.c (add_name): Remove unused variables lenstrlen and lenstr.
482 * scm-exp.c (scm_istr2int): Remove unused variable "j".
483 (scm_parse): Remove unused variable "str".
484 * hp300ux-nat.c (store_inferior_register): Remove unused variable
486 (store_inferior_registers): Remove unnecessary decl "registers".
487 * m68k-tdep.c (m68k_pop_frame): Remove unused variable "fi".
488 * scm-lang.c (scm_get_field): Remove unused variable "val".
489 (scm_lookup_name): Remove unused variable "symval".
490 * objfiles.c (map_to_file): Remove unused local variable "tempfd".
491 * procfs.c (do_attach, do_detach): Remove unused variable "result".
492 (last_resume_pid): Remove unused static variable.
493 * alpha-tdep.c (alpha_linux_sigtramp_offset): Remove unused variable
495 * objfiles.c (map_to_address): Remove unused function.
496 * f-valprint.c (print_max): Remove extraneous extern decl,
498 (calc_f77_array_dims): Remove extraneous prototype, in f-lang.h.
499 * ch-exp.c (write_lower_upper_value): Remove prototype for
502 * gdbtypes.c (cfront_mangle_name): #ifdef out unused function.
503 * ch-exp.c (parse_mode_call): Ditto.
504 * f-valprint.c (there_is_a_visible_common_named): Ditto.
505 * f-lang.c (clear_function_list): Ditto.
506 (get_bf_for_fcn): Ditto.
507 (clear_bf_list): Ditto.
508 (add_common_block): Ditto.
509 (patch_all_commons_by_name): Ditto.
510 (find_first_common_named): Ditto.
511 (add_common_entry): Ditto.
512 (allocate_saved_function_node): Ditto.
513 (allocate_saved_bf_node): Ditto.
514 (allocate_common_entry_node): Ditto.
515 (allocate_saved_f77_common_node): Ditto.
517 * arm-tdep.c (gdbcore.h): Include for necessary prototypes.
518 * dcache.c (gdbcore.h): Ditto.
519 * i386ly-tdep.c (gdbcore.h): Ditto.
520 * i960-tdep.c (gdbcore.h): Ditto.
521 * m2-valprint.c (m2-lang.h): Ditto.
522 * m68k-tdep.c (gdbcore.h): Ditto.
524 (gdb_string.h): Ditto.
525 * nindy-tdep.c (gdbcore.h): Ditto.
526 * scm-lang.c (gdbcore.h): Ditto.
527 * scm-valprint.c (gdbcore.h): Ditto.
528 * w65-tdep.c (gdbcore.h): Ditto.
529 * z8k-tdep.c (gdbcore.h): Ditto.
530 * sparc-tdep.c (gdb_string.h): Include.
531 * valprint.c (valprint.h): Include.
533 * config/xm-lynx.h: Remove part of comment about INT_MIN
534 redefined warnings from defs.h, since INT_MIN define in
535 defs.h is now protected by #ifndef INT_MIN.
536 * config/i386/xm-i386bsd.h: Ditto.
537 * config/m68k/xm-hp300bsd.h: Ditto.
538 * config/m68k/xm-news.h: Ditto.
540 * config/pa/xm-hppah.h (INT_MIN): Remove bogus INT_MIN
541 definition as 0x80000000. The macro in defs.h is better.
542 * config/i386/xm-i386m3.h (INT_MIN): Ditto.
543 * config/i386/xm-i386mach.h (INT_MIN): Ditto.
544 * config/ns32k/xm-ns32km3.h (INT_MIN): Ditto.
545 * config/pa/xm-hppab.h: Ditto.
547 * core-aout.c (fetch_core_registers): Add prototype.
548 * hp300ux-nat.c (fetch_inferior_register): Ditto.
549 (store_inferior_register_1): Ditto.
550 (store_inferior_register): Ditto.
551 * config/m68k/tm-m68k.h (find_saved_regs): Ditto.
552 *scm-valprint.c (c_val_print): Ditto.
553 * procfs.c (add_fd): Ditto.
556 (sigcodename): Ditto.
557 (sigcodedesc): Ditto.
558 (procfs_kill_inferior): Ditto.
559 (procfs_xfer_memory): Ditto.
560 (procfs_store_registers): Ditto.
561 (create_procinfo): Ditto.
562 (procfs_init_inferior): Ditto.
563 (proc_set_exec_trap): Ditto.
564 (procfs_attach): Ditto.
565 (procfs_detach): Ditto.
566 (procfs_prepare_to_store): Ditto.
567 (procfs_files_info): Ditto.
568 (procfs_open): Ditto.
569 (procfs_wait): Ditto.
570 (procfs_fetch_registers): Ditto.
571 (procfs_mourn_inferior): Ditto.
572 (procfs_can_run): Ditto.
573 (procfs_thread_alive): Ditto.
574 (procfs_stop): Ditto.
575 * alpha-nat.c (fetch_core_registers): Ditto.
576 * config/alpha/tm-alpha.h (alpha_osf_skip_sigtramp_frame): Ditto.
577 * objfiles.c (ecoff_relocate_efi): Ditto.
578 * inflow.c (pass_signal): Ditto.
579 (handle_sigio): Ditto.
580 * annotate.c (breakpoint_changed): Ditto.
581 * callback.c (wrap): Ditto.
584 * utils.c (malloc_botch): Ditto.
585 (fputs_maybe_filtered): Ditto.
586 (vfprintf_maybe_filtered): Ditto.
587 * defs.h (notice_quit): Ditto.
588 * defs.h (xmalloc, xrealloc): Ditto.
589 * top.c (stop_sig): Ditto.
590 (init_signals): Ditto.
591 (user_defined_command): Ditto.
592 (source_cleanup_lines): Ditto.
593 (dont_repeat_command): Ditto.
594 (serial_log_command): Ditto.
596 * target.h (initialize_targets): Ditto.
597 * os9kread.c (read_minimal_symbols): Ditto.
598 * mdebugread.c (mdebug_psymtab_to_symtab): Ditto.
600 (push_parse_stack): Ditto.
601 (pop_parse_stack): Ditto.
602 (is_pending_symbol): Ditto.
603 (add_pending): Ditto.
604 * serial.c (serial_logchar): Ditto.
605 (serial_interface_lookup): Ditto.
606 * serial.h (serial_log_command): Ditto.
607 * f-valprint.c (info_common_command): Ditto.
608 * gdbtypes.h (print_type_scalar): Ditto.
609 * scm-valprint.c (scm_scmlist_print): Ditto.
611 * scm-lang.c (scm_printstr): Ditto.
613 (evaluate_subexp_scm): Ditto.
614 * scm-exp.c (scm_read_token): Ditto.
615 (scm_skip_ws): Ditto.
616 (scm_lreadparen): Ditto.
617 * m2-lang.c (emit_char): Ditto.
618 (m2_printchar): Ditto.
619 (m2_printstr): Ditto.
620 (m2_create_fundamental_type): Ditto.
621 * f-lang.c (emit_char): Ditto.
622 (f_printchar): Ditto.
624 (f_create_fundamental_type): Ditto.
625 * ch-lang.c (chill_printchar): Ditto.
626 (chill_printstr): Ditto.
627 (chill_create_fundamental_type): Ditto.
628 (value_chill_length): Ditto.
629 (value_chill_card): Ditto.
630 (value_chill_max_min): Ditto.
631 (evaluate_subexp_chill): Ditto.
632 * ch-exp.c (PEEK_TOKEN): Ditto.
633 (peek_token_): Ditto.
634 (forward_token_): Ditto.
635 (parse_case_label): Ditto.
636 (parse_opt_untyped_expr): Ditto.
637 (parse_unary_call): Ditto.
639 (parse_named_record_element): Ditto.
640 (parse_tuple_element): Ditto.
641 (parse_opt_element_list): Ditto.
642 (parse_tuple): Ditto.
643 (parse_primval): Ditto.
644 (parse_operand6): Ditto.
645 (parse_operand5): Ditto.
646 (parse_operand4): Ditto.
647 (parse_operand3): Ditto.
648 (parse_operand2): Ditto.
649 (parse_operand1): Ditto.
650 (parse_operand0): Ditto.
652 (parse_then_alternative): Ditto.
653 (parse_else_alternative): Ditto.
654 (parse_if_expression): Ditto.
655 (parse_untyped_expr): Ditto.
656 (growbuf_by_size): Ditto.
657 (match_simple_name_string): Ditto.
658 (decode_integer_value): Ditto.
659 (decode_integer_literal): Ditto.
660 (match_float_literal): Ditto.
661 (match_float_literal): Ditto.
662 (match_string_literal): Ditto.
663 (match_character_literal): Ditto.
664 (match_integer_literal): Ditto.
665 (match_bitstring_literal): Ditto.
666 (write_lower_upper_value): Ditto.
667 * ch-lang.h (type_lower_upper): Ditto.
668 * c-lang.c (emit_char): Ditto.
669 * dwarfread.c (free_utypes): Ditto.
670 * stabsread.h (resolve_cfront_continuation): Ditto.
671 * stabsread.c (get_substring): Ditto.
672 (read_one_struct_field): Ditto.
673 * stabsread.h (process_later): Ditto.
674 * demangle.c (set_demangling_command): Ditto.
675 * defs.h (set_demangling_style): Ditto.
676 * maint.c (maintenance_info_command): Ditto.
677 (print_section_table): Ditto.
678 (maintenance_info_sections): Ditto.
679 (maintenance_print_command): Ditto.
680 * symtab.h (maintenance_print_statistics): Ditto.
681 * objfiles.h (in_plt_section): Ditto.
682 * objfiles.c (add_to_objfile_sections): Ditto.
683 * bcache.c (hash): Ditto.
684 (lookup_cache): Ditto.
685 * exec.c (bfdsec_to_vmap): Ditto.
687 * f-exp.y (growbuf_by_size, match_string_literal): Ditto.
688 * language.c (unk_lang_printchar): Ditto.
689 (unk_lang_printstr): Ditto.
690 (unk_lang_create_fundamental_type): Ditto.
691 (unk_lang_print_type): Ditto.
692 (unk_lang_val_print): Ditto.
693 (unk_lang_value_print): Ditto.
694 * target.c (update_current_target): Ditto.
695 (debug_to_open): Ditto.
696 (debug_to_close): Ditto.
697 (debug_to_attach): Ditto.
698 (debug_to_detach): Ditto.
699 (debug_to_resume): Ditto.
700 (debug_to_wait): Ditto.
701 (debug_to_fetch_registers): Ditto.
702 (debug_to_store_registers): Ditto.
703 (debug_to_prepare_to_store): Ditto.
704 (debug_to_xfer_memory): Ditto.
705 (debug_to_files_info): Ditto.
706 (debug_to_insert_breakpoint): Ditto.
707 (debug_to_remove_breakpoint): Ditto.
708 (debug_to_terminal_init): Ditto.
709 (debug_to_terminal_inferior): Ditto.
710 (debug_to_terminal_ours_for_output): Ditto.
711 (debug_to_terminal_ours): Ditto.
712 (debug_to_terminal_info): Ditto.
713 (debug_to_kill): Ditto.
714 (debug_to_load): Ditto.
715 (debug_to_lookup_symbol): Ditto.
716 (debug_to_create_inferior): Ditto.
717 (debug_to_mourn_inferior): Ditto.
718 (debug_to_can_run): Ditto.
719 (debug_to_notice_signals): Ditto.
720 (debug_to_thread_alive): Ditto.
721 (debug_to_stop): Ditto.
723 * gdbtk.c (null_routine): Ditto.
724 (gdbtk_flush): Ditto.
725 (gdbtk_fputs): Ditto.
726 (gdbtk_query): Ditto.
727 (gdbtk_readline): Ditto.
728 (gdbtk_readline_end): Ditto.
729 (gdb_get_breakpoint_list): Ditto.
730 (gdb_get_breakpoint_info): Ditto.
731 (breakpoint_notify): Ditto.
732 (gdbtk_create_breakpoint): Ditto.
733 (gdbtk_delete_breakpoint): Ditto.
734 (gdbtk_modify_breakpoint): Ditto.
737 (gdb_sourcelines): Ditto.
738 (map_arg_registers): Ditto.
739 (get_register_name): Ditto.
740 (gdb_regnames): Ditto.
741 (get_register): Ditto.
742 (gdb_fetch_registers): Ditto.
743 (register_changed_p): Ditto.
744 (gdb_changed_register_list): Ditto.
746 (call_wrapper): Ditto.
747 (gdb_listfiles): Ditto.
749 (gdbtk_dis_asm_read_memory): Ditto.
750 (compare_lines): Ditto.
751 (gdb_disassemble): Ditto.
753 (cleanup_init): Ditto.
754 (gdbtk_interactive): Ditto.
757 (gdbtk_call_command): Ditto.
758 (tk_command_loop): Ditto.
761 * breakpoint.h (set_breakpoint_sal): Ditto.
762 * remote-utils.c (usage): Ditto.
763 * remote.c (set_thread): Ditto.
764 (remote_thread_alive): Ditto.
765 (get_offsets): Ditto.
767 (remote_insert_breakpoint): Ditto.
768 (remote_remove_breakpoint): Ditto.
769 * sparc-nat.c (fetch_core_registers): Ditto.
770 * corelow.c (add_to_thread_list): Ditto.
772 * inftarg.c (proc_wait): Ditto.
773 * infptrace.c (udot_info): Ditto.
774 (fetch_register): Ditto.
775 * ser-unix.c (hardwire_noflush_set_tty_state): Ditto.
776 (hardwire_print_tty_state): Ditto.
777 (hardwire_flush_output): Ditto.
778 (hardwire_flush_input): Ditto.
779 (hardwire_send_break): Ditto.
780 (hardwire_setstopbits): Ditto.
781 * ser-tcp.c (tcp_return_0): Ditto.
782 (tcp_noflush_set_tty_state): Ditto.
783 (tcp_print_tty_state): Ditto.
784 * solib.c (match_main): Ditto.
785 * gdbtypes.c (print_bit_vector): Ditto.
786 (print_arg_types): Ditto.
787 (dump_fn_fieldlists): Ditto.
788 (print_cplus_stuff): Ditto.
789 * symfile.h (entry_point_address): Ditto.
790 * symfile.c (decrement_reading_symtab): Ditto.
791 * valops.c (value_arg_coerce): Ditto.
792 * value.h (find_function_in_inferior): Ditto.
793 (value_allocate_space_in_inferior): Ditto.
794 * values.c (vb_match): Ditto.
795 * thread.c (info_thread_command): Ditto.
796 (restore_current_thread): Ditto.
797 (thread_apply_all_command): Ditto.
798 (thread_apply_command): Ditto.
799 * inferior.h (write_pc_pid): Ditto.
800 * infrun.c (delete_breakpoint_current_contents): Ditto.
801 * breakpoint.c (print_it_normal): Ditto.
802 (watchpoint_check): Ditto.
803 (print_it_done): Ditto.
804 (print_it_noop): Ditto.
805 (maintenance_info_breakpoints): Ditto.
806 (create_longjmp_breakpoint): Ditto.
807 (hbreak_command): Ditto.
808 (thbreak_command): Ditto.
809 (watch_commnd_1): Ditto.
810 (rwatch_command): Ditto.
811 (awatch_command): Ditto.
812 (do_enable_breakpoint): Ditto.
813 * ch-valprint.c (chill_val_print_array_elements): Ditto.
814 * eval.c (evaluate_subexp): Ditto.
816 (evaluate_struct_tuple): Ditto.
817 * eval.c (init_array_element): Ditto.
819 * alpha-tdep.c (push_sigtramp_desc): Add prototype and make static.
820 * breakpoint.c (hw_breakpoint_used_count): Ditto.
821 (hw_watchpoint_used_count): Ditto.
822 * findvar.c (write_register_gen): Ditto.
823 (read_register_pid): Ditto.
824 * symtab.c (cplusplus_hint): Ditto.
825 * infcmd.c (breakpoint_auto_delete_contents): Ditto.
826 * ch-valprint.c (chill_print_type_scalar): Ditto.
827 * gdbtypes.c (add_name): Ditto.
828 (add_mangled_type): Ditto.
829 (cfront_mangle_name): Ditto.
830 * sparc-tdep.c (isbranch): Ditto.
831 * inftarg.c (child_stop): Ditto.
832 * win32-nat.c (child_stop): Ditto.
833 * mac-nat.c (child_stop): Ditto.
834 * remote-utils.c (sr_com): Ditto.
835 * dbxread.c (process_now): Ditto.
836 * ch-exp.c (require): Ditto.
837 (check_token): Ditto.
839 (parse_mode_call): Ditto.
840 (parse_mode_or_normal_call): Ditto.
841 * scm-lang.c (scm_lookup_name): Ditto
842 * f-lang.c (allocate_saved_bf_node): Ditto.
843 (allocate_saved_function_node): Ditto.
844 (allocate_saved_f77_common_node): Ditto.
845 (allocate_common_entry_node): Ditto.
846 (add_common_block): Ditto.
847 (add_common_entry): Ditto.
848 (find_first_common_named): Ditto.
849 (patch_common_entries): Ditto.
850 (patch_all_commons_by_name): Ditto.
851 (clear_bf_list): Ditto.
852 (get_bf_for_fcn): Ditto.
853 (clear_function_list): Ditto.
854 * scm-exp.c (scm_istr2int): Ditto.
855 (scm_istring2number): Ditto.
856 * scm-valprint.c (scm_inferior_print): Ditto.
857 * f-typeprint.c (print_equivalent_f77_float_type): Ditto.
858 * f-valprint.c (f77_get_dynamic_length_of_aggregate): Ditto.
859 (f77_create_arrayprint_offset_tbl): Ditto.
860 (f77_print_array_1): Ditto.
861 (f77_print_array): Ditto.
862 (list_all_visible_commons): Ditto.
863 (there_is_a_visible_common_named): Ditto.
864 * mdebugread.c (ecoff_relocate_efi): Ditto.
865 * callback.c (os_close): Ditto.
866 (os_get_errno): Ditto.
871 (os_read_stdin): Ditto.
873 (os_write_stdout): Ditto.
878 (os_shutdown): Ditto.
880 (os_printf_filtered): Ditto.
882 * scm-lang.h (scm_parse): Change old style decl to prototype.
883 * config/alpha/tm-alphalinux.h (alpha_linux_sigtramp_offset): Ditto.
884 * top.c (init_proc): Ditto.
887 * f-lang.c (c_value_print): Ditto.
888 * ch-exp.c (parse_expression): Ditto.
889 (parse_primval): Ditto.
890 (parse_untyped_expr): Ditto.
891 (parse_opt_untyped_expr): Ditto.
893 * config/sparc/tm-sparc.h (sparc_init_extra_frame_info): Ditto.
894 (sparc_frame_saved_pc): Ditto.
895 (sparc_push_dummy_frame): Ditto.
896 (sparc_pop_frame): Ditto.
897 * defs.h (fclose): Ditto.
901 * arc-tdep.c (single_step): Change arg to type "enum target_signal".
902 * rs6000-tdep.c (single_step): Ditto.
903 * sparc-tdep.c (single_step): Ditto.
905 * breakpoint.c (cleanup_executing_breakpoints): Change unused arg type
906 to PTR which is what make_cleanup expects.
907 * utils.c (null_cleanup): Change arg type to PTR.
908 * defs.h (null_cleanup): Change prototype to match actual function.
909 * config/sparc/tm-sparc.h (struct frame_info): Move forward decl.
910 * ch-valprint.c (chill_val_print): Cast 2nd arg of
911 chill_print_type_scalar to LONGEST.
912 * infrun.c (wait_for_inferior): Have empty switch case for
913 BPSTAT_WHAT_CHECK_SHLIBS when SOLIB_ADD is not defined.
914 (stop_on_solib_events): Only needed if SOLIB_ADD is defined.
915 * infcmd.c (attach_command): Only need auto_solib_add if SOLIB_ADD
917 * symfile.c (generic_load): Scan long int using a long int spec,
919 * infptrace.c (udot_info): Only need local variables if KERNEL_U_SIZE
921 (fetch_register): Only need function if FETCH_INFERIOR_REGISTERS is
923 * inflow.c (handle_sigio): Only need prototype when the actual
924 function is compiled in.
925 * valprint.c (longest_to_int): Expand error message to be
926 separate messages for args larger than largest signed int
927 and args smaller than smallest signed int.
928 * valprint.c (print_longest): Fix problems with support for case
929 where compiler supports type "long long" but the runtime doesn't
930 support printing them with "%ll".
931 * scm-valprint.c (scm_scmlist_print, scm_scmval_print): Change
932 return types to void since we don't actually return anything
933 meaningful and callees ignore the values anyway.
934 * procfs.c (modify_inherit_on_fork_flag): Enclose pr_flags in PIOCSET
936 (modify_run_on_last_close_flag): Ditto.
937 (wait_fd): Enclose local variables "num_fds" and "i" LOSING_POLL
939 * alpha-tdep.c (push_sigtramp_desc): Return proc_desc rather than
941 * infrun.c (wait_for_inferior): Ensure random_signal is not used
943 * valops.c (call_function_by_hand): Ensure struct_addr is not used
945 * breakpoint.c (watch_command_1): Ensure prev_frame is not used
947 * utils.c (vfprintf_maybe_filtered): Change second arg from "char *"
950 * gdbtk.c (gdb_fetch_registers): Cast fourth arg to map_arg_registers
951 to proper pointer type, from int.
952 (gdbtk_query): Change first arg to "const char *" from "char *".
954 * infptrace.c (udot_info): Add two dummy args so that the type is
955 correct for passing to add_info.
956 * f-lang.c (saved_fcn): Move decl to head of file so it can be used
958 (saved_bf_symnum): Ditto.
959 (SAVED_FUNCTION): Ditto.
960 (SAVED_FUNCTION_PTR): Ditto.
962 (SAVED_BF_PTR): Ditto.
963 * ch-exp.c (parse_named_record_element): Build error message in
964 temporary buffer before passing it to expect, rather than passing
965 wrong number of args to expect.
966 * demangle.c (set_demangling_style): Call set_demangling_command with
967 correct number of arguments.
968 * inferior.h (terminal_init_inferior_with_pgrp): Change arg type to
969 int to match actual function.
970 (os_isatty): Call fdmap with right number of arguments, was missing
971 the host_callback* arg.
972 * target.c (cleanup_target): Prototype all functions casts.
973 * target.h (one_stepped, single_step): Declare here and convert
974 single_step to prototype.
975 * infrun.c (one_stepped, single_step): Don't declare externs
976 here, they have moved to target.h.
977 * eval.c (init_array_element): Declare previously undeclared
978 last two args as LONGEST.
979 * dcache.c (dcache_xfer_memory): Change xfunc decls to prototype form.
981 * gdbtk.c (register_changed_p): Remove unused local variable "buf".
984 Thu Jul 25 16:11:54 1996 Doug Evans <dje@canuck.cygnus.com>
986 * dsrec.c (load_srec): Protect ANSI style function parms with PARAMS.
988 Mon Jul 22 18:13:27 1996 Stu Grossman (grossman@critters.cygnus.com)
990 * Makefile.in (os9kread.o): Remove dependency on partial-stab.h.
991 * dbxread.c (read_dbx_symtab end_psymtab), partial-stab.h: Don't
992 use partial_symtab->textlow==0 as a flag, as 0 is a legitimate
993 text address. Use a seperate flag (textlow_not_set) instead.
994 This makes stabs in ELF .o files work a lot better.
995 * mdebugread.c xcoffread.c: Define textlow_not_set for
997 * stabsread.h (end_psymtab): Add textlow_not_set arg to prototype.
1000 Sat Jul 20 17:46:40 1996 Fred Fish <fnf@cygnus.com>
1002 * gdbtk.tcl (files_command): Reorder the binding tags for
1003 the listbox widget to avoid referencing the listbox after
1004 the containing widget has been destroyed by the action of
1008 Sat Jul 20 10:41:06 1996 Fred Fish <fnf@cygnus.com>
1010 * dwarf2read.c (struct filenames): Change internal "struct file"
1011 to "struct fileinfo" to avoid conflict with "struct file" in
1012 <sys/file.h> on HPUX and Solaris.
1014 start-sanitize-gdbtk
1015 Sat Jul 20 10:09:28 1996 Fred Fish <fnf@cygnus.com>
1017 * gdbtk.tcl (delete_expr): Unset corresponding element of
1018 expr_update_list when destroying an expression.
1019 (create_expr_window): Initialize expr_num, delete_expr_num,
1020 and expr_update_list here when each new expression window
1021 is created, rather than once at startup.
1024 Fri Jul 19 14:05:57 1996 Stan Shebs <shebs@andros.cygnus.com>
1026 * dwarf2read.c: New file, DWARF 2 reader originally contributed by
1027 Brent Benson, with additions by Gary Funck and Jerry Kreuscher.
1028 * Makefile.in (COMMON_OBS): Add dwarf2read.o.
1029 (SFILES): Add dwarf2read.c.
1030 (dwarf2read.o): Add build rule.
1031 * symfile.h (dwarf2_has_info, dwarf2_build_psymtabs): Declare
1033 * elfread.c (elf_symfile_read): Call them.
1034 (elf_symtab_read) [HARRIS_TARGET]: Skip some special symbols.
1036 Thu Jul 18 01:22:01 1996 Geoffrey Noer <noer@cygnus.com>
1038 * symfile.c (symfile_bfd_open):
1039 * exec.c (exec_file_command): for __GO32__ and __WIN32__ systems,
1040 free the user from having to type the .exe extension.
1042 Wed Jul 17 06:54:50 1996 Mark Alexander <marka@cygnus.com>
1044 * mon960-rom.c: Shorten the mon960_inits string to a single
1045 carriage return; this prevents a hang on connecting immediately
1046 after powerup, when MON960 is attempting autobaud detection.
1048 Tue Jul 16 23:47:04 1996 Mark Alexander <marka@cygnus.com>
1050 * a29k-tdep.c (get_saved_register): Allow PC to be modified
1051 when innermost frame is selected, but not in outer frames.
1053 Tue Jul 16 23:37:25 1996 Stu Grossman (grossman@critters.cygnus.com)
1055 * command.c (do_setshow_command): Don't segfault when showing
1056 var_string and var_string_noescape vars that are NULL.
1058 Mon Jul 15 16:55:48 1996 Doug Evans <dje@canuck.cygnus.com>
1060 * win32-nat.c (handle_load_dll): dos_path_to_unix_path renamed to
1061 cygwin32_conv_to_posix_path.
1062 (child_create_inferior): unix_path_to_dos_path renamed to
1063 cygwin32_conv_to_win32_path. Rewrite code to translate PATH.
1065 Mon Jul 15 16:44:05 1996 Stu Grossman (grossman@critters.cygnus.com)
1067 * defs.h printcmd.c: Create global disassemble_info structure
1069 start-sanitize-gdbtk
1070 * gdbtk.c (gdb_disassemble): Setup di.mach from
1071 tm_print_insn_info.mach, and set endian from TARGET_BYTE_ORDER.
1073 * i386-tdep.c (set_assembly_language_command): set
1074 tm_print_insn_info.mach to the appropriate value for 386 or 8086
1076 * printcmd.c (print_insn): Move init of disassembler_info to
1077 _initialize_printcmd. Set endian for disassembler here.
1078 * sparc-tdep.c: Set tm_print_insn_info.mach as appropriate to
1079 select sparc/sparclite.
1080 * config/sparc/{tm-sparc.h tm-sparclite.h}: Get rid of
1081 TM_PRINT_INSN. Set TM_PRINT_INSN_MACH to
1082 bfd_mach_sparc/bfd_mach_sparc_sparclite.
1084 Fri Jul 12 19:04:32 1996 Fred Fish <fnf@cygnus.com>
1086 * hpread.c (hpread_lookup_type): Use xmmalloc/xmrealloc rather
1087 than xmalloc/xrealloc.
1089 Fri Jul 12 17:59:47 1996 Fred Fish <fnf@ninemoons.com>
1091 * objfiles.c (map_to_file): Error return from mmalloc_findbase is
1092 a NULL pointer, not a -1.
1094 Fri Jul 12 10:16:24 1996 Stu Grossman (grossman@critters.cygnus.com)
1096 * i386-tdep.c (set_assembly_language_command): New routine to
1097 select between i386 and i8086 instruction sets for disassembly.
1098 New command `set assembly-language {i386 i8086}'.
1100 Thu Jul 11 21:13:21 1996 Mark Alexander <marka@cygnus.com>
1102 * monitor.c (monitor_write_memory, monitor_read_memory_single):
1103 Disable use of "long long" memory read/write commands; can't
1104 use them because we hold the values to read/write in an int
1105 variable, and because strtoul fails on values that exceed the
1106 size of a long. This fixes breakpoint problems on MON960.
1108 Thu Jul 11 11:39:31 1996 Fred Fish <fnf@cygnus.com>
1110 * config/m68k/xm-hp300hpux.h (HAVE_MMAP): Remove definition.
1111 * config/pa/xm-hppah.h (HAVE_MMAP): Ditto.
1113 Wed Jul 10 16:54:41 1996 Fred Fish <fnf@cygnus.com>
1115 * Makefile.in (MMALLOC_CFLAGS): Eliminate intermediate MMALLOC_DISABLE
1116 and MMALLOC_CHECK macros, and add comment indicating how host dependent
1117 makefile fragment should modify MMALLOC_CFLAGS to not use mmalloc, or
1118 to use it but to not do heap corruption checking.
1119 * gdbserver/Makefile.in: Ditto.
1120 * utils.c (init_malloc): Replace warning() use with direct call of
1121 fprintf_unfiltered, since current_target has not yet been set and thus
1122 we cannot use warning(). If we try to use mmcheck and it fails,
1123 suggest that this configuration needs NO_MMCHECK or MMCHECK_FORCE
1124 defined. Other small mmalloc related cleanups.
1125 * config/sparc/sun4os4.mh (MMALLOC_CFLAGS): Define MMCHECK_FORCE to 1.
1126 * config/alpha/alpha-osf2.mh (MMALLOC_CFLAGS): Set to -DNO_MMCHECK.
1128 * config/sparc/xm-sun4os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1129 * config/i386/xm-i386v4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1130 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1131 * config/m68k/xm-hp300hpux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1132 * config/m68k/xm-m68kv4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT);
1133 * config/m68k/xm-sun3os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1134 * config/pa/xm-hppah.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1135 * config/sparc/xm-sun4sol2.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1136 Remove obsolete defines.
1138 * config/alpha/alpha-linux.mh (MMALLOC_DISABLE):
1139 * config/alpha/alpha-osf1.mh (MMALLOC_DISABLE):
1140 * config/rs6000/rs6000.mh (MMALLOC_DISABLE):
1141 * config/rs6000/aix4.mh (MMALLOC_DISABLE):
1142 * config/powerpc/aix4.mh (MMALLOC_DISABLE):
1143 * config/powerpc/aix.mh (MMALLOC_DISABLE):
1144 * config/ns32k/ns32km3.mh (MMALLOC_DISABLE):
1145 * config/mips/mipsm3.mh (MMALLOC_DISABLE):
1146 * config/mips/decstation.mh (MMALLOC_DISABLE):
1147 * config/m88k/cxux.mh (MMALLOC_DISABLE):
1148 * config/i386/i386mk.mh (MMALLOC_DISABLE):
1149 * config/i386/i386m3.mh (MMALLOC_DISABLE):
1150 * config/i386/i386gnu.mh (MMALLOC_DISABLE):
1151 Use MMALLOC_CFLAGS instead.
1153 Tue Jul 9 22:41:12 1996 Jeffrey A Law (law@cygnus.com)
1155 * h8300-tdep.c: Remove some outdated comments.
1156 (h8300_skip_prologue): Rework to be more correct for the H8/300H.
1157 Handle stm.l insns for the H8/S.
1158 (examine_prologue): Likewise.
1160 Tue Jul 9 16:48:55 1996 Raymond Jou <rjou@mexican.cygnus.com>
1162 * ser-mac.c (mac_close): Change a typo SetSetBuf to SerSetBuf.
1164 Mon Jul 08 08:50:39 1996 Mark Alexander <marka@cygnus.com>
1166 * mon960-rom.c (mon960_open): Add floating point detection to
1167 prevent hang on non-FPU processors (PR 9775).
1168 (mon960_cmds): Swap setmem.cmdw and setmem.cmdl to fix problem
1169 setting breakpoints and improve loading speed.
1171 Sun Jul 7 14:57:34 1996 Fred Fish <fnf@cygnus.com>
1173 * coffread.c (record_minimal_symbol): Don't presave name string
1174 on symbol_obstack before passing to prim_record_minimal_symbol.
1175 It now handles saving the string itself.
1176 * dbxread.c (read_dbx_dynamic_symtab): Ditto.
1177 * mipsread.c (read_alphacoff_dynamic_symtab): Ditto.
1178 * os9kread.c (record_minimal_symbol): Ditto.
1179 * solib.c (solib_add_common_symbols): Ditto.
1181 * coffread.c (coff_symtab_read): Don't presave name string on
1182 symbol_obstack before passing to prim_record_minimal_symbol_and_info.
1183 It now handles saving the string itself.
1184 * dbxread.c (record_minimal_symbol): Ditto.
1185 * elfread.c (record_minimal_symbol_and_info): Ditto.
1187 * dstread.c (record_minimal_symbol): Remove static function that just
1188 called prim_record_minimal_symbol with the same args (after change to
1189 prim_record_minimal_symbol to do it's own name string saves).
1190 * nlmread.c (record_minimal_symbol): Ditto.
1191 * somread.c (record_minimal_symbol): Ditto.
1193 * hpread.c (hpread_read_enum_type): Save symbol name on symbol obstack.
1194 (hpread_read_function_type): Ditto.
1195 (hpread_process_one_debug_symbol): Ditto.
1196 * mdebugread.c (parse_symbol): Ditto.
1197 (new_symbol): Ditto.
1198 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
1200 * coffread.c (process_coff_symbol): Use obsavestring to save
1201 SYMBOL_NAME, rather than obstack_copy0.
1202 * dstread.c (create_new_symbol): Ditto
1203 * symfile.c (obconcat): Ditto.
1204 * stabsread.c (patch_block_stabs): Ditto.
1205 * xcoffread.c (SYMNAME_ALLOC): Ditto.
1207 * symfile.c (obsavestring): Update comments
1208 * solib.c (solib_add_common_symbols): Remove local var origname.
1210 Wed Jul 3 15:56:08 1996 Stu Grossman (grossman@critters.cygnus.com)
1212 * configure: Re-build with autoconf-2.10.
1214 * sparcl-tdep.c (_initialize_sparc_tdep) config/sparc/tm-sparc.h,
1215 config/sparc/tm-sparclite.h: Initialize tm_print_insn from
1216 TM_PRINT_INSN, which comes from the tm file.
1218 Tue Jul 02 21:41:20 1996 Mark Alexander <marka@cygnus.com>
1220 * coffread.c, dbxread.c, elfread.c, mipsread.c, nlmread.c,
1221 os9kread.c: Replace identical sym_offsets functions with
1222 default_symfile_offsets.
1223 * somread.c (som_symfile_offsets): Use new SIZEOF_SECTION_OFFSETS
1224 macro to allocate section_offsets.
1225 * symfile.c (default_symfile_offsets): New function.
1226 * symfile.h: Declare default_symfile_offsets.
1227 * symtab.h: Define SIZEOF_SECTION_OFFSETS macro to
1228 simplify allocation of section_offsets.
1230 Tue Jun 11 12:02:55 1996 Stu Grossman (grossman@critters.cygnus.com)
1232 * Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
1233 * configure configure.in: Only make sol-thread.o for native.
1234 Also, switch to dlopened libthread_db.so.1.
1235 * sol-thread.c: Switch to using dlopen to get the thread_db
1238 Thu Jun 13 16:53:25 1996 Stu Grossman (grossman@critters.cygnus.com)
1240 * configure, configure.in: Change test for libthread_db to only
1241 work for configs where build/host/target are the same.
1243 Tue Jul 2 15:04:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1245 * config/powerpc/{linux.mh,xm-linux.h}: New files, for Linux on
1248 * configure.in (powerpc-*-linux): Add Linux, System V, and ELF
1250 * configure: Regenerate.
1252 Mon Jul 1 13:00:43 1996 Stan Shebs <shebs@andros.cygnus.com>
1254 From Raymond Jou <rjou@mexican.cygnus.com>:
1255 * mpw-make.sed: Add lines to whack out autoconf hook
1258 Mon Jul 01 11:07:15 1996 Mark Alexander <marka@cygnus.com>
1260 * remote-e7000.c (e7000_stop): New function.
1262 Fri Jun 28 06:34:19 1996 Dawn Perchik <dawn@cygnus.com>
1264 * configure, configure.in: Add target sparclet.
1265 * monitor.h, monitor.c: Added monitor flags MO_NO_ECHO_ON_SETMEM
1266 (don't expect echo on setmem command), MO_RUN_FIRST_TIME (if
1267 command to start process running on target is different from one
1268 to continue execution), MO_HEX_PREFIX (if addresses from monitor
1269 have a "0x" prefix).
1270 * monitor.c, parse.c, sparc-tdep.c: Don't require strings in the
1271 registers array. This is to allow NULLs to be place holders in
1272 the tm-*.h file so that only minor changes are needed when a new
1273 processor is introduced (eg, one without floating point).
1274 * sparc-tdep.c: Conditionally remove dependancies on floating
1276 * sparclet-rom.c, config/sparc/sparclet.mt,
1277 config/sparc/tm-sparclet.h: New files for target sparclet.
1278 * symfile.c (load_command): Add option for 2nd parameter; a load
1279 offset added to the vma of each section.
1281 Fri Jun 28 05:39:19 1996 Dawn Perchik <dawn@cygnus.com>
1283 * main.c (main): Add option "l" for setting remote_timeout.
1285 Fri Jun 28 05:25:18 1996 Dawn Perchik <dawn@cygnus.com>
1287 * remote-e7000.c, remote.c, target.h, top.c: Add set option
1288 "remote_timeout" for setting remote_timeout. Add set option
1289 "use_hard_breakpoints" for setting hardware .vs. memory
1292 Fri Jun 28 04:32:18 1996 Dawn Perchik <dawn@cygnus.com>
1294 * remote-e7000.c (e7000_parse_device): New function.
1295 Add option "tcp_remote" to target command if using
1296 tcp to connect to a remote host which is then connected
1297 via serial port to the e7000 (for exampole, a port master).
1298 (e7000_open): Change to call e7000_parse_device.
1300 Fri Jun 28 03:47:17 1996 Dawn Perchik <dawn@cygnus.com>
1302 * monitor.c (monitor_debug): Fix remotedebug buffering.
1304 Thu Jun 27 18:24:17 1996 Stan Shebs <shebs@andros.cygnus.com>
1306 * config/i386/cygwin32.mh, config/powerpc/cygwin32.mh
1307 (NATDEPFILES): Add a space.
1309 Wed Jun 26 06:05:39 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
1311 * gdbtypes.c (create_array_type): If TYPE_LENGTH (result_type)
1312 is zero, set TYPE_FLAG_TARGET_STUB to force reevaluation of the type.
1314 * ch-exp.c (calculate_array_length): Function removed.
1316 Tue Jun 25 17:41:06 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1318 * remote-e7000.c (e7000_read_inferior_memory_large): New function.
1319 (e7000_xfer_inferior_memory): Call it.
1321 Tue Jun 25 23:14:07 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1323 * gdb/gdbserver/Makefile.in (docdir): Removed.
1325 Tue Jun 25 22:05:38 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1327 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir):
1328 Use autoconf set values.
1330 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
1331 * nlm/Makefile.in (bindir, libdir, datadir, mandir, infodir,
1332 includedir): Use autoconf set values.
1334 * nlm/configure.in (AC_PREREQ): autoconf 2.5 or higher.
1335 * nlm/configure: Rebuilt.
1336 * gdb/gdbserver/Makefile.in (datadir): Set to $(prefix)/share.
1338 Mon Jun 24 09:56:14 1996 Angela Marie Thomas (angela@cygnus.com)
1340 * stabsread.c (read_cfront_member_functions): add type
1342 Sun Jun 23 23:40:48 1996 Doug Evans <dje@canuck.cygnus.com>
1344 * win32-nat.c: #include <unistd.h>.
1345 (unix_paths_to_dos_paths, dos_paths_to_unix_paths): Delete.
1346 (child_create_inferior): Convert only env var PATH to win32 style.
1347 (set_pathstyle_dos): Delete.
1348 (_initialize_inftarg): Delete dos-path-style command.
1350 start-sanitize-gdbtk
1351 Fri Jun 21 11:04:47 1996 Fred Fish <fnf@cygnus.com>
1353 * gdbtk.tcl (create_register_windows): Include missing '$'s.
1354 Add global declarations for various reg_format_* variables.
1355 * gdbtk.tcl (populate_register_window): Make initial window one
1356 line taller to account for new column header line.
1358 Fri Jun 21 09:46:47 1996 Fred Fish <fnf@cygnus.com>
1360 * gdbtk.c (get_register): Support for printing raw formats.
1361 * gdbtk.tcl: Add hint for using debug_interface.
1362 (center_window, add_breakpoint_frame, delete_breakpoint_frame):
1363 Enclose arg in braces for consistency.
1364 (create_registers_window, populate_reg_window, update_registers):
1365 Major rewrite to support displaying multiple formats in the register
1367 (init_reg_info): New function.
1368 (recompute_reg_display_list): Reset reg_display_list, start
1369 register display lines at line 2.
1372 Thu Jun 20 13:42:23 1996 Doug Evans <dje@canuck.cygnus.com>
1374 * configure.in: Revise sol-thread.o test.
1375 * configure: Regenerated.
1377 * source.c (find_source_lines): Reassign size to result of read.
1379 start-sanitize-gdbtk
1380 Thu Jun 20 08:18:59 1996 Fred Fish <fnf@cygnus.com>
1382 * gdbtk.tcl (gdbtk_tcl_readline_begin): Handle backspace to
1383 avoid backing up over prompt. At every input, make sure insert
1384 point is at least after command start, handle control-u to delete
1386 (tclsh): Handle backspace to avoid backing up over prompt. Handle
1387 control-u to delete current input line.
1389 Wed Jun 19 17:23:38 1996 Geoffrey Noer <noer@cygnus.com>
1391 * configure.in: disable gdbtk for *cygwin32* hosted compiles
1392 * configure: regenerated with autoconf 2.8
1395 Tue Jun 18 16:25:54 1996 Jeffrey A. Law <law@rtl.cygnus.com>
1397 * h8300-dep.c (gdb_print_insn_h8300): Handle the H8/S.
1398 (h8300_command): Likewise.
1399 (set_machine): Likewise.
1400 (set_machine_hook): Likewise.
1401 (_initialize_h8300m): Likewise.
1403 * config/h8300/tm-h8300.h (h8300smode): Declare.
1405 Sun Jun 16 15:21:51 1996 Jeffrey A. Law <law@rtl.cygnus.com>
1407 * somsolib.c (som_solib_create_inferior_hook): Handle tracking
1408 of shl_load calls for hpux10.
1410 Thu Jun 13 11:16:10 1996 Tom Tromey <tromey@thepub.cygnus.com>
1412 * config.in: Regenerated.
1413 * acconfig.h (HAVE_THREAD_DB_LIB): Added entry.
1415 * configure: Regenerated.
1416 * aclocal.m4 (CY_AC_PATH_TCLH, CY_AC_PATH_TKH): Use odd names to
1417 avoid name clashes with SunOS headers.
1419 Tue Jun 11 19:52:50 1996 Fred Fish <fnf@cygnus.com>
1421 From Michael Snyder <Michael_Snyder@next.com>:
1422 * bcache.c (print_bcache_statistics): Avoid divide-by-zero
1423 exception if one or more objfile has no symbols, such as when
1424 a dynamic library has been stripped.
1426 Tue Jun 11 12:02:55 1996 Stu Grossman (grossman@critters.cygnus.com)
1428 * Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
1429 * configure configure.in: Only make sol-thread.o for native.
1430 Also, switch to dlopened libthread_db.so.1.
1431 * sol-thread.c: Switch to using dlopen to get the thread_db
1434 Mon Jun 10 14:17:19 1996 Fred Fish <fnf@cygnus.com>
1436 * config/sparc/{xm-sun4sol2.h,xm-sun4os4.h} (MMAP_BASE_ADDRESS):
1437 Change from 0xE0000000 to 0xC0000000.
1439 Thu Jun 6 17:10:32 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1441 * config/powerpc/xm-solaris.h: Initial version of support for
1444 Wed Jun 5 01:52:57 1996 James G. Smith <jsmith@cygnus.co.uk>
1446 * configure.in (configdirs): Force 4100 builds to use 4300 GDB
1448 * configure: Rebuild.
1450 * config/mips/vr4300el.mt (SIM_OBS): Include simulator in
1451 little-endian builds.
1453 Mon Jun 3 11:48:29 1996 Jeffrey A Law (law@cygnus.com)
1455 * inftarg.c (child_thread_alive): Protect declaration with
1456 #ifndef CHILD_THREAD_ALIVE.
1458 * source.c (find_source_lines): Check the time on the symtab's bfd if
1459 it exists, else check the time on the exec_bfd.
1461 Thu May 30 09:43:17 1996 Mark Alexander <marka@cygnus.com>
1463 * dsrec.c (make_srec): Fix calculation of address size
1464 to allow addresses less than 0x100.
1466 Thu May 30 04:24:09 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
1468 * ch-exp.c (ch_lex): In case of LOC_TYPEDEF call calculate_array_length.
1470 Tue May 28 16:15:47 1996 Geoffrey Noer <noer@cygnus.com>
1472 * remote-mips.c: cannot use EINVAL for breakpoint test since
1473 its value varies for different hosts (e.g. go32's is 19, while
1474 sunos is 22). Changed to hardcoded 22 since that is what the
1477 Tue May 28 11:14:58 1996 Tom Tromey <tromey@creche.cygnus.com>
1479 * configure: Regenerated.
1480 * aclocal.m4 (CY_AC_PATH_TCLH): Don't use AC_TRY_RUN.
1481 (CY_AC_PATH_TKH): Don't use AC_TRY_RUN.
1483 Sun May 26 16:56:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
1485 * solib.c (solib_absolute_prefix, solib_search_path): New variables.
1486 (_initialize_solib): Add set/show commands for those variables.
1487 (solib_map_sections): Implement searching using them.
1489 Sun May 26 14:14:49 1996 Fred Fish <fnf@cygnus.com>
1491 Changes from: David Mosberger-Tang <davidm@azstarnet.com>
1493 * NEWS: Add Alpha Linux as a new native configuration.
1495 * mdebugread.c (parse_symbol): When we find a malloc() symbol with
1496 return type VOID, assume no debugging info is available for that
1497 object file and patch the return value into VOID *. Otherwise,
1498 operations requiring an implicit call to malloc() will fail.
1500 * infrun.c (wait_for_inferior): The criterion to detect entering a
1501 sigtramp handler is now: (a) the current pc is inside a sigtramp
1502 handler, (b) the previous pc is not in a sigtramp handler, and (c)
1503 the current stack pointer is "inner" than the old one. Condition
1504 (c) is new to avoid mistaking a return from a signal handler into
1505 sigtramp as a new sigtramp invocation.
1507 * dcache.c (struct dcache_block): Declare addr as CORE_ADDR. An
1508 int may not be big enough to hold an address.
1509 (dcache_hit): Ditto.
1510 (dcache_peek_byte): Fix indentation.
1512 * configure.in (alpha-*-linux*): Add target.
1513 * configure: Rebuild
1515 * config/alpha/tm-alpha.h (PROC_DESC_IS_DYN_SIGTRAMP): New macro.
1516 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1517 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
1518 (SIGCONTEXT_ADDR): Ditto.
1519 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
1521 * config/alpha/alpha-linux.mh: New file.
1522 * config/alpha/alpha-linux.mt: Ditto.
1523 * config/alpha/nm-linux.h: Ditto.
1524 * config/alpha/tm-alphalinux.h: Ditto.
1525 * config/alpha/xm-alphalinux.h: Ditto.
1526 * config/alpha/xm-alphaosf.h: Renamed from xm-alpha.h.
1527 * config/alpha/alpha-osf1.mh (XM_FILE): Change from xm-alpha.h to
1529 * config/alpha/alpha-osf2.mh: Ditto.
1531 * blockframe.c (find_pc_partial_function): Pass PC to
1532 SIGTRAMP_START and SIGTRAMP_END macros for the benefit of systems
1533 that detect sigtramp code via designated code sequences (as is the
1534 case for Linux/Alpha, for example).
1536 * config/i386/tm-i386bsd.h: Change SIGTRAMP_START and SIGTRAMP_END
1537 to ignore new PC argument.
1538 * config/m68k/tm-hp300bsd.h: Ditto.
1539 * config/vax/tm-vax.h: Ditto.
1541 * alpha-tdep.c (alpha_linux_sigtramp_offset): New function.
1542 (alpha_osf_skip_sigtramp_frame): Ditto.
1543 (push_sigtramp_desc): Ditto.
1544 (alpha_find_saved_regs): Use SIGCONTEXT_ADDR macro to extract
1545 sigcontext address from frame.
1546 (alpha_saved_pc_after_call): When in sigtramp, use
1547 alpha_frame_saved_pc() instead of read-register().
1548 (after_prologue): When inside a dynamically generated sigtramp
1549 function, there is no prologue, so return address of first
1551 (alpha_in_prologue): Fix typo in comment.
1552 (find_proc_desc): Use macro DYNAMIC_SIGTRAMP_OFFSET to determine
1553 whether we're inside a dynamicaly generated sigtramp function. If
1554 so, create and push and appropriate procedure descriptor.
1555 (alpha_frame_chain): Use macro FRAME_PAST_SIGTRAMP_FRAME to obtain
1556 the frame past a sigtramp frame (if the current frame is indeed a
1558 (init_extra_frame_info): Don't read next frame register off of
1559 stack-pointer when inside a dynamiccaly generated sigtramp.
1560 (alpha_pop_frame): Also unlink and destroy procedure descriptors
1561 created for dynamically generated sigtramp functions.
1563 * alpha-nat.c: When compiling under Linux, include <asm/reg.h> and
1564 <alpha/ptrace.h> instead of <machine/reg.h>
1566 Tue Jul 2 13:58:10 1996 Miles Bader <miles@gnu.ai.mit.edu>
1568 * gnu-nat.c (inf_validate_task_sc):
1569 Give terminal to gdb while asking question.
1570 (inf_resume): Don't validate the task suspend-count while execing.
1572 Thu Jun 13 11:04:52 1996 Miles Bader <miles@gnu.ai.mit.edu>
1574 * gnu-nat.c (inf_validate_task_sc): Query user before clearing any
1575 additional suspend count.
1576 (S_proc_wait_reply, gnu_attach): Don't call inf_validate_task_sc.
1577 (inf_resume): Call inf_validate_task_sc here.
1578 (gnu_resume): Call inf_update_procs to ensure noticing new threads.
1580 Fri Jun 7 17:00:43 1996 Miles Bader <miles@gnu.ai.mit.edu>
1582 * gnu-nat.c (gnu_create_inferior: attach_to_child): Return PID.
1584 Thu May 23 15:13:56 1996 Jeffrey A Law (law@cygnus.com)
1586 * h8300-tdep.c (IS_PUSH): Refine.
1587 (IS_MOVE_FP, IS_MOV_SP_FP): Accept H8/300H varaints.
1588 (IS_SUB4_SP, IS_SUBL_SP): New macros.
1589 (h8300_skip_prologue): Handle H8/300H prologue code sequences.
1590 (examine_prologue): Handle addresses from 0x010000 to 0xffffff
1591 when in H8/300H mode. Get the return pointer's address correctly
1592 for the H8/300H. Handle H8/300H prolouge code sequences.
1594 * symfile.c (generic_load): Print the starting address
1595 of the file just loaded.
1597 Thu May 23 12:09:52 1996 Stan Shebs <shebs@andros.cygnus.com>
1599 * mpw-make.sed: Edit @THREAD_DB_OBS@ out of makefile.
1601 Tue May 21 11:53:56 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1603 * breakpoint.c (bpstat_do_actions): Avoid endless recursion
1604 if a `source' command is contained in bs->commands.
1606 * infrun.c (wait_for_inferior): Update step_frame_address when
1607 stepping into a new line.
1609 From schwab@issan.informatik.uni-dortmund.de (Andreas Schwab):
1610 * breakpoint.c (breakpoint_1): Add shlib_disabled case to
1613 Mon May 20 22:52:00 1996 Mark Alexander <marka@cygnus.com>
1615 * dsrec.c (load_srec): Add WAITACK parameter, for machines
1616 like EST visionICE that send back an ACK after each S-record.
1617 * monitor.c (monitor_wait_srec_ack): New function.
1618 (monitor_load): Pass monitor_wait_srec_ack to load_srec
1619 if the monitor's MO_SREC_ACK flag is set.
1620 * monitor.h: Define MO_SREC_ACK flag.
1621 * remote-est.c (est_cmds): Add MO_SREC_ACK flag.
1622 * sh3-rom.c (sh3_load): Accomodate change in load_srec prototype.
1623 * srec.h: Add WAITACK parameter to load_srec prototype.
1625 Sun May 19 21:22:00 1996 Rob Savoye <rob@chinadoll>
1627 * config/sparc/sparclite.mt: Add the sparc simulator.
1629 Sun May 19 16:49:37 1996 Fred Fish <fnf@cygnus.com>
1631 * defs.h (read_command_lines, query_hook): Update prototypes.
1632 (readline_begin_hook, readline_hook, readline_end_hook): Declare.
1633 * breakpoint.c (commands_command): Build message in temporary buffer
1634 and pass that, as well as tty control flag, to read_command_lines.
1635 * top.c (readline_begin_hook, readline_hook, readline_end_hook):
1637 (command_loop): Check for non-NULL instream before looping.
1638 (command_line_input): Use readline_hook when appropriate, to get
1639 user input from a GUI window.
1640 (read_next_line): Also build prompt if getting user input from a GUI.
1641 (recurse_read_control_structure): Fix typo in comment.
1642 (read_command_lines): Use passed in prompt and tty flag to decide how
1643 to build message. Use readline_begin_hook when appropriate, to set
1644 up a GUI interaction window. Just return head, whether NULL or not,
1645 after using readline_end_hook to complete GUI interaction.
1646 (define_command, document_command): Build message in a temporary
1647 buffer and pass it to read_command_lines, along with tty flag.
1649 start-sanitize-gdbtk
1650 * gdbtk.c (gdbtk_readline_begin, gdbtk_readline, gdbtk_readline_end):
1652 (tk_command_loop): Set instream to NULL to enable Tk user interaction.
1653 (gdbtk_init): Set readline_begin_hook, readline_hook,
1654 and readline_end_hook.
1655 * gdbtk.tcl (gdbtk_tcl_readline_begin, gdbtk_tcl_readline,
1656 gdbtk_tcl_readline_end): New functions.
1657 (tclsh): Pack scroll bar on right side of window, not left.
1660 Sat May 18 02:43:58 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1662 * blockframe.c (frameless_look_for_prologue):
1663 Add FUNCTION_START_OFFSET only if func_start is non-zero.
1664 * minsyms.c (lookup_minimal_symbol_by_pc): Return NULL if
1665 pc is not in a known section.
1666 * stack.c (print_frame_info): Remove check for fi->pc in known
1667 section, now handled by lookup_minimal_symbol_by_pc.
1669 start-sanitize-gdbtk
1670 Fri May 17 13:54:34 1996 Fred Fish <fnf@cygnus.com>
1672 * gdbtk.tcl (create_command_window): Change a misspelled "get"
1673 to the intended "cget".
1674 (delete_line): Fix so it deletes the current line at the
1678 Fri May 17 13:31:04 1996 Stan Shebs <shebs@andros.cygnus.com>
1680 * sh-stub.c: New file, was config/sh/stub.c.
1682 start-sanitize-gdbtk
1683 Thu May 16 19:20:29 1996 Fred Fish <fnf@fishfood.ninemoons.com>
1685 * gdbtk.tcl (gdb_prompt): Set this early on.
1686 (create_command_window): Use gdb_prompt rather than "(gdb) ".
1687 (gdbtk_tcl_preloop): Proc executed just prior to Tk main loop.
1688 (tclsh): If an evaluation window already exists, just bring it
1689 to the front instead of trying to create another.
1690 * gdbtk.c (tk_command_loop): New function.
1691 (gdbtk_init): Call tk_command_loop rather than Tk_MainLoop.
1693 Thu May 16 16:16:35 1996 Fred Fish <fnf@cygnus.com>
1695 * gdbtk.tcl (evaluate_tcl_command, tclsh): New functions that
1696 implement a tcl evaluation window for gdbtk maintainers to use.
1698 Thu May 16 11:42:58 1996 Tom Tromey <tromey@creche.cygnus.com>
1700 * gdbtk.tcl (files_command): Correctly insert list of files into
1703 * gdbtk.tcl (files_command): listbox command no longer accepts
1706 Wed May 15 16:04:09 1996 Stan Shebs <shebs@andros.cygnus.com>
1708 * gdbtk.tcl (create_command_window): If command window's buffer
1709 is disabled, don't execute any of the key bindings.
1712 Wed May 15 08:25:12 1996 Jeffrey A Law (law@cygnus.com)
1714 * top.c (read_next_line): Fix thinkos. From Donn Seeley.
1716 * coffread.c (coff_symtab_read): Handle C_LABEL symbols like
1718 * h8300-tdep.c (h8300_pop_frame): Reset $sp and $pc correctly.
1719 Flush cached frames just before exiting.
1720 * remote-sim.c (gdbsim_resume): Complain if the program isn't
1722 * config/h8300/tm-h8300.h (BELIEVE_PCC_PROMOTION): Define.
1724 Tue May 14 18:05:16 1996 Stu Grossman (grossman@critters.cygnus.com)
1726 * procfs.c (procfs_thread_alive procfs_stop): Make static.
1727 (procfs_pid_to_str): New routine to print out thread id's in an
1728 intelligible manner.
1729 * sol-thread.c (sol_thread_fetch_registers): Re-order manner in
1730 which supply_register is called to fix bug with writing
1732 * config/sparc/tm-sun4sol2.h: Define default for
1733 target_pid_to_str in case host lacks libthread_db.
1735 Mon May 13 23:53:30 1996 Stu Grossman (grossman@critters.cygnus.com)
1737 * Makefile.in config.in configure configure.in
1738 config/sparc/nm-sun4sol2.h config/sparc/sun4sol2.mh
1739 config/sparc/tm-sun4sol2.h: Use autoconf to config Solaris thread
1740 and pthread support, since pre-2.5 systems don't come with
1743 * procfs.c (info_proc): Use int instead of id_t. Old versions of
1744 Irix don't seem to define this.
1746 start-sanitize-gdbtk
1747 Mon May 13 13:43:25 1996 Fred Fish <fnf@cygnus.com>
1749 * gdbtk.c (tk_command): Catch case where no argument is given
1750 since this will cause the tcl interpreter to dump core.
1753 Mon May 13 17:40:58 1996 Jeffrey A Law (law@cygnus.com)
1755 * top.c (execute_control_command, case while_control): Allow
1756 a while command to be interrupted.
1758 Mon May 13 16:17:36 1996 Stu Grossman (grossman@critters.cygnus.com)
1760 * sol-thread.c: More cleanup, add comments.
1761 (sol_thread_resume): Prevent people from trying to step
1763 (sol_thread_wait sol_thread_fetch_registers
1764 sol_thread_store_registers): Remove unnecessary check for
1765 sol_thread_active. These routines won't get called unless threads
1768 Mon May 13 11:29:37 1996 Stan Shebs <shebs@andros.cygnus.com>
1770 SH3-E support from Allan Tajii <atajii@hmsi.com>:
1771 * sh-tdep.c (sh_reg_names, sh3_reg_names): Add empty names for
1773 (sh3e_reg_names): New register name array.
1774 (sh_processor_type_table): Add sh3e processor type.
1775 * config/sh/tm-sh.h (REGISTER_VIRTUAL_TYPE): Fix test.
1776 (REGISTER_NAMES, NUM_REGS, NUM_REALREGS, etc): Adjust for
1777 full set of registers.
1778 * remote-e7000.c (want_sh3, want_sh3_nopc): New globals.
1779 (e7000_fetch_registers, e7000_wait): Use them.
1780 * sh3-rom.c (sh3_regnames): Add float registers.
1781 (sh3e_cmds, sh3e_ops): New globals.
1782 (sh3e_open): New function.
1783 (_initialize_sh3_rom): Rename from _initialize_sh3, set up
1786 Fri May 10 15:53:38 1996 Stu Grossman (grossman@lisa.cygnus.com)
1788 * sol-thread.c: Cleanup. gcc -Wall fixes. Add prototypes.
1789 Print out messages instead of codes for thread_db errors. Make
1790 access macros for thread and lwp manipulation. Make cleanups to
1791 fixup inferior_pid in case of errors.
1793 Thu May 9 19:06:02 1996 Fred Fish <fnf@cygnus.com>
1795 * aclocal.m4: Remove unused definition of AC_C_CROSS.
1796 * configure.in: Add powerpcle-*-solaris* host and target config
1797 so April 30th change does not get lost next time configure is
1800 Thu May 9 14:13:08 1996 Stu Grossman (grossman@critters.cygnus.com)
1802 * Makefile.in, breakpoint.c, corelow.c, fork-child.c, inflow.c,
1803 infrun.c, mac-nat.c, procfs.c, remote.c, sol-thread.c, thread.c,
1804 win32-nat.c, config/nm-lynx.h: Rename thread.h to gdbthread.h to
1805 avoid conflict with Solaris /usr/include/thread.h.
1807 Thu May 9 12:33:32 1996 Rob Savoye <rob@chinadoll.cygnus.com>
1809 * abug-rom.c: Config file for the older style ABug monitor that
1810 runs on the mvme13x boards.
1811 * config/m68k/monitor.mt: Add abug support for m68k cross
1814 Wed May 8 20:33:24 1996 Fred Fish <fnf@cygnus.com>
1816 * infcmd.c (do_registers_info): Always print the raw floating
1817 point value's bytes in big endian order, so the the leftmost bit
1818 is the most significant.
1819 * breakpoint.c (clear_momentary_breakpoints): Remove dead code
1820 that is referenced nowhere else.
1821 (set_breakpoint): Ditto.
1822 (do_enable_breakpoint): Created from enable_once_breakpoint
1823 with a couple of changes.
1824 (enable_breakpoint): Call do_enable_breakpoint with an appropriate
1825 bpdisp enum value to set disposition of breakpoint.
1826 (enable_once_breakpoint): Ditto.
1827 (enable_delete_breakpoint): Ditto.
1828 * breakpoint.h (clear_momentary_breakpoints): Remove prototype.
1829 * symtab.c (find_pc_line): Improve comments.
1830 start-sanitize-gdbtk
1831 * gdbtk.c: Fix a couple of misspellings.
1833 * xcoffread.c: Ditto.
1835 Tue May 7 18:37:06 1996 Stan Shebs <shebs@andros.cygnus.com>
1837 * target.c (debug_to_xfer_memory): Insert line breaks when
1838 dumping the memory block.
1840 Mon May 6 13:52:52 1996 Stu Grossman (grossman@critters.cygnus.com)
1842 * fork-child.c (fork_inferior), inferior.h: init_trace_fun now
1843 returns a possibly modified pid.
1844 * inftarg.c (ptrace_him): Now returns pid;
1845 * m3-nat.c (m3_trace_him): Now returns pid;
1846 * infcmd.c (run_command): Minor cleanup.
1847 * infrun.c (wait_for_inferior): Add another check for one_stepped
1848 near where we read the pc to avoid erroneously setting
1849 random_signal for multi-threaded support.
1850 * procfs.c: Add support for Solaris LWPs. Remove def of
1851 LOSING_POLL. Many cleanups... Several workarounds for Solaris
1852 lossage. System call entry and exit are now handled by
1853 dynamically registered handlers.
1854 * (syscallname): Don't barf when handed an unknown syscall
1856 * (info_proc_syscalls): Ditto.
1857 * sol-thread.c: New file. Implements Solaris thread support.
1858 * symfile.c (symbol_file_add): Add call to target_new_objfile to
1859 notify target-dependent code about new symbol tables.
1860 * (clear_symtab_users): Call target_new_objfile to notify it of
1861 the removal of all symbol tables.
1862 * target.c (push_target): Make sure that to_close is non-zero
1864 * target.h (target_new_objfile): Provide default.
1865 * config/alpha/nm-osf2.h: Define LOSING_POLL because this version
1866 of OSF can't hack using poll with /proc.
1867 * config/sparc/nm-sun4sol2.h (target_new_objfile): Define to be
1868 sol-thread-new-objfile.
1869 * config/sparc/sun4sol2.mh: Add sol-thread.o to NATDEFFILES, and
1870 add libthread_db.so.1 to NAT_CLIBS.
1871 * config/sparc/tm-sun4sol2.h: Define PIDGET, TIDGET, and
1874 Sat May 4 02:13:34 1996 N Srin Kumar <nsrin@wipinfo.soft.net>
1876 * procfs.c (remove_fd): Fix copy of fds to fill hole left after
1877 removal of the requested fd.
1879 Mon May 6 07:52:48 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1881 * rs6000-tdep.c (_initialize_rs6000_tdep): Don't do XCOFF specific
1884 * config/powerpc/tm-ppc-eabi.h: Define ELF_OBJECT_FORMAT.
1886 start-sanitize-gdbtk
1887 Thu May 2 19:17:49 1996 Stan Shebs <shebs@andros.cygnus.com>
1889 * gdbtk.tcl (debug_interface): New global, use to aid debugging.
1890 (insert_breakpoint_tag, delete_breakpoint_tag): Fix range.
1891 (file_popup_menu): Delete, never used.
1892 (listing_window_popup): Rename from listing_window_button_1,
1893 remove breakpoint toggling code.
1894 (toggle_breakpoint): New procedure.
1895 (create_file_win): Bind popup menu to button 2, toggle breakpoints
1896 with button 1 in breakpoint area, add display of tagged areas if
1900 Thu May 2 12:46:14 1996 Jeffrey A Law (law@cygnus.com)
1903 * breakpoint.h (enum bpdisp): Add del_at_next_stop.
1904 * breakpoint.c (insert_breakpoints, watchpoint_check,
1905 bpstat_stop_status): Avoid bad references to memory freed via
1906 delete_breakpoint on watchpoints going out of scope.
1907 Do not delete these watchpoints, disable them and change their
1908 disposition to del_at_next_stop instead.
1909 (breakpoint_auto_delete): Delete all breakpoints whose disposition
1910 is del_at_next_stop.
1911 (breakpoint_init_inferior): Use switch to avoid reference to
1912 already deleted breakpoint.
1914 Wed May 1 17:29:18 1996 Fred Fish <fnf@cygnus.com>
1916 * Makefile.in (rs6000-nat.o): Depend on xcoffsolib.h.
1917 * config/rs6000/rs6000.mh (NATDEPFILES): Move xcoffread.o ...
1918 * config/rs6000/rs6000.mt (TDEPFILES): ... to here.
1919 * xcoffsolib.c (xcoff_relocate_symtab_hook): Define and initialize.
1920 (solib_info): Call xcoff_relocate_symtab via the hook.
1921 (sharedlibrary_command): Ditto.
1922 * xcoffread.c: Remove all FAKING_RS6000 comments and defines.
1923 (xcoff_add_toc_to_loadinfo_hook): Define and initialize here.
1924 (xcoff_init_loadinfo_hook): Define and initialize here.
1925 (scan_xcoff_symtab): Call xcoff_add_toc_to_loadinfo via the hook.
1926 (xcoff_initial_scan): Call xcoff_init_loadinfo via the hook.
1927 * xcoffsolib.h (xcoff_relocate_symtab_hook): Declare extern func.
1928 * rs6000-tdep.c (_initialize_rs6000_tdep): Add initializations
1929 of xcoff_add_toc_to_loadinfo_hook and xcoff_init_loadinfo_hook.
1930 * rs6000-nat.c (_initialize_core_rs6000): Add initialization
1931 of xcoff_relocate_symtab_hook.
1933 Tue Apr 30 13:22:02 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1935 * configure (powerpcle-*-solaris*): Add Solaris support.
1937 * config/powerpc/{solaris.m[ht],tm-solaris.h}: New files for
1940 Mon Apr 29 16:17:31 1996 Dawn Perchik <dawn@cygnus.com>
1942 * c-valprint.c (c_val_print): Fix printing for arrays defined
1945 Sun Apr 28 15:08:05 1996 Stan Shebs <shebs@andros.cygnus.com>
1947 Support for bi-endian remote breakpoints.
1948 * remote.c (big_break_insn, little_break_insn): New globals.
1949 (break_insn): Remove.
1950 (remote_insert_breakpoint, remote_remove_breakpoint): Use own
1951 code if REMOTE_BREAKPOINT defined, otherwise call memory
1952 breakpoint functions.
1953 * config/sh/tm-sh.h (REMOTE_BREAKPOINT): Remove.
1954 (BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT): Define.
1956 * mon960-rom.c (mon960_cmds): Remove forward decl.
1957 (mon960_load): Use current_monitor instead of mon960_cmds.
1958 (mon960_regnames): Remove backslashes from line ends.
1959 (_initialize_mon960): Fix documentation string.
1961 Sun Apr 28 12:10:35 1996 Fred Fish <fnf@cygnus.com>
1963 * symfile.h (psymbol_allocation_list): Expand comments which
1964 describe the psymbol allocation list and how each field is
1967 Sun Apr 28 03:44:30 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1969 * breakpoint.c (delete_breakpoint): Fix bpt->val, bpt->exp
1971 (breakpoint_re_set_one): Fix b->exp, b->val, b->cond storage leaks.
1973 * infcmd.c (run_command), solib.c (locate_base): Check for
1974 target_has_execution in addition to inferior_pid, a core file
1975 from a threaded program is yielding a non-zero inferior_pid.
1977 * sparc-tdep.c (get_saved_register): Handle window registers
1978 in a dummy frame correctly.
1980 Sat Apr 27 20:38:32 1996 Fred Fish <fnf@cygnus.com>
1982 * Makefile.in (CLIBS): Move $(MMALLOC) past all other libs,
1983 so that anything that wants an allocation function not yet pulled
1984 in, will get it from mmalloc rather than a system library.
1985 * Makefile.in (INSTALLED_LIBS): Reorder to match order of CLIBS,
1986 to avoid surprising results when used.
1988 Sat Apr 27 00:12:05 1996 Dawn Perchik (dawn@cygnus.com)
1990 * stabsread.c: Changes and bug fixes for cfront support.
1991 Fix bug for class data members.
1992 Fix parsing bug when no base classes exist.
1993 Fix memory bug - allocate space for cplusplus specific info.
1994 Add support for static data.
1995 Add prototypes for static functions.
1996 Enhance comments to show what each function expects to parse.
1998 * stabsread.c(resolve_cont),dbxread.c(resolve_cont): Rename
1999 function to resolve_cfront_continuation.
2001 Fri Apr 26 23:58:26 1996 Jeffrey A Law (law@cygnus.com)
2003 * infrun.c (wait_for_inferior): Call registers_changed when
2004 restarting the inferior to get over a nullified instruction.
2006 Tue Apr 24 12:12:55 1996 Dawn Perchik (dawn@cygnus.com)
2008 * dbxread.c,stabsread.c,gdbtypes.c,partial-stab.h,valops.c:
2009 Add new support for parsing cfront stabs.
2011 Wed Apr 24 00:32:55 1996 Jeffrey A Law (law@cygnus.com)
2013 * infrun.c (wait_for_inferior): Move "have_waited" label
2014 outside of #ifdef conditionals. Don't trash the wait status
2015 if we get a signal and the current instruction is nullified.
2017 Mon Apr 22 20:17:01 1996 Fred Fish <fnf@cygnus.com>
2019 * Makefile.in (VERSION): Bump version number to 4.16.1.
2020 * NEWS: Update for 4.16 release.
2022 Mon Apr 22 16:32:29 1996 Stan Shebs <shebs@andros.cygnus.com>
2024 * monitor.h: Clean up comment formatting.
2025 (current_monitor): Remove decl.
2026 (LOADTYPES, LOADPROTOS, INIT_CMD, etc): Remove definitions.
2027 (push_monitor, SREC_SIZE): Remove.
2028 * monitor.c: Expand old macro into current_monitor derefs
2030 * remote-os9k.c (current_monitor): Remove definition.
2032 Mon Apr 22 14:54:45 1996 Mark Alexander <marka@superball.cygnus.com>
2034 * corefile.c (specify_exec_file_hook): Allow arbitrary number of
2036 (call_extra_exec_file_hooks): New function.
2037 * h8300-tdep.c: Lint; add .h files to provide missing declarations,
2038 remove unused variables.
2039 (set_machine_hook): New function.
2040 (_initialize_h8300m): Initialize it.
2042 Fri Apr 19 15:03:49 1996 Ian Lance Taylor <ian@cygnus.com>
2044 * remote-mips.c (encoding): Don't specify size, to avoid bug in
2045 SunOS native compiler.
2047 Thu Apr 18 18:46:57 1996 Stan Shebs <shebs@andros.cygnus.com>
2049 * monitor.c: Use int rather than LONGEST for values, since
2050 the formatting strings are not prepared to accept long longs.
2052 Wed Apr 17 20:17:27 1996 Doug Evans <dje@canuck.cygnus.com>
2054 * arm-tdep.c (initialize_arm_tdep): Make apcs32 a `zinteger'.
2056 Tue Apr 16 17:38:23 1996 Stu Grossman (grossman@critters.cygnus.com)
2058 * corelow.c (add_to_thread_list): Make sure reg_sect is non-null
2059 before de-referencing it. Prevents deref of NULL pointer if core
2060 file lacks .reg section.
2061 * defs.h: Rename floatformat_{to from}_long_double to
2062 floatformat_{to from}_doublest. Get rid of FLOATFORMAT_{TO
2064 * findvar.c (extract_floating store_floating): Change all refs to
2065 FLOATFORMAT_{FROM TO}... to floatformat_{from to}_doublest.
2066 * utils.c: Change floatformat_{to from}_long_double to
2067 floatformat_{to from}_doublest cuz the new routines will use
2068 whatever size (double or long double) is appropriate.
2069 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
2070 REGISTER_CONVERT_TO_RAW): Change FLOATFORMAT... macros to
2071 floatformat... routine calls.
2073 Mon Apr 15 16:34:11 1996 Per Bothner <bothner@kalessin.cygnus.com>
2075 * stabsread.c (read_type): Move handling of '@' from type
2076 number handling to handling of types proper (as emitted by gcc!).
2077 For typedefs, allocate the typedef type before reading its
2078 definition, to properly handling recursive types.
2080 Mon Apr 15 11:19:26 1996 Jeffrey A Law (law@cygnus.com)
2082 * ch-exp.c (calculate_array_length): Fix prototype.
2084 Sat Apr 13 14:21:16 1996 Stu Grossman (grossman@critters.cygnus.com)
2086 * remote-nindy.c (nindy_open): Acquire more target state so that
2087 user can attach to a previously running program.
2088 * (nindy_fetch_registers nindy_store_registers): Get rid of fp
2089 conversion code. That's all handled in {extract store}_floating
2091 * utils.c (floatformat_to_double): Don't bias exponent when
2092 handling zero's, denorms or NaNs.
2093 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
2094 REGISTER_CONVERT_TO_RAW): Change to using DOUBLST and
2095 FLOATFORMAT_TO/FROM_DOUBLEST macros.
2096 * config/i960/tm-nindy960.h: Undefine
2097 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW, and
2098 REGISTER_CONVERTIBLE. These are no longer necessary now that all
2099 the magic happens in extract/store_floating.
2101 Sat Apr 13 02:58:02 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2103 * eval.c (evaluate_subexp_standard): Report error when attempting to
2104 evaluate subscripts for types which cannot be subscripted.
2106 * valarith.c (value_x_binop, value_x_unop): Add noside parameter.
2107 Return a zero value with the return type of the member function
2108 if noside is EVAL_AVOID_SIDE_EFFECTS instead of calling the member
2110 * values.h (value_x_binop, value_x_unop): Update prototypes
2112 * eval.c (evaluate_subexp_standard): Update all callers of
2113 value_x_binop, value_x_unop accordingly.
2115 * valarith.c (value_neg, value_complement): Perform ANSI C/C++
2116 integral promotion on operands.
2118 Fri Apr 12 13:19:27 1996 Fred Fish <fnf@cygnus.com>
2120 * README: Update for 4.16 release.
2121 * configure.in (AC_CHECK_FUNCS): Also check for sbrk.
2122 * configure: Regenerate with autoconf.
2123 * config.in: Regenerate with autoheader.
2124 * main.c (main): Only use sbrk() when HAVE_SBRK is defined.
2125 * top.c (command_loop): Ditto.
2127 Fri Apr 12 09:45:29 1996 Stu Grossman (grossman@critters.cygnus.com)
2129 * defs.h: Define TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
2130 defaults for bi-endian targets. Replace function pointers for
2131 floatformat routines with macros. No need for these to be runtime
2133 * findvar.c: Get rid of floatformat function pointers. Use
2134 macros in extract_floating and store_floating.
2135 * remote-nindy.c (nindy_fetch_registers nindy_store_registers):
2136 Use floatformat macros.
2138 Thu Apr 11 21:28:02 1996 Fred Fish <fnf@cygnus.com>
2140 From: Miles Bader <miles@gnu.ai.mit.edu>
2141 * configure.in (AC_CHECK_HEADERS): check for endian.h.
2142 Use AC_CHECK_TOOL to find AR & RANLIB. Add AC_PROG_AWK.
2143 Add host & target cases for i[345]86-*-gnu*.
2144 * config.in: Regenerate with autoheader.
2145 * configure: Regenerate with autoconf.
2146 * Makefile.in (AR, AWK): Set from corresponding autoconf substs.
2147 (init.c): Don't scan mig-generated files.
2148 * defs.h (endian.h): Include if HAVE_ENDIAN_H defined.
2149 * config/nm-m3.h (ATTACH_NO_WAIT): Define.
2150 * infcmd.c (attach_command): Use "#ifndef ATTACH_NO_WAIT"
2151 rather than "#ifndef MACH".
2153 Thu Apr 11 18:49:42 1996 Stan Shebs <shebs@andros.cygnus.com>
2155 * remote.c (remotewritesize): New GDB variable, controls size
2156 of memory packets sent to the target.
2158 Thu Apr 11 13:47:52 1996 Stu Grossman (grossman@critters.cygnus.com)
2160 * dcache.c: Add prototypes. Make many functions static.
2161 * (dcache_peek dcache_fetch dcache_poke): Make dcache_fetch and
2162 dcache_poke call dcache_xfer_memory directly in order to fix
2163 problems with turning off dcache. dcache_peek is now unnecessary,
2166 * defs.h: Define new macros HOST_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
2167 and TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT to specify a pointer
2168 to a struct floatformat. This allows for better handling of
2169 targets whose floating point formats differ from the host by more
2170 than just byte order.
2171 * (floatformat_to_long_double floatformat_from_long_double):
2172 Prototypes for new functions in utils.c.
2173 * (floatformat_to_doublest floatformat_from_doublest): Prototypes
2174 for pointers to floating point conversion functions. The actual
2175 function uses either double or long double if the host supports it.
2176 * findvar.c (floatformat_to_doublest floatformat_from_doublest):
2177 Initialize to point at correct function depending on HAVE_LONG_DOUBLE.
2178 * (extract_floating store_floating): Rewrite. Now, if host fp
2179 format is the same as the target, we just do a copy. Otherwise,
2180 we call floatformat_{to from}_doublest.
2181 * remote-nindy.c (nindy_xfer_inferior_memory): Change param
2182 `write' to `should_write'.
2183 * utils.c (floatformat_to_long_double
2184 floatformat_from_long_double): New routines that implement long
2185 double versions of functions in libiberty/floatformat.c.
2186 * config/i960/tm-i960.h (TARGET_LONG_DOUBLE_FORMAT): Define this for
2187 i960 extended real (80 bit) numbers.
2188 * nindy-share/nindy.c (ninMemGet ninMemPut): Return number of bytes
2189 actually read or written.
2191 Wed Apr 10 02:56:06 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
2193 * ch-valprint.c (chill_val_print): Remove call to calculate_array_length.
2194 (calculate_array_length): Move function from here ...
2196 * ch-exp.c (calculate_array_length): ... to here.
2197 (parse_primval): If we have a symbol with an array type
2198 and the length is 0, call calculate_array_length.
2200 Tue Apr 9 01:23:05 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
2202 * eval.c (evaluate_subexp_standard): In case of TYPE_CODE_SET:
2203 Add some checks for powerset compatibility.
2205 * valops.c (value_slice): Use lowbound instead of lowerbound for
2206 call to slice_range_type to get correct bounds.
2208 Mon Apr 8 12:53:56 1996 Fred Fish <fnf@cygnus.com>
2210 * Makefile.in (scm-exp.o, scm-lang.o, scm-valprint.o): Add targets and
2212 * scm-lang.c (gdb_string.h): Include.
2213 * objfiles.c (add_to_objfile_sections): Cast second arg of obstack_grow
2214 call to correct type (char *).
2215 * cp-valprint.c (cp_print_static_field): Ditto.
2216 * somsolib.c (som_solib_create_inferior_hook): Add a declaration
2217 for external find_unwind_entry function (from hppa-tdep.c).
2218 * remote-pa.c (remote_write_bytes, remote_read_bytes): Change
2219 type of second arg to "char *" to be type compatible with
2221 (remote_wait): Cast second arg to strtol to correct type.
2222 * hppa-tdep.c (compare_unwind_entries): Change argument types to
2223 "const void *" to be type compatible with qsort, and then
2224 assign to local args prior to use.
2226 Mon Apr 8 15:35:52 1996 Jeffrey A Law (law@cygnus.com)
2228 * infptrace.c (kill_inferior): Remove call to "kill"; update
2231 Mon Apr 8 14:05:07 1996 Geoffrey Noer <noer@cygnus.com>
2233 * remote-e7000.c: don't append :23 to target port if __WIN32__
2234 is defined (it's WinGDB).
2236 Sun Apr 7 22:34:29 1996 Fred Fish <fnf@cygnus.com>
2238 From: Miles Bader <miles@gnu.ai.mit.edu>
2239 * gnu-nat.c, gnu-nat.h, msg.defs, exc_request.defs, i386gnu-nat.c,
2240 msg_reply.defs, notify.defs, process_reply.defs, reply_mig_hack.awk,
2241 config/nm-gnu.h, config/i386/{i386gnu.mh, i386gnu.mt, nm-gnu.h,
2242 m-i386gnu.h, xm-i386gnu.h}: New files for GNU hurd.
2244 Sun Apr 7 13:32:41 1996 Fred Fish <fnf@cygnus.com>
2246 * configure.in (case host): Add i386sco5 host.
2247 * configure: Regenerate.
2249 From: Robert Lipe <robertl@dgii.com>
2250 Add support for SCO OpenServer 5 (a.k.a. 3.2v5*) This
2251 target is an SVR3.2 with COFF, ELF, and shared libes, but
2253 * config/i386/i386sco5.mh: New file.
2254 * config/i386/nm-i386sco5.h: New file.
2256 Sat Apr 6 08:55:22 1996 Fred Fish <fnf@cygnus.com>
2258 * bcache.c (bcache): When size of chunk to cache is exactly equal to
2259 BCACHE_MAXLENGTH, stash chunk as unique copy.
2261 Sat Apr 6 00:46:26 1996 Fred Fish <fnf@cygnus.com>
2263 * symfile.c (INLINE_ADD_PSYMBOL): Remove ifdef.
2264 (add_psymbol_to_list): Add an arg for passing CORE_ADDR values and
2265 use it, rather than calling add_psymbol_addr_to_list.
2266 (add_psymbol_addr_to_list): Delete.
2267 (add_psymbol_to_list): Make psymbol static to avoid random data in
2268 gaps due to alignment of structure members.
2269 * symfile.h (INLINE_ADD_PSYMBOL, ADD_PSYMBOL_TO_LIST,
2270 ADD_PSYMBOL_ADDR_TO_LIST): Remove. Real world tests show no
2271 performance improvements by inlining via complicated macros and
2272 they just make gdb larger and harder to maintain.
2273 * dwarfread.c (add_enum_psymbol): Replace ADD_PSYMBOL_TO_LIST
2274 and/or ADD_PSYMBOL_ADDR_TO_LIST macro(s) with call to
2275 add_psymbol_to_list with appropriate long or CORE_ADDR args.
2276 (add_partial_symbol): Ditto.
2277 * partial-stab.h: Ditto.
2278 * os9kread.c (read_os9k_psymtab): Ditto
2279 * mdebugread.c (parse_partial_symbols): Ditto.
2280 (handle_psymbol_enumerators): Ditto.
2281 (demangle.h): Include.
2282 * hpread.c (hpread_build_psymtabs): Ditto.
2283 (hpread_build_psymtabs): Ditto.
2284 (demangle.h): Include
2286 start-sanitize-gdbtk
2287 Fri Apr 5 13:44:40 1996 Stan Shebs <shebs@andros.cygnus.com>
2289 * gdbtk.c (running_now): New global variable.
2290 (gdb_cmd): Test it before executing any command.
2291 (gdbtk_call_command): Set it when inferior is running.
2292 * gdbtk.tcl (gdbtk_tcl_busy, gdbtk_tcl_idle): Enable and
2293 disable interaction with command window's text appropriately.
2295 Fri Apr 5 13:25:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2297 * gdbtk.c (SIOCSPGRP, linux): If on Linux, undef SIOCSPGRP, since
2298 some versions of the kernel don't support it.
2301 Thu Apr 4 20:16:55 1996 Fred Fish <fnf@cygnus.com>
2303 * configure.in: Check for setpgid function.
2304 * config.in: Regenerate with autoheader.
2305 * configure: Regenerate with autoconf.
2306 * inflow.c (_initialize_inflow): Only try to use _SC_JOB_CONTROL
2307 if it is actually defined.
2308 (gdb_setpgid): Use HAVE_SETPGID.
2309 * ch-exp.c: Change include of <string.h> to "gdb_string.h".
2310 * c-exp.y, f-exp.y, m2-exp.y: Ditto.
2311 * c-exp.y, serial.c: Include <ctype.h>.
2312 * config/m68k/nm-news.h: Add typedef for pid_t which is
2313 apparently missing from <sys/types.h>. Enclose entire
2314 file in NM_NEWS_H ifndef and define when included.
2315 * config/mips/nm-news-mips.h: Ditto.
2316 * config/m68k/tm-m68k.h (REGISTER_CONVERT_TO_VIRTUAL,
2317 REGISTER_CONVERT_TO_RAW): Change name of temporary variable.
2319 Thu Apr 4 19:04:18 1996 Stan Shebs <shebs@andros.cygnus.com>
2321 * arm-xdep.c: Move native-specific code to here from arm-tdep.c.
2322 * arm-tdep.c (arm_apcs_32): New global.
2323 (arm_addr_bits_remove, arm_saved_pc_after_call,
2324 arm_push_dummy_frame, arm_pop_frame): New functions.
2325 (arm_skip_prologue): Updated version from Richard Earnshaw.
2326 (_initialize_arm_tdep): Add set/show "apcs32".
2327 * config/arm/tm-arm.h (ADDR_BITS_REMOVE): Call
2328 arm_addr_bits_remove.
2329 (SAVED_PC_AFTER_CALL): Call arm_saved_pc_after_call.
2330 (frame_find_saved_regs): Declare properly.
2331 (PUSH_DUMMY_FRAME): Call arm_push_dummy_frame.
2332 (POP_FRAME): Call arm_pop_frame, use ADDR_BITS_REMOVE instead of
2334 * config/arm/nm-arm.h: New file.
2335 * config/arm/xm-arm.h (KERNEL_U_ADDR, FETCH_INFERIOR_REGISTERS):
2336 Move definitions to nm-arm.h.
2337 * config/arm/arm.mh (NAT_FILE): Define.
2339 * symfile.c (generic_load): Initialize data_count properly.
2341 Thu Apr 4 17:17:53 1996 Fred Fish <fnf@cygnus.com>
2343 * symmisc.c (print_objfile_statistics): Print memory used by
2344 psymbol cache obstack.
2346 Thu Apr 4 15:43:07 1996 Stan Shebs <shebs@andros.cygnus.com>
2348 * symfile.c (report_transfer_performance): New function.
2349 (generic_load): Call it to report transfer rate.
2350 * remote-e7000.c (e7000_load): Ditto.
2352 Mon Apr 1 16:31:00 1996 Stan Shebs <shebs@andros.cygnus.com>
2354 * mpw-make.sed: Change references to config.h to be in objdir,
2355 edit out rules to rebuild config.h.
2357 Mon Apr 1 08:32:23 1996 Fred Fish <fnf@cygnus.com>
2359 * hppa-tdep.c (hppa_pop_frame): Call clear_proceed_status before
2362 Sun Mar 31 16:15:43 1996 Fred Fish <fnf@cygnus.com>
2364 * hppah-nat.c (store_inferior_registers, store_inferior_registers,
2365 fetch_register, child_xfer_memory): Use call_ptrace function supplied
2366 by infptrace.c rather than calling ptrace directly.
2368 Sun Mar 31 15:39:00 1996 Stan Shebs <shebs@andros.cygnus.com>
2370 * mon960-rom.c: Cleanups and elimination of unused code,
2371 clarify documentation string.
2372 (mon960_serial, mon960_ttyname): Remove.
2373 * config/i960/tm-mon960.h (ADDITIONAL_OPTIONS,
2374 ADDITIONAL_OPTION_CASES, ADDITIONAL_OPTION_HELP): Remove.
2376 Sat Mar 30 11:00:22 1996 Fred Fish <fnf@cygnus.com>
2378 * configure.in: Check whether printf family supports printing
2379 long doubles or not and define PRINTF_HAS_LONG_DOUBLE if so.
2380 * acconfig.h: Provide default undef for PRINTF_HAS_LONG_DOUBLE.
2381 * configure: Regenerate.
2382 * valprint.c (print_floating): Use PRINTF_HAS_LONG_DOUBLE.
2383 * c-exp.y (parse_number): Use PRINTF_HAS_LONG_DOUBLE.
2384 * configure.in: Fix have_gregset and have_fpregset autoconf
2385 variable names so that they match the pattern required to
2388 Fri Mar 29 21:39:56 1996 Fred Fish <fnf@cygnus.com>
2390 * core-aout.c (fetch_core_registers): Cast core_reg_size to int
2391 before testing against reg_ptr.
2392 * eval.c (evaluate_subexp_standard): Cast type of
2393 TYPE_FN_FIELD_VOFFSET to int.
2394 * findvar.c (extract_signed_integer, extract_unsigned_integer,
2395 extract_long_unsigned_integer): Cast type of sizeof to int.
2396 * values.c (unpack_field_as_long, modify_field): Ditto.
2397 * valops.c (value_assign, call_function_by_hand): Ditto.
2398 * infcmd.c (do_registers_info): Ditto.
2399 * ser-tcp.c (tcp_open): Ditto.
2400 * remote.c (putpkt): Ditto.
2401 * dcache.c (dcache_peek): Ditto.
2402 * dcache.c (dcache_poke): Ditto.
2403 * m2-exp.y (yylex): Ditto.
2404 * gnu-regex.c (re_match_2): Ditto.
2405 * f-lang.c (ADD_BF_SYMNUM, saved_bf_list_end, tmp_bf_ptr): Ifdef
2406 out unused macro definition and variables.
2407 * inftarg.c (proc_wait): Move from main.c to here, and make static.
2408 * valprint.c (val_print_string): Change bufsize from int to unsigned.
2409 * main.c (wait.h): Include.
2410 * top.c (command_line_input): Remove unused variable "c".
2411 * f-typeprint.c (f_type_print_varspec_prefix): Add missing enum
2412 value TYPE_CODE_TYPEDEF to switch statement.
2413 (f_type_print_varspec_suffix): Add missing enum value
2414 TYPE_CODE_TYPEDEF to switch statement.
2415 * ch-exp.c (parse_primval): Add remaining enumeration values to
2416 switch statement, with no specific action.
2417 (ch_lex): Add LOC_UNRESOLVED in switch statement.
2418 (pushback_token): Ifdef out, since code using it is ifdef'd out.
2419 * stabsread.c (cleanup_undefined_types): Remove unused label
2421 * objfiles.h (print_symbol_bcache_statistics): Add prototype.
2422 * maint.c (objfiles.h): Include.
2423 (maintenance_print_statistics): Remove unused variable "temp".
2424 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
2425 unused variable "found_file_symbol".
2426 * m2-exp.y (yylex): Add LOC_UNRESOLVED case to switch.
2427 * language.c (lang_bool_type): Use existing function local type
2428 variable rather than create block local variables.
2429 * solib.c (disable_break): Enclose in ifndef SVR4_SHARED_LIBS.
2430 * infptrace.c (wait.h, command.h): Include.
2431 * ser-tcp.c (gdb_string.h): Include
2432 * i386-tdep.c (codestream_seek): Change "place" to CORE_ADDR.
2433 (i386_get_frame_setup): Change "pc" from int to CORE_ADDR.
2434 * command.c (complete_on_enum): Make assignment used as truth value
2435 explictly check against NULL.
2437 * infrun.c (wait_for_inferior): Ifdef out prologue_pc since code
2438 that uses it is ifdef'd out.
2439 * parser-defs.h: Add prototype for write_dollar_variable.
2440 * infrun.c: Add prototype for write_pc_pid.
2441 * breakpoint.h: Add prototype for re_enable_breakpoints_in_shlibs.
2442 * symmisc.c (bcache.h): Include.
2443 * bcache.h: Add prototype for print_bcache_statistics.
2444 * symfile.c: Include <time.h>.
2445 * printcmd.c (print_scalar_formatted): Change len to unsigned int.
2446 * valarith.c (value_equal): Cast result of TYPE_LENGTH to int.
2447 * valarith.c (value_binop): Change result_len, promoted_len1,
2448 and promoted_len2 to unsigned int.
2449 * valarith.c (value_subscripted_rvalue): Change elt_offs and
2450 elt_size to unsigned int.
2451 * valops.c (value_array): Change typelength to unsigned int.
2452 (destructor_name_p): Change len to unsigned int.
2453 * scm-lang.h (scm_parse): Add prototype for scm_unpack.
2454 * symfile.c (decrement_reading_symtab): Change return type to void.
2455 * valarith.c (value_subscript): Remove unused variable "word".
2456 (value_subscript): Remove unused variable "tint".
2457 * valops.c (auto_abandon): Ifdef out, since code using it is also
2459 * eval.c (init_array_element): Remove unused variable "val".
2460 * Makefile.in (values.o): Depends on scm-lang.h.
2461 (command.o): Depends upon wait_h.
2462 (ser-tcp.o): Depends upon gdb_string.h.
2463 (infptrace.o): Depends upon wait_h and command_h.
2464 (maint.o): Depends on objfiles.h and symfile.h.
2465 * values.c (allocate_repeat_value): Remove unused variable
2467 (scm-lang.h): Include.
2468 * breakpoint.c (create_longjmp_breakpoint): Enclose in
2469 GET_LONGJMP_TARGET define, unused otherwise.
2470 * config/i386/nm-linux.h: Add prototypes for i386_insert_watchpoint,
2471 i386_remove_watchpoint and i386_stopped_by_watchpoint.
2473 Thu Mar 28 12:53:19 1996 Doug Evans <dje@canuck.cygnus.com>
2475 * configure.in (sparc64-*-solaris2*): Delete.
2476 Stick with sparc-*-solaris2*.
2477 * configure: Regenerated.
2479 Thu Mar 28 06:51:26 1996 Fred Fish <fnf@cygnus.com>
2481 * valops.c (value_assign): Make copy of internal variable value
2482 before returning it as a new value, since it is owned by the
2483 internal variable and will be freed along with it.
2485 Wed Mar 27 08:36:17 1996 Jeffrey A Law (law@cygnus.com)
2487 * From Peter Schauer.
2488 * breakpoint.c (breakpoint_re_set_one): Keep temporary
2489 breakpoints bp_until, bp_finish, bp_watchpoint_cope, bp_call_dummy
2490 and bp_step_resume in case breakpoint_re_set_one is called due
2491 to a step over a dlopen call.
2492 * infrun.c (wait_for_inferior): Always remove breakpoints from
2493 inferior in BPSTAT_WHAT_CHECK_SHLIBS case.
2495 Tue Mar 26 13:15:32 1996 Fred Fish <fnf@cygnus.com>
2497 * config/mips/tm-mips.h (COERCE_FLOAT_TO_DOUBLE): Only prefer
2498 non-prototyped case over prototyped case for C.
2499 * config/pa/tm-hppa.h (COERCE_FLOAT_TO_DOUBLE): Ditto.
2501 Sat Mar 23 17:24:28 1996 Fred Fish <fnf@cygnus.com>
2503 * os9kread.c (os9k_process_one_symbol): Note nonportable
2504 assumption that an int can hold a char *.
2506 * bcache.h (struct hashlink): Wrap data[] inside union with
2507 double to force longest alignment.
2508 (BCACHE_DATA): New macro to access data[].
2509 (BCACHE_ALIGNMENT): New macro to get offset to data[].
2510 * bcache.c (lookup_cache, bcache): Use BCACHE_DATA to get
2511 address of cached data. Use BCACHE_ALIGNMENT to compute
2512 amount of space to allocate for each hashlink struct.
2514 Sat Mar 23 12:14:02 1996 Fred Fish <fnf@cygnus.com>
2516 * ch-lang.c (evaluate_subexp_chill): Fix typo.
2518 Thu Mar 21 08:27:19 1996 Fred Fish <fnf@cygnus.com>
2520 * Makefile.in (VERSION): Bump version to 4.15.3
2522 Thu Mar 21 10:56:41 1996 Ian Lance Taylor <ian@cygnus.com>
2524 * config.in: Rename from config.h.in.
2525 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
2526 Change CONFIG_HEADERS test in AC_OUTPUT accordingly.
2527 * configure: Rebuild.
2528 * Makefile.in (stamp-h): Depend upon config.in, not config.h.in.
2529 Set CONFIG_HEADERS to config.h:config.in.
2531 Tue Mar 19 12:47:51 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2533 * partial-stab.h (case N_ENDM): Finish current partial symbol
2534 table for Solaris 2 cc.
2536 Tue Mar 19 10:39:15 1996 Jeffrey A Law (law@cygnus.com)
2538 * rs6000-nat.c (exec_one_dummy_insn): Don't clobber the
2539 PC in the registers array. From Peter Schauer.
2541 Mon Mar 18 13:47:09 1996 Fred Fish <fnf@cygnus.com>
2543 * symfile.c (reread_symbols): Reinitialize bcache struct
2544 members to zero using memset. Also use memset to reinit
2545 global_psymbols and static_psymbols, rather than explicitly
2546 resetting each structure member.
2548 Sat Mar 16 19:47:36 1996 Fred Fish <fnf@cygnus.com>
2550 * configure.in: Add fragment to create stamp-h.
2552 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2553 * configure.in (AC_CHECK_HEADERS): Check for link.h.
2554 * configure: Regenerate with autoconf.
2555 * config.h.in: Regenerate with autoheader.
2556 * config/i386/nm-linux.h: Include solib.h only if HAVE_LINK_H
2558 * solib.c: Exclude most of the code if HAVE_LINK_H is not defined.
2559 * config/i386/linux.mh: Reinstate XM_CLIBS, it is needed for
2560 older a.out based systems.
2562 Sat Mar 16 16:45:43 1996 Fred Fish <fnf@cygnus.com>
2564 * config.h.in: New file.
2565 * acconfig.h: New file, for autoheader.
2566 * configure.in (AC_CONFIG_HEADER): Add, generate config.h.
2567 * configure: Regenerate.
2568 * Makefile.in (defs_h): Add config.h
2569 (distclean): Remove config.h and stamp-h during distclean.
2570 (config.h, stamp-h): New targets to remake config.h when necessary.
2571 * defs.h (config.h): Include before any other includes or defines.
2572 * i386-tdep.c (gdb_string.h): Move include after include of defs.h.
2573 * i386v4-nat.c (defs.h): Include before testing HAVE_SYS_PROCFS_H.
2575 Sat Mar 16 14:55:27 1996 Fred Fish <fnf@cygnus.com>
2577 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2578 * Makefile.in (INSTALLED_LIBS): Make sure that @LIBS@ will not
2579 result in an empty line, to work around a bug in native Ultrix 4.4
2580 and OSF/1-3.2C make.
2582 Sat Mar 16 13:33:17 1996 Fred Fish <fnf@cygnus.com>
2584 * configure.in: Add gdbserver to configdirs under linux.
2585 * configure: Regenerate.
2587 Fri Mar 15 12:06:58 1996 J.T. Conklin <jtc@rtl.cygnus.com>
2589 * config/i386/nm-nbsd.h (FLOAT_INFO): Comment out.
2590 * config/i386/tm-nbsd.h (NUM_REGS): Define.
2592 Thu Mar 14 10:31:18 1996 Jeffrey A Law (law@cygnus.com)
2594 * solib.c (solib_break_names): Add _r_debug_state for
2595 vanilla SVR4 implementations. From Peter Schauer.
2597 Mon Mar 11 14:24:57 1996 Dawn Perchik <dawn@critters.cygnus.com>
2599 * mon960-rom.c: New file; support mon960 rom monitor on i960.
2600 * monitor.c (monitor_debug): Change remotedebug to buffer strings.
2601 * monitor.c (monitor_open): Add test for flag MO_NO_ECHO_ON_OPEN before
2602 epecting prompt and echo during open.
2603 * monitor.c (monitor_stop): Add test for flag MO_SEND_BREAK_ON_OPEN to
2604 determine if break should be sent as stop command.
2605 * monitor.h: Add flags MO_NO_ECHO_ON_OPEN and MO_SEND_BREAK_ON_OPEN.
2606 * i960-tdep.c (mon960_frame_chain_valid): New function for getting
2607 stack frame on mon960.
2608 * Makefile.in: Add mon960 files.
2609 * configure.in: Changed i960-*-coff* and i960-*-elf* to target mon960;
2610 added i960-nindy-coff* and i960-nindy-elf* for target nindy.
2611 * configure: Regenerated.
2612 * config/i960/mon960.mt, config/i960/tm-mon960.h: New files;
2613 support mon960 rom monitor on i960.
2615 Mon Mar 11 11:02:47 1996 Steve Chamberlain <sac@slash.cygnus.com>
2617 With Michael Snyder:
2618 * i386-tdep.c (skip_trampoline_code): Fix strncmp length.
2619 * win32-nat.c (CHECK, DEBUG*, debug_*): New.
2620 (handle_load_dll): Don't reload symbols.
2621 (handle_exception): Use the DEBUG_* names.
2622 (child_wait): Add DEBUG_* code.
2623 (_initialize_inftarg): Add new commands to set debug_ names.
2625 Mon Mar 11 09:19:58 1996 Jeffrey A Law (law@cygnus.com)
2627 * From Peter Schauer:
2628 * breakpoint.c (insert_breakpoints): Use ALL_BREAKPOINTS_SAFE.
2629 (bpstat_stop_status): Likewise.
2630 (remove_solib_event_breakpoints): Likewise.
2631 (clear_momentary_breakpoints): Likewise.
2632 (re_enable_breakpoints_in_shlibs): Don't reenable a breakpoint
2633 if we still can't read the memory for that breakpoint.
2634 (mention): Add bp_shlib_event case to keep gcc quiet.
2636 Fri Mar 8 12:08:12 1996 Jeffrey A Law (law@cygnus.com)
2638 * breakpoint.h (enum enable): New enum shlib_disabled for
2639 shared library breakpoints that have been temporarily disabled.
2640 * breakpoint.c: Handle temporarily disabled shared library
2641 breakpoints like disabled breakpoints in most places.
2642 (insert_breakpoints): Use shlib_disabled to indicate
2643 that an unsettable breakpoint is only temporarily disabled.
2644 (re_enable_breakpoints_in_shlibs): New function.
2645 * corelow.c (solib_add_stub): After adding shared libraries,
2646 try to reenable any temporarily disabled breakpoints.
2647 * infcmd.c (attach_command): Likewise.
2648 * infrun.c (wait_for_inferior): Likewise.
2650 Fri Mar 8 11:41:25 1996 Ian Lance Taylor <ian@cygnus.com>
2652 * defs.h (extract_long_unsigned_integer): Declare.
2653 * findvar.c (extract_long_unsigned_integer): New function.
2654 * printcmd.c (print_scalar_formatted): Use it.
2655 * valprint.c (val_print_type_code_int): Likewise.
2657 Thu Mar 7 17:40:50 1996 Stan Shebs <shebs@andros.cygnus.com>
2659 * infcmd.c (do_registers_info): Ignore anonymous registers.
2660 * sh-tdep.c (set processor): New command to set specific
2662 (sh_reg_names, sh3_reg_names): Arrays of register names for
2663 SH and SH3 processors.
2664 (sh_set_processor_type): New function.
2665 * sh3-rom.c (sh3_open): Call it.
2666 (sh3_regname): Add names of all the bank registers.
2667 (sh3_supply_register): Clean up formatting.
2668 * config/sh/tm-sh.h (NUM_REGS, NUM_REALREGS): Increase to include
2670 (REGISTER_NAMES): Add names of bank registers.
2671 (FP15_REGNUM): Define.
2672 (REGISTER_VIRTUAL_TYPE): Use it.
2673 * monitor.c: Clean up some comments.
2675 Thu Mar 7 12:09:51 1996 J.T. Conklin <jtc@rtl.cygnus.com>
2677 * i386b-nat.c: Revert part of Mar 5 change. FreeBSD collapsed the
2678 s* and t* symbols too.
2680 Thu Mar 7 15:18:51 1996 James G. Smith <jsmith@cygnus.co.uk>
2682 * symfile.c (generic_load): Avoid division by zero.
2684 Wed Mar 6 17:57:59 1996 Jeffrey A Law (law@cygnus.com)
2686 * breakpoint.c (bfd_lookup_symbol): Provide for all SVR4 systems,
2687 not just those with HANDLE_SVR4_EXEC_EMULATORS.
2690 * breakpoint.c (internal_breakpoint_number): Move to file scope.
2691 (create_solib_event_breakpoint): Use an internal breakpoint number.
2693 Wed Mar 6 00:32:44 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
2695 * valarith.c (value_in): Change builtin_type_chill_bool to
2698 Tue Mar 5 23:48:36 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
2700 * ch-exp.c (parse_primval): Handle CARD, MAX, MIN.
2701 (match_string_literal): Handle control sequence.
2702 (match_character_literal): Deto.
2704 * ch-lang.c (chill_printchar): Change formating of nonprintable
2705 characters from C'xx' to ^(num).
2706 (chill_printstr): Deto.
2707 (value_chill_card, value_chill_max_min): New functions to process
2708 Chill's CARD, MAX, MIN.
2709 (evaluate_subexp_chill): Process UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN.
2711 * expression.h (exp_opcode): Add UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN
2712 for Chill's CARD, MAX, MIN.
2714 * valarith.c (value_in): Add processing of TYPE_CODE_RANGE
2715 and change return type from builtin_type_int to
2716 builtin_type_chill_bool.
2718 Tue Mar 5 18:54:04 1996 Stan Shebs <shebs@andros.cygnus.com>
2720 * config/nm-nbsd.h (link_object, lo_name, etc): Move to here
2721 from config/nm-nbsd.h.
2722 * config/sparc/nm-nbsd.h (regs, fp_status, etc): Move to here
2723 from config/sparc/tm-nbsd.h.
2725 * config/m68k/nm-hp300hpux.h (FIVE_ARG_PTRACE): Define here
2726 instead of in config/m68k/xm-hp300hpux.h.
2728 Tue Mar 5 12:05:35 1996 J.T. Conklin <jtc@rtl.cygnus.com>
2730 * i386b-nat.c, m68knbsd-nat.c (fetch_core_registers): Provide
2731 implementation for NetBSD systems.
2733 Mon Mar 4 23:44:16 1996 Per Bothner <bothner@kalessin.cygnus.com>
2735 * valarith.c (binop_user_defined_p): Return 0 for BINOP_CONCAT.
2736 (value_concat): Handle varying strings (add COERCE_VARYING_ARRAY).
2738 * ch-lang.c (evaluate_subexp_chill case MULTI_SUBSCRIPT): Error
2739 if "function" is pointer to non-function.
2741 Mon Mar 4 17:47:03 1996 Stan Shebs <shebs@andros.cygnus.com>
2743 * top.c (print_gdb_version): Update copyright year.
2745 Mon Mar 4 14:44:54 1996 Jeffrey A Law (law@cygnus.com)
2748 * infrun.c (wait_for_inferior): Remove breakpoints and
2749 switch terminal settings before calling SOLIB_ADD.
2750 * solib.c (enable_break, SVR4 variant): Don't map in symbols
2751 for the dynamic linker, the namespace pollution causes real
2754 Sun Mar 3 17:18:57 1996 James G. Smith <jsmith@cygnus.co.uk>
2756 * remote-mips.c (common_breakpoint): Explicitly terminate the
2759 Wed Feb 28 22:32:18 1996 Stan Shebs <shebs@andros.cygnus.com>
2761 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
2762 * remote.c (remote_detach): Send a command 'D' to the target
2763 when detaching, update the function's comments.
2765 Thu Jun 6 16:11:38 1996 Miles Bader <miles@gnu.ai.mit.edu>
2767 * gnu-nat.c (thread_cmd_list): New declaration.
2768 (parse_int_arg): New function.
2770 Wed Jun 5 17:28:04 1996 Miles Bader <miles@gnu.ai.mit.edu>
2772 * gnu-nat.h (struct proc): Add DETACH_SC field.
2773 * gnu-nat.c (make_proc): Set DETACH_SC.
2774 (struct inf): Add DETACH_SC & DEFAULT_THREAD_DETACH_SC fields.
2775 (make_inf): Set DETACH_SC & DEFAULT_THREAD_DETACH_SC fields.
2776 (add_thread_commands): Add set/show for detach-suspend-count.
2777 Add takeover-suspend-count cmd.
2778 (inf_detach): Set suspend counts to the detach SC, not 0.
2779 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd,
2780 set_task_detach_sc_cmd, show_task_detach_sc_cmd,
2781 set_thread_default_thread_detach_sc_cmd,
2782 show_thread_default_thread_detach_sc_cmd): New functions.
2783 (show_task_cmd): Also show detach-suspend-count values.
2784 (thread_takeover_sc_cmd): New function.
2786 Fri May 31 16:49:24 1996 Miles Bader <miles@gnu.ai.mit.edu>
2788 * gnu-nat.c (show_thread_run_cmd): Actually print state.
2790 Thu May 30 10:47:56 1996 Miles Bader <miles@gnu.ai.mit.edu>
2792 * gnu-nat.c (inf_signal): Make unforwardable exceptions an error.
2794 Tue May 28 17:06:36 1996 Miles Bader <miles@gnu.ai.mit.edu>
2796 * gnu-nat.c (inf_validate_stopped): proc_getprocinfo takes a
2797 pointer to the flags now, not the flags themselves.
2799 Mon May 27 13:31:17 1996 Miles Bader <miles@gnu.ai.mit.edu>
2801 * gnu-nat.c (gnu_wait): Print debugging msgs for pending execs.
2802 (gnu_create_inferior): Check return from ptrace.
2804 Sun May 26 16:56:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
2806 * gnu-nat.h (struct proc): Add DEAD field.
2807 * gnu-nat.c (make_proc): Initialize DEAD.
2808 (inf_set_traced, inf_validate_task_sc, inf_validate_procs: Frob it.
2809 (gnu_wait): Only abort for 0 threads if the task isn't dead.
2811 Sat May 25 17:06:05 1996 Miles Bader <miles@gnu.ai.mit.edu>
2813 * gnu-nat.c (inf_signal): Pass SIGCODE when posting a signal.
2815 Wed May 22 18:44:28 1996 Miles Bader <miles@gnu.ai.mit.edu>
2817 * gnu-nat.c (S_proc_wait_reply): Add SIGCODE argument.
2818 (inf_set_traced): Only give no-signal-thread error message if
2819 turning *on* tracing.
2821 Wed May 15 13:03:16 1996 Miles Bader <miles@gnu.ai.mit.edu>
2823 * gnu-nat.c (inf_validate_procs): If INF has no threads, always
2824 set inf->threads_up_to_date to 0.
2825 (inf_signal): Pass in new SIGCODE argument to msg_sig_post_untraced.
2826 (gnu_wait): Pass in new TIMEOUT arg to interrupt_operation.
2827 (proc_update_sc): Cast thread state arg to thread_set_state.
2828 (proc_get_state): Cast thread state arg to thread_get_state.
2829 (inf_validate_task_sc): Cast task_basic_info arg to task_info.
2830 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Call
2831 inf_update_procs before we lookup the thread.
2832 * config/i386/i386gnu.mh (MH_CFLAGS): New variable.
2834 Tue May 7 17:52:33 1996 Miles Bader <miles@gnu.ai.mit.edu>
2836 * gnu-nat.c (gnu_kill_inferior): Use inf_set_task to clear the task.
2838 Mon May 6 19:06:49 1996 Miles Bader <miles@gnu.ai.mit.edu>
2840 * gnu-nat.c (inf_set_traced): Use msg_set_init_int with
2841 INIT_TRACEMASK instead of setting the exec flags.
2843 Fri May 3 19:10:57 1996 Miles Bader <miles@gnu.ai.mit.edu>
2845 * gnu-nat.c (inf_validate_procs): Don't clear INF->task if we find
2846 the task's died, so others have a chance at it.
2847 (gnu_resume): When single-stepping a single thread, given an error
2848 if there is no such thread. When single-stepping one but running
2849 the others, just given a warning and still run all the threads.
2850 (gnu_wait): If there seem to be no threads, look harder, and
2851 signal an error if there really aren't any.
2852 (gnu_attach): Reset thread numbering to 0.
2854 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Give
2855 thread name in warning messages.
2857 * gnu-nat.c (active_inf): New function.
2858 (show_sig_thread_cmd, show_stopped_cmd): Use it.
2859 (info_port_rights, info_send_rights_cmd, info_port_sets_cmd,
2860 info_recv_rights_cmd, info_port_rights_cmd, info_port_rights_cmd):
2862 (add_task_commands): Add new port-right info commands.
2864 Fri Apr 26 20:42:16 1996 Miles Bader <miles@gnu.ai.mit.edu>
2866 * gnu-nat.c (gnu_wait): Instead of _hurd_intr_rpc_mach_msg, just
2867 use mach_msg with MACH_RCV_INTERRUPT.
2868 (set_noninvasive_cmd): New function.
2869 (add_task_commands): Add command entry for `set noninvasive'.
2871 Mon Mar 4 14:12:02 1996 Miles Bader <miles@gnu.ai.mit.edu>
2873 * gnu-nat.c (gnu_read_inferior): Use hurd_safe_memmove, not safe_bcopy.
2874 (safe_bcopy): Function removed.
2876 Mon Dec 4 14:18:26 1995 Miles Bader <miles@gnu.ai.mit.edu>
2878 * gnu-nat.c (proc_update_sc): Assert only threads can have state.
2879 (make_proc): Initialize state_valid & state_changed fields.
2881 Tue Nov 28 17:51:21 1995 Miles Bader <miles@gnu.ai.mit.edu>
2883 * reply_mig_hack.awk: New file.
2885 Tue Nov 14 14:31:03 1995 Miles Bader <miles@gnu.ai.mit.edu>
2887 * breakpoint.c (breakpoint_1): Print breakpoint thread field.
2889 * lynx-nat.c (child_wait): Return TARGET_WAITKIND_SPURIOUS for new
2892 Mon Nov 13 18:30:53 1995 Miles Bader <miles@gnu.ai.mit.edu>
2894 * target.c (debug_to_check_threads): New function.
2896 * inflow.c (terminal_init_inferior_with_pgrp): New function.
2897 (terminal_init_inferior): Call terminal_init_inferior_with_pgrp.
2898 * inferior.h (terminal_init_inferior_with_pgrp): New declaration,
2899 but only if PROCESS_GROUP_TYPE is defined.
2901 Mon Nov 6 16:42:09 1995 Miles Bader <miles@gnu.ai.mit.edu>
2903 * target.c (debug_to_thread_alive): Pass through the return value.
2905 Thu Nov 2 18:05:00 1995 Miles Bader <miles@gnu.ai.mit.edu>
2907 * target.c (signals, target_signal_from_host, target_signal_to_host):
2908 Add mach exceptions.
2909 * target.h (enum target_signal): Add mach exceptions.
2911 Mon Oct 30 16:41:04 1995 Miles Bader <miles@gnu.ai.mit.edu>
2913 * gnu-nat.c: New file: gnu native backend.
2914 * i386gnu-nat.c: New file: i386-specific part of gnu native backend.
2915 * gnu-nat.h: New file.
2916 * config/nm-gnu.h: New file.
2917 * config/tm-i386gnu.h: New file.
2918 * config/xm-i386gnu.h: New file.
2919 * config/i386/i386gnu.mh: New file.
2920 * config/i386/i386gnu.mt: New file.
2922 Wed Feb 28 15:50:12 1996 Fred Fish <fnf@cygnus.com>
2924 * Makefile.in (VERSION): Bump version to 4.15.2 to establish
2925 baseline for gdb 4.16 rerelease testing.
2927 Wed Feb 28 13:32:05 1996 Jeffrey A Law (law@cygnus.com)
2929 * somsolib.c (som_solib_create_inferior_hook): Before returning
2930 call clear_symtab_users.
2932 Tue Feb 27 00:04:46 1996 Stu Grossman (grossman@critters.cygnus.com)
2934 * remote-e7000.c (e7000_open): Delete all breakpoints when
2935 connecting to e7000. Change connect message to allow use of
2936 monitor.exp in test suite.
2937 * (e7000_load): Print transfer rate of download.
2938 * symfile.c (generic_load): Print transfer rate of download.
2940 Sun Feb 25 13:58:33 1996 Stan Shebs <shebs@andros.cygnus.com>
2942 * configure.in (mips*-*-vxworks*): New config.
2943 * configure: Regenerated.
2945 * config/mips/vxmips.mt, config/mips/tm-vxmips.h: New files.
2946 * remote-vxmips.c (vx_convert_to_virtual, vx_convert_from_virtual):
2949 Sat Feb 24 12:30:28 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2951 * partial-stab.h (case N_FUN): Function symbols generated
2952 by SPARCworks cc have a meaningless zero value, do not update
2953 pst->textlow if the function symbol value is zero.
2955 * stabsread.c (define_symbol): Initialize SYMBOL_TYPE field
2956 for function prototype declaration symbols.
2958 Fri Feb 23 22:33:04 1996 Stu Grossman (grossman@critters.cygnus.com)
2960 * remote-e7000.c (e7000_load): New routine to download via the
2962 * (e7000_wait): Don't backup PC when we hit a breakpoint.
2963 Apparantly new sh2 pods get this right...
2964 * (e7000_ops): Add call to e7000_load.
2966 Thu Feb 22 00:52:42 1996 J.T. Conklin <jtc@rtl.cygnus.com>
2968 * config/m68k/{nbsd.mh,nbsd.mt,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h},
2969 m68knbsd-nat.c: New files, support for NetBSD/m68k.
2971 * configure.in (m68k-*-netbsd*): New config.
2972 * configure: Regenerated.
2974 Wed Feb 21 19:00:21 1996 Fred Fish <fnf@cygnus.com>
2976 * standalone.c (open, _initialize_standalone): Fix obvious typos
2977 reported by Martin Pool <martin@citr.uq.oz.au>.
2979 Wed Feb 21 14:24:04 1996 Jeffrey A Law (law@cygnus.com)
2981 * solib.c (solib_create_inferior_hook): Fix thinko.
2983 Tue Feb 20 23:59:19 1996 Jeffrey A Law (law@cygnus.com)
2985 * solib.c (solib_break_names): Define for Solaris and Linux.
2986 (enable_break): For SVR4 systems, first try to use the debugger
2987 interfaces in the dynamic linker to track shared library events
2988 as they happen, then fall back to BKPT_AT_SYMBOL code. Convert
2989 BKPT_AT_SYMBOL code to use shared library event breakpoints.
2990 (solib_create_inferior_hook): Simplify BKPT_AT_SYMBOL code,
2991 it no longer needs to restart/wait on the inferior.
2992 * symfile.c (find_lowest_section): No longer static.
2993 * symfile.h (find_lowest_section): Corresponding changes.
2995 Tue Feb 20 18:54:08 1996 Fred Fish <fnf@cygnus.com>
2997 * valops.c (COERCE_FLOAT_TO_DOUBLE): Define default value.
2998 (value_arg_coerce): Use COERCE_FLOAT_TO_DOUBLE.
2999 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Define to 1.
3000 * config/mips/tm-mips.h: Ditto.
3001 * config/pa/tm-hppa.h: Ditto.
3002 * config/rs6000/tm-rs6000.h: Ditto.
3003 * config/sparc/tm-sparc.h: Ditto.
3005 Tue Feb 20 17:32:05 1996 J.T. Conklin <jtc@rtl.cygnus.com>
3007 * config/{i386,ns32k}/nbsd.mh (NATDEPFILES): Remove core-aout.o.
3009 * config/nm-nbsd.h (FETCH_INFERIOR_REGISTERS): Defined.
3010 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
3011 #ifdef'd out definitions --- Causes serious gdb failures on
3012 the i386. Need to investigate further before enabling.
3014 * i386b-nat.c (fetch_inferior_registers, store_inferior_registers,
3015 fetch_core_registers): New functions. These functions are defined
3016 if FETCH_INFERIOR_REGISTERS is set. Registers are fetched/stored
3017 with ptrace PT_GETREGS/PT_SETREGS.
3019 Tue Feb 20 16:55:06 1996 Stu Grossman (grossman@critters.cygnus.com)
3021 * findvar.c (extract_floating store_floating): Replace `long
3022 double' with `DOUBLEST'.
3024 Mon Feb 19 15:25:51 1996 J.T. Conklin <jtc@rtl.cygnus.com>
3026 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
3029 Mon Feb 19 10:32:05 1996 Jeffrey A Law (law@cygnus.com)
3031 * symtab.h (looup_minimal_symbol_solib_trampoline): Declare.
3033 * breakpoint.h (remove_solib_event_breakpoints): Declare.
3034 * breakpoint.c (remove_solib_event_breakpoints): New function.
3035 * somsolib.c (solib_create_inferior_hook): Remove all solib event
3036 breakpoints before inserting any new ones. Use a solib event
3037 breakpoint for the breakpoint at "_start".
3038 Remove extraneous "\n" from calls to warning.
3040 * breakpoint.c (breakpoint_1): Add missing "sigtramp" to bptypes
3043 Mon Feb 19 01:09:32 1996 Doug Evans <dje@cygnus.com>
3045 * dwarfread.c (add_partial_symbol): Use ADD_PSYMBOL_ADDR_TO_LIST
3046 for CORE_ADDR values.
3047 (new_symbol): Use SYMBOL_VALUE_ADDRESS for CORE_ADDR values.
3048 * symfile.h (add_psymbol_{,addr}to_list): Add prototypes.
3050 Sun Feb 18 14:37:13 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3052 * mipsread.c (mipscoff_symfile_read): Unconditionally add
3053 alpha coff dynamic symbols for all symbol files. Makes skipping
3054 over the trampoline code work when stepping from a function in a
3055 shared library into a function in a different shared library.
3057 Sun Feb 18 09:27:10 1996 Stu Grossman (grossman@cygnus.com)
3059 * config/sparc/tm-sparc.h: Define PS_FLAG_CARRY. Define
3060 RETURN_VALUE_ON_STACK to return long doubles on the stack.
3062 Sat Feb 17 16:33:11 1996 Fred Fish <fnf@cygnus.com>
3064 * Makefile.in (ch-exp.o): Add dependencies.
3065 (various): Add gdb_string.h to dependencies that need it.
3067 Sat Feb 17 08:57:50 1996 Fred Fish <fnf@cygnus.com>
3069 * symmisc.c (print_symbol_bcache_statistics): Update description for
3070 printing byte cache statistics.
3072 Thu Feb 16 16:02:03 1996 Stu Grossman (grossman@cygnus.com)
3074 * Add native support for long double data type.
3075 * c-exp.y (%union): Change dval to typed_val_float. Use DOUBLEST
3076 to store actual data. Change types of INT and FLOAT tokens to
3077 typed_val_int and typed_val_float respectively. Create new token
3078 DOUBLE_KEYWORD to specify the string `double'. Make production
3079 for FLOAT use type determined by parse_number. Add production for
3080 "long double" data type.
3081 * (parse_number): Use sscanf to parse numbers as float, double or
3082 long double depending upon the type of typed_val_float.dval. Also
3083 allow user to specify `f' or `l' suffix to explicitly specify
3084 float or long double constants. Change typed_val to
3086 * (yylex): Change typed_val to typed_val_int. Also, scan for
3088 * coffread.c (decode_base_type): Add support for T_LNGDBL basic
3090 * configure, configure.in: Add check for long double support in
3092 * defs.h: Define DOUBLEST appropriatly depending on whether
3093 HAVE_LONG_DOUBLE (from autoconf) is defined. Also, fix prototypes
3094 for functions that handle this type.
3095 * expression.h (union exp_element): doubleconst is now type
3097 * m2-exp.y f-exp.y (%union): dval becomes type DOUBLEST.
3098 * findvar.c (extract_floating): Make return value be DOUBLEST.
3099 Also, add support for numbers with size of long double.
3100 * (store_floating): Arg `val' is now type DOUBLEST. Handle all
3102 * parser-defs.h parse.c (write_exp_elt_dblcst): Arg expelt is now
3104 * valarith.c (value_binop): Change temp variables v1, v2 and v to
3105 type DOUBLEST. Coerce type of result to long double if either op
3107 * valops.c (value_arg_coerce): If argument type is bigger than
3108 double, coerce to long double.
3109 * (call_function_by_hand): If REG_STRUCT_HAS_ADDR is defined, and
3110 arg type is float and > 8 bytes, then use pointer-to-object
3111 calling conventions.
3112 * valprint.c (print_floating): Arg doub is now type DOUBLEST.
3113 Use appropriate format and precision to print out floating point
3115 * value.h: Fixup prototypes for value_as_double,
3116 value_from_double, and unpack_double to use DOUBLEST.
3117 * values.c (record_latest_value): Remove check for invalid
3118 floats. Allow history to store them so that people may examine
3119 them in hex if they want.
3120 * (value_as_double unpack_double): Change return value to DOUBLEST.
3121 * (value_from_double): Arg `num' is now DOUBLEST.
3122 * (using_struct_return): Use RETURN_VALUE_ON_STACK macro (target
3123 specific) to expect certain types to always be returned on the stack.
3125 Fri Feb 16 14:00:54 1996 Fred Fish <fnf@cygnus.com>
3127 * bcache.c, bcache.h: New files to implement a byte cache.
3128 * Makefile.in (SFILES): Add bcache.c.
3129 (symtab_h): Add bcache.h.
3130 (HFILES_NO_SRCDIR): add bcache.h
3131 (COMMON_OBJS): Add bcache.o
3132 (bcache.o): New target.
3133 * dbxread.c (start_psymtab): Make global_syms & static_syms
3134 type "partial_symbol **".
3135 * hpread.c (hpread_start_symtab): Ditto.
3136 * os9kread.c (os9k_start_psymtab): Ditto.
3137 * stabsread.h (start_psymtab): Ditto.
3138 * {symfile.c, symfile.h} (start_psymtab_common): Ditto.
3139 * maint.c (maintenance_print_statistics): Call
3140 print_symbol_bcache_statistics.
3141 * objfiles.c (allocate_objfile): Initialize psymbol bcache malloc
3143 * solib.c (allocate_rt_common_objfile): Ditto.
3144 * symfile.c (reread_symbols): Ditto.
3145 (free_objfile): Free psymbol bcache when objfile is freed.
3146 (objfile_relocate): Use new indirect psymbol pointers.
3147 * objfiles.h (struct objfile): Add psymbol cache.
3148 * symfile.c (compare_psymbols): Now passed pointers to pointers to
3150 (reread_symbols): Free psymbol bcache when freeing other objfile
3152 (add_psymbol_to_list, add_psymbol_addr_to_list): Initialize new
3153 psymbol using the psymbol bcache.
3154 (init_psymbol_list): Psymbol lists now contain pointers rather than
3155 the actual psymbols.
3156 * symfile.h (psymbol_allocation_list): Psymbol lists now dynamically
3157 grown arrays of pointers.
3158 (ADD_PSYMBOL_VT_TO_LIST): Initialize new symbol using the psymbol
3160 * symmisc.c (print_partial_symbols): Now takes pointer to pointer
3162 (print_symbol_bcache_statistics): New function to print per objfile
3164 (print_partial_symbol, print_partial_symbols,
3165 maintenance_check_symtabs, extend_psymbol_list):
3166 Account for change to pointer to pointer to partial symbol.
3167 * symtab.c (find_pc_psymbol, lookup_partial_symbol, decode_line_2,
3168 make_symbol_completion_list):
3169 Account for change to pointer to pointer to partial symbol.
3170 * symtab.h (bcache.h): Include.
3171 * xcoffread.c (xcoff_start_psymtab): Make global_syms & static_syms
3172 type "partial_symbol **".
3174 Fri Feb 16 10:02:34 1996 Fred Fish <fnf@cygnus.com>
3176 * dwarfread.c (free_utypes): New function.
3177 (read_file_scope): Call free_utypes as cleanup, rather than just
3178 freeing the utypes pointer.
3180 Thu Feb 15 21:40:52 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3182 * demangle.c (is_cplus_marker): New function, checks if a
3183 character is one of the commonly used C++ marker characters.
3184 * defs.h (is_cplus_marker): Add prototype.
3185 * c-typeprint.c (c_type_print_base), ch-lang.c (chill_demangle),
3186 cp-valprint.c (cp_print_class_method), mdebugread.c (parse_symbol),
3187 stabsread.c (define_symbol, read_member_functions, read_struct_fields),
3188 symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P),
3189 values.c (vb_match): Use is_cplus_marker instead of comparison
3192 Thu Feb 15 18:08:13 1996 Fred Fish <fnf@cygnus.com>
3194 * symfile.h (INLINE_ADD_PSYMBOL): Default this to 0 and possibly
3195 delete entirely someday.
3197 Thu Feb 15 15:25:34 1996 Stan Shebs <shebs@andros.cygnus.com>
3199 * mpw-make.sed: Edit out makefile rebuild rule.
3200 (host_alias, target_alias): Comment out instead of deleting.
3201 (@LIBS@): Edit out references.
3203 Tue Feb 13 22:56:46 1996 Fred Fish <fnf@cygnus.com>
3205 * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
3206 Use n_psyms in OBJSTAT, not psyms.
3208 Mon Feb 12 15:59:31 1996 Doug Evans <dje@charmed.cygnus.com>
3210 * configure.in (sparclet-*-aout*): New config.
3211 * configure: Regenerated.
3213 Mon Feb 12 14:17:52 1996 Fred Fish <fnf@cygnus.com>
3215 * somsolib.c (som_solib_add): Use xmalloc rather than bare
3216 unchecked call to malloc.
3217 * remote-mips.c (pmon_load_fast): ditto.
3218 * remote-mm.c (mm_open): ditto.
3219 * hpread.c (hpread_lookup_type): ditto.
3220 * remote-adapt.c (adapt_open): ditto.
3222 Mon Feb 12 13:11:32 1996 Fred Fish <fnf@cygnus.com>
3224 * f-lang.c (allocate_saved_bf_node, allocate_saved_function_node,
3225 allocate_saved_f77_common_node, allocate_common_entry_node,
3226 add_common_block): Use xmalloc rather than malloc, some of which
3228 * gnu-regex.c: At same point as other gdb specific changes
3229 #undef malloc and then #define it to xmalloc.
3230 * ch-exp.c (growbuf_by_size): Use xmalloc/xrealloc rather than
3231 bare unchecked calls to malloc/realloc.
3232 * stabsread.c (dbx_lookup_type): Use xmalloc rather than bare
3233 unchecked call to malloc.
3235 Wed Feb 7 11:31:26 1996 Stu Grossman (grossman@cygnus.com)
3237 * symtab.c (gdb_mangle_name): Change opname var to be const to
3238 match return val of cplus_mangle_name.
3239 * i960-tdep.c: Change arg types of next_insn to match callers.
3241 Wed Feb 7 07:34:24 1996 Fred Fish <fnf@cygnus.com>
3243 * config/i386/linux.mh (XM_CLIBS, GDBSERVER_LIBS): Remove. These
3244 apparently aren't needed in any reasonably recent version of
3247 Tue Feb 6 21:37:03 1996 Per Bothner <bothner@kalessin.cygnus.com>
3249 * stabsread.c (read_range_type): If !self-subrange and language
3250 is Chill, assume a true range. If a true_range is a sub_subrange,
3251 use builtin_type_int for index_type.
3253 Tue Feb 6 18:38:51 1996 J.T. Conklin <jtc@slave.cygnus.com>
3255 * nindy-share/nindy.c (say): Use stdarg.h macros when compiling
3256 with an ANSI compiler.
3258 start-sanitize-gdbtk
3259 Tue Feb 6 16:31:25 1996 Tom Tromey <tromey@creche.cygnus.com>
3261 * gdbtk.tcl (create_file_win): Eliminate text widget B1 binding so
3262 double-clicking will work again.
3263 (create_asm_win): Put "break" at end of all B1 bindings.
3264 (create_file_win): Lower "sel" tag, don't raise it.
3265 (ensure_line_visible): New proc.
3266 (update_listing, update_assembly): Use it.
3267 (create_copyright_window): Destroy window on Leave event.
3268 (create_command_window): Put "break" at end of all B2 bindings.
3271 Mon Feb 5 18:24:28 1996 Steve Chamberlain <sac@slash.cygnus.com>
3273 From Michael_Snyder@NeXT.COM (Michael Snyder):
3274 * valops.c (value_arg_coerce): Coerce float to double, unless the
3275 function prototype specifies float.
3277 Mon Feb 5 09:51:55 1996 Tom Tromey <tromey@creche.cygnus.com>
3279 * language.c (set_language_command): Use languages table when
3280 printing available languages.
3282 Sat Feb 3 12:22:05 1996 Fred Fish <fnf@cygnus.com>
3284 Fix problems reported by Hans Verkuil (hans@wyst.hobby.nl):
3285 * command.c (add_cmd): Add missing initialization for enums member.
3286 Reorder members to match structure declaration to make it easier to
3287 tell when one is missing.
3288 * exec.c (exec_file_command): Fix problem where filename in malloc'd
3289 memory is referenced after being freed.
3291 Sat Feb 3 03:26:21 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3293 * dwarfread.c (read_func_scope): Avoid GDB core dumps if
3294 AT_name tag is missing.
3296 * procfs.c (procfs_stopped_by_watchpoint): Fix logic when
3297 FLTWATCH and FLTKWATCH are defined.
3299 * remote.c (remote_read_bytes): Advance memaddr for transfers,
3300 return number of bytes transferred for partial reads.
3302 * top.c (init_signals): Reset SIGTRAP to SIG_DFL.
3304 Fri Feb 2 13:40:50 1996 Steve Chamberlain <sac@slash.cygnus.com>
3306 * win32-nat.c (mappings): Add ppc registers.
3307 (child_resume): Turn off step for ppc.
3309 Thu Feb 1 10:29:31 1996 Steve Chamberlain <sac@slash.cygnus.com>
3311 * config/powerpc/(cygwin32.mh, cygwin32.mt, tm-cygwin32.h,
3312 xm-cygwin32.h): New.
3313 * config/i386/(*win32*): Becomes *cygwin32*.
3314 * configure.in (i[3456]86-*-win32*): Becomes i[3456]86-*-cygwin32.
3315 (powerpcle-*-cygwin32): New.
3316 * configure: Regenerate.
3317 * win32-nat.c (child_create_inferior): Call CreateProcess
3318 with the right program arg.
3320 Thu Feb 1 11:01:10 1996 Jeffrey A Law (law@cygnus.com)
3322 * config/pa/tm-hppa.h (SOFT_FLOAT): Provide a default definition.
3324 Wed Jan 31 19:01:28 1996 Fred Fish <fnf@cygnus.com>
3326 * serial.c: Change fputc/fputs/fprintf to _unfiltered forms.
3328 Wed Jan 31 18:36:27 1996 Stan Shebs <shebs@andros.cygnus.com>
3330 * config/sparc/xm-sun4os4.h (HAVE_TERMIOS): Remove.
3332 * config/sparc/xm-sparc.h (HAVE_WAIT_STRUCT): Remove, never used.
3334 * config/i386/nm-i386mach.h (CHILD_PREPARE_TO_STORE): Move to
3335 here from config/i386/xm-i386mach.h, fix name.
3336 * config/i386/nm-sun386.h: Ditto, from config/i386/xm-sun386.h.
3337 * config/i386/nm-ptx4.h (CHILD_PREPARE_TO_STORE): Move to
3338 here from config/i386/xm-ptx4.h.
3339 * config/i386/nm-ptx4.h: Ditto, from config/i386/xm-ptx.h.
3340 * config/i386/nm-symmetry.h: Ditto, from config/i386/xm-symmetry.h.
3341 * config/m68k/nm-sun3.h: Ditto, from config/m68k/xm-sun3.h.
3342 * config/sparc/nm-nbsd.h: Ditto, from config/sparc/xm-nbsd.h.
3343 * config/sparc/nm-sun4os4: Ditto, from config/sparc/xm-sparc.h.
3345 * config/sparc/nm-sun4sol2.h: New file, renamed from nm-sysv4.h.
3346 (PRSVADDR_BROKEN): Move here from xm-sun4sol2.h.
3347 * config/sparc/sun4sol2.mh (NAT_FILE): Update.
3349 Wed Jan 31 17:20:26 1996 Jeffrey A Law (law@cygnus.com)
3351 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Handle software
3352 floating point correctly.
3353 (STORE_RETURN_VALUE): Likewise.
3354 * config/pa/tm-pro.h (SOFT_FLOAT): define.
3356 Wed Jan 31 13:34:52 1996 Fred Fish <fnf@cygnus.com>
3358 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
3359 Define to what should be reasonable values. However, apparently
3360 a bug in linux mmap prevents mapped symbol tables from working.
3362 Tue Jan 30 18:26:19 1996 Fred Fish <fnf@cygnus.com>
3364 * defs.h (errno.h>: Move #include closer to head of file to solve
3365 obscure problem with systems that declare perror with const arg, in
3366 both errno.h and stdio.h, and const is defined away by intervening
3369 Tue Jan 30 15:41:10 1996 Fred Fish <fnf@cygnus.com>
3371 From Jon Reeves <reeves@zk3.dec.com>:
3372 * i386-stub.c (getpacket): Change fprintf stream from "gdb" to stderr.
3373 (mem_fault_routine): Fix misplaced volatile type qualifier in decl.
3375 Mon Jan 29 19:05:58 1996 Fred Fish <fnf@cygnus.com>
3377 * Makefile.in (diststuff): Make all-doc; diststuff target does not
3378 exist in doc/Makefile.in.
3380 Mon Jan 29 18:44:57 1996 Stan Shebs <shebs@andros.cygnus.com>
3382 * config/m88k/xm-cxux.h (BP_HIT_COUNT): Remove, never used.
3384 Mon Jan 29 00:10:35 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
3386 * ch-valprint.c (calculate_array_length): New function to
3387 determine the length of an array type.
3388 (chill_val_print (case TYPE_CODE_ARRAY)): If the length of an
3389 array type is zero, call calculate_array_length.
3391 * gdbtypes.c (get_discrete_bounds (case TYPE_CODE_ENUM)): The
3392 values may not be sorted. Scan all entries and set the real lower
3395 Sun Jan 28 15:50:42 1996 Fred Fish <fnf@cygnus.com>
3397 * config/xm-linux.h: Move include of solib.h and #define of
3398 SVR4_SHARED_LIBS from here ...
3399 * config/nm-linux.h: ...to here.
3401 Sat Jan 27 10:34:05 1996 Fred Fish <fnf@cygnus.com>
3403 * configure.in (AC_CHECK_HEADERS): Check for sys/procfs.h.
3404 Also check for gregset_t and fpregset_t types.
3405 * configure: Regenerate.
3406 * core-regset.c (sys/procfs.h): Only include if HAVE_SYS_PROCFS_H
3408 (fetch_core_registers): Turn into stub unless both HAVE_GREGSET_T
3409 and HAVE_FPREGSET_T are defined. These changes allow systems
3410 like linux that are migrating to /proc support to use a single
3411 configuration for both new and old versions.
3413 * config/i386/linux.mt: Note that this is now for both a.out and
3415 * config/i386/linux.mh (NATDEPFILES): Add solib.o, core-regset.o,
3417 * config/i386/tm-linux.h (tm-sysv4.h): Include.
3418 * config/i386/xm-linux.h (solib.h): Include
3419 (SVR4_SHARED_LIBS): Define.
3420 * i386v4-nat.c: Only compile if HAVE_SYS_PROCFS_H is defined.
3421 (supply_gregset, fill_gregset): Compile if HAVE_GREGSET_T defined.
3422 (supply_fpregset, fill_fpregset): Compile if HAVE_FPREGSET_T
3425 Fri Jan 26 13:48:14 1996 Stan Shebs <shebs@andros.cygnus.com>
3427 * config/sparc/xm-sparc.h (NEW_SUN_CORE): Remove, never used.
3428 * config/i386/xm-sun386.h: Ditto.
3429 * config/m68k/xm-sun2.h, config/m68k/xm-sun3.h: Ditto.
3431 Thu Jan 25 16:05:53 1996 Tom Tromey <tromey@creche.cygnus.com>
3433 * Makefile.in (INSTALLED_LIBS, CLIBS): Include @LIBS@.
3435 Thu Jan 25 09:22:15 1996 Steve Chamberlain <sac@slash.cygnus.com>
3437 From Greg McGary <gkm@gnu.ai.mit.edu>:
3438 * dcache.c (dcache_peek, dcache_poke): Advance addr for
3441 Thu Jan 25 13:08:51 1996 Doug Evans (dje@cygnus.com)
3443 * infrun.c (normal_stop): Fix test for shared library event.
3445 Thu Jan 25 03:26:38 1996 Doug Evans <dje@charmed.cygnus.com>
3447 * configure.in (sparc64-*-*): Add default host configuration.
3448 start-sanitize-gdbtk
3449 (sparc64-*-solaris2* host): Link statically if GCC used.
3451 (sparc64-*-solaris2*): Add target configuration.
3452 * configure: Regenerated.
3453 * sparc/sp64sol2.mt: New file.
3455 Wed Jan 24 22:31:37 1996 Doug Evans <dje@charmed.cygnus.com>
3457 * Makefile.in (RUNTEST): srcdir renamed to rootsrc.
3459 Wed Jan 24 15:42:24 1996 Tom Tromey <tromey@creche.cygnus.com>
3461 * Makefile.in (lint): Close backquotes.
3463 start-sanitize-gdbtk
3464 Wed Jan 24 15:28:41 1996 Tom Tromey <tromey@creche.cygnus.com>
3466 * gdbtk.tcl, gdbtk.c: Updated copyrights.
3468 * configure.in: Look for -ldl or -ldld when using Tcl 7.5 or
3470 * configure: Rebuilt.
3473 Wed Jan 24 13:19:10 1996 Fred Fish <fnf@cygnus.com>
3475 * NEWS: Make note of new record and replay feature for
3476 remote debug sessions.
3477 * serial.c (gdbcmd.h): Include.
3478 (serial_logfile, serial_logfp, serial_reading, serial_writing):
3479 Define here, for remote debug session logging.
3480 (serial_log_command, serial_logchar, serial_write, serial_readchar):
3481 New functions for remote debug session logging.
3482 (serial_open): Open remote debug session log file when needed.
3483 (serial_close): Close remote debug session log file when needed.
3484 (_initialize_serial): Add set/show commands for name of remote
3485 debug session log file.
3486 * serial.h (serial_readchar): Declare
3487 (SERIAL_READCHAR): Call serial_readchar().
3488 (SERIAL_WRITE): Call serial_write().
3489 (serial_close): Declare as extern.
3490 (serial_logfile, serial_logfp): Declare.
3491 * top.c (execute_command): Declare serial_logfp. Log user command
3492 in remote debug session log if log file is open.
3493 * remote-array.c (array_wait): #ifdef out echo to gdb_stdout.
3494 (array_read_inferior_memory): Rewrite to fix memory overwrite bug.
3495 * remote-array.c (SREC_SIZE): Remove, duplicates define in
3497 * remote-array.c (hexchars, hex2mem): Remove, unused.
3498 * gdbserver/low-linux.c (store_inferior_registers): Remove
3499 unnecessary extern declaration of registers[].
3500 * gdbserver/Makefile.in (all): Add gdbreplay.
3501 * gdbserver/gdbreplay.c: New file.
3502 * gdbserver/README: Give example of recording a remote
3503 debug session with gdb and then replaying it with gdbreplay.
3505 Tue Jan 23 18:02:35 1996 Per Bothner <bothner@kalessin.cygnus.com>
3507 * stabsread.c (rs6000_builtin_type): Make bool type unsigned.
3508 (read_one_struct_field): Support boolean bitfields.
3509 * c-valprint.c (c_val_print): Print booleans properly.
3511 Tue Jan 23 18:54:09 1996 Stan Shebs <shebs@andros.cygnus.com>
3513 * remote-vxsparc.c (vx_convert_to_virtual, vx_convert_from_virtual):
3515 * config/sparc/vxsparc.mt (TDEPFILES): Add remote-vxsparc.o.
3517 Tue Jan 23 14:36:05 1996 Per Bothner <bothner@kalessin.cygnus.com>
3519 * ch-exp.c (parse_tuple): Error if invalid mode.
3521 * value.h (COERCE_ARRAY): Don't coerce enums.
3522 (COERCE_ENUM): Don't COERCE_REF.
3523 (COERCE_NUMBER): New macro (same as COERCE_ARRAY then COERCE_ENUM).
3524 * valops.c (value_assign): Only do COERCE_ARRAY if internalvar (let
3525 value_cast handle it otherwise); do *not* COERCE_ENUM either way.
3526 * valarith.c: Use COERCE_NUMBER instead od COEREC_ARRAY.
3527 Add COERCE_REF before COERCE_ENUM.
3528 * values.c (value_as_long): Simplify.
3530 * valops.c (value_array): Create internalvar if !c_style_arrays.
3532 * language.c (lang_bool_type): Add Fortran support.
3533 * eval.c (OP_BOOL): Use LA_BOOL_TYPE.
3535 Tue Jan 23 13:08:26 1996 Jeffrey A Law (law@cygnus.com)
3537 * symfile.c (auto_solib_add): Renamed from auto_solib_add_at_startup.
3538 All references changed.
3539 * breakpoint.c (bpstat_what): Add shlib_event to the class types.
3540 Update state table. Reformat so that it's still readable.
3541 When we hit the shlib_event breakpoint, set the calss of shlib_event.
3542 (breakpoint_1): Add "shlib events" as a breakpoint type.
3543 Print the shlib_event breakpoint like other breakpoints.
3544 (create_solib_event_breakpoint): New function.
3545 (breakpoint_re_set_one): Handle solib_event breakpoints.
3546 * breakpoint.h (enum bytype): Add bp_shlib_event breakpoint type.
3547 (enum bpstat_what_main_action): Add BPSTAT_WHAT_CHECK_SHLIBS
3549 (create_solib_event_breakpoint): Declare.
3550 * infrun.c (wait_for_inferior): Handle CHECK_SHLIBS bpstat.
3551 (normal_stop): Inform the user when the inferior stoped due
3552 to a shared library event.
3553 (_initialize_infrun): Add new set/show variable "stop-on-solib-events"
3554 to control whether or not gdb continues the inferior or stops it when
3555 a shared library event occurs.
3556 * minsyms.c (lookup_minimal_symbol_solib_trampoline): New function.
3557 * somsolib.c (TODO list): Update.
3558 (som_solib_create_inferior_hook): Arrange for gdb to be notified
3559 when significant shared library events occur.
3560 * hppa-tdep.c (find_unwind_entry): No longer static.
3562 Tue Jan 23 09:00:48 1996 Doug Evans <dje@charmed.cygnus.com>
3564 * printcmd.c (print_insn): Pass fprintf_unfiltered to
3565 INIT_DISASSEMBLE_INFO.
3566 start-sanitize-gdbtk
3567 * gdbtk.c (gdb_disassemble): Likewise.
3570 Mon Jan 22 16:59:40 1996 Stan Shebs <shebs@andros.cygnus.com>
3572 * remote.c (remotebreak): New GDB variable.
3573 (remote_break): New global.
3574 (remote_interrupt): Send a break instead of ^C if remote_break.
3575 * NEWS: Describe the new variable.
3577 Mon Jan 22 16:24:11 1996 Doug Evans <dje@charmed.cygnus.com>
3579 * sparc-tdep.c (_initialize_sparc_tdep): Always use print_insn_sparc.
3581 Fri Jan 19 07:19:38 1996 Fred Fish <fnf@cygnus.com>
3583 * hp300ux-nat.c (getpagesize): Remove unused function
3584 fetch_core_registers.
3585 (hp300ux_core_fns): Remove, is unused.
3586 (_initialize_core_hp300ux): Remove, is unused.
3587 (gdbcore.h): Remove #include, no longer needed.
3589 Fri Jan 19 00:59:53 1996 Jeffrey A Law (law@cygnus.com)
3591 * rs6000-nat.c (exec_one_dummy_insn): Rework to avoid
3592 ptrace bug in aix4.1.3 on the rs6000.
3594 Wed Jan 17 13:22:27 1996 Stan Shebs <shebs@andros.cygnus.com>
3596 * remote-hms.c (hms_ops): Add value for to_thread_alive.
3597 * remote-nindy.c (nindy_ops): Ditto.
3598 * remote-udi.c (udi_ops): Ditto.
3600 Tue Jan 16 18:00:35 1996 James G. Smith <jsmith@cygnus.co.uk>
3602 * remote-mips.c (pmon_opn, pmon_wait, pmon_makeb64, pmon_zeroset,
3603 pmon_checkset, pmon_make_fastrec, pmon_check_ack,
3604 pmon_load_fast): New functions. Support for the PMON monitor world.
3605 (common_open): New function to merge support for different monitors.
3606 (mips_open): Use common_open().
3607 (mips_send_command): New function.
3608 (mips_send_packet): Scan out-of-sequence packets.
3609 (mips_enter_debug, mips_exit_debug): New functions.
3610 (pmon_ops): New target definition structure.
3612 Tue Jan 16 11:22:58 1996 Stu Grossman (grossman@cygnus.com)
3614 * Makefile.in (CLIBS): Add LIBS to allow libraries to be
3615 specified on the make command line (via make LIBS=xxx).
3617 * configure.in (enable-gm): magic.o -> gmagic.o.
3620 start-sanitize-gdbtk
3621 Mon Jan 15 09:58:41 1996 Tom Tromey <tromey@creche.cygnus.com>
3623 * gdbtk.tcl (create_expr_window): Many changes to update GUI.
3624 (add_expr): Changes from create_expr_window.
3625 (create_command_window): Set focus.
3626 (delete_expr): Rewrote.
3627 (expr_update_button): New proc.
3628 (add_expr): Put bindings on FocusIn, FocusOut.
3629 Don't allow .file_popup to be torn off.
3632 Fri Jan 12 21:41:58 1996 Jeffrey A Law (law@cygnus.com)
3634 * symtab.c (find_pc_symtab): Don't lose if OBJF_REORDERED
3635 is set but there are no psymtabs.
3637 Fri Jan 12 15:56:12 1996 Steve Chamberlain <sac@slash.cygnus.com>
3639 * dsrec.c (load_srec): Remove unused variable.
3640 * monitor.c (monitor_expect): Don't expect a ^C to echo.
3641 * serial.c (serial_open): Add parallel interface.
3642 * sh3-rom.c (parallel, parallel_in_use): New.
3643 (sh3_load): If parallel_in_use, download though the
3645 (sh3_open): Open parallel port if specified.
3646 (sh3_close): New function.
3647 (_inititalize_sh3): Add sh3_close hook and documentation.
3648 * monitor.c (monitor_close): Export.
3649 * monitor.h (monitor_close): Add prototype.
3651 Fri Jan 12 13:11:42 1996 Stan Shebs <shebs@andros.cygnus.com>
3653 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
3654 * remote.c (remotetimeout): New GDB variable, use to set the
3655 remote timeout for reading.
3657 start-sanitize-gdbtk
3658 Fri Jan 12 09:36:17 1996 Tom Tromey <tromey@creche.cygnus.com>
3660 * gdbtk.tcl (gdbtk_tcl_query): Swap Yes and No buttons.
3661 (update_listing): Use lassign. Use "see" to scroll. Don't need
3662 screen_top, screen_bot, screen_height.
3663 (update_assembly): Use "see" to scroll.
3664 (textscrollproc): Removed.
3665 (create_file_win): Don't use textscrollproc.
3666 (asmscrollproc): Removed.
3667 (create_asm_window): Don't use asmscrollproc.
3668 (create_asm_win): Ditto.
3669 (screen_height, screen_top, screen_bot): Removed.
3670 (run_editor): New proc.
3671 (build_framework): Use it.
3672 (create_file_win, create_source_window): Don't use textscrollproc.
3673 (create_breakpoints_window): Set -xscrollcommand on canvas.
3674 (not_implemented_yet): Default button is 0.
3675 (delete_char): Don't use tk_textBackspace.
3676 (create_command_window): Allow Tk bindings to fire after deleting
3678 (create_command_window): Make Delete delete left, not right.
3681 Fri Jan 12 07:14:27 1996 Fred Fish <fnf@cygnus.com>
3683 * lynx-nat.c, irix4-nat.c, sparc-nat.c: Include gdbcore.h
3684 to get "struct core_fns" defined.
3685 * Makefile.in (lynx-nat.o, irix4-nat.o, sparc-nat.o):
3686 Are dependent upon gdbcore_h.
3688 Thu Jan 11 23:13:24 1996 Per Bothner <bothner@cygnus.com>
3690 * symfile.c (decrement_reading_symtab): New function.
3691 * symfile.c, symtab.h (currently_reading_symtab): New variable.
3692 * symfile.c (psymtab_to_symtab): Adjust currently_reading_symtab.
3693 * gdbtypes.c (check_typedef): Don't call lookup_symbol if
3694 currently_reading_symtab (since that could infinitely recurse).
3696 Thu Jan 11 17:21:25 1996 Per Bothner <bothner@kalessin.cygnus.com>
3698 * stabsread.c (read_struct_type): Trivial simplification.
3700 * stabsread.c (define-symbol): Use invisible references
3701 for TYPE_CODE_SET and TYPE_CODE_BITSTRING too.
3702 * valops.c (call_function_by_hand): Likewise.
3703 * eval.c (evaluate_subexp_standard): When known, use the formal
3704 parameter type as the expected type when evaluating arg expressions.
3705 * ch-lang.c (evaluate_subexp_chill): Likewise (for MULTI_SUBSCRIPT).
3707 start-sanitize-gdbtk
3708 Thu Jan 11 10:08:14 1996 Tom Tromey <tromey@creche.cygnus.com>
3710 * main.c (main): Disable window interface if --help or --version
3713 * gdbtk.tcl (FSBox): Don't use tk_listboxSingleSelect.
3715 Changes in sync with expect:
3716 * configure.in (ENABLE_GDBTK): Use CY_AC_PATH_TCL and
3718 * aclocal.m4: Replaced with version from expect.
3719 * configure: Regenerated.
3722 Wed Jan 10 16:08:49 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
3724 * configure.in, configure: Recognize rs6000-*-aix4*.
3725 * config/powerpc/xm-aix.h: Reduce to include "xm-aix4.h".
3726 * config/rs6000/aix4.mh (XM_FILE): Point to xm-aix4.h.
3727 * config/rs6000/xm-aix4.h: New file.
3728 * config/xm-aix4.h: New file.
3730 Wed Jan 10 11:25:37 1996 Fred Fish <fnf@cygnus.com>
3732 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
3733 * gdbserver/low-linux.c: New file.
3734 * remote.c (remote_read_bytes): Fix aborts on larger packets.
3736 * config/i386/linux.mh (GDBSERVER_DEPFILES, GDBSERVER_LIBS):
3738 * stabsread.c (define_symbol): If register value is too large,
3739 tell what it is and what max is.
3741 start-sanitize-gdbtk
3742 Wed Jan 10 09:07:22 1996 Tom Tromey <tromey@creche.cygnus.com>
3744 * gdbtk.tcl (gdbtk_tcl_fputs, gdbtk_tcl_fputs_error,
3745 gdbtk_tcl_flush): Use "see", not "yview".
3746 (gdbtk_tcl_query): Use questhead bitmap.
3747 various: Always wrap condition of 'if' in {...}.
3748 (add_breakpoint_frame): Set -value on radiobuttons.
3749 (lassign): New proc.
3750 (add_breakpoint_frame): Use lassign, not series of assignments.
3751 (decr): Made faster.
3752 (interactive_cmd): Use "see", not "yview".
3753 (not_implemented_yet): Use warning bitmap.
3754 (update_expr): Don't allow $expr to be evalled by Tcl.
3755 (create_expr_window): Don't use "focus".
3756 (delete_char, delete_line): Define globally.
3757 (delete_line, delete_char, create_command_window, update_autocmd,
3758 build_framework, create_asm_win, create_file_win): Use "see", not
3760 (create_copyright_window, center_window, bind_widget_after_class):
3762 (FSBox,create_command_window, create_autocmd_window): Binding
3764 (textscrollproc): Define globally.
3765 (build_framework): tk_menuBar no longer needed. Keys Prior, Next,
3766 Home, End, Up, and Down are all defined by Tk.
3767 (apply_filespec): Use error bitmap in dialog.
3768 (files_command): Don't use tk_listboxSingleSelect.
3769 (files_command): Don't use "uniq" to remove duplicates from a
3771 (update_assembly): Use lassign.
3772 (create_asm_win): Removed redundant bindings.
3773 (listing_window_button_1, file_popup_menu): Use tk_popup.
3774 (ButtonRelease-1 binding): Just remove tag from window; rest
3777 * gdbtk.c (gdbtk_query): Use Tcl_Merge to provide quoting.
3778 (call_wrapper): Use Tcl_Eval, not Tcl_VarEval.
3779 (gdbtk_call_command): Ditto.
3782 Tue Jan 9 09:33:53 1996 Jeffrey A Law (law@cygnus.com)
3784 * hpread.c (hpread_build_psymtabs): Finish Jan 4th
3785 enum namespace -> enum_namespace change.
3787 Tue Jan 9 04:44:47 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
3789 * ch-exp.c (parse_primval): In case ARRAY, add missing
3792 Mon Jan 8 13:29:34 1996 Stan Shebs <shebs@andros.cygnus.com>
3794 * remote-mips.c (mips_receive_header): Recognize \012 instead
3795 of \n, but write \n when program sends a \012.
3796 * ser-mac.c (mac_input_buffer): Increase size of buffer.
3798 Mon Jan 8 12:00:40 1996 Jeffrey A Law (law@cygnus.com)
3800 * infptrace.c (initialize_infptrace): Move function out of
3801 #ifdef conditional; put code within the function inside an
3804 * buildsym.c (end_symtab): Remove sort_pending and sort_linevec
3805 arguments. Sorting is now dependent on OBJF_REORDERED. All
3806 callers/references changed.
3807 * dbxread.c (read_ofile_symtab): Correctly determine value for
3808 last_source_start_addr for reordered executables.
3809 (process_one_symbol): Handle N_FUN with no name as an end of
3811 * partial-stab.h (case N_FN, N_TEXT): Don't assume CUR_SYMBOL_VALUE
3812 is the high text address for a psymtab.
3813 (case N_SO): Likewise.
3814 (case N_FUN): Handle N_FUN with no name as an end of function
3816 * minsyms.c (lookup_minimal_symbol_by_pc): Examine all symbols
3817 at the same address rather than a random subset of them.
3818 * coffread.c (coff_symfile_init): Set OBJF_REORDERED.
3819 * elfread.c (elf_symfile_init): Similarly.
3820 * somread.c (som_symfile_init): Similarly.
3821 * xcoffread.c (xcoff_symfile_init): Similarly.
3823 Fri Jan 5 17:46:01 1996 Stu Grossman (grossman@cygnus.com)
3825 * stack.c (print_stack_frame print_frame_info) symmisc.c
3826 (dump_symtab): Change RETURN_MASK_ERROR to RETURN_MASK_ALL so
3827 that catch_errors doesn't get blindsided by QUIT and lose the
3828 cleanup chain. This fixes a problem where ^C while in a
3829 user-defined command sometimes leaves instream NULL and causes a
3830 segfault in command_loop.
3832 Fri Jan 5 13:59:16 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
3834 * configure.in, configure: Add `-ldl -lw' for Solaris linking.
3836 Fri Jan 5 12:02:00 1996 Steve Chamberlain <sac@slash.cygnus.com>
3838 * config/sh/sh.mt, config/powerpc/*.mt, config/pa/hppapro.mt,
3839 config/m68k/monitor.mt, config/h8500/h8500.mt, config/h8300/h8300.mt:
3840 srec.o renamed to dsrec.o.
3842 Thu Jan 4 16:04:54 1996 Stu Grossman (grossman@cygnus.com)
3844 * breakpoint.c (remove_breakpoint): Change error to warning so
3845 that hardware watchpoint removal problems won't leave breakpoint
3846 traps in the target.
3847 start-sanitize-gdbtk
3848 * configure configure.in: Make --enable-gdbtk be the default.
3850 * remote-e7000.c (e7000_insert_breakpoint,
3851 e7000_remove_breakpoint): Use e7000 based breakpoints, not memory
3853 * (e7000_wait): Adjust PC back by two when we see a breakpoint to
3854 compensate for e7000 maladjustment.
3855 * sparcl-tdep.c (sparclite_check_watch_resources): Fix logic bug
3856 which prevented hardware watchpoints from working.
3858 Thu Jan 4 10:44:17 1996 Fred Fish <fnf@cygnus.com>
3860 * infptrace.c (udot_info): New function.
3861 (PT_*): Define each individually if that one is not defined.
3862 * rs6000-nat.c (kernel_u_size): New function
3863 Include <sys/user.h> for "struct user"
3864 * alpha-nat.c (kernel_u_size): New function.
3865 Include <sys/user.h> for "struct user"
3866 * sparc-nat.c (kernel_u_size): New function.
3867 Include <sys/user.h> for "struct user"
3868 * i386b-nat.c (kernel_u_size): New function.
3869 * i386v-nat.c (kernel_u_size): New function.
3870 * config/i386/nm-fbsd.h (KERNEL_U_SIZE): Define.
3871 (kernel_u_size): Declare.
3872 * config/i386/nm-linux.h (KERNEL_U_SIZE): Define.
3873 (kernel_u_size): Declare.
3874 * config/sparc/nm-sun4os4.h (KERNEL_U_SIZE): Define.
3875 (kernel_u_size): Declare.
3876 * config/alpha/nm-osf2.h (KERNEL_U_SIZE): Define.
3877 (kernel_u_size): Declare.
3878 * config/rs6000/nm-rs6000.h (KERNEL_U_SIZE): Define.
3879 (kernel_u_size): Declare.
3881 Thu Jan 4 11:00:01 1996 steve chamberlain <sac@slash.cygnus.com>
3883 * mdebugread.c (mylookup_symbol): enum namespace becomes
3884 enum_namespace type.
3885 * symfile.c (add_psymbol_to_list)
3886 (add_psymbol_addr_to_list): Ditto.
3887 * symtab.c (lookup_partial_symbol): Ditto.
3888 (lookup_symbol): Ditto.
3889 (lookup_block_symbol): Ditto.
3890 * win32-nat.c (handle_load_dll): Use incoming dll base.
3891 (child_wait): Catch DLL load errors.
3892 (create_child_inferior): Translated between paths correctly.
3894 Wed Jan 3 23:13:53 1996 Fred Fish <fnf@cygnus.com>
3896 * i386v4-nat.c (supply_gregset, fill_gregset): Subtract NUM_FREGS
3897 from NUM_REGS to get number of general registers that we care about.
3898 * config/i386/tm-i386.h (REGISTER_BYTES): Define in terms
3899 of number of general regs and number of floating point regs.
3901 Wed Jan 3 19:49:54 1996 steve chamberlain <sac@slash.cygnus.com>
3903 * config/i386/tm-win32.h (IN_SOLIB_CALL_TRAMPOLINE): New.
3904 (SKIP_TRAMPOLINE_CODE): New.
3905 * config/i386/xm-win32.h (CANT_FORK): Deleted.
3906 (SLASH*) Changed to use unix style slash.
3907 * symtab.h (namespace enum): becomes typedef to avoid namespace
3909 * infcmd.c (path_command): Use empty string if PATH name not set.
3910 * i386-tdep.c (skip_trampoline_code): New function.
3911 * srec.c: Renamed dsrec.c to avoid filename collision.
3912 * Makefile.in: Cope with renaming.
3914 Wed Jan 3 13:09:04 1996 Fred Fish <fnf@cygnus.com>
3916 * symmisc.c (print_objfile_statistics): Print memory use statistics
3917 for objfile psymbol, symbol, and type obstacks.
3919 Tue Jan 2 13:41:14 1996 Stan Shebs <shebs@andros.cygnus.com>
3921 * config/mips/nm-irix5.h: Restore.
3922 (TARGET_HAS_HARDWARE_WATCHPOINTS, etc): Define as for Irix 4;
3923 from Lee Iverson <leei@ai.sri.com>.
3924 * config/mips/irix5.mh (NAT_FILE): Use nm-irix5.h.
3925 * config/mips/irix[345].mh (MUNCH_DEFINE): Remove.
3927 For older changes see ChangeLog-95
3933 version-control: never