1 Fri Aug 9 09:12:11 1996 Jeffrey A Law (law@cygnus.com)
3 * config/tm-hppa.h (EXTRACT_RETURN_VALUE): Fix thinko in
6 Thu Aug 8 10:12:36 1996 Stu Grossman (grossman@critters.cygnus.com)
8 * symfile.c (symfile_bfd_open): Change ifdef from __WIN32__ to
11 * somread.c: Rearrange order of includes to fix warnings under
12 hpux-10.10. Also don't include sys/file.h.
14 Wed Aug 7 21:45:52 1996 Stu Grossman (grossman@critters.cygnus.com)
16 * dbxread.c: Don't include param.h or sys/file.h.
17 * (dbx_symfile_read): Determine symfile_relocatable from bfd
18 flags instead of file extension. Also clean up a little bit.
20 Wed Aug 7 17:18:37 1996 Stu Grossman (grossman@critters.cygnus.com)
22 * dwarf2read.c dwarfread.c exec.c infcmd.c infrun.c main.c
23 mdebugread.c os9kread.c source.c top.c utils.c: Don't
24 include param.h or sys/file.h (or unistd.h in some cases).
25 * defs.h exec.c inflow.c remote-array.c remote-e7000.c
26 sparcl-tdep.c terminal.h utils.c: Replace all occurances of
27 __WIN32__, WINGDB, WIN32, etc... with _WIN32.
28 * main.c: Remove #ifndef WINGDB around option processing. Fix
29 bug with passing argc==0 and argv==NULL to getopt.
30 * (main) Remove calls to access() before source_command. Let
31 soure_command handle access errors.
32 * maint.c (maintenance_dump_me): #ifdef out for _WIN32.
33 * symtab.c (operator_chars): Make this global for wingdb.
34 * top.c (disconnect): #ifdef out for _WIN32.
35 * (source_command): If got an error and from_tty, then call print
36 error, else just return quietly.
37 * utils.c (fatal_dump_core): Can't kill ourselves under windows.
39 * (pollquit notice_quit): #ifdef out stuff that doesn't exist
42 Wed Aug 7 09:59:19 1996 Jeffrey A Law (law@cygnus.com)
44 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Tweak for
45 structures > 4 bytes in size.
47 * valops.c (call_function_by_hand): Handle aligning stacks that
49 * config/pa/tm-hppa.h (USE_STRUCT_CONVENTION): Define.
50 (STACK_ALIGN): Define.
51 * hppa-tdep.c (hppa_alignof): Don't demand a minumim two byte
52 alignment on structs/unions.
54 Sun Aug 4 16:22:42 1996 Fred Fish <fnf@cygnus.com>
56 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Define to "int *",
57 which is the documented type under at least AIX 3 and AIX 4.
59 Sat Aug 3 04:02:46 1996 Fred Fish <fnf@cygnus.com>
61 * config/alpha/alpha-osf3.mh (XM_FILE): Change from xm-alpha.h to
63 (MMALLOC_CFLAGS): Define NO_MMCHECK to not install consistency
67 Thu Aug 1 20:35:01 1996 Tom Tromey <tromey@creche.cygnus.com>
69 * gdbtk.c (mainWindow): Deleted.
70 (cleanup_init): Don't destroy main window.
71 (gdbtk_init): Main window now created by Tk_Init.
73 * configure.in: Most X checks now handled automatically by Tk.
74 Use new macros to find Tcl/Tk.
75 * aclocal.m4: New version for new Tcl/Tk; from Don Libes.
76 * config.in, configure: Regenerated.
78 * Makefile.in (TCL, TCL_CFLAGS, TK, TK_CFLAGS, X11_CFLAGS,
79 X11_LDFLAGS, X11_LIBS): Changed for new Tcl and Tk.
82 Thu Aug 1 10:11:34 1996 Fred Fish <fnf@cygnus.com>
84 * config/mips/tm-mips.h (TM_MIPS_H): Enclose file contents in
85 this, define when contents are included.
86 (mips_read_processor_type): Add prototype.
87 * config/mips/xm-mips.h: Remove strdup decl, now in gdb_string.h
88 * mdebugread.c (ecoff_relocate_efi): Add prototype.
89 (fixup_sigtramp): Only needed when TM_MIPS_H is defined.
92 Thu Aug 1 16:12:05 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
94 * Makefile.in (gdbtk.tcl): put in $(datadir), not $(libdir).
97 Wed Jul 31 20:21:24 1996 Fred Fish <fnf@cygnus.com>
99 * rs6000-nat.c (add_vmap): Return 0 to caller rather than random value.
100 (vmap_ldinfo): Ensure got_exec_file is not used uninitialized.
101 (fetch_core_registers): Add prototype.
102 (vmap_symtab): Ditto.
103 (objfile_symbol_add): Ditto.
105 (vmap_ldinfo): Ditto.
108 Tue Jul 30 17:57:46 1996 Stan Shebs <shebs@andros.cygnus.com>
110 * stabsread.c (get_substring): Declare second arg as int.
112 * remote-es.c: Include gdb_string.h after defs.h.
114 Mon Jul 29 21:13:20 1996 Fred Fish <fnf@cygnus.com>
116 * rs6000-tdep.c (push_arguments): Remove unused variable "pc".
117 (branch_dest): Remove unused variable "offset".
118 (pop_dummy_frame): Add prototype and make static.
119 (push_arguments): Guard against using len uninitialized.
120 (push_arguments): Guard against using arg uninitialized.
121 (frame_saved_pc): Remove unused variable "frameless".
122 (free_loadinfo): Ifdef out unused function.
124 * xcoffread.c (compare_lte): Change prototype and function to
125 be correct type for passing to qsort.
126 (add_stab_to_list): Ifdef out unused function and prototype.
127 (compare_lte): Add prototype
128 (arrange_linetable): Ditto.
129 (record_include_begin): Ditto.
130 (record_include_end): Ditto.
131 (process_linenos): Ditto.
132 (xcoff_next_symbol_text): Ditto.
133 (scan_xcoff_symtab): Ditto.
134 (xcoff_initial_scan): Ditto.
136 * mips-tdep.c (mips_read_processor_type): Add parens around
137 bitwise-and operands in comparison; previous expression always
138 evaluated to 0 because of equality comparison of two constants.
140 * rs6000-tdep.c (skip_prologue): Add missing parens around
141 operands of logical-or so that first operand does not bind
142 to previous logical-and.
144 * configure.in: Expand "long long" test to include code that triggers
145 known problem on HPUX with native compiler.
146 (configure): Regenerated.
148 Mon Jul 29 18:12:27 1996 Jeffrey A Law (law@cygnus.com)
150 * somsolib.c (som_solib_create_inferior_hook): Don't
151 warn if __d_pid can't be found.
153 Sun Jul 28 10:46:39 1996 Fred Fish <fnf@cygnus.com>
155 * config/mips/tm-mips.h (struct frame_info): Forward decl.
156 (struct type): Ditto.
157 (struct value): Ditto.
159 * config/mips/tm-mips.h (sigtramp_address): Move extern decl
160 from mips-tdep.c to here.
161 (sigtramp_end): Ditto.
162 (fixup_sigtramp): Ditto.
164 * config/mips/tm-mips.h (init_extra_frame_info): Add prototype.
165 (mips_frame_chain): Ditto.
166 (mips_step_skips_delay): Ditto.
167 (mips_frame_saved_pc): Ditto.
168 (mips_find_saved_regs): Ditto.
169 (mips_frame_num_args): Ditto.
170 (mips_pop_frame): Ditto.
171 (mips_extract_return_value): Ditto.
172 (mips_store_return_value): Ditto.
173 (mips_push_dummy_frame): Ditto.
174 (mips_push_arguments): Ditto.
175 (mips_do_registers_info): Ditto.
176 (ecoff_relocate_efi): Ditto.
177 (ecoff_relocate_efi): Ditto.
178 * irix4-nat.c (fetch_core_registers): Add prototype.
179 * mips-tdep.c (read_next_frame_reg): Add prototype
180 (heuristic_proc_start): Ditto.
181 (heuristic_proc_desc): Ditto.
182 (mips_print_register): Ditto.
183 * config/mips/nm-irix5.h (procfs_set_watchpoint): Add prototype.
184 (procfs_stopped_by_watchpoint): Ditto.
185 * config/mips/nm-irix4.h (procfs_set_watchpoint): Add prototype.
186 (procfs_stopped_by_watchpoint): Ditto.
187 * config/alpha/tm-alpha.h (ecoff_relocate_efi): Add prototype.
188 (struct symbol): Add forward decl for prototype.
190 * breakpoint.c (internal_breakpoint_number): Only needed if
191 GET_LONGJMP_TARGET or SOLIB_ADD is defined.
193 * objfiles.c (ecoff_relocate_efi): Remove prototype.
195 Sat Jul 27 17:47:35 1996 Fred Fish <fnf@cygnus.com>
197 * configure.in: Add test for "long long" support.
198 * configure: Regenerate with autoconf.
199 * acconfig.h: Add CC_HAS_LONG_LONG
200 * config.in: Regenerate with autoheader.
201 * config/mips/tm-mips64.h (FORCE_LONG_LONG): Remove
202 * config/sparc/tm-sp64.h (CC_HAS_LONG_LONG): Remove.
203 * config/mips/tm-vr4300el.h (CC_HAS_LONG_LONG): Remove.
204 * config/mips/tm-vr4300.h (CC_HAS_LONG_LONG): Remove.
205 * config/mips/xm-irix5.h (CC_HAS_LONG_LONG): Remove
206 (PRINTF_HAS_LONG_LONG): Remove.
207 (FORCE_LONG_LONG): Remove.
208 * config/powerpc/xm-aix.h (UINT_MAX): Undef and use gdb's version.
209 * config/convex/xm-convex.h (CC_HAS_LONG_LONG): Remove
210 (PRINTF_HAS_LONG_LONG): Remove.
211 * config/xm-nbsd.h (CC_HAS_LONG_LONG): Remove.
212 (PRINTF_HAS_LONG_LONG): Remove.
213 * config/pa/tm-hppa.h (GET_FIELD): Put parens around
214 subtraction inside shift. Put parens around subtraction
215 in operand of bitwise and.
216 (struct frame_info): Forward declare
218 (frame_saved_regs): Ditto.
219 (struct value): Ditto.
220 (struct type): Ditto.
221 (struct inferior_status): Ditto.
222 (init_extra_frame_info): Add prototype.
223 (skip_prologue): Ditto.
224 (frameless_function_invocation): Ditto.
225 (frame_chain): Ditto.
226 (frame_chain_valid): Ditto.
227 (saved_pc_after_call): Ditto.
228 (hppa_fix_call_dummy): Ditto.
229 (hppa_push_arguments): Ditto.
230 (pa_do_registers_info): Ditto.
231 (in_solib_call_trampoline): Ditto.
232 (in_solib_return_trampoline): Ditto.
233 (push_dummy_frame): Ditto.
234 * convex-tdep.c (decout): Use print_longest rather than
236 * defs.h: Remove use of FORCE_LONG_LONG and __GNUC__ to set
238 (INT_MIN): Fix so it works correctly when assigned to a long long.
239 * valprint.c (longest_to_int): Rewrite to remove dependence
240 on INT_MIN and INT_MAX.
241 (print_longest): Rewrite the code that falls back to synthesized
242 hex output when LONGEST value is not representable as in a long and
243 printf doesn't support printing long longs.
244 * ch-valprint.c (chill_val_print): Cast 2nd arg of
245 chill_print_type_scalar to LONGEST.
246 chill_print_type_scalar): Make static and add prototype.
247 * hppa-tdep.c (get_field): Ifdef out unused function.
250 (extract_5_store): Ditto.
254 (extract_14): Convert to static and add prototype.
259 (extract_5r_store): Ditto.
260 (extract_5R_store): Ditto.
261 (extract_5_load): Ditto.
262 (find_proc_framesize): Ditto.
263 (find_dummy_frame_regs): Ditto.
264 (sign_extend): Ditto.
265 (find_unwind_entry): Add prototype.
266 (find_return_regnum): Ditto.
267 (unwind_command): Ditto.
268 (find_dummy_frame_regs): Add parens around subtraction in operand
270 (skip_prologue): Add parens around operands of logical-and inside
271 operand of logical-or.
272 (sign_extend): Add parens around operands of subtraction inside
274 (low_sign_extend): Ditto.
275 * top.c (filename_completer): Convert old style decl of
276 filename_completion_function into prototype.
277 * f-lang.c (patch_common_entries): Ifdef out unused function.
278 * stabsread.c (read_cfront_baseclasses): Remove unused local
279 variable "msg_noterm".
280 (resolve_cfront_continuation): Remove unused local variable "fip".
281 (read_type): Remove unused variable xtypenums.
282 (read_cfront_static_fields): Remove unused variable "i".
283 (read_cfront_static_fields): Remove unused variable "nfields".
284 (read_cfront_member_functions): Add missing comment terminator.
285 (read_cfront_static_fields): Return 1 rather than random value.
286 (read_cfront_baseclasses): Ditto.
287 (read_cfront_baseclasses): Ditto.
288 (read_cfront_baseclasses): Ditto.
289 * somsolib.c (som_solib_create_inferior_hook): Remove unused
291 (som_solib_create_inferior_hook): Remove unused variable
293 (language.h): Add for needed prototypes.
294 (som_solib_sharedlibrary_command): Add prototype.
295 * hpread.c: (hpread_read_array_type): Add prototype.
296 * somread.c (hpread_build_pysmtabs): Add prototype.
297 (hpread_symfile_finish): Ditto.
298 (hpread_symfile_init): Ditto.
299 * hppah-nat.c (fetch_register): Convert old style decl
301 (gdbcore.h): Include for needed prototypes.
302 (fetch_register): Remove unused variable "mess".
303 * remote-pa.c (get_offsets): Ifdef out unused function.
304 (remote_start_remote): Remove unused variable "timeout".
305 (boot_board): Add prototype.
306 (reaad_frame): Add prototype.
307 (getpkt): Remove unused variable "bp".
308 (remote_kill): Add prototype.
309 (remote_mourn): Add prototype.
310 (remote_insert_breakpoint): Add prototype.
311 (remote_remove_breakpoint): Add prototype.
312 * valops.c (value_push): Only use if PUSH_ARGUMENTS is not defined.
313 * infcmd.c (do_registers_info): Only need prototype if
314 DO_REGISTERS_INFO is not defined.
315 (breakpoint_auto_delete_contents): Only need if
316 CALL_DUMMY_BREAKPOINT_OFFSET is defined.
318 Sat Jul 27 08:49:49 1996 Fred Fish <fnf@cygnus.com>
320 * xcoffread.c (xcoff_end_psymtab): Add textlow_not_set parameter.
321 (END_PSYMTAB): Ditto.
322 (scan_xcoff_symtab): Call xcoff_end_psymtab with textlow_not_set.
324 Fri Jul 26 14:07:37 1996 Ian Lance Taylor <ian@cygnus.com>
326 * printcmd.c (_initialize_printcmd): Initialize
327 tm_print_insn_info.flavour.
329 * gdbtk.c (gdb_disassemble): Initialize di.flavour.
332 Thu Jul 25 19:41:31 1996 Fred Fish <fnf@cygnus.com>
334 * Makefile.in (scm-valprint.o): Depends upon gdbcore_h.
337 (i386ly-tdep.o): Ditto.
338 (i960-tdep.o): Ditto.
339 (m68k-tdep.o): Ditto.
340 (nindy-tdep.o): Ditto.
344 (m68k-tdep.o): Depends upon value_h and gdb_string.h
345 (m2-valprint.o): Depends upon m2-lang.h.
346 (sparc-tdep.o): Depends upon gdb_string.h
347 (valprint.o): Depends upon valprint.h
349 * remote-e7000.c (notice_quit): Remove prototype.
350 * top.c (initialize_targets): Remove prototype, now in target.h.
351 * stabsread.c (resolve_cfront_continuation): Remove prototype.
352 * dbxread.c (resolve_cfront_continuation): Remove prototype.
353 * symfile.h (set_demangling_style): Remove prototype.
354 * config/tm-sysv4.h (in_plt_section): Remove prototype, in objfiles.h.
355 * config/sparc/tm-sparc.h (single_step): Remove extern decl, now in
357 * config/arc/tm-arc.h (one_stepped, single_step): Remove extern decls,
359 * ser-unix.c (hardwire_restore): Remove obsolete prototype.
360 * sparc-tdep.c (single_step): Remove forward decl of isbranch.
361 * scm-lang.c (find_function_in_inferior): Remove prototype.
362 (value_allocate_space_in_inferior): Ditto.
363 * infrun.c (write_pc_pid): Remove prototype, now in inferior.h.
364 * defs.h (strchr): Remove declarations, they are declared in
370 * f-valprint.c (f77_print_array_1): Remove extra arg that was being
371 passed to f77_print_array_1.
372 * gdbtypes.c (add_name): Remove unused variables lenstrlen and lenstr.
373 * scm-exp.c (scm_istr2int): Remove unused variable "j".
374 (scm_parse): Remove unused variable "str".
375 * hp300ux-nat.c (store_inferior_register): Remove unused variable
377 (store_inferior_registers): Remove unnecessary decl "registers".
378 * m68k-tdep.c (m68k_pop_frame): Remove unused variable "fi".
379 * scm-lang.c (scm_get_field): Remove unused variable "val".
380 (scm_lookup_name): Remove unused variable "symval".
381 * objfiles.c (map_to_file): Remove unused local variable "tempfd".
382 * procfs.c (do_attach, do_detach): Remove unused variable "result".
383 (last_resume_pid): Remove unused static variable.
384 * alpha-tdep.c (alpha_linux_sigtramp_offset): Remove unused variable
386 * objfiles.c (map_to_address): Remove unused function.
387 * f-valprint.c (print_max): Remove extraneous extern decl,
389 (calc_f77_array_dims): Remove extraneous prototype, in f-lang.h.
390 * ch-exp.c (write_lower_upper_value): Remove prototype for
393 * gdbtypes.c (cfront_mangle_name): #ifdef out unused function.
394 * ch-exp.c (parse_mode_call): Ditto.
395 * f-valprint.c (there_is_a_visible_common_named): Ditto.
396 * f-lang.c (clear_function_list): Ditto.
397 (get_bf_for_fcn): Ditto.
398 (clear_bf_list): Ditto.
399 (add_common_block): Ditto.
400 (patch_all_commons_by_name): Ditto.
401 (find_first_common_named): Ditto.
402 (add_common_entry): Ditto.
403 (allocate_saved_function_node): Ditto.
404 (allocate_saved_bf_node): Ditto.
405 (allocate_common_entry_node): Ditto.
406 (allocate_saved_f77_common_node): Ditto.
408 * arm-tdep.c (gdbcore.h): Include for necessary prototypes.
409 * dcache.c (gdbcore.h): Ditto.
410 * i386ly-tdep.c (gdbcore.h): Ditto.
411 * i960-tdep.c (gdbcore.h): Ditto.
412 * m2-valprint.c (m2-lang.h): Ditto.
413 * m68k-tdep.c (gdbcore.h): Ditto.
415 (gdb_string.h): Ditto.
416 * nindy-tdep.c (gdbcore.h): Ditto.
417 * scm-lang.c (gdbcore.h): Ditto.
418 * scm-valprint.c (gdbcore.h): Ditto.
419 * w65-tdep.c (gdbcore.h): Ditto.
420 * z8k-tdep.c (gdbcore.h): Ditto.
421 * sparc-tdep.c (gdb_string.h): Include.
422 * valprint.c (valprint.h): Include.
424 * config/xm-lynx.h: Remove part of comment about INT_MIN
425 redefined warnings from defs.h, since INT_MIN define in
426 defs.h is now protected by #ifndef INT_MIN.
427 * config/i386/xm-i386bsd.h: Ditto.
428 * config/m68k/xm-hp300bsd.h: Ditto.
429 * config/m68k/xm-news.h: Ditto.
431 * config/pa/xm-hppah.h (INT_MIN): Remove bogus INT_MIN
432 definition as 0x80000000. The macro in defs.h is better.
433 * config/i386/xm-i386m3.h (INT_MIN): Ditto.
434 * config/i386/xm-i386mach.h (INT_MIN): Ditto.
435 * config/ns32k/xm-ns32km3.h (INT_MIN): Ditto.
436 * config/pa/xm-hppab.h: Ditto.
438 * core-aout.c (fetch_core_registers): Add prototype.
439 * hp300ux-nat.c (fetch_inferior_register): Ditto.
440 (store_inferior_register_1): Ditto.
441 (store_inferior_register): Ditto.
442 * config/m68k/tm-m68k.h (find_saved_regs): Ditto.
443 *scm-valprint.c (c_val_print): Ditto.
444 * procfs.c (add_fd): Ditto.
447 (sigcodename): Ditto.
448 (sigcodedesc): Ditto.
449 (procfs_kill_inferior): Ditto.
450 (procfs_xfer_memory): Ditto.
451 (procfs_store_registers): Ditto.
452 (create_procinfo): Ditto.
453 (procfs_init_inferior): Ditto.
454 (proc_set_exec_trap): Ditto.
455 (procfs_attach): Ditto.
456 (procfs_detach): Ditto.
457 (procfs_prepare_to_store): Ditto.
458 (procfs_files_info): Ditto.
459 (procfs_open): Ditto.
460 (procfs_wait): Ditto.
461 (procfs_fetch_registers): Ditto.
462 (procfs_mourn_inferior): Ditto.
463 (procfs_can_run): Ditto.
464 (procfs_thread_alive): Ditto.
465 (procfs_stop): Ditto.
466 * alpha-nat.c (fetch_core_registers): Ditto.
467 * config/alpha/tm-alpha.h (alpha_osf_skip_sigtramp_frame): Ditto.
468 * objfiles.c (ecoff_relocate_efi): Ditto.
469 * inflow.c (pass_signal): Ditto.
470 (handle_sigio): Ditto.
471 * annotate.c (breakpoint_changed): Ditto.
472 * callback.c (wrap): Ditto.
475 * utils.c (malloc_botch): Ditto.
476 (fputs_maybe_filtered): Ditto.
477 (vfprintf_maybe_filtered): Ditto.
478 * defs.h (notice_quit): Ditto.
479 * defs.h (xmalloc, xrealloc): Ditto.
480 * top.c (stop_sig): Ditto.
481 (init_signals): Ditto.
482 (user_defined_command): Ditto.
483 (source_cleanup_lines): Ditto.
484 (dont_repeat_command): Ditto.
485 (serial_log_command): Ditto.
487 * target.h (initialize_targets): Ditto.
488 * os9kread.c (read_minimal_symbols): Ditto.
489 * mdebugread.c (mdebug_psymtab_to_symtab): Ditto.
491 (push_parse_stack): Ditto.
492 (pop_parse_stack): Ditto.
493 (is_pending_symbol): Ditto.
494 (add_pending): Ditto.
495 * serial.c (serial_logchar): Ditto.
496 (serial_interface_lookup): Ditto.
497 * serial.h (serial_log_command): Ditto.
498 * f-valprint.c (info_common_command): Ditto.
499 * gdbtypes.h (print_type_scalar): Ditto.
500 * scm-valprint.c (scm_scmlist_print): Ditto.
502 * scm-lang.c (scm_printstr): Ditto.
504 (evaluate_subexp_scm): Ditto.
505 * scm-exp.c (scm_read_token): Ditto.
506 (scm_skip_ws): Ditto.
507 (scm_lreadparen): Ditto.
508 * m2-lang.c (emit_char): Ditto.
509 (m2_printchar): Ditto.
510 (m2_printstr): Ditto.
511 (m2_create_fundamental_type): Ditto.
512 * f-lang.c (emit_char): Ditto.
513 (f_printchar): Ditto.
515 (f_create_fundamental_type): Ditto.
516 * ch-lang.c (chill_printchar): Ditto.
517 (chill_printstr): Ditto.
518 (chill_create_fundamental_type): Ditto.
519 (value_chill_length): Ditto.
520 (value_chill_card): Ditto.
521 (value_chill_max_min): Ditto.
522 (evaluate_subexp_chill): Ditto.
523 * ch-exp.c (PEEK_TOKEN): Ditto.
524 (peek_token_): Ditto.
525 (forward_token_): Ditto.
526 (parse_case_label): Ditto.
527 (parse_opt_untyped_expr): Ditto.
528 (parse_unary_call): Ditto.
530 (parse_named_record_element): Ditto.
531 (parse_tuple_element): Ditto.
532 (parse_opt_element_list): Ditto.
533 (parse_tuple): Ditto.
534 (parse_primval): Ditto.
535 (parse_operand6): Ditto.
536 (parse_operand5): Ditto.
537 (parse_operand4): Ditto.
538 (parse_operand3): Ditto.
539 (parse_operand2): Ditto.
540 (parse_operand1): Ditto.
541 (parse_operand0): Ditto.
543 (parse_then_alternative): Ditto.
544 (parse_else_alternative): Ditto.
545 (parse_if_expression): Ditto.
546 (parse_untyped_expr): Ditto.
547 (growbuf_by_size): Ditto.
548 (match_simple_name_string): Ditto.
549 (decode_integer_value): Ditto.
550 (decode_integer_literal): Ditto.
551 (match_float_literal): Ditto.
552 (match_float_literal): Ditto.
553 (match_string_literal): Ditto.
554 (match_character_literal): Ditto.
555 (match_integer_literal): Ditto.
556 (match_bitstring_literal): Ditto.
557 (write_lower_upper_value): Ditto.
558 * ch-lang.h (type_lower_upper): Ditto.
559 * c-lang.c (emit_char): Ditto.
560 * dwarfread.c (free_utypes): Ditto.
561 * stabsread.h (resolve_cfront_continuation): Ditto.
562 * stabsread.c (get_substring): Ditto.
563 (read_one_struct_field): Ditto.
564 * stabsread.h (process_later): Ditto.
565 * demangle.c (set_demangling_command): Ditto.
566 * defs.h (set_demangling_style): Ditto.
567 * maint.c (maintenance_info_command): Ditto.
568 (print_section_table): Ditto.
569 (maintenance_info_sections): Ditto.
570 (maintenance_print_command): Ditto.
571 * symtab.h (maintenance_print_statistics): Ditto.
572 * objfiles.h (in_plt_section): Ditto.
573 * objfiles.c (add_to_objfile_sections): Ditto.
574 * bcache.c (hash): Ditto.
575 (lookup_cache): Ditto.
576 * exec.c (bfdsec_to_vmap): Ditto.
578 * f-exp.y (growbuf_by_size, match_string_literal): Ditto.
579 * language.c (unk_lang_printchar): Ditto.
580 (unk_lang_printstr): Ditto.
581 (unk_lang_create_fundamental_type): Ditto.
582 (unk_lang_print_type): Ditto.
583 (unk_lang_val_print): Ditto.
584 (unk_lang_value_print): Ditto.
585 * target.c (update_current_target): Ditto.
586 (debug_to_open): Ditto.
587 (debug_to_close): Ditto.
588 (debug_to_attach): Ditto.
589 (debug_to_detach): Ditto.
590 (debug_to_resume): Ditto.
591 (debug_to_wait): Ditto.
592 (debug_to_fetch_registers): Ditto.
593 (debug_to_store_registers): Ditto.
594 (debug_to_prepare_to_store): Ditto.
595 (debug_to_xfer_memory): Ditto.
596 (debug_to_files_info): Ditto.
597 (debug_to_insert_breakpoint): Ditto.
598 (debug_to_remove_breakpoint): Ditto.
599 (debug_to_terminal_init): Ditto.
600 (debug_to_terminal_inferior): Ditto.
601 (debug_to_terminal_ours_for_output): Ditto.
602 (debug_to_terminal_ours): Ditto.
603 (debug_to_terminal_info): Ditto.
604 (debug_to_kill): Ditto.
605 (debug_to_load): Ditto.
606 (debug_to_lookup_symbol): Ditto.
607 (debug_to_create_inferior): Ditto.
608 (debug_to_mourn_inferior): Ditto.
609 (debug_to_can_run): Ditto.
610 (debug_to_notice_signals): Ditto.
611 (debug_to_thread_alive): Ditto.
612 (debug_to_stop): Ditto.
614 * gdbtk.c (null_routine): Ditto.
615 (gdbtk_flush): Ditto.
616 (gdbtk_fputs): Ditto.
617 (gdbtk_query): Ditto.
618 (gdbtk_readline): Ditto.
619 (gdbtk_readline_end): Ditto.
620 (gdb_get_breakpoint_list): Ditto.
621 (gdb_get_breakpoint_info): Ditto.
622 (breakpoint_notify): Ditto.
623 (gdbtk_create_breakpoint): Ditto.
624 (gdbtk_delete_breakpoint): Ditto.
625 (gdbtk_modify_breakpoint): Ditto.
628 (gdb_sourcelines): Ditto.
629 (map_arg_registers): Ditto.
630 (get_register_name): Ditto.
631 (gdb_regnames): Ditto.
632 (get_register): Ditto.
633 (gdb_fetch_registers): Ditto.
634 (register_changed_p): Ditto.
635 (gdb_changed_register_list): Ditto.
637 (call_wrapper): Ditto.
638 (gdb_listfiles): Ditto.
640 (gdbtk_dis_asm_read_memory): Ditto.
641 (compare_lines): Ditto.
642 (gdb_disassemble): Ditto.
644 (cleanup_init): Ditto.
645 (gdbtk_interactive): Ditto.
648 (gdbtk_call_command): Ditto.
649 (tk_command_loop): Ditto.
652 * breakpoint.h (set_breakpoint_sal): Ditto.
653 * remote-utils.c (usage): Ditto.
654 * remote.c (set_thread): Ditto.
655 (remote_thread_alive): Ditto.
656 (get_offsets): Ditto.
658 (remote_insert_breakpoint): Ditto.
659 (remote_remove_breakpoint): Ditto.
660 * sparc-nat.c (fetch_core_registers): Ditto.
661 * corelow.c (add_to_thread_list): Ditto.
663 * inftarg.c (proc_wait): Ditto.
664 * infptrace.c (udot_info): Ditto.
665 (fetch_register): Ditto.
666 * ser-unix.c (hardwire_noflush_set_tty_state): Ditto.
667 (hardwire_print_tty_state): Ditto.
668 (hardwire_flush_output): Ditto.
669 (hardwire_flush_input): Ditto.
670 (hardwire_send_break): Ditto.
671 (hardwire_setstopbits): Ditto.
672 * ser-tcp.c (tcp_return_0): Ditto.
673 (tcp_noflush_set_tty_state): Ditto.
674 (tcp_print_tty_state): Ditto.
675 * solib.c (match_main): Ditto.
676 * gdbtypes.c (print_bit_vector): Ditto.
677 (print_arg_types): Ditto.
678 (dump_fn_fieldlists): Ditto.
679 (print_cplus_stuff): Ditto.
680 * symfile.h (entry_point_address): Ditto.
681 * symfile.c (decrement_reading_symtab): Ditto.
682 * valops.c (value_arg_coerce): Ditto.
683 * value.h (find_function_in_inferior): Ditto.
684 (value_allocate_space_in_inferior): Ditto.
685 * values.c (vb_match): Ditto.
686 * thread.c (info_thread_command): Ditto.
687 (restore_current_thread): Ditto.
688 (thread_apply_all_command): Ditto.
689 (thread_apply_command): Ditto.
690 * inferior.h (write_pc_pid): Ditto.
691 * infrun.c (delete_breakpoint_current_contents): Ditto.
692 * breakpoint.c (print_it_normal): Ditto.
693 (watchpoint_check): Ditto.
694 (print_it_done): Ditto.
695 (print_it_noop): Ditto.
696 (maintenance_info_breakpoints): Ditto.
697 (create_longjmp_breakpoint): Ditto.
698 (hbreak_command): Ditto.
699 (thbreak_command): Ditto.
700 (watch_commnd_1): Ditto.
701 (rwatch_command): Ditto.
702 (awatch_command): Ditto.
703 (do_enable_breakpoint): Ditto.
704 * ch-valprint.c (chill_val_print_array_elements): Ditto.
705 * eval.c (evaluate_subexp): Ditto.
707 (evaluate_struct_tuple): Ditto.
708 * eval.c (init_array_element): Ditto.
710 * alpha-tdep.c (push_sigtramp_desc): Add prototype and make static.
711 * breakpoint.c (hw_breakpoint_used_count): Ditto.
712 (hw_watchpoint_used_count): Ditto.
713 * findvar.c (write_register_gen): Ditto.
714 (read_register_pid): Ditto.
715 * symtab.c (cplusplus_hint): Ditto.
716 * infcmd.c (breakpoint_auto_delete_contents): Ditto.
717 * ch-valprint.c (chill_print_type_scalar): Ditto.
718 * gdbtypes.c (add_name): Ditto.
719 (add_mangled_type): Ditto.
720 (cfront_mangle_name): Ditto.
721 * sparc-tdep.c (isbranch): Ditto.
722 * inftarg.c (child_stop): Ditto.
723 * win32-nat.c (child_stop): Ditto.
724 * mac-nat.c (child_stop): Ditto.
725 * remote-utils.c (sr_com): Ditto.
726 * dbxread.c (process_now): Ditto.
727 * ch-exp.c (require): Ditto.
728 (check_token): Ditto.
730 (parse_mode_call): Ditto.
731 (parse_mode_or_normal_call): Ditto.
732 * scm-lang.c (scm_lookup_name): Ditto
733 * f-lang.c (allocate_saved_bf_node): Ditto.
734 (allocate_saved_function_node): Ditto.
735 (allocate_saved_f77_common_node): Ditto.
736 (allocate_common_entry_node): Ditto.
737 (add_common_block): Ditto.
738 (add_common_entry): Ditto.
739 (find_first_common_named): Ditto.
740 (patch_common_entries): Ditto.
741 (patch_all_commons_by_name): Ditto.
742 (clear_bf_list): Ditto.
743 (get_bf_for_fcn): Ditto.
744 (clear_function_list): Ditto.
745 * scm-exp.c (scm_istr2int): Ditto.
746 (scm_istring2number): Ditto.
747 * scm-valprint.c (scm_inferior_print): Ditto.
748 * f-typeprint.c (print_equivalent_f77_float_type): Ditto.
749 * f-valprint.c (f77_get_dynamic_length_of_aggregate): Ditto.
750 (f77_create_arrayprint_offset_tbl): Ditto.
751 (f77_print_array_1): Ditto.
752 (f77_print_array): Ditto.
753 (list_all_visible_commons): Ditto.
754 (there_is_a_visible_common_named): Ditto.
755 * mdebugread.c (ecoff_relocate_efi): Ditto.
756 * callback.c (os_close): Ditto.
757 (os_get_errno): Ditto.
762 (os_read_stdin): Ditto.
764 (os_write_stdout): Ditto.
769 (os_shutdown): Ditto.
771 (os_printf_filtered): Ditto.
773 * scm-lang.h (scm_parse): Change old style decl to prototype.
774 * config/alpha/tm-alphalinux.h (alpha_linux_sigtramp_offset): Ditto.
775 * top.c (init_proc): Ditto.
778 * f-lang.c (c_value_print): Ditto.
779 * ch-exp.c (parse_expression): Ditto.
780 (parse_primval): Ditto.
781 (parse_untyped_expr): Ditto.
782 (parse_opt_untyped_expr): Ditto.
784 * config/sparc/tm-sparc.h (sparc_init_extra_frame_info): Ditto.
785 (sparc_frame_saved_pc): Ditto.
786 (sparc_push_dummy_frame): Ditto.
787 (sparc_pop_frame): Ditto.
788 * defs.h (fclose): Ditto.
792 * arc-tdep.c (single_step): Change arg to type "enum target_signal".
793 * rs6000-tdep.c (single_step): Ditto.
794 * sparc-tdep.c (single_step): Ditto.
796 * breakpoint.c (cleanup_executing_breakpoints): Change unused arg type
797 to PTR which is what make_cleanup expects.
798 * utils.c (null_cleanup): Change arg type to PTR.
799 * defs.h (null_cleanup): Change prototype to match actual function.
800 * config/sparc/tm-sparc.h (struct frame_info): Move forward decl.
801 * ch-valprint.c (chill_val_print): Cast 2nd arg of
802 chill_print_type_scalar to LONGEST.
803 * infrun.c (wait_for_inferior): Have empty switch case for
804 BPSTAT_WHAT_CHECK_SHLIBS when SOLIB_ADD is not defined.
805 (stop_on_solib_events): Only needed if SOLIB_ADD is defined.
806 * infcmd.c (attach_command): Only need auto_solib_add if SOLIB_ADD
808 * symfile.c (generic_load): Scan long int using a long int spec,
810 * infptrace.c (udot_info): Only need local variables if KERNEL_U_SIZE
812 (fetch_register): Only need function if FETCH_INFERIOR_REGISTERS is
814 * inflow.c (handle_sigio): Only need prototype when the actual
815 function is compiled in.
816 * valprint.c (longest_to_int): Expand error message to be
817 separate messages for args larger than largest signed int
818 and args smaller than smallest signed int.
819 * valprint.c (print_longest): Fix problems with support for case
820 where compiler supports type "long long" but the runtime doesn't
821 support printing them with "%ll".
822 * scm-valprint.c (scm_scmlist_print, scm_scmval_print): Change
823 return types to void since we don't actually return anything
824 meaningful and callees ignore the values anyway.
825 * procfs.c (modify_inherit_on_fork_flag): Enclose pr_flags in PIOCSET
827 (modify_run_on_last_close_flag): Ditto.
828 (wait_fd): Enclose local variables "num_fds" and "i" LOSING_POLL
830 * alpha-tdep.c (push_sigtramp_desc): Return proc_desc rather than
832 * infrun.c (wait_for_inferior): Ensure random_signal is not used
834 * valops.c (call_function_by_hand): Ensure struct_addr is not used
836 * breakpoint.c (watch_command_1): Ensure prev_frame is not used
838 * utils.c (vfprintf_maybe_filtered): Change second arg from "char *"
841 * gdbtk.c (gdb_fetch_registers): Cast fourth arg to map_arg_registers
842 to proper pointer type, from int.
843 (gdbtk_query): Change first arg to "const char *" from "char *".
845 * infptrace.c (udot_info): Add two dummy args so that the type is
846 correct for passing to add_info.
847 * f-lang.c (saved_fcn): Move decl to head of file so it can be used
849 (saved_bf_symnum): Ditto.
850 (SAVED_FUNCTION): Ditto.
851 (SAVED_FUNCTION_PTR): Ditto.
853 (SAVED_BF_PTR): Ditto.
854 * ch-exp.c (parse_named_record_element): Build error message in
855 temporary buffer before passing it to expect, rather than passing
856 wrong number of args to expect.
857 * demangle.c (set_demangling_style): Call set_demangling_command with
858 correct number of arguments.
859 * inferior.h (terminal_init_inferior_with_pgrp): Change arg type to
860 int to match actual function.
861 (os_isatty): Call fdmap with right number of arguments, was missing
862 the host_callback* arg.
863 * target.c (cleanup_target): Prototype all functions casts.
864 * target.h (one_stepped, single_step): Declare here and convert
865 single_step to prototype.
866 * infrun.c (one_stepped, single_step): Don't declare externs
867 here, they have moved to target.h.
868 * eval.c (init_array_element): Declare previously undeclared
869 last two args as LONGEST.
870 * dcache.c (dcache_xfer_memory): Change xfunc decls to prototype form.
872 * gdbtk.c (register_changed_p): Remove unused local variable "buf".
875 Thu Jul 25 16:11:54 1996 Doug Evans <dje@canuck.cygnus.com>
877 * dsrec.c (load_srec): Protect ANSI style function parms with PARAMS.
879 Mon Jul 22 18:13:27 1996 Stu Grossman (grossman@critters.cygnus.com)
881 * Makefile.in (os9kread.o): Remove dependency on partial-stab.h.
882 * dbxread.c (read_dbx_symtab end_psymtab), partial-stab.h: Don't
883 use partial_symtab->textlow==0 as a flag, as 0 is a legitimate
884 text address. Use a seperate flag (textlow_not_set) instead.
885 This makes stabs in ELF .o files work a lot better.
886 * mdebugread.c xcoffread.c: Define textlow_not_set for
888 * stabsread.h (end_psymtab): Add textlow_not_set arg to prototype.
891 Sat Jul 20 17:46:40 1996 Fred Fish <fnf@cygnus.com>
893 * gdbtk.tcl (files_command): Reorder the binding tags for
894 the listbox widget to avoid referencing the listbox after
895 the containing widget has been destroyed by the action of
899 Sat Jul 20 10:41:06 1996 Fred Fish <fnf@cygnus.com>
901 * dwarf2read.c (struct filenames): Change internal "struct file"
902 to "struct fileinfo" to avoid conflict with "struct file" in
903 <sys/file.h> on HPUX and Solaris.
906 Sat Jul 20 10:09:28 1996 Fred Fish <fnf@cygnus.com>
908 * gdbtk.tcl (delete_expr): Unset corresponding element of
909 expr_update_list when destroying an expression.
910 (create_expr_window): Initialize expr_num, delete_expr_num,
911 and expr_update_list here when each new expression window
912 is created, rather than once at startup.
915 Fri Jul 19 14:05:57 1996 Stan Shebs <shebs@andros.cygnus.com>
917 * dwarf2read.c: New file, DWARF 2 reader originally contributed by
918 Brent Benson, with additions by Gary Funck and Jerry Kreuscher.
919 * Makefile.in (COMMON_OBS): Add dwarf2read.o.
920 (SFILES): Add dwarf2read.c.
921 (dwarf2read.o): Add build rule.
922 * symfile.h (dwarf2_has_info, dwarf2_build_psymtabs): Declare
924 * elfread.c (elf_symfile_read): Call them.
925 (elf_symtab_read) [HARRIS_TARGET]: Skip some special symbols.
927 Thu Jul 18 01:22:01 1996 Geoffrey Noer <noer@cygnus.com>
929 * symfile.c (symfile_bfd_open):
930 * exec.c (exec_file_command): for __GO32__ and __WIN32__ systems,
931 free the user from having to type the .exe extension.
933 Wed Jul 17 06:54:50 1996 Mark Alexander <marka@cygnus.com>
935 * mon960-rom.c: Shorten the mon960_inits string to a single
936 carriage return; this prevents a hang on connecting immediately
937 after powerup, when MON960 is attempting autobaud detection.
939 Tue Jul 16 23:47:04 1996 Mark Alexander <marka@cygnus.com>
941 * a29k-tdep.c (get_saved_register): Allow PC to be modified
942 when innermost frame is selected, but not in outer frames.
944 Tue Jul 16 23:37:25 1996 Stu Grossman (grossman@critters.cygnus.com)
946 * command.c (do_setshow_command): Don't segfault when showing
947 var_string and var_string_noescape vars that are NULL.
949 Mon Jul 15 16:55:48 1996 Doug Evans <dje@canuck.cygnus.com>
951 * win32-nat.c (handle_load_dll): dos_path_to_unix_path renamed to
952 cygwin32_conv_to_posix_path.
953 (child_create_inferior): unix_path_to_dos_path renamed to
954 cygwin32_conv_to_win32_path. Rewrite code to translate PATH.
956 Mon Jul 15 16:44:05 1996 Stu Grossman (grossman@critters.cygnus.com)
958 * defs.h printcmd.c: Create global disassemble_info structure
961 * gdbtk.c (gdb_disassemble): Setup di.mach from
962 tm_print_insn_info.mach, and set endian from TARGET_BYTE_ORDER.
964 * i386-tdep.c (set_assembly_language_command): set
965 tm_print_insn_info.mach to the appropriate value for 386 or 8086
967 * printcmd.c (print_insn): Move init of disassembler_info to
968 _initialize_printcmd. Set endian for disassembler here.
969 * sparc-tdep.c: Set tm_print_insn_info.mach as appropriate to
970 select sparc/sparclite.
971 * config/sparc/{tm-sparc.h tm-sparclite.h}: Get rid of
972 TM_PRINT_INSN. Set TM_PRINT_INSN_MACH to
973 bfd_mach_sparc/bfd_mach_sparc_sparclite.
975 Fri Jul 12 19:04:32 1996 Fred Fish <fnf@cygnus.com>
977 * hpread.c (hpread_lookup_type): Use xmmalloc/xmrealloc rather
978 than xmalloc/xrealloc.
980 Fri Jul 12 17:59:47 1996 Fred Fish <fnf@ninemoons.com>
982 * objfiles.c (map_to_file): Error return from mmalloc_findbase is
983 a NULL pointer, not a -1.
985 Fri Jul 12 10:16:24 1996 Stu Grossman (grossman@critters.cygnus.com)
987 * i386-tdep.c (set_assembly_language_command): New routine to
988 select between i386 and i8086 instruction sets for disassembly.
989 New command `set assembly-language {i386 i8086}'.
991 Thu Jul 11 21:13:21 1996 Mark Alexander <marka@cygnus.com>
993 * monitor.c (monitor_write_memory, monitor_read_memory_single):
994 Disable use of "long long" memory read/write commands; can't
995 use them because we hold the values to read/write in an int
996 variable, and because strtoul fails on values that exceed the
997 size of a long. This fixes breakpoint problems on MON960.
999 Thu Jul 11 11:39:31 1996 Fred Fish <fnf@cygnus.com>
1001 * config/m68k/xm-hp300hpux.h (HAVE_MMAP): Remove definition.
1002 * config/pa/xm-hppah.h (HAVE_MMAP): Ditto.
1004 Wed Jul 10 16:54:41 1996 Fred Fish <fnf@cygnus.com>
1006 * Makefile.in (MMALLOC_CFLAGS): Eliminate intermediate MMALLOC_DISABLE
1007 and MMALLOC_CHECK macros, and add comment indicating how host dependent
1008 makefile fragment should modify MMALLOC_CFLAGS to not use mmalloc, or
1009 to use it but to not do heap corruption checking.
1010 * gdbserver/Makefile.in: Ditto.
1011 * utils.c (init_malloc): Replace warning() use with direct call of
1012 fprintf_unfiltered, since current_target has not yet been set and thus
1013 we cannot use warning(). If we try to use mmcheck and it fails,
1014 suggest that this configuration needs NO_MMCHECK or MMCHECK_FORCE
1015 defined. Other small mmalloc related cleanups.
1016 * config/sparc/sun4os4.mh (MMALLOC_CFLAGS): Define MMCHECK_FORCE to 1.
1017 * config/alpha/alpha-osf2.mh (MMALLOC_CFLAGS): Set to -DNO_MMCHECK.
1019 * config/sparc/xm-sun4os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1020 * config/i386/xm-i386v4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1021 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1022 * config/m68k/xm-hp300hpux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1023 * config/m68k/xm-m68kv4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT);
1024 * config/m68k/xm-sun3os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1025 * config/pa/xm-hppah.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1026 * config/sparc/xm-sun4sol2.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1027 Remove obsolete defines.
1029 * config/alpha/alpha-linux.mh (MMALLOC_DISABLE):
1030 * config/alpha/alpha-osf1.mh (MMALLOC_DISABLE):
1031 * config/rs6000/rs6000.mh (MMALLOC_DISABLE):
1032 * config/rs6000/aix4.mh (MMALLOC_DISABLE):
1033 * config/powerpc/aix4.mh (MMALLOC_DISABLE):
1034 * config/powerpc/aix.mh (MMALLOC_DISABLE):
1035 * config/ns32k/ns32km3.mh (MMALLOC_DISABLE):
1036 * config/mips/mipsm3.mh (MMALLOC_DISABLE):
1037 * config/mips/decstation.mh (MMALLOC_DISABLE):
1038 * config/m88k/cxux.mh (MMALLOC_DISABLE):
1039 * config/i386/i386mk.mh (MMALLOC_DISABLE):
1040 * config/i386/i386m3.mh (MMALLOC_DISABLE):
1041 * config/i386/i386gnu.mh (MMALLOC_DISABLE):
1042 Use MMALLOC_CFLAGS instead.
1044 Tue Jul 9 22:41:12 1996 Jeffrey A Law (law@cygnus.com)
1046 * h8300-tdep.c: Remove some outdated comments.
1047 (h8300_skip_prologue): Rework to be more correct for the H8/300H.
1048 Handle stm.l insns for the H8/S.
1049 (examine_prologue): Likewise.
1051 Tue Jul 9 16:48:55 1996 Raymond Jou <rjou@mexican.cygnus.com>
1053 * ser-mac.c (mac_close): Change a typo SetSetBuf to SerSetBuf.
1055 Mon Jul 08 08:50:39 1996 Mark Alexander <marka@cygnus.com>
1057 * mon960-rom.c (mon960_open): Add floating point detection to
1058 prevent hang on non-FPU processors (PR 9775).
1059 (mon960_cmds): Swap setmem.cmdw and setmem.cmdl to fix problem
1060 setting breakpoints and improve loading speed.
1062 Sun Jul 7 14:57:34 1996 Fred Fish <fnf@cygnus.com>
1064 * coffread.c (record_minimal_symbol): Don't presave name string
1065 on symbol_obstack before passing to prim_record_minimal_symbol.
1066 It now handles saving the string itself.
1067 * dbxread.c (read_dbx_dynamic_symtab): Ditto.
1068 * mipsread.c (read_alphacoff_dynamic_symtab): Ditto.
1069 * os9kread.c (record_minimal_symbol): Ditto.
1070 * solib.c (solib_add_common_symbols): Ditto.
1072 * coffread.c (coff_symtab_read): Don't presave name string on
1073 symbol_obstack before passing to prim_record_minimal_symbol_and_info.
1074 It now handles saving the string itself.
1075 * dbxread.c (record_minimal_symbol): Ditto.
1076 * elfread.c (record_minimal_symbol_and_info): Ditto.
1078 * dstread.c (record_minimal_symbol): Remove static function that just
1079 called prim_record_minimal_symbol with the same args (after change to
1080 prim_record_minimal_symbol to do it's own name string saves).
1081 * nlmread.c (record_minimal_symbol): Ditto.
1082 * somread.c (record_minimal_symbol): Ditto.
1084 * hpread.c (hpread_read_enum_type): Save symbol name on symbol obstack.
1085 (hpread_read_function_type): Ditto.
1086 (hpread_process_one_debug_symbol): Ditto.
1087 * mdebugread.c (parse_symbol): Ditto.
1088 (new_symbol): Ditto.
1089 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
1091 * coffread.c (process_coff_symbol): Use obsavestring to save
1092 SYMBOL_NAME, rather than obstack_copy0.
1093 * dstread.c (create_new_symbol): Ditto
1094 * symfile.c (obconcat): Ditto.
1095 * stabsread.c (patch_block_stabs): Ditto.
1096 * xcoffread.c (SYMNAME_ALLOC): Ditto.
1098 * symfile.c (obsavestring): Update comments
1099 * solib.c (solib_add_common_symbols): Remove local var origname.
1101 Wed Jul 3 15:56:08 1996 Stu Grossman (grossman@critters.cygnus.com)
1103 * configure: Re-build with autoconf-2.10.
1105 * sparcl-tdep.c (_initialize_sparc_tdep) config/sparc/tm-sparc.h,
1106 config/sparc/tm-sparclite.h: Initialize tm_print_insn from
1107 TM_PRINT_INSN, which comes from the tm file.
1109 Tue Jul 02 21:41:20 1996 Mark Alexander <marka@cygnus.com>
1111 * coffread.c, dbxread.c, elfread.c, mipsread.c, nlmread.c,
1112 os9kread.c: Replace identical sym_offsets functions with
1113 default_symfile_offsets.
1114 * somread.c (som_symfile_offsets): Use new SIZEOF_SECTION_OFFSETS
1115 macro to allocate section_offsets.
1116 * symfile.c (default_symfile_offsets): New function.
1117 * symfile.h: Declare default_symfile_offsets.
1118 * symtab.h: Define SIZEOF_SECTION_OFFSETS macro to
1119 simplify allocation of section_offsets.
1121 Tue Jun 11 12:02:55 1996 Stu Grossman (grossman@critters.cygnus.com)
1123 * Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
1124 * configure configure.in: Only make sol-thread.o for native.
1125 Also, switch to dlopened libthread_db.so.1.
1126 * sol-thread.c: Switch to using dlopen to get the thread_db
1129 Thu Jun 13 16:53:25 1996 Stu Grossman (grossman@critters.cygnus.com)
1131 * configure, configure.in: Change test for libthread_db to only
1132 work for configs where build/host/target are the same.
1134 Tue Jul 2 15:04:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1136 * config/powerpc/{linux.mh,xm-linux.h}: New files, for Linux on
1139 * configure.in (powerpc-*-linux): Add Linux, System V, and ELF
1141 * configure: Regenerate.
1143 Mon Jul 1 13:00:43 1996 Stan Shebs <shebs@andros.cygnus.com>
1145 From Raymond Jou <rjou@mexican.cygnus.com>:
1146 * mpw-make.sed: Add lines to whack out autoconf hook
1149 Mon Jul 01 11:07:15 1996 Mark Alexander <marka@cygnus.com>
1151 * remote-e7000.c (e7000_stop): New function.
1153 Fri Jun 28 06:34:19 1996 Dawn Perchik <dawn@cygnus.com>
1155 * configure, configure.in: Add target sparclet.
1156 * monitor.h, monitor.c: Added monitor flags MO_NO_ECHO_ON_SETMEM
1157 (don't expect echo on setmem command), MO_RUN_FIRST_TIME (if
1158 command to start process running on target is different from one
1159 to continue execution), MO_HEX_PREFIX (if addresses from monitor
1160 have a "0x" prefix).
1161 * monitor.c, parse.c, sparc-tdep.c: Don't require strings in the
1162 registers array. This is to allow NULLs to be place holders in
1163 the tm-*.h file so that only minor changes are needed when a new
1164 processor is introduced (eg, one without floating point).
1165 * sparc-tdep.c: Conditionally remove dependancies on floating
1167 * sparclet-rom.c, config/sparc/sparclet.mt,
1168 config/sparc/tm-sparclet.h: New files for target sparclet.
1169 * symfile.c (load_command): Add option for 2nd parameter; a load
1170 offset added to the vma of each section.
1172 Fri Jun 28 05:39:19 1996 Dawn Perchik <dawn@cygnus.com>
1174 * main.c (main): Add option "l" for setting remote_timeout.
1176 Fri Jun 28 05:25:18 1996 Dawn Perchik <dawn@cygnus.com>
1178 * remote-e7000.c, remote.c, target.h, top.c: Add set option
1179 "remote_timeout" for setting remote_timeout. Add set option
1180 "use_hard_breakpoints" for setting hardware .vs. memory
1183 Fri Jun 28 04:32:18 1996 Dawn Perchik <dawn@cygnus.com>
1185 * remote-e7000.c (e7000_parse_device): New function.
1186 Add option "tcp_remote" to target command if using
1187 tcp to connect to a remote host which is then connected
1188 via serial port to the e7000 (for exampole, a port master).
1189 (e7000_open): Change to call e7000_parse_device.
1191 Fri Jun 28 03:47:17 1996 Dawn Perchik <dawn@cygnus.com>
1193 * monitor.c (monitor_debug): Fix remotedebug buffering.
1195 Thu Jun 27 18:24:17 1996 Stan Shebs <shebs@andros.cygnus.com>
1197 * config/i386/cygwin32.mh, config/powerpc/cygwin32.mh
1198 (NATDEPFILES): Add a space.
1200 Wed Jun 26 06:05:39 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
1202 * gdbtypes.c (create_array_type): If TYPE_LENGTH (result_type)
1203 is zero, set TYPE_FLAG_TARGET_STUB to force reevaluation of the type.
1205 * ch-exp.c (calculate_array_length): Function removed.
1207 Tue Jun 25 17:41:06 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1209 * remote-e7000.c (e7000_read_inferior_memory_large): New function.
1210 (e7000_xfer_inferior_memory): Call it.
1212 Tue Jun 25 23:14:07 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1214 * gdb/gdbserver/Makefile.in (docdir): Removed.
1216 Tue Jun 25 22:05:38 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1218 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir):
1219 Use autoconf set values.
1221 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
1222 * nlm/Makefile.in (bindir, libdir, datadir, mandir, infodir,
1223 includedir): Use autoconf set values.
1225 * nlm/configure.in (AC_PREREQ): autoconf 2.5 or higher.
1226 * nlm/configure: Rebuilt.
1227 * gdb/gdbserver/Makefile.in (datadir): Set to $(prefix)/share.
1229 Mon Jun 24 09:56:14 1996 Angela Marie Thomas (angela@cygnus.com)
1231 * stabsread.c (read_cfront_member_functions): add type
1233 Sun Jun 23 23:40:48 1996 Doug Evans <dje@canuck.cygnus.com>
1235 * win32-nat.c: #include <unistd.h>.
1236 (unix_paths_to_dos_paths, dos_paths_to_unix_paths): Delete.
1237 (child_create_inferior): Convert only env var PATH to win32 style.
1238 (set_pathstyle_dos): Delete.
1239 (_initialize_inftarg): Delete dos-path-style command.
1241 start-sanitize-gdbtk
1242 Fri Jun 21 11:04:47 1996 Fred Fish <fnf@cygnus.com>
1244 * gdbtk.tcl (create_register_windows): Include missing '$'s.
1245 Add global declarations for various reg_format_* variables.
1246 * gdbtk.tcl (populate_register_window): Make initial window one
1247 line taller to account for new column header line.
1249 Fri Jun 21 09:46:47 1996 Fred Fish <fnf@cygnus.com>
1251 * gdbtk.c (get_register): Support for printing raw formats.
1252 * gdbtk.tcl: Add hint for using debug_interface.
1253 (center_window, add_breakpoint_frame, delete_breakpoint_frame):
1254 Enclose arg in braces for consistency.
1255 (create_registers_window, populate_reg_window, update_registers):
1256 Major rewrite to support displaying multiple formats in the register
1258 (init_reg_info): New function.
1259 (recompute_reg_display_list): Reset reg_display_list, start
1260 register display lines at line 2.
1263 Thu Jun 20 13:42:23 1996 Doug Evans <dje@canuck.cygnus.com>
1265 * configure.in: Revise sol-thread.o test.
1266 * configure: Regenerated.
1268 * source.c (find_source_lines): Reassign size to result of read.
1270 start-sanitize-gdbtk
1271 Thu Jun 20 08:18:59 1996 Fred Fish <fnf@cygnus.com>
1273 * gdbtk.tcl (gdbtk_tcl_readline_begin): Handle backspace to
1274 avoid backing up over prompt. At every input, make sure insert
1275 point is at least after command start, handle control-u to delete
1277 (tclsh): Handle backspace to avoid backing up over prompt. Handle
1278 control-u to delete current input line.
1280 Wed Jun 19 17:23:38 1996 Geoffrey Noer <noer@cygnus.com>
1282 * configure.in: disable gdbtk for *cygwin32* hosted compiles
1283 * configure: regenerated with autoconf 2.8
1286 Tue Jun 18 16:25:54 1996 Jeffrey A. Law <law@rtl.cygnus.com>
1288 * h8300-dep.c (gdb_print_insn_h8300): Handle the H8/S.
1289 (h8300_command): Likewise.
1290 (set_machine): Likewise.
1291 (set_machine_hook): Likewise.
1292 (_initialize_h8300m): Likewise.
1294 * config/h8300/tm-h8300.h (h8300smode): Declare.
1296 Sun Jun 16 15:21:51 1996 Jeffrey A. Law <law@rtl.cygnus.com>
1298 * somsolib.c (som_solib_create_inferior_hook): Handle tracking
1299 of shl_load calls for hpux10.
1301 Thu Jun 13 11:16:10 1996 Tom Tromey <tromey@thepub.cygnus.com>
1303 * config.in: Regenerated.
1304 * acconfig.h (HAVE_THREAD_DB_LIB): Added entry.
1306 * configure: Regenerated.
1307 * aclocal.m4 (CY_AC_PATH_TCLH, CY_AC_PATH_TKH): Use odd names to
1308 avoid name clashes with SunOS headers.
1310 Tue Jun 11 19:52:50 1996 Fred Fish <fnf@cygnus.com>
1312 From Michael Snyder <Michael_Snyder@next.com>:
1313 * bcache.c (print_bcache_statistics): Avoid divide-by-zero
1314 exception if one or more objfile has no symbols, such as when
1315 a dynamic library has been stripped.
1317 Tue Jun 11 12:02:55 1996 Stu Grossman (grossman@critters.cygnus.com)
1319 * Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
1320 * configure configure.in: Only make sol-thread.o for native.
1321 Also, switch to dlopened libthread_db.so.1.
1322 * sol-thread.c: Switch to using dlopen to get the thread_db
1325 Mon Jun 10 14:17:19 1996 Fred Fish <fnf@cygnus.com>
1327 * config/sparc/{xm-sun4sol2.h,xm-sun4os4.h} (MMAP_BASE_ADDRESS):
1328 Change from 0xE0000000 to 0xC0000000.
1330 Thu Jun 6 17:10:32 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1332 * config/powerpc/xm-solaris.h: Initial version of support for
1335 Wed Jun 5 01:52:57 1996 James G. Smith <jsmith@cygnus.co.uk>
1337 * configure.in (configdirs): Force 4100 builds to use 4300 GDB
1339 * configure: Rebuild.
1341 * config/mips/vr4300el.mt (SIM_OBS): Include simulator in
1342 little-endian builds.
1344 Mon Jun 3 11:48:29 1996 Jeffrey A Law (law@cygnus.com)
1346 * inftarg.c (child_thread_alive): Protect declaration with
1347 #ifndef CHILD_THREAD_ALIVE.
1349 * source.c (find_source_lines): Check the time on the symtab's bfd if
1350 it exists, else check the time on the exec_bfd.
1352 Thu May 30 09:43:17 1996 Mark Alexander <marka@cygnus.com>
1354 * dsrec.c (make_srec): Fix calculation of address size
1355 to allow addresses less than 0x100.
1357 Thu May 30 04:24:09 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
1359 * ch-exp.c (ch_lex): In case of LOC_TYPEDEF call calculate_array_length.
1361 Tue May 28 16:15:47 1996 Geoffrey Noer <noer@cygnus.com>
1363 * remote-mips.c: cannot use EINVAL for breakpoint test since
1364 its value varies for different hosts (e.g. go32's is 19, while
1365 sunos is 22). Changed to hardcoded 22 since that is what the
1368 Tue May 28 11:14:58 1996 Tom Tromey <tromey@creche.cygnus.com>
1370 * configure: Regenerated.
1371 * aclocal.m4 (CY_AC_PATH_TCLH): Don't use AC_TRY_RUN.
1372 (CY_AC_PATH_TKH): Don't use AC_TRY_RUN.
1374 Sun May 26 16:56:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
1376 * solib.c (solib_absolute_prefix, solib_search_path): New variables.
1377 (_initialize_solib): Add set/show commands for those variables.
1378 (solib_map_sections): Implement searching using them.
1380 Sun May 26 14:14:49 1996 Fred Fish <fnf@cygnus.com>
1382 Changes from: David Mosberger-Tang <davidm@azstarnet.com>
1384 * NEWS: Add Alpha Linux as a new native configuration.
1386 * mdebugread.c (parse_symbol): When we find a malloc() symbol with
1387 return type VOID, assume no debugging info is available for that
1388 object file and patch the return value into VOID *. Otherwise,
1389 operations requiring an implicit call to malloc() will fail.
1391 * infrun.c (wait_for_inferior): The criterion to detect entering a
1392 sigtramp handler is now: (a) the current pc is inside a sigtramp
1393 handler, (b) the previous pc is not in a sigtramp handler, and (c)
1394 the current stack pointer is "inner" than the old one. Condition
1395 (c) is new to avoid mistaking a return from a signal handler into
1396 sigtramp as a new sigtramp invocation.
1398 * dcache.c (struct dcache_block): Declare addr as CORE_ADDR. An
1399 int may not be big enough to hold an address.
1400 (dcache_hit): Ditto.
1401 (dcache_peek_byte): Fix indentation.
1403 * configure.in (alpha-*-linux*): Add target.
1404 * configure: Rebuild
1406 * config/alpha/tm-alpha.h (PROC_DESC_IS_DYN_SIGTRAMP): New macro.
1407 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1408 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
1409 (SIGCONTEXT_ADDR): Ditto.
1410 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
1412 * config/alpha/alpha-linux.mh: New file.
1413 * config/alpha/alpha-linux.mt: Ditto.
1414 * config/alpha/nm-linux.h: Ditto.
1415 * config/alpha/tm-alphalinux.h: Ditto.
1416 * config/alpha/xm-alphalinux.h: Ditto.
1417 * config/alpha/xm-alphaosf.h: Renamed from xm-alpha.h.
1418 * config/alpha/alpha-osf1.mh (XM_FILE): Change from xm-alpha.h to
1420 * config/alpha/alpha-osf2.mh: Ditto.
1422 * blockframe.c (find_pc_partial_function): Pass PC to
1423 SIGTRAMP_START and SIGTRAMP_END macros for the benefit of systems
1424 that detect sigtramp code via designated code sequences (as is the
1425 case for Linux/Alpha, for example).
1427 * config/i386/tm-i386bsd.h: Change SIGTRAMP_START and SIGTRAMP_END
1428 to ignore new PC argument.
1429 * config/m68k/tm-hp300bsd.h: Ditto.
1430 * config/vax/tm-vax.h: Ditto.
1432 * alpha-tdep.c (alpha_linux_sigtramp_offset): New function.
1433 (alpha_osf_skip_sigtramp_frame): Ditto.
1434 (push_sigtramp_desc): Ditto.
1435 (alpha_find_saved_regs): Use SIGCONTEXT_ADDR macro to extract
1436 sigcontext address from frame.
1437 (alpha_saved_pc_after_call): When in sigtramp, use
1438 alpha_frame_saved_pc() instead of read-register().
1439 (after_prologue): When inside a dynamically generated sigtramp
1440 function, there is no prologue, so return address of first
1442 (alpha_in_prologue): Fix typo in comment.
1443 (find_proc_desc): Use macro DYNAMIC_SIGTRAMP_OFFSET to determine
1444 whether we're inside a dynamicaly generated sigtramp function. If
1445 so, create and push and appropriate procedure descriptor.
1446 (alpha_frame_chain): Use macro FRAME_PAST_SIGTRAMP_FRAME to obtain
1447 the frame past a sigtramp frame (if the current frame is indeed a
1449 (init_extra_frame_info): Don't read next frame register off of
1450 stack-pointer when inside a dynamiccaly generated sigtramp.
1451 (alpha_pop_frame): Also unlink and destroy procedure descriptors
1452 created for dynamically generated sigtramp functions.
1454 * alpha-nat.c: When compiling under Linux, include <asm/reg.h> and
1455 <alpha/ptrace.h> instead of <machine/reg.h>
1457 Tue Jul 2 13:58:10 1996 Miles Bader <miles@gnu.ai.mit.edu>
1459 * gnu-nat.c (inf_validate_task_sc):
1460 Give terminal to gdb while asking question.
1461 (inf_resume): Don't validate the task suspend-count while execing.
1463 Thu Jun 13 11:04:52 1996 Miles Bader <miles@gnu.ai.mit.edu>
1465 * gnu-nat.c (inf_validate_task_sc): Query user before clearing any
1466 additional suspend count.
1467 (S_proc_wait_reply, gnu_attach): Don't call inf_validate_task_sc.
1468 (inf_resume): Call inf_validate_task_sc here.
1469 (gnu_resume): Call inf_update_procs to ensure noticing new threads.
1471 Fri Jun 7 17:00:43 1996 Miles Bader <miles@gnu.ai.mit.edu>
1473 * gnu-nat.c (gnu_create_inferior: attach_to_child): Return PID.
1475 Thu May 23 15:13:56 1996 Jeffrey A Law (law@cygnus.com)
1477 * h8300-tdep.c (IS_PUSH): Refine.
1478 (IS_MOVE_FP, IS_MOV_SP_FP): Accept H8/300H varaints.
1479 (IS_SUB4_SP, IS_SUBL_SP): New macros.
1480 (h8300_skip_prologue): Handle H8/300H prologue code sequences.
1481 (examine_prologue): Handle addresses from 0x010000 to 0xffffff
1482 when in H8/300H mode. Get the return pointer's address correctly
1483 for the H8/300H. Handle H8/300H prolouge code sequences.
1485 * symfile.c (generic_load): Print the starting address
1486 of the file just loaded.
1488 Thu May 23 12:09:52 1996 Stan Shebs <shebs@andros.cygnus.com>
1490 * mpw-make.sed: Edit @THREAD_DB_OBS@ out of makefile.
1492 Tue May 21 11:53:56 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1494 * breakpoint.c (bpstat_do_actions): Avoid endless recursion
1495 if a `source' command is contained in bs->commands.
1497 * infrun.c (wait_for_inferior): Update step_frame_address when
1498 stepping into a new line.
1500 From schwab@issan.informatik.uni-dortmund.de (Andreas Schwab):
1501 * breakpoint.c (breakpoint_1): Add shlib_disabled case to
1504 Mon May 20 22:52:00 1996 Mark Alexander <marka@cygnus.com>
1506 * dsrec.c (load_srec): Add WAITACK parameter, for machines
1507 like EST visionICE that send back an ACK after each S-record.
1508 * monitor.c (monitor_wait_srec_ack): New function.
1509 (monitor_load): Pass monitor_wait_srec_ack to load_srec
1510 if the monitor's MO_SREC_ACK flag is set.
1511 * monitor.h: Define MO_SREC_ACK flag.
1512 * remote-est.c (est_cmds): Add MO_SREC_ACK flag.
1513 * sh3-rom.c (sh3_load): Accomodate change in load_srec prototype.
1514 * srec.h: Add WAITACK parameter to load_srec prototype.
1516 Sun May 19 21:22:00 1996 Rob Savoye <rob@chinadoll>
1518 * config/sparc/sparclite.mt: Add the sparc simulator.
1520 Sun May 19 16:49:37 1996 Fred Fish <fnf@cygnus.com>
1522 * defs.h (read_command_lines, query_hook): Update prototypes.
1523 (readline_begin_hook, readline_hook, readline_end_hook): Declare.
1524 * breakpoint.c (commands_command): Build message in temporary buffer
1525 and pass that, as well as tty control flag, to read_command_lines.
1526 * top.c (readline_begin_hook, readline_hook, readline_end_hook):
1528 (command_loop): Check for non-NULL instream before looping.
1529 (command_line_input): Use readline_hook when appropriate, to get
1530 user input from a GUI window.
1531 (read_next_line): Also build prompt if getting user input from a GUI.
1532 (recurse_read_control_structure): Fix typo in comment.
1533 (read_command_lines): Use passed in prompt and tty flag to decide how
1534 to build message. Use readline_begin_hook when appropriate, to set
1535 up a GUI interaction window. Just return head, whether NULL or not,
1536 after using readline_end_hook to complete GUI interaction.
1537 (define_command, document_command): Build message in a temporary
1538 buffer and pass it to read_command_lines, along with tty flag.
1540 start-sanitize-gdbtk
1541 * gdbtk.c (gdbtk_readline_begin, gdbtk_readline, gdbtk_readline_end):
1543 (tk_command_loop): Set instream to NULL to enable Tk user interaction.
1544 (gdbtk_init): Set readline_begin_hook, readline_hook,
1545 and readline_end_hook.
1546 * gdbtk.tcl (gdbtk_tcl_readline_begin, gdbtk_tcl_readline,
1547 gdbtk_tcl_readline_end): New functions.
1548 (tclsh): Pack scroll bar on right side of window, not left.
1551 Sat May 18 02:43:58 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1553 * blockframe.c (frameless_look_for_prologue):
1554 Add FUNCTION_START_OFFSET only if func_start is non-zero.
1555 * minsyms.c (lookup_minimal_symbol_by_pc): Return NULL if
1556 pc is not in a known section.
1557 * stack.c (print_frame_info): Remove check for fi->pc in known
1558 section, now handled by lookup_minimal_symbol_by_pc.
1560 start-sanitize-gdbtk
1561 Fri May 17 13:54:34 1996 Fred Fish <fnf@cygnus.com>
1563 * gdbtk.tcl (create_command_window): Change a misspelled "get"
1564 to the intended "cget".
1565 (delete_line): Fix so it deletes the current line at the
1569 Fri May 17 13:31:04 1996 Stan Shebs <shebs@andros.cygnus.com>
1571 * sh-stub.c: New file, was config/sh/stub.c.
1573 start-sanitize-gdbtk
1574 Thu May 16 19:20:29 1996 Fred Fish <fnf@fishfood.ninemoons.com>
1576 * gdbtk.tcl (gdb_prompt): Set this early on.
1577 (create_command_window): Use gdb_prompt rather than "(gdb) ".
1578 (gdbtk_tcl_preloop): Proc executed just prior to Tk main loop.
1579 (tclsh): If an evaluation window already exists, just bring it
1580 to the front instead of trying to create another.
1581 * gdbtk.c (tk_command_loop): New function.
1582 (gdbtk_init): Call tk_command_loop rather than Tk_MainLoop.
1584 Thu May 16 16:16:35 1996 Fred Fish <fnf@cygnus.com>
1586 * gdbtk.tcl (evaluate_tcl_command, tclsh): New functions that
1587 implement a tcl evaluation window for gdbtk maintainers to use.
1589 Thu May 16 11:42:58 1996 Tom Tromey <tromey@creche.cygnus.com>
1591 * gdbtk.tcl (files_command): Correctly insert list of files into
1594 * gdbtk.tcl (files_command): listbox command no longer accepts
1597 Wed May 15 16:04:09 1996 Stan Shebs <shebs@andros.cygnus.com>
1599 * gdbtk.tcl (create_command_window): If command window's buffer
1600 is disabled, don't execute any of the key bindings.
1603 Wed May 15 08:25:12 1996 Jeffrey A Law (law@cygnus.com)
1605 * top.c (read_next_line): Fix thinkos. From Donn Seeley.
1607 * coffread.c (coff_symtab_read): Handle C_LABEL symbols like
1609 * h8300-tdep.c (h8300_pop_frame): Reset $sp and $pc correctly.
1610 Flush cached frames just before exiting.
1611 * remote-sim.c (gdbsim_resume): Complain if the program isn't
1613 * config/h8300/tm-h8300.h (BELIEVE_PCC_PROMOTION): Define.
1615 Tue May 14 18:05:16 1996 Stu Grossman (grossman@critters.cygnus.com)
1617 * procfs.c (procfs_thread_alive procfs_stop): Make static.
1618 (procfs_pid_to_str): New routine to print out thread id's in an
1619 intelligible manner.
1620 * sol-thread.c (sol_thread_fetch_registers): Re-order manner in
1621 which supply_register is called to fix bug with writing
1623 * config/sparc/tm-sun4sol2.h: Define default for
1624 target_pid_to_str in case host lacks libthread_db.
1626 Mon May 13 23:53:30 1996 Stu Grossman (grossman@critters.cygnus.com)
1628 * Makefile.in config.in configure configure.in
1629 config/sparc/nm-sun4sol2.h config/sparc/sun4sol2.mh
1630 config/sparc/tm-sun4sol2.h: Use autoconf to config Solaris thread
1631 and pthread support, since pre-2.5 systems don't come with
1634 * procfs.c (info_proc): Use int instead of id_t. Old versions of
1635 Irix don't seem to define this.
1637 start-sanitize-gdbtk
1638 Mon May 13 13:43:25 1996 Fred Fish <fnf@cygnus.com>
1640 * gdbtk.c (tk_command): Catch case where no argument is given
1641 since this will cause the tcl interpreter to dump core.
1644 Mon May 13 17:40:58 1996 Jeffrey A Law (law@cygnus.com)
1646 * top.c (execute_control_command, case while_control): Allow
1647 a while command to be interrupted.
1649 Mon May 13 16:17:36 1996 Stu Grossman (grossman@critters.cygnus.com)
1651 * sol-thread.c: More cleanup, add comments.
1652 (sol_thread_resume): Prevent people from trying to step
1654 (sol_thread_wait sol_thread_fetch_registers
1655 sol_thread_store_registers): Remove unnecessary check for
1656 sol_thread_active. These routines won't get called unless threads
1659 Mon May 13 11:29:37 1996 Stan Shebs <shebs@andros.cygnus.com>
1661 SH3-E support from Allan Tajii <atajii@hmsi.com>:
1662 * sh-tdep.c (sh_reg_names, sh3_reg_names): Add empty names for
1664 (sh3e_reg_names): New register name array.
1665 (sh_processor_type_table): Add sh3e processor type.
1666 * config/sh/tm-sh.h (REGISTER_VIRTUAL_TYPE): Fix test.
1667 (REGISTER_NAMES, NUM_REGS, NUM_REALREGS, etc): Adjust for
1668 full set of registers.
1669 * remote-e7000.c (want_sh3, want_sh3_nopc): New globals.
1670 (e7000_fetch_registers, e7000_wait): Use them.
1671 * sh3-rom.c (sh3_regnames): Add float registers.
1672 (sh3e_cmds, sh3e_ops): New globals.
1673 (sh3e_open): New function.
1674 (_initialize_sh3_rom): Rename from _initialize_sh3, set up
1677 Fri May 10 15:53:38 1996 Stu Grossman (grossman@lisa.cygnus.com)
1679 * sol-thread.c: Cleanup. gcc -Wall fixes. Add prototypes.
1680 Print out messages instead of codes for thread_db errors. Make
1681 access macros for thread and lwp manipulation. Make cleanups to
1682 fixup inferior_pid in case of errors.
1684 Thu May 9 19:06:02 1996 Fred Fish <fnf@cygnus.com>
1686 * aclocal.m4: Remove unused definition of AC_C_CROSS.
1687 * configure.in: Add powerpcle-*-solaris* host and target config
1688 so April 30th change does not get lost next time configure is
1691 Thu May 9 14:13:08 1996 Stu Grossman (grossman@critters.cygnus.com)
1693 * Makefile.in, breakpoint.c, corelow.c, fork-child.c, inflow.c,
1694 infrun.c, mac-nat.c, procfs.c, remote.c, sol-thread.c, thread.c,
1695 win32-nat.c, config/nm-lynx.h: Rename thread.h to gdbthread.h to
1696 avoid conflict with Solaris /usr/include/thread.h.
1698 Thu May 9 12:33:32 1996 Rob Savoye <rob@chinadoll.cygnus.com>
1700 * abug-rom.c: Config file for the older style ABug monitor that
1701 runs on the mvme13x boards.
1702 * config/m68k/monitor.mt: Add abug support for m68k cross
1705 Wed May 8 20:33:24 1996 Fred Fish <fnf@cygnus.com>
1707 * infcmd.c (do_registers_info): Always print the raw floating
1708 point value's bytes in big endian order, so the the leftmost bit
1709 is the most significant.
1710 * breakpoint.c (clear_momentary_breakpoints): Remove dead code
1711 that is referenced nowhere else.
1712 (set_breakpoint): Ditto.
1713 (do_enable_breakpoint): Created from enable_once_breakpoint
1714 with a couple of changes.
1715 (enable_breakpoint): Call do_enable_breakpoint with an appropriate
1716 bpdisp enum value to set disposition of breakpoint.
1717 (enable_once_breakpoint): Ditto.
1718 (enable_delete_breakpoint): Ditto.
1719 * breakpoint.h (clear_momentary_breakpoints): Remove prototype.
1720 * symtab.c (find_pc_line): Improve comments.
1721 start-sanitize-gdbtk
1722 * gdbtk.c: Fix a couple of misspellings.
1724 * xcoffread.c: Ditto.
1726 Tue May 7 18:37:06 1996 Stan Shebs <shebs@andros.cygnus.com>
1728 * target.c (debug_to_xfer_memory): Insert line breaks when
1729 dumping the memory block.
1731 Mon May 6 13:52:52 1996 Stu Grossman (grossman@critters.cygnus.com)
1733 * fork-child.c (fork_inferior), inferior.h: init_trace_fun now
1734 returns a possibly modified pid.
1735 * inftarg.c (ptrace_him): Now returns pid;
1736 * m3-nat.c (m3_trace_him): Now returns pid;
1737 * infcmd.c (run_command): Minor cleanup.
1738 * infrun.c (wait_for_inferior): Add another check for one_stepped
1739 near where we read the pc to avoid erroneously setting
1740 random_signal for multi-threaded support.
1741 * procfs.c: Add support for Solaris LWPs. Remove def of
1742 LOSING_POLL. Many cleanups... Several workarounds for Solaris
1743 lossage. System call entry and exit are now handled by
1744 dynamically registered handlers.
1745 * (syscallname): Don't barf when handed an unknown syscall
1747 * (info_proc_syscalls): Ditto.
1748 * sol-thread.c: New file. Implements Solaris thread support.
1749 * symfile.c (symbol_file_add): Add call to target_new_objfile to
1750 notify target-dependent code about new symbol tables.
1751 * (clear_symtab_users): Call target_new_objfile to notify it of
1752 the removal of all symbol tables.
1753 * target.c (push_target): Make sure that to_close is non-zero
1755 * target.h (target_new_objfile): Provide default.
1756 * config/alpha/nm-osf2.h: Define LOSING_POLL because this version
1757 of OSF can't hack using poll with /proc.
1758 * config/sparc/nm-sun4sol2.h (target_new_objfile): Define to be
1759 sol-thread-new-objfile.
1760 * config/sparc/sun4sol2.mh: Add sol-thread.o to NATDEFFILES, and
1761 add libthread_db.so.1 to NAT_CLIBS.
1762 * config/sparc/tm-sun4sol2.h: Define PIDGET, TIDGET, and
1765 Sat May 4 02:13:34 1996 N Srin Kumar <nsrin@wipinfo.soft.net>
1767 * procfs.c (remove_fd): Fix copy of fds to fill hole left after
1768 removal of the requested fd.
1770 Mon May 6 07:52:48 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1772 * rs6000-tdep.c (_initialize_rs6000_tdep): Don't do XCOFF specific
1775 * config/powerpc/tm-ppc-eabi.h: Define ELF_OBJECT_FORMAT.
1777 start-sanitize-gdbtk
1778 Thu May 2 19:17:49 1996 Stan Shebs <shebs@andros.cygnus.com>
1780 * gdbtk.tcl (debug_interface): New global, use to aid debugging.
1781 (insert_breakpoint_tag, delete_breakpoint_tag): Fix range.
1782 (file_popup_menu): Delete, never used.
1783 (listing_window_popup): Rename from listing_window_button_1,
1784 remove breakpoint toggling code.
1785 (toggle_breakpoint): New procedure.
1786 (create_file_win): Bind popup menu to button 2, toggle breakpoints
1787 with button 1 in breakpoint area, add display of tagged areas if
1791 Thu May 2 12:46:14 1996 Jeffrey A Law (law@cygnus.com)
1794 * breakpoint.h (enum bpdisp): Add del_at_next_stop.
1795 * breakpoint.c (insert_breakpoints, watchpoint_check,
1796 bpstat_stop_status): Avoid bad references to memory freed via
1797 delete_breakpoint on watchpoints going out of scope.
1798 Do not delete these watchpoints, disable them and change their
1799 disposition to del_at_next_stop instead.
1800 (breakpoint_auto_delete): Delete all breakpoints whose disposition
1801 is del_at_next_stop.
1802 (breakpoint_init_inferior): Use switch to avoid reference to
1803 already deleted breakpoint.
1805 Wed May 1 17:29:18 1996 Fred Fish <fnf@cygnus.com>
1807 * Makefile.in (rs6000-nat.o): Depend on xcoffsolib.h.
1808 * config/rs6000/rs6000.mh (NATDEPFILES): Move xcoffread.o ...
1809 * config/rs6000/rs6000.mt (TDEPFILES): ... to here.
1810 * xcoffsolib.c (xcoff_relocate_symtab_hook): Define and initialize.
1811 (solib_info): Call xcoff_relocate_symtab via the hook.
1812 (sharedlibrary_command): Ditto.
1813 * xcoffread.c: Remove all FAKING_RS6000 comments and defines.
1814 (xcoff_add_toc_to_loadinfo_hook): Define and initialize here.
1815 (xcoff_init_loadinfo_hook): Define and initialize here.
1816 (scan_xcoff_symtab): Call xcoff_add_toc_to_loadinfo via the hook.
1817 (xcoff_initial_scan): Call xcoff_init_loadinfo via the hook.
1818 * xcoffsolib.h (xcoff_relocate_symtab_hook): Declare extern func.
1819 * rs6000-tdep.c (_initialize_rs6000_tdep): Add initializations
1820 of xcoff_add_toc_to_loadinfo_hook and xcoff_init_loadinfo_hook.
1821 * rs6000-nat.c (_initialize_core_rs6000): Add initialization
1822 of xcoff_relocate_symtab_hook.
1824 Tue Apr 30 13:22:02 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1826 * configure (powerpcle-*-solaris*): Add Solaris support.
1828 * config/powerpc/{solaris.m[ht],tm-solaris.h}: New files for
1831 Mon Apr 29 16:17:31 1996 Dawn Perchik <dawn@cygnus.com>
1833 * c-valprint.c (c_val_print): Fix printing for arrays defined
1836 Sun Apr 28 15:08:05 1996 Stan Shebs <shebs@andros.cygnus.com>
1838 Support for bi-endian remote breakpoints.
1839 * remote.c (big_break_insn, little_break_insn): New globals.
1840 (break_insn): Remove.
1841 (remote_insert_breakpoint, remote_remove_breakpoint): Use own
1842 code if REMOTE_BREAKPOINT defined, otherwise call memory
1843 breakpoint functions.
1844 * config/sh/tm-sh.h (REMOTE_BREAKPOINT): Remove.
1845 (BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT): Define.
1847 * mon960-rom.c (mon960_cmds): Remove forward decl.
1848 (mon960_load): Use current_monitor instead of mon960_cmds.
1849 (mon960_regnames): Remove backslashes from line ends.
1850 (_initialize_mon960): Fix documentation string.
1852 Sun Apr 28 12:10:35 1996 Fred Fish <fnf@cygnus.com>
1854 * symfile.h (psymbol_allocation_list): Expand comments which
1855 describe the psymbol allocation list and how each field is
1858 Sun Apr 28 03:44:30 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1860 * breakpoint.c (delete_breakpoint): Fix bpt->val, bpt->exp
1862 (breakpoint_re_set_one): Fix b->exp, b->val, b->cond storage leaks.
1864 * infcmd.c (run_command), solib.c (locate_base): Check for
1865 target_has_execution in addition to inferior_pid, a core file
1866 from a threaded program is yielding a non-zero inferior_pid.
1868 * sparc-tdep.c (get_saved_register): Handle window registers
1869 in a dummy frame correctly.
1871 Sat Apr 27 20:38:32 1996 Fred Fish <fnf@cygnus.com>
1873 * Makefile.in (CLIBS): Move $(MMALLOC) past all other libs,
1874 so that anything that wants an allocation function not yet pulled
1875 in, will get it from mmalloc rather than a system library.
1876 * Makefile.in (INSTALLED_LIBS): Reorder to match order of CLIBS,
1877 to avoid surprising results when used.
1879 Sat Apr 27 00:12:05 1996 Dawn Perchik (dawn@cygnus.com)
1881 * stabsread.c: Changes and bug fixes for cfront support.
1882 Fix bug for class data members.
1883 Fix parsing bug when no base classes exist.
1884 Fix memory bug - allocate space for cplusplus specific info.
1885 Add support for static data.
1886 Add prototypes for static functions.
1887 Enhance comments to show what each function expects to parse.
1889 * stabsread.c(resolve_cont),dbxread.c(resolve_cont): Rename
1890 function to resolve_cfront_continuation.
1892 Fri Apr 26 23:58:26 1996 Jeffrey A Law (law@cygnus.com)
1894 * infrun.c (wait_for_inferior): Call registers_changed when
1895 restarting the inferior to get over a nullified instruction.
1897 Tue Apr 24 12:12:55 1996 Dawn Perchik (dawn@cygnus.com)
1899 * dbxread.c,stabsread.c,gdbtypes.c,partial-stab.h,valops.c:
1900 Add new support for parsing cfront stabs.
1902 Wed Apr 24 00:32:55 1996 Jeffrey A Law (law@cygnus.com)
1904 * infrun.c (wait_for_inferior): Move "have_waited" label
1905 outside of #ifdef conditionals. Don't trash the wait status
1906 if we get a signal and the current instruction is nullified.
1908 Mon Apr 22 20:17:01 1996 Fred Fish <fnf@cygnus.com>
1910 * Makefile.in (VERSION): Bump version number to 4.16.1.
1911 * NEWS: Update for 4.16 release.
1913 Mon Apr 22 16:32:29 1996 Stan Shebs <shebs@andros.cygnus.com>
1915 * monitor.h: Clean up comment formatting.
1916 (current_monitor): Remove decl.
1917 (LOADTYPES, LOADPROTOS, INIT_CMD, etc): Remove definitions.
1918 (push_monitor, SREC_SIZE): Remove.
1919 * monitor.c: Expand old macro into current_monitor derefs
1921 * remote-os9k.c (current_monitor): Remove definition.
1923 Mon Apr 22 14:54:45 1996 Mark Alexander <marka@superball.cygnus.com>
1925 * corefile.c (specify_exec_file_hook): Allow arbitrary number of
1927 (call_extra_exec_file_hooks): New function.
1928 * h8300-tdep.c: Lint; add .h files to provide missing declarations,
1929 remove unused variables.
1930 (set_machine_hook): New function.
1931 (_initialize_h8300m): Initialize it.
1933 Fri Apr 19 15:03:49 1996 Ian Lance Taylor <ian@cygnus.com>
1935 * remote-mips.c (encoding): Don't specify size, to avoid bug in
1936 SunOS native compiler.
1938 Thu Apr 18 18:46:57 1996 Stan Shebs <shebs@andros.cygnus.com>
1940 * monitor.c: Use int rather than LONGEST for values, since
1941 the formatting strings are not prepared to accept long longs.
1943 Wed Apr 17 20:17:27 1996 Doug Evans <dje@canuck.cygnus.com>
1945 * arm-tdep.c (initialize_arm_tdep): Make apcs32 a `zinteger'.
1947 Tue Apr 16 17:38:23 1996 Stu Grossman (grossman@critters.cygnus.com)
1949 * corelow.c (add_to_thread_list): Make sure reg_sect is non-null
1950 before de-referencing it. Prevents deref of NULL pointer if core
1951 file lacks .reg section.
1952 * defs.h: Rename floatformat_{to from}_long_double to
1953 floatformat_{to from}_doublest. Get rid of FLOATFORMAT_{TO
1955 * findvar.c (extract_floating store_floating): Change all refs to
1956 FLOATFORMAT_{FROM TO}... to floatformat_{from to}_doublest.
1957 * utils.c: Change floatformat_{to from}_long_double to
1958 floatformat_{to from}_doublest cuz the new routines will use
1959 whatever size (double or long double) is appropriate.
1960 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
1961 REGISTER_CONVERT_TO_RAW): Change FLOATFORMAT... macros to
1962 floatformat... routine calls.
1964 Mon Apr 15 16:34:11 1996 Per Bothner <bothner@kalessin.cygnus.com>
1966 * stabsread.c (read_type): Move handling of '@' from type
1967 number handling to handling of types proper (as emitted by gcc!).
1968 For typedefs, allocate the typedef type before reading its
1969 definition, to properly handling recursive types.
1971 Mon Apr 15 11:19:26 1996 Jeffrey A Law (law@cygnus.com)
1973 * ch-exp.c (calculate_array_length): Fix prototype.
1975 Sat Apr 13 14:21:16 1996 Stu Grossman (grossman@critters.cygnus.com)
1977 * remote-nindy.c (nindy_open): Acquire more target state so that
1978 user can attach to a previously running program.
1979 * (nindy_fetch_registers nindy_store_registers): Get rid of fp
1980 conversion code. That's all handled in {extract store}_floating
1982 * utils.c (floatformat_to_double): Don't bias exponent when
1983 handling zero's, denorms or NaNs.
1984 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
1985 REGISTER_CONVERT_TO_RAW): Change to using DOUBLST and
1986 FLOATFORMAT_TO/FROM_DOUBLEST macros.
1987 * config/i960/tm-nindy960.h: Undefine
1988 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW, and
1989 REGISTER_CONVERTIBLE. These are no longer necessary now that all
1990 the magic happens in extract/store_floating.
1992 Sat Apr 13 02:58:02 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1994 * eval.c (evaluate_subexp_standard): Report error when attempting to
1995 evaluate subscripts for types which cannot be subscripted.
1997 * valarith.c (value_x_binop, value_x_unop): Add noside parameter.
1998 Return a zero value with the return type of the member function
1999 if noside is EVAL_AVOID_SIDE_EFFECTS instead of calling the member
2001 * values.h (value_x_binop, value_x_unop): Update prototypes
2003 * eval.c (evaluate_subexp_standard): Update all callers of
2004 value_x_binop, value_x_unop accordingly.
2006 * valarith.c (value_neg, value_complement): Perform ANSI C/C++
2007 integral promotion on operands.
2009 Fri Apr 12 13:19:27 1996 Fred Fish <fnf@cygnus.com>
2011 * README: Update for 4.16 release.
2012 * configure.in (AC_CHECK_FUNCS): Also check for sbrk.
2013 * configure: Regenerate with autoconf.
2014 * config.in: Regenerate with autoheader.
2015 * main.c (main): Only use sbrk() when HAVE_SBRK is defined.
2016 * top.c (command_loop): Ditto.
2018 Fri Apr 12 09:45:29 1996 Stu Grossman (grossman@critters.cygnus.com)
2020 * defs.h: Define TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
2021 defaults for bi-endian targets. Replace function pointers for
2022 floatformat routines with macros. No need for these to be runtime
2024 * findvar.c: Get rid of floatformat function pointers. Use
2025 macros in extract_floating and store_floating.
2026 * remote-nindy.c (nindy_fetch_registers nindy_store_registers):
2027 Use floatformat macros.
2029 Thu Apr 11 21:28:02 1996 Fred Fish <fnf@cygnus.com>
2031 From: Miles Bader <miles@gnu.ai.mit.edu>
2032 * configure.in (AC_CHECK_HEADERS): check for endian.h.
2033 Use AC_CHECK_TOOL to find AR & RANLIB. Add AC_PROG_AWK.
2034 Add host & target cases for i[345]86-*-gnu*.
2035 * config.in: Regenerate with autoheader.
2036 * configure: Regenerate with autoconf.
2037 * Makefile.in (AR, AWK): Set from corresponding autoconf substs.
2038 (init.c): Don't scan mig-generated files.
2039 * defs.h (endian.h): Include if HAVE_ENDIAN_H defined.
2040 * config/nm-m3.h (ATTACH_NO_WAIT): Define.
2041 * infcmd.c (attach_command): Use "#ifndef ATTACH_NO_WAIT"
2042 rather than "#ifndef MACH".
2044 Thu Apr 11 18:49:42 1996 Stan Shebs <shebs@andros.cygnus.com>
2046 * remote.c (remotewritesize): New GDB variable, controls size
2047 of memory packets sent to the target.
2049 Thu Apr 11 13:47:52 1996 Stu Grossman (grossman@critters.cygnus.com)
2051 * dcache.c: Add prototypes. Make many functions static.
2052 * (dcache_peek dcache_fetch dcache_poke): Make dcache_fetch and
2053 dcache_poke call dcache_xfer_memory directly in order to fix
2054 problems with turning off dcache. dcache_peek is now unnecessary,
2057 * defs.h: Define new macros HOST_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
2058 and TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT to specify a pointer
2059 to a struct floatformat. This allows for better handling of
2060 targets whose floating point formats differ from the host by more
2061 than just byte order.
2062 * (floatformat_to_long_double floatformat_from_long_double):
2063 Prototypes for new functions in utils.c.
2064 * (floatformat_to_doublest floatformat_from_doublest): Prototypes
2065 for pointers to floating point conversion functions. The actual
2066 function uses either double or long double if the host supports it.
2067 * findvar.c (floatformat_to_doublest floatformat_from_doublest):
2068 Initialize to point at correct function depending on HAVE_LONG_DOUBLE.
2069 * (extract_floating store_floating): Rewrite. Now, if host fp
2070 format is the same as the target, we just do a copy. Otherwise,
2071 we call floatformat_{to from}_doublest.
2072 * remote-nindy.c (nindy_xfer_inferior_memory): Change param
2073 `write' to `should_write'.
2074 * utils.c (floatformat_to_long_double
2075 floatformat_from_long_double): New routines that implement long
2076 double versions of functions in libiberty/floatformat.c.
2077 * config/i960/tm-i960.h (TARGET_LONG_DOUBLE_FORMAT): Define this for
2078 i960 extended real (80 bit) numbers.
2079 * nindy-share/nindy.c (ninMemGet ninMemPut): Return number of bytes
2080 actually read or written.
2082 Wed Apr 10 02:56:06 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
2084 * ch-valprint.c (chill_val_print): Remove call to calculate_array_length.
2085 (calculate_array_length): Move function from here ...
2087 * ch-exp.c (calculate_array_length): ... to here.
2088 (parse_primval): If we have a symbol with an array type
2089 and the length is 0, call calculate_array_length.
2091 Tue Apr 9 01:23:05 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
2093 * eval.c (evaluate_subexp_standard): In case of TYPE_CODE_SET:
2094 Add some checks for powerset compatibility.
2096 * valops.c (value_slice): Use lowbound instead of lowerbound for
2097 call to slice_range_type to get correct bounds.
2099 Mon Apr 8 12:53:56 1996 Fred Fish <fnf@cygnus.com>
2101 * Makefile.in (scm-exp.o, scm-lang.o, scm-valprint.o): Add targets and
2103 * scm-lang.c (gdb_string.h): Include.
2104 * objfiles.c (add_to_objfile_sections): Cast second arg of obstack_grow
2105 call to correct type (char *).
2106 * cp-valprint.c (cp_print_static_field): Ditto.
2107 * somsolib.c (som_solib_create_inferior_hook): Add a declaration
2108 for external find_unwind_entry function (from hppa-tdep.c).
2109 * remote-pa.c (remote_write_bytes, remote_read_bytes): Change
2110 type of second arg to "char *" to be type compatible with
2112 (remote_wait): Cast second arg to strtol to correct type.
2113 * hppa-tdep.c (compare_unwind_entries): Change argument types to
2114 "const void *" to be type compatible with qsort, and then
2115 assign to local args prior to use.
2117 Mon Apr 8 15:35:52 1996 Jeffrey A Law (law@cygnus.com)
2119 * infptrace.c (kill_inferior): Remove call to "kill"; update
2122 Mon Apr 8 14:05:07 1996 Geoffrey Noer <noer@cygnus.com>
2124 * remote-e7000.c: don't append :23 to target port if __WIN32__
2125 is defined (it's WinGDB).
2127 Sun Apr 7 22:34:29 1996 Fred Fish <fnf@cygnus.com>
2129 From: Miles Bader <miles@gnu.ai.mit.edu>
2130 * gnu-nat.c, gnu-nat.h, msg.defs, exc_request.defs, i386gnu-nat.c,
2131 msg_reply.defs, notify.defs, process_reply.defs, reply_mig_hack.awk,
2132 config/nm-gnu.h, config/i386/{i386gnu.mh, i386gnu.mt, nm-gnu.h,
2133 m-i386gnu.h, xm-i386gnu.h}: New files for GNU hurd.
2135 Sun Apr 7 13:32:41 1996 Fred Fish <fnf@cygnus.com>
2137 * configure.in (case host): Add i386sco5 host.
2138 * configure: Regenerate.
2140 From: Robert Lipe <robertl@dgii.com>
2141 Add support for SCO OpenServer 5 (a.k.a. 3.2v5*) This
2142 target is an SVR3.2 with COFF, ELF, and shared libes, but
2144 * config/i386/i386sco5.mh: New file.
2145 * config/i386/nm-i386sco5.h: New file.
2147 Sat Apr 6 08:55:22 1996 Fred Fish <fnf@cygnus.com>
2149 * bcache.c (bcache): When size of chunk to cache is exactly equal to
2150 BCACHE_MAXLENGTH, stash chunk as unique copy.
2152 Sat Apr 6 00:46:26 1996 Fred Fish <fnf@cygnus.com>
2154 * symfile.c (INLINE_ADD_PSYMBOL): Remove ifdef.
2155 (add_psymbol_to_list): Add an arg for passing CORE_ADDR values and
2156 use it, rather than calling add_psymbol_addr_to_list.
2157 (add_psymbol_addr_to_list): Delete.
2158 (add_psymbol_to_list): Make psymbol static to avoid random data in
2159 gaps due to alignment of structure members.
2160 * symfile.h (INLINE_ADD_PSYMBOL, ADD_PSYMBOL_TO_LIST,
2161 ADD_PSYMBOL_ADDR_TO_LIST): Remove. Real world tests show no
2162 performance improvements by inlining via complicated macros and
2163 they just make gdb larger and harder to maintain.
2164 * dwarfread.c (add_enum_psymbol): Replace ADD_PSYMBOL_TO_LIST
2165 and/or ADD_PSYMBOL_ADDR_TO_LIST macro(s) with call to
2166 add_psymbol_to_list with appropriate long or CORE_ADDR args.
2167 (add_partial_symbol): Ditto.
2168 * partial-stab.h: Ditto.
2169 * os9kread.c (read_os9k_psymtab): Ditto
2170 * mdebugread.c (parse_partial_symbols): Ditto.
2171 (handle_psymbol_enumerators): Ditto.
2172 (demangle.h): Include.
2173 * hpread.c (hpread_build_psymtabs): Ditto.
2174 (hpread_build_psymtabs): Ditto.
2175 (demangle.h): Include
2177 start-sanitize-gdbtk
2178 Fri Apr 5 13:44:40 1996 Stan Shebs <shebs@andros.cygnus.com>
2180 * gdbtk.c (running_now): New global variable.
2181 (gdb_cmd): Test it before executing any command.
2182 (gdbtk_call_command): Set it when inferior is running.
2183 * gdbtk.tcl (gdbtk_tcl_busy, gdbtk_tcl_idle): Enable and
2184 disable interaction with command window's text appropriately.
2186 Fri Apr 5 13:25:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2188 * gdbtk.c (SIOCSPGRP, linux): If on Linux, undef SIOCSPGRP, since
2189 some versions of the kernel don't support it.
2192 Thu Apr 4 20:16:55 1996 Fred Fish <fnf@cygnus.com>
2194 * configure.in: Check for setpgid function.
2195 * config.in: Regenerate with autoheader.
2196 * configure: Regenerate with autoconf.
2197 * inflow.c (_initialize_inflow): Only try to use _SC_JOB_CONTROL
2198 if it is actually defined.
2199 (gdb_setpgid): Use HAVE_SETPGID.
2200 * ch-exp.c: Change include of <string.h> to "gdb_string.h".
2201 * c-exp.y, f-exp.y, m2-exp.y: Ditto.
2202 * c-exp.y, serial.c: Include <ctype.h>.
2203 * config/m68k/nm-news.h: Add typedef for pid_t which is
2204 apparently missing from <sys/types.h>. Enclose entire
2205 file in NM_NEWS_H ifndef and define when included.
2206 * config/mips/nm-news-mips.h: Ditto.
2207 * config/m68k/tm-m68k.h (REGISTER_CONVERT_TO_VIRTUAL,
2208 REGISTER_CONVERT_TO_RAW): Change name of temporary variable.
2210 Thu Apr 4 19:04:18 1996 Stan Shebs <shebs@andros.cygnus.com>
2212 * arm-xdep.c: Move native-specific code to here from arm-tdep.c.
2213 * arm-tdep.c (arm_apcs_32): New global.
2214 (arm_addr_bits_remove, arm_saved_pc_after_call,
2215 arm_push_dummy_frame, arm_pop_frame): New functions.
2216 (arm_skip_prologue): Updated version from Richard Earnshaw.
2217 (_initialize_arm_tdep): Add set/show "apcs32".
2218 * config/arm/tm-arm.h (ADDR_BITS_REMOVE): Call
2219 arm_addr_bits_remove.
2220 (SAVED_PC_AFTER_CALL): Call arm_saved_pc_after_call.
2221 (frame_find_saved_regs): Declare properly.
2222 (PUSH_DUMMY_FRAME): Call arm_push_dummy_frame.
2223 (POP_FRAME): Call arm_pop_frame, use ADDR_BITS_REMOVE instead of
2225 * config/arm/nm-arm.h: New file.
2226 * config/arm/xm-arm.h (KERNEL_U_ADDR, FETCH_INFERIOR_REGISTERS):
2227 Move definitions to nm-arm.h.
2228 * config/arm/arm.mh (NAT_FILE): Define.
2230 * symfile.c (generic_load): Initialize data_count properly.
2232 Thu Apr 4 17:17:53 1996 Fred Fish <fnf@cygnus.com>
2234 * symmisc.c (print_objfile_statistics): Print memory used by
2235 psymbol cache obstack.
2237 Thu Apr 4 15:43:07 1996 Stan Shebs <shebs@andros.cygnus.com>
2239 * symfile.c (report_transfer_performance): New function.
2240 (generic_load): Call it to report transfer rate.
2241 * remote-e7000.c (e7000_load): Ditto.
2243 Mon Apr 1 16:31:00 1996 Stan Shebs <shebs@andros.cygnus.com>
2245 * mpw-make.sed: Change references to config.h to be in objdir,
2246 edit out rules to rebuild config.h.
2248 Mon Apr 1 08:32:23 1996 Fred Fish <fnf@cygnus.com>
2250 * hppa-tdep.c (hppa_pop_frame): Call clear_proceed_status before
2253 Sun Mar 31 16:15:43 1996 Fred Fish <fnf@cygnus.com>
2255 * hppah-nat.c (store_inferior_registers, store_inferior_registers,
2256 fetch_register, child_xfer_memory): Use call_ptrace function supplied
2257 by infptrace.c rather than calling ptrace directly.
2259 Sun Mar 31 15:39:00 1996 Stan Shebs <shebs@andros.cygnus.com>
2261 * mon960-rom.c: Cleanups and elimination of unused code,
2262 clarify documentation string.
2263 (mon960_serial, mon960_ttyname): Remove.
2264 * config/i960/tm-mon960.h (ADDITIONAL_OPTIONS,
2265 ADDITIONAL_OPTION_CASES, ADDITIONAL_OPTION_HELP): Remove.
2267 Sat Mar 30 11:00:22 1996 Fred Fish <fnf@cygnus.com>
2269 * configure.in: Check whether printf family supports printing
2270 long doubles or not and define PRINTF_HAS_LONG_DOUBLE if so.
2271 * acconfig.h: Provide default undef for PRINTF_HAS_LONG_DOUBLE.
2272 * configure: Regenerate.
2273 * valprint.c (print_floating): Use PRINTF_HAS_LONG_DOUBLE.
2274 * c-exp.y (parse_number): Use PRINTF_HAS_LONG_DOUBLE.
2275 * configure.in: Fix have_gregset and have_fpregset autoconf
2276 variable names so that they match the pattern required to
2279 Fri Mar 29 21:39:56 1996 Fred Fish <fnf@cygnus.com>
2281 * core-aout.c (fetch_core_registers): Cast core_reg_size to int
2282 before testing against reg_ptr.
2283 * eval.c (evaluate_subexp_standard): Cast type of
2284 TYPE_FN_FIELD_VOFFSET to int.
2285 * findvar.c (extract_signed_integer, extract_unsigned_integer,
2286 extract_long_unsigned_integer): Cast type of sizeof to int.
2287 * values.c (unpack_field_as_long, modify_field): Ditto.
2288 * valops.c (value_assign, call_function_by_hand): Ditto.
2289 * infcmd.c (do_registers_info): Ditto.
2290 * ser-tcp.c (tcp_open): Ditto.
2291 * remote.c (putpkt): Ditto.
2292 * dcache.c (dcache_peek): Ditto.
2293 * dcache.c (dcache_poke): Ditto.
2294 * m2-exp.y (yylex): Ditto.
2295 * gnu-regex.c (re_match_2): Ditto.
2296 * f-lang.c (ADD_BF_SYMNUM, saved_bf_list_end, tmp_bf_ptr): Ifdef
2297 out unused macro definition and variables.
2298 * inftarg.c (proc_wait): Move from main.c to here, and make static.
2299 * valprint.c (val_print_string): Change bufsize from int to unsigned.
2300 * main.c (wait.h): Include.
2301 * top.c (command_line_input): Remove unused variable "c".
2302 * f-typeprint.c (f_type_print_varspec_prefix): Add missing enum
2303 value TYPE_CODE_TYPEDEF to switch statement.
2304 (f_type_print_varspec_suffix): Add missing enum value
2305 TYPE_CODE_TYPEDEF to switch statement.
2306 * ch-exp.c (parse_primval): Add remaining enumeration values to
2307 switch statement, with no specific action.
2308 (ch_lex): Add LOC_UNRESOLVED in switch statement.
2309 (pushback_token): Ifdef out, since code using it is ifdef'd out.
2310 * stabsread.c (cleanup_undefined_types): Remove unused label
2312 * objfiles.h (print_symbol_bcache_statistics): Add prototype.
2313 * maint.c (objfiles.h): Include.
2314 (maintenance_print_statistics): Remove unused variable "temp".
2315 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
2316 unused variable "found_file_symbol".
2317 * m2-exp.y (yylex): Add LOC_UNRESOLVED case to switch.
2318 * language.c (lang_bool_type): Use existing function local type
2319 variable rather than create block local variables.
2320 * solib.c (disable_break): Enclose in ifndef SVR4_SHARED_LIBS.
2321 * infptrace.c (wait.h, command.h): Include.
2322 * ser-tcp.c (gdb_string.h): Include
2323 * i386-tdep.c (codestream_seek): Change "place" to CORE_ADDR.
2324 (i386_get_frame_setup): Change "pc" from int to CORE_ADDR.
2325 * command.c (complete_on_enum): Make assignment used as truth value
2326 explictly check against NULL.
2328 * infrun.c (wait_for_inferior): Ifdef out prologue_pc since code
2329 that uses it is ifdef'd out.
2330 * parser-defs.h: Add prototype for write_dollar_variable.
2331 * infrun.c: Add prototype for write_pc_pid.
2332 * breakpoint.h: Add prototype for re_enable_breakpoints_in_shlibs.
2333 * symmisc.c (bcache.h): Include.
2334 * bcache.h: Add prototype for print_bcache_statistics.
2335 * symfile.c: Include <time.h>.
2336 * printcmd.c (print_scalar_formatted): Change len to unsigned int.
2337 * valarith.c (value_equal): Cast result of TYPE_LENGTH to int.
2338 * valarith.c (value_binop): Change result_len, promoted_len1,
2339 and promoted_len2 to unsigned int.
2340 * valarith.c (value_subscripted_rvalue): Change elt_offs and
2341 elt_size to unsigned int.
2342 * valops.c (value_array): Change typelength to unsigned int.
2343 (destructor_name_p): Change len to unsigned int.
2344 * scm-lang.h (scm_parse): Add prototype for scm_unpack.
2345 * symfile.c (decrement_reading_symtab): Change return type to void.
2346 * valarith.c (value_subscript): Remove unused variable "word".
2347 (value_subscript): Remove unused variable "tint".
2348 * valops.c (auto_abandon): Ifdef out, since code using it is also
2350 * eval.c (init_array_element): Remove unused variable "val".
2351 * Makefile.in (values.o): Depends on scm-lang.h.
2352 (command.o): Depends upon wait_h.
2353 (ser-tcp.o): Depends upon gdb_string.h.
2354 (infptrace.o): Depends upon wait_h and command_h.
2355 (maint.o): Depends on objfiles.h and symfile.h.
2356 * values.c (allocate_repeat_value): Remove unused variable
2358 (scm-lang.h): Include.
2359 * breakpoint.c (create_longjmp_breakpoint): Enclose in
2360 GET_LONGJMP_TARGET define, unused otherwise.
2361 * config/i386/nm-linux.h: Add prototypes for i386_insert_watchpoint,
2362 i386_remove_watchpoint and i386_stopped_by_watchpoint.
2364 Thu Mar 28 12:53:19 1996 Doug Evans <dje@canuck.cygnus.com>
2366 * configure.in (sparc64-*-solaris2*): Delete.
2367 Stick with sparc-*-solaris2*.
2368 * configure: Regenerated.
2370 Thu Mar 28 06:51:26 1996 Fred Fish <fnf@cygnus.com>
2372 * valops.c (value_assign): Make copy of internal variable value
2373 before returning it as a new value, since it is owned by the
2374 internal variable and will be freed along with it.
2376 Wed Mar 27 08:36:17 1996 Jeffrey A Law (law@cygnus.com)
2378 * From Peter Schauer.
2379 * breakpoint.c (breakpoint_re_set_one): Keep temporary
2380 breakpoints bp_until, bp_finish, bp_watchpoint_cope, bp_call_dummy
2381 and bp_step_resume in case breakpoint_re_set_one is called due
2382 to a step over a dlopen call.
2383 * infrun.c (wait_for_inferior): Always remove breakpoints from
2384 inferior in BPSTAT_WHAT_CHECK_SHLIBS case.
2386 Tue Mar 26 13:15:32 1996 Fred Fish <fnf@cygnus.com>
2388 * config/mips/tm-mips.h (COERCE_FLOAT_TO_DOUBLE): Only prefer
2389 non-prototyped case over prototyped case for C.
2390 * config/pa/tm-hppa.h (COERCE_FLOAT_TO_DOUBLE): Ditto.
2392 Sat Mar 23 17:24:28 1996 Fred Fish <fnf@cygnus.com>
2394 * os9kread.c (os9k_process_one_symbol): Note nonportable
2395 assumption that an int can hold a char *.
2397 * bcache.h (struct hashlink): Wrap data[] inside union with
2398 double to force longest alignment.
2399 (BCACHE_DATA): New macro to access data[].
2400 (BCACHE_ALIGNMENT): New macro to get offset to data[].
2401 * bcache.c (lookup_cache, bcache): Use BCACHE_DATA to get
2402 address of cached data. Use BCACHE_ALIGNMENT to compute
2403 amount of space to allocate for each hashlink struct.
2405 Sat Mar 23 12:14:02 1996 Fred Fish <fnf@cygnus.com>
2407 * ch-lang.c (evaluate_subexp_chill): Fix typo.
2409 Thu Mar 21 08:27:19 1996 Fred Fish <fnf@cygnus.com>
2411 * Makefile.in (VERSION): Bump version to 4.15.3
2413 Thu Mar 21 10:56:41 1996 Ian Lance Taylor <ian@cygnus.com>
2415 * config.in: Rename from config.h.in.
2416 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
2417 Change CONFIG_HEADERS test in AC_OUTPUT accordingly.
2418 * configure: Rebuild.
2419 * Makefile.in (stamp-h): Depend upon config.in, not config.h.in.
2420 Set CONFIG_HEADERS to config.h:config.in.
2422 Tue Mar 19 12:47:51 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2424 * partial-stab.h (case N_ENDM): Finish current partial symbol
2425 table for Solaris 2 cc.
2427 Tue Mar 19 10:39:15 1996 Jeffrey A Law (law@cygnus.com)
2429 * rs6000-nat.c (exec_one_dummy_insn): Don't clobber the
2430 PC in the registers array. From Peter Schauer.
2432 Mon Mar 18 13:47:09 1996 Fred Fish <fnf@cygnus.com>
2434 * symfile.c (reread_symbols): Reinitialize bcache struct
2435 members to zero using memset. Also use memset to reinit
2436 global_psymbols and static_psymbols, rather than explicitly
2437 resetting each structure member.
2439 Sat Mar 16 19:47:36 1996 Fred Fish <fnf@cygnus.com>
2441 * configure.in: Add fragment to create stamp-h.
2443 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2444 * configure.in (AC_CHECK_HEADERS): Check for link.h.
2445 * configure: Regenerate with autoconf.
2446 * config.h.in: Regenerate with autoheader.
2447 * config/i386/nm-linux.h: Include solib.h only if HAVE_LINK_H
2449 * solib.c: Exclude most of the code if HAVE_LINK_H is not defined.
2450 * config/i386/linux.mh: Reinstate XM_CLIBS, it is needed for
2451 older a.out based systems.
2453 Sat Mar 16 16:45:43 1996 Fred Fish <fnf@cygnus.com>
2455 * config.h.in: New file.
2456 * acconfig.h: New file, for autoheader.
2457 * configure.in (AC_CONFIG_HEADER): Add, generate config.h.
2458 * configure: Regenerate.
2459 * Makefile.in (defs_h): Add config.h
2460 (distclean): Remove config.h and stamp-h during distclean.
2461 (config.h, stamp-h): New targets to remake config.h when necessary.
2462 * defs.h (config.h): Include before any other includes or defines.
2463 * i386-tdep.c (gdb_string.h): Move include after include of defs.h.
2464 * i386v4-nat.c (defs.h): Include before testing HAVE_SYS_PROCFS_H.
2466 Sat Mar 16 14:55:27 1996 Fred Fish <fnf@cygnus.com>
2468 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2469 * Makefile.in (INSTALLED_LIBS): Make sure that @LIBS@ will not
2470 result in an empty line, to work around a bug in native Ultrix 4.4
2471 and OSF/1-3.2C make.
2473 Sat Mar 16 13:33:17 1996 Fred Fish <fnf@cygnus.com>
2475 * configure.in: Add gdbserver to configdirs under linux.
2476 * configure: Regenerate.
2478 Fri Mar 15 12:06:58 1996 J.T. Conklin <jtc@rtl.cygnus.com>
2480 * config/i386/nm-nbsd.h (FLOAT_INFO): Comment out.
2481 * config/i386/tm-nbsd.h (NUM_REGS): Define.
2483 Thu Mar 14 10:31:18 1996 Jeffrey A Law (law@cygnus.com)
2485 * solib.c (solib_break_names): Add _r_debug_state for
2486 vanilla SVR4 implementations. From Peter Schauer.
2488 Mon Mar 11 14:24:57 1996 Dawn Perchik <dawn@critters.cygnus.com>
2490 * mon960-rom.c: New file; support mon960 rom monitor on i960.
2491 * monitor.c (monitor_debug): Change remotedebug to buffer strings.
2492 * monitor.c (monitor_open): Add test for flag MO_NO_ECHO_ON_OPEN before
2493 epecting prompt and echo during open.
2494 * monitor.c (monitor_stop): Add test for flag MO_SEND_BREAK_ON_OPEN to
2495 determine if break should be sent as stop command.
2496 * monitor.h: Add flags MO_NO_ECHO_ON_OPEN and MO_SEND_BREAK_ON_OPEN.
2497 * i960-tdep.c (mon960_frame_chain_valid): New function for getting
2498 stack frame on mon960.
2499 * Makefile.in: Add mon960 files.
2500 * configure.in: Changed i960-*-coff* and i960-*-elf* to target mon960;
2501 added i960-nindy-coff* and i960-nindy-elf* for target nindy.
2502 * configure: Regenerated.
2503 * config/i960/mon960.mt, config/i960/tm-mon960.h: New files;
2504 support mon960 rom monitor on i960.
2506 Mon Mar 11 11:02:47 1996 Steve Chamberlain <sac@slash.cygnus.com>
2508 With Michael Snyder:
2509 * i386-tdep.c (skip_trampoline_code): Fix strncmp length.
2510 * win32-nat.c (CHECK, DEBUG*, debug_*): New.
2511 (handle_load_dll): Don't reload symbols.
2512 (handle_exception): Use the DEBUG_* names.
2513 (child_wait): Add DEBUG_* code.
2514 (_initialize_inftarg): Add new commands to set debug_ names.
2516 Mon Mar 11 09:19:58 1996 Jeffrey A Law (law@cygnus.com)
2518 * From Peter Schauer:
2519 * breakpoint.c (insert_breakpoints): Use ALL_BREAKPOINTS_SAFE.
2520 (bpstat_stop_status): Likewise.
2521 (remove_solib_event_breakpoints): Likewise.
2522 (clear_momentary_breakpoints): Likewise.
2523 (re_enable_breakpoints_in_shlibs): Don't reenable a breakpoint
2524 if we still can't read the memory for that breakpoint.
2525 (mention): Add bp_shlib_event case to keep gcc quiet.
2527 Fri Mar 8 12:08:12 1996 Jeffrey A Law (law@cygnus.com)
2529 * breakpoint.h (enum enable): New enum shlib_disabled for
2530 shared library breakpoints that have been temporarily disabled.
2531 * breakpoint.c: Handle temporarily disabled shared library
2532 breakpoints like disabled breakpoints in most places.
2533 (insert_breakpoints): Use shlib_disabled to indicate
2534 that an unsettable breakpoint is only temporarily disabled.
2535 (re_enable_breakpoints_in_shlibs): New function.
2536 * corelow.c (solib_add_stub): After adding shared libraries,
2537 try to reenable any temporarily disabled breakpoints.
2538 * infcmd.c (attach_command): Likewise.
2539 * infrun.c (wait_for_inferior): Likewise.
2541 Fri Mar 8 11:41:25 1996 Ian Lance Taylor <ian@cygnus.com>
2543 * defs.h (extract_long_unsigned_integer): Declare.
2544 * findvar.c (extract_long_unsigned_integer): New function.
2545 * printcmd.c (print_scalar_formatted): Use it.
2546 * valprint.c (val_print_type_code_int): Likewise.
2548 Thu Mar 7 17:40:50 1996 Stan Shebs <shebs@andros.cygnus.com>
2550 * infcmd.c (do_registers_info): Ignore anonymous registers.
2551 * sh-tdep.c (set processor): New command to set specific
2553 (sh_reg_names, sh3_reg_names): Arrays of register names for
2554 SH and SH3 processors.
2555 (sh_set_processor_type): New function.
2556 * sh3-rom.c (sh3_open): Call it.
2557 (sh3_regname): Add names of all the bank registers.
2558 (sh3_supply_register): Clean up formatting.
2559 * config/sh/tm-sh.h (NUM_REGS, NUM_REALREGS): Increase to include
2561 (REGISTER_NAMES): Add names of bank registers.
2562 (FP15_REGNUM): Define.
2563 (REGISTER_VIRTUAL_TYPE): Use it.
2564 * monitor.c: Clean up some comments.
2566 Thu Mar 7 12:09:51 1996 J.T. Conklin <jtc@rtl.cygnus.com>
2568 * i386b-nat.c: Revert part of Mar 5 change. FreeBSD collapsed the
2569 s* and t* symbols too.
2571 Thu Mar 7 15:18:51 1996 James G. Smith <jsmith@cygnus.co.uk>
2573 * symfile.c (generic_load): Avoid division by zero.
2575 Wed Mar 6 17:57:59 1996 Jeffrey A Law (law@cygnus.com)
2577 * breakpoint.c (bfd_lookup_symbol): Provide for all SVR4 systems,
2578 not just those with HANDLE_SVR4_EXEC_EMULATORS.
2581 * breakpoint.c (internal_breakpoint_number): Move to file scope.
2582 (create_solib_event_breakpoint): Use an internal breakpoint number.
2584 Wed Mar 6 00:32:44 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
2586 * valarith.c (value_in): Change builtin_type_chill_bool to
2589 Tue Mar 5 23:48:36 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
2591 * ch-exp.c (parse_primval): Handle CARD, MAX, MIN.
2592 (match_string_literal): Handle control sequence.
2593 (match_character_literal): Deto.
2595 * ch-lang.c (chill_printchar): Change formating of nonprintable
2596 characters from C'xx' to ^(num).
2597 (chill_printstr): Deto.
2598 (value_chill_card, value_chill_max_min): New functions to process
2599 Chill's CARD, MAX, MIN.
2600 (evaluate_subexp_chill): Process UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN.
2602 * expression.h (exp_opcode): Add UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN
2603 for Chill's CARD, MAX, MIN.
2605 * valarith.c (value_in): Add processing of TYPE_CODE_RANGE
2606 and change return type from builtin_type_int to
2607 builtin_type_chill_bool.
2609 Tue Mar 5 18:54:04 1996 Stan Shebs <shebs@andros.cygnus.com>
2611 * config/nm-nbsd.h (link_object, lo_name, etc): Move to here
2612 from config/nm-nbsd.h.
2613 * config/sparc/nm-nbsd.h (regs, fp_status, etc): Move to here
2614 from config/sparc/tm-nbsd.h.
2616 * config/m68k/nm-hp300hpux.h (FIVE_ARG_PTRACE): Define here
2617 instead of in config/m68k/xm-hp300hpux.h.
2619 Tue Mar 5 12:05:35 1996 J.T. Conklin <jtc@rtl.cygnus.com>
2621 * i386b-nat.c, m68knbsd-nat.c (fetch_core_registers): Provide
2622 implementation for NetBSD systems.
2624 Mon Mar 4 23:44:16 1996 Per Bothner <bothner@kalessin.cygnus.com>
2626 * valarith.c (binop_user_defined_p): Return 0 for BINOP_CONCAT.
2627 (value_concat): Handle varying strings (add COERCE_VARYING_ARRAY).
2629 * ch-lang.c (evaluate_subexp_chill case MULTI_SUBSCRIPT): Error
2630 if "function" is pointer to non-function.
2632 Mon Mar 4 17:47:03 1996 Stan Shebs <shebs@andros.cygnus.com>
2634 * top.c (print_gdb_version): Update copyright year.
2636 Mon Mar 4 14:44:54 1996 Jeffrey A Law (law@cygnus.com)
2639 * infrun.c (wait_for_inferior): Remove breakpoints and
2640 switch terminal settings before calling SOLIB_ADD.
2641 * solib.c (enable_break, SVR4 variant): Don't map in symbols
2642 for the dynamic linker, the namespace pollution causes real
2645 Sun Mar 3 17:18:57 1996 James G. Smith <jsmith@cygnus.co.uk>
2647 * remote-mips.c (common_breakpoint): Explicitly terminate the
2650 Wed Feb 28 22:32:18 1996 Stan Shebs <shebs@andros.cygnus.com>
2652 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
2653 * remote.c (remote_detach): Send a command 'D' to the target
2654 when detaching, update the function's comments.
2656 Thu Jun 6 16:11:38 1996 Miles Bader <miles@gnu.ai.mit.edu>
2658 * gnu-nat.c (thread_cmd_list): New declaration.
2659 (parse_int_arg): New function.
2661 Wed Jun 5 17:28:04 1996 Miles Bader <miles@gnu.ai.mit.edu>
2663 * gnu-nat.h (struct proc): Add DETACH_SC field.
2664 * gnu-nat.c (make_proc): Set DETACH_SC.
2665 (struct inf): Add DETACH_SC & DEFAULT_THREAD_DETACH_SC fields.
2666 (make_inf): Set DETACH_SC & DEFAULT_THREAD_DETACH_SC fields.
2667 (add_thread_commands): Add set/show for detach-suspend-count.
2668 Add takeover-suspend-count cmd.
2669 (inf_detach): Set suspend counts to the detach SC, not 0.
2670 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd,
2671 set_task_detach_sc_cmd, show_task_detach_sc_cmd,
2672 set_thread_default_thread_detach_sc_cmd,
2673 show_thread_default_thread_detach_sc_cmd): New functions.
2674 (show_task_cmd): Also show detach-suspend-count values.
2675 (thread_takeover_sc_cmd): New function.
2677 Fri May 31 16:49:24 1996 Miles Bader <miles@gnu.ai.mit.edu>
2679 * gnu-nat.c (show_thread_run_cmd): Actually print state.
2681 Thu May 30 10:47:56 1996 Miles Bader <miles@gnu.ai.mit.edu>
2683 * gnu-nat.c (inf_signal): Make unforwardable exceptions an error.
2685 Tue May 28 17:06:36 1996 Miles Bader <miles@gnu.ai.mit.edu>
2687 * gnu-nat.c (inf_validate_stopped): proc_getprocinfo takes a
2688 pointer to the flags now, not the flags themselves.
2690 Mon May 27 13:31:17 1996 Miles Bader <miles@gnu.ai.mit.edu>
2692 * gnu-nat.c (gnu_wait): Print debugging msgs for pending execs.
2693 (gnu_create_inferior): Check return from ptrace.
2695 Sun May 26 16:56:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
2697 * gnu-nat.h (struct proc): Add DEAD field.
2698 * gnu-nat.c (make_proc): Initialize DEAD.
2699 (inf_set_traced, inf_validate_task_sc, inf_validate_procs: Frob it.
2700 (gnu_wait): Only abort for 0 threads if the task isn't dead.
2702 Sat May 25 17:06:05 1996 Miles Bader <miles@gnu.ai.mit.edu>
2704 * gnu-nat.c (inf_signal): Pass SIGCODE when posting a signal.
2706 Wed May 22 18:44:28 1996 Miles Bader <miles@gnu.ai.mit.edu>
2708 * gnu-nat.c (S_proc_wait_reply): Add SIGCODE argument.
2709 (inf_set_traced): Only give no-signal-thread error message if
2710 turning *on* tracing.
2712 Wed May 15 13:03:16 1996 Miles Bader <miles@gnu.ai.mit.edu>
2714 * gnu-nat.c (inf_validate_procs): If INF has no threads, always
2715 set inf->threads_up_to_date to 0.
2716 (inf_signal): Pass in new SIGCODE argument to msg_sig_post_untraced.
2717 (gnu_wait): Pass in new TIMEOUT arg to interrupt_operation.
2718 (proc_update_sc): Cast thread state arg to thread_set_state.
2719 (proc_get_state): Cast thread state arg to thread_get_state.
2720 (inf_validate_task_sc): Cast task_basic_info arg to task_info.
2721 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Call
2722 inf_update_procs before we lookup the thread.
2723 * config/i386/i386gnu.mh (MH_CFLAGS): New variable.
2725 Tue May 7 17:52:33 1996 Miles Bader <miles@gnu.ai.mit.edu>
2727 * gnu-nat.c (gnu_kill_inferior): Use inf_set_task to clear the task.
2729 Mon May 6 19:06:49 1996 Miles Bader <miles@gnu.ai.mit.edu>
2731 * gnu-nat.c (inf_set_traced): Use msg_set_init_int with
2732 INIT_TRACEMASK instead of setting the exec flags.
2734 Fri May 3 19:10:57 1996 Miles Bader <miles@gnu.ai.mit.edu>
2736 * gnu-nat.c (inf_validate_procs): Don't clear INF->task if we find
2737 the task's died, so others have a chance at it.
2738 (gnu_resume): When single-stepping a single thread, given an error
2739 if there is no such thread. When single-stepping one but running
2740 the others, just given a warning and still run all the threads.
2741 (gnu_wait): If there seem to be no threads, look harder, and
2742 signal an error if there really aren't any.
2743 (gnu_attach): Reset thread numbering to 0.
2745 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Give
2746 thread name in warning messages.
2748 * gnu-nat.c (active_inf): New function.
2749 (show_sig_thread_cmd, show_stopped_cmd): Use it.
2750 (info_port_rights, info_send_rights_cmd, info_port_sets_cmd,
2751 info_recv_rights_cmd, info_port_rights_cmd, info_port_rights_cmd):
2753 (add_task_commands): Add new port-right info commands.
2755 Fri Apr 26 20:42:16 1996 Miles Bader <miles@gnu.ai.mit.edu>
2757 * gnu-nat.c (gnu_wait): Instead of _hurd_intr_rpc_mach_msg, just
2758 use mach_msg with MACH_RCV_INTERRUPT.
2759 (set_noninvasive_cmd): New function.
2760 (add_task_commands): Add command entry for `set noninvasive'.
2762 Mon Mar 4 14:12:02 1996 Miles Bader <miles@gnu.ai.mit.edu>
2764 * gnu-nat.c (gnu_read_inferior): Use hurd_safe_memmove, not safe_bcopy.
2765 (safe_bcopy): Function removed.
2767 Mon Dec 4 14:18:26 1995 Miles Bader <miles@gnu.ai.mit.edu>
2769 * gnu-nat.c (proc_update_sc): Assert only threads can have state.
2770 (make_proc): Initialize state_valid & state_changed fields.
2772 Tue Nov 28 17:51:21 1995 Miles Bader <miles@gnu.ai.mit.edu>
2774 * reply_mig_hack.awk: New file.
2776 Tue Nov 14 14:31:03 1995 Miles Bader <miles@gnu.ai.mit.edu>
2778 * breakpoint.c (breakpoint_1): Print breakpoint thread field.
2780 * lynx-nat.c (child_wait): Return TARGET_WAITKIND_SPURIOUS for new
2783 Mon Nov 13 18:30:53 1995 Miles Bader <miles@gnu.ai.mit.edu>
2785 * target.c (debug_to_check_threads): New function.
2787 * inflow.c (terminal_init_inferior_with_pgrp): New function.
2788 (terminal_init_inferior): Call terminal_init_inferior_with_pgrp.
2789 * inferior.h (terminal_init_inferior_with_pgrp): New declaration,
2790 but only if PROCESS_GROUP_TYPE is defined.
2792 Mon Nov 6 16:42:09 1995 Miles Bader <miles@gnu.ai.mit.edu>
2794 * target.c (debug_to_thread_alive): Pass through the return value.
2796 Thu Nov 2 18:05:00 1995 Miles Bader <miles@gnu.ai.mit.edu>
2798 * target.c (signals, target_signal_from_host, target_signal_to_host):
2799 Add mach exceptions.
2800 * target.h (enum target_signal): Add mach exceptions.
2802 Mon Oct 30 16:41:04 1995 Miles Bader <miles@gnu.ai.mit.edu>
2804 * gnu-nat.c: New file: gnu native backend.
2805 * i386gnu-nat.c: New file: i386-specific part of gnu native backend.
2806 * gnu-nat.h: New file.
2807 * config/nm-gnu.h: New file.
2808 * config/tm-i386gnu.h: New file.
2809 * config/xm-i386gnu.h: New file.
2810 * config/i386/i386gnu.mh: New file.
2811 * config/i386/i386gnu.mt: New file.
2813 Wed Feb 28 15:50:12 1996 Fred Fish <fnf@cygnus.com>
2815 * Makefile.in (VERSION): Bump version to 4.15.2 to establish
2816 baseline for gdb 4.16 rerelease testing.
2818 Wed Feb 28 13:32:05 1996 Jeffrey A Law (law@cygnus.com)
2820 * somsolib.c (som_solib_create_inferior_hook): Before returning
2821 call clear_symtab_users.
2823 Tue Feb 27 00:04:46 1996 Stu Grossman (grossman@critters.cygnus.com)
2825 * remote-e7000.c (e7000_open): Delete all breakpoints when
2826 connecting to e7000. Change connect message to allow use of
2827 monitor.exp in test suite.
2828 * (e7000_load): Print transfer rate of download.
2829 * symfile.c (generic_load): Print transfer rate of download.
2831 Sun Feb 25 13:58:33 1996 Stan Shebs <shebs@andros.cygnus.com>
2833 * configure.in (mips*-*-vxworks*): New config.
2834 * configure: Regenerated.
2836 * config/mips/vxmips.mt, config/mips/tm-vxmips.h: New files.
2837 * remote-vxmips.c (vx_convert_to_virtual, vx_convert_from_virtual):
2840 Sat Feb 24 12:30:28 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2842 * partial-stab.h (case N_FUN): Function symbols generated
2843 by SPARCworks cc have a meaningless zero value, do not update
2844 pst->textlow if the function symbol value is zero.
2846 * stabsread.c (define_symbol): Initialize SYMBOL_TYPE field
2847 for function prototype declaration symbols.
2849 Fri Feb 23 22:33:04 1996 Stu Grossman (grossman@critters.cygnus.com)
2851 * remote-e7000.c (e7000_load): New routine to download via the
2853 * (e7000_wait): Don't backup PC when we hit a breakpoint.
2854 Apparantly new sh2 pods get this right...
2855 * (e7000_ops): Add call to e7000_load.
2857 Thu Feb 22 00:52:42 1996 J.T. Conklin <jtc@rtl.cygnus.com>
2859 * config/m68k/{nbsd.mh,nbsd.mt,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h},
2860 m68knbsd-nat.c: New files, support for NetBSD/m68k.
2862 * configure.in (m68k-*-netbsd*): New config.
2863 * configure: Regenerated.
2865 Wed Feb 21 19:00:21 1996 Fred Fish <fnf@cygnus.com>
2867 * standalone.c (open, _initialize_standalone): Fix obvious typos
2868 reported by Martin Pool <martin@citr.uq.oz.au>.
2870 Wed Feb 21 14:24:04 1996 Jeffrey A Law (law@cygnus.com)
2872 * solib.c (solib_create_inferior_hook): Fix thinko.
2874 Tue Feb 20 23:59:19 1996 Jeffrey A Law (law@cygnus.com)
2876 * solib.c (solib_break_names): Define for Solaris and Linux.
2877 (enable_break): For SVR4 systems, first try to use the debugger
2878 interfaces in the dynamic linker to track shared library events
2879 as they happen, then fall back to BKPT_AT_SYMBOL code. Convert
2880 BKPT_AT_SYMBOL code to use shared library event breakpoints.
2881 (solib_create_inferior_hook): Simplify BKPT_AT_SYMBOL code,
2882 it no longer needs to restart/wait on the inferior.
2883 * symfile.c (find_lowest_section): No longer static.
2884 * symfile.h (find_lowest_section): Corresponding changes.
2886 Tue Feb 20 18:54:08 1996 Fred Fish <fnf@cygnus.com>
2888 * valops.c (COERCE_FLOAT_TO_DOUBLE): Define default value.
2889 (value_arg_coerce): Use COERCE_FLOAT_TO_DOUBLE.
2890 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Define to 1.
2891 * config/mips/tm-mips.h: Ditto.
2892 * config/pa/tm-hppa.h: Ditto.
2893 * config/rs6000/tm-rs6000.h: Ditto.
2894 * config/sparc/tm-sparc.h: Ditto.
2896 Tue Feb 20 17:32:05 1996 J.T. Conklin <jtc@rtl.cygnus.com>
2898 * config/{i386,ns32k}/nbsd.mh (NATDEPFILES): Remove core-aout.o.
2900 * config/nm-nbsd.h (FETCH_INFERIOR_REGISTERS): Defined.
2901 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
2902 #ifdef'd out definitions --- Causes serious gdb failures on
2903 the i386. Need to investigate further before enabling.
2905 * i386b-nat.c (fetch_inferior_registers, store_inferior_registers,
2906 fetch_core_registers): New functions. These functions are defined
2907 if FETCH_INFERIOR_REGISTERS is set. Registers are fetched/stored
2908 with ptrace PT_GETREGS/PT_SETREGS.
2910 Tue Feb 20 16:55:06 1996 Stu Grossman (grossman@critters.cygnus.com)
2912 * findvar.c (extract_floating store_floating): Replace `long
2913 double' with `DOUBLEST'.
2915 Mon Feb 19 15:25:51 1996 J.T. Conklin <jtc@rtl.cygnus.com>
2917 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
2920 Mon Feb 19 10:32:05 1996 Jeffrey A Law (law@cygnus.com)
2922 * symtab.h (looup_minimal_symbol_solib_trampoline): Declare.
2924 * breakpoint.h (remove_solib_event_breakpoints): Declare.
2925 * breakpoint.c (remove_solib_event_breakpoints): New function.
2926 * somsolib.c (solib_create_inferior_hook): Remove all solib event
2927 breakpoints before inserting any new ones. Use a solib event
2928 breakpoint for the breakpoint at "_start".
2929 Remove extraneous "\n" from calls to warning.
2931 * breakpoint.c (breakpoint_1): Add missing "sigtramp" to bptypes
2934 Mon Feb 19 01:09:32 1996 Doug Evans <dje@cygnus.com>
2936 * dwarfread.c (add_partial_symbol): Use ADD_PSYMBOL_ADDR_TO_LIST
2937 for CORE_ADDR values.
2938 (new_symbol): Use SYMBOL_VALUE_ADDRESS for CORE_ADDR values.
2939 * symfile.h (add_psymbol_{,addr}to_list): Add prototypes.
2941 Sun Feb 18 14:37:13 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2943 * mipsread.c (mipscoff_symfile_read): Unconditionally add
2944 alpha coff dynamic symbols for all symbol files. Makes skipping
2945 over the trampoline code work when stepping from a function in a
2946 shared library into a function in a different shared library.
2948 Sun Feb 18 09:27:10 1996 Stu Grossman (grossman@cygnus.com)
2950 * config/sparc/tm-sparc.h: Define PS_FLAG_CARRY. Define
2951 RETURN_VALUE_ON_STACK to return long doubles on the stack.
2953 Sat Feb 17 16:33:11 1996 Fred Fish <fnf@cygnus.com>
2955 * Makefile.in (ch-exp.o): Add dependencies.
2956 (various): Add gdb_string.h to dependencies that need it.
2958 Sat Feb 17 08:57:50 1996 Fred Fish <fnf@cygnus.com>
2960 * symmisc.c (print_symbol_bcache_statistics): Update description for
2961 printing byte cache statistics.
2963 Thu Feb 16 16:02:03 1996 Stu Grossman (grossman@cygnus.com)
2965 * Add native support for long double data type.
2966 * c-exp.y (%union): Change dval to typed_val_float. Use DOUBLEST
2967 to store actual data. Change types of INT and FLOAT tokens to
2968 typed_val_int and typed_val_float respectively. Create new token
2969 DOUBLE_KEYWORD to specify the string `double'. Make production
2970 for FLOAT use type determined by parse_number. Add production for
2971 "long double" data type.
2972 * (parse_number): Use sscanf to parse numbers as float, double or
2973 long double depending upon the type of typed_val_float.dval. Also
2974 allow user to specify `f' or `l' suffix to explicitly specify
2975 float or long double constants. Change typed_val to
2977 * (yylex): Change typed_val to typed_val_int. Also, scan for
2979 * coffread.c (decode_base_type): Add support for T_LNGDBL basic
2981 * configure, configure.in: Add check for long double support in
2983 * defs.h: Define DOUBLEST appropriatly depending on whether
2984 HAVE_LONG_DOUBLE (from autoconf) is defined. Also, fix prototypes
2985 for functions that handle this type.
2986 * expression.h (union exp_element): doubleconst is now type
2988 * m2-exp.y f-exp.y (%union): dval becomes type DOUBLEST.
2989 * findvar.c (extract_floating): Make return value be DOUBLEST.
2990 Also, add support for numbers with size of long double.
2991 * (store_floating): Arg `val' is now type DOUBLEST. Handle all
2993 * parser-defs.h parse.c (write_exp_elt_dblcst): Arg expelt is now
2995 * valarith.c (value_binop): Change temp variables v1, v2 and v to
2996 type DOUBLEST. Coerce type of result to long double if either op
2998 * valops.c (value_arg_coerce): If argument type is bigger than
2999 double, coerce to long double.
3000 * (call_function_by_hand): If REG_STRUCT_HAS_ADDR is defined, and
3001 arg type is float and > 8 bytes, then use pointer-to-object
3002 calling conventions.
3003 * valprint.c (print_floating): Arg doub is now type DOUBLEST.
3004 Use appropriate format and precision to print out floating point
3006 * value.h: Fixup prototypes for value_as_double,
3007 value_from_double, and unpack_double to use DOUBLEST.
3008 * values.c (record_latest_value): Remove check for invalid
3009 floats. Allow history to store them so that people may examine
3010 them in hex if they want.
3011 * (value_as_double unpack_double): Change return value to DOUBLEST.
3012 * (value_from_double): Arg `num' is now DOUBLEST.
3013 * (using_struct_return): Use RETURN_VALUE_ON_STACK macro (target
3014 specific) to expect certain types to always be returned on the stack.
3016 Fri Feb 16 14:00:54 1996 Fred Fish <fnf@cygnus.com>
3018 * bcache.c, bcache.h: New files to implement a byte cache.
3019 * Makefile.in (SFILES): Add bcache.c.
3020 (symtab_h): Add bcache.h.
3021 (HFILES_NO_SRCDIR): add bcache.h
3022 (COMMON_OBJS): Add bcache.o
3023 (bcache.o): New target.
3024 * dbxread.c (start_psymtab): Make global_syms & static_syms
3025 type "partial_symbol **".
3026 * hpread.c (hpread_start_symtab): Ditto.
3027 * os9kread.c (os9k_start_psymtab): Ditto.
3028 * stabsread.h (start_psymtab): Ditto.
3029 * {symfile.c, symfile.h} (start_psymtab_common): Ditto.
3030 * maint.c (maintenance_print_statistics): Call
3031 print_symbol_bcache_statistics.
3032 * objfiles.c (allocate_objfile): Initialize psymbol bcache malloc
3034 * solib.c (allocate_rt_common_objfile): Ditto.
3035 * symfile.c (reread_symbols): Ditto.
3036 (free_objfile): Free psymbol bcache when objfile is freed.
3037 (objfile_relocate): Use new indirect psymbol pointers.
3038 * objfiles.h (struct objfile): Add psymbol cache.
3039 * symfile.c (compare_psymbols): Now passed pointers to pointers to
3041 (reread_symbols): Free psymbol bcache when freeing other objfile
3043 (add_psymbol_to_list, add_psymbol_addr_to_list): Initialize new
3044 psymbol using the psymbol bcache.
3045 (init_psymbol_list): Psymbol lists now contain pointers rather than
3046 the actual psymbols.
3047 * symfile.h (psymbol_allocation_list): Psymbol lists now dynamically
3048 grown arrays of pointers.
3049 (ADD_PSYMBOL_VT_TO_LIST): Initialize new symbol using the psymbol
3051 * symmisc.c (print_partial_symbols): Now takes pointer to pointer
3053 (print_symbol_bcache_statistics): New function to print per objfile
3055 (print_partial_symbol, print_partial_symbols,
3056 maintenance_check_symtabs, extend_psymbol_list):
3057 Account for change to pointer to pointer to partial symbol.
3058 * symtab.c (find_pc_psymbol, lookup_partial_symbol, decode_line_2,
3059 make_symbol_completion_list):
3060 Account for change to pointer to pointer to partial symbol.
3061 * symtab.h (bcache.h): Include.
3062 * xcoffread.c (xcoff_start_psymtab): Make global_syms & static_syms
3063 type "partial_symbol **".
3065 Fri Feb 16 10:02:34 1996 Fred Fish <fnf@cygnus.com>
3067 * dwarfread.c (free_utypes): New function.
3068 (read_file_scope): Call free_utypes as cleanup, rather than just
3069 freeing the utypes pointer.
3071 Thu Feb 15 21:40:52 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3073 * demangle.c (is_cplus_marker): New function, checks if a
3074 character is one of the commonly used C++ marker characters.
3075 * defs.h (is_cplus_marker): Add prototype.
3076 * c-typeprint.c (c_type_print_base), ch-lang.c (chill_demangle),
3077 cp-valprint.c (cp_print_class_method), mdebugread.c (parse_symbol),
3078 stabsread.c (define_symbol, read_member_functions, read_struct_fields),
3079 symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P),
3080 values.c (vb_match): Use is_cplus_marker instead of comparison
3083 Thu Feb 15 18:08:13 1996 Fred Fish <fnf@cygnus.com>
3085 * symfile.h (INLINE_ADD_PSYMBOL): Default this to 0 and possibly
3086 delete entirely someday.
3088 Thu Feb 15 15:25:34 1996 Stan Shebs <shebs@andros.cygnus.com>
3090 * mpw-make.sed: Edit out makefile rebuild rule.
3091 (host_alias, target_alias): Comment out instead of deleting.
3092 (@LIBS@): Edit out references.
3094 Tue Feb 13 22:56:46 1996 Fred Fish <fnf@cygnus.com>
3096 * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
3097 Use n_psyms in OBJSTAT, not psyms.
3099 Mon Feb 12 15:59:31 1996 Doug Evans <dje@charmed.cygnus.com>
3101 * configure.in (sparclet-*-aout*): New config.
3102 * configure: Regenerated.
3104 Mon Feb 12 14:17:52 1996 Fred Fish <fnf@cygnus.com>
3106 * somsolib.c (som_solib_add): Use xmalloc rather than bare
3107 unchecked call to malloc.
3108 * remote-mips.c (pmon_load_fast): ditto.
3109 * remote-mm.c (mm_open): ditto.
3110 * hpread.c (hpread_lookup_type): ditto.
3111 * remote-adapt.c (adapt_open): ditto.
3113 Mon Feb 12 13:11:32 1996 Fred Fish <fnf@cygnus.com>
3115 * f-lang.c (allocate_saved_bf_node, allocate_saved_function_node,
3116 allocate_saved_f77_common_node, allocate_common_entry_node,
3117 add_common_block): Use xmalloc rather than malloc, some of which
3119 * gnu-regex.c: At same point as other gdb specific changes
3120 #undef malloc and then #define it to xmalloc.
3121 * ch-exp.c (growbuf_by_size): Use xmalloc/xrealloc rather than
3122 bare unchecked calls to malloc/realloc.
3123 * stabsread.c (dbx_lookup_type): Use xmalloc rather than bare
3124 unchecked call to malloc.
3126 Wed Feb 7 11:31:26 1996 Stu Grossman (grossman@cygnus.com)
3128 * symtab.c (gdb_mangle_name): Change opname var to be const to
3129 match return val of cplus_mangle_name.
3130 * i960-tdep.c: Change arg types of next_insn to match callers.
3132 Wed Feb 7 07:34:24 1996 Fred Fish <fnf@cygnus.com>
3134 * config/i386/linux.mh (XM_CLIBS, GDBSERVER_LIBS): Remove. These
3135 apparently aren't needed in any reasonably recent version of
3138 Tue Feb 6 21:37:03 1996 Per Bothner <bothner@kalessin.cygnus.com>
3140 * stabsread.c (read_range_type): If !self-subrange and language
3141 is Chill, assume a true range. If a true_range is a sub_subrange,
3142 use builtin_type_int for index_type.
3144 Tue Feb 6 18:38:51 1996 J.T. Conklin <jtc@slave.cygnus.com>
3146 * nindy-share/nindy.c (say): Use stdarg.h macros when compiling
3147 with an ANSI compiler.
3149 start-sanitize-gdbtk
3150 Tue Feb 6 16:31:25 1996 Tom Tromey <tromey@creche.cygnus.com>
3152 * gdbtk.tcl (create_file_win): Eliminate text widget B1 binding so
3153 double-clicking will work again.
3154 (create_asm_win): Put "break" at end of all B1 bindings.
3155 (create_file_win): Lower "sel" tag, don't raise it.
3156 (ensure_line_visible): New proc.
3157 (update_listing, update_assembly): Use it.
3158 (create_copyright_window): Destroy window on Leave event.
3159 (create_command_window): Put "break" at end of all B2 bindings.
3162 Mon Feb 5 18:24:28 1996 Steve Chamberlain <sac@slash.cygnus.com>
3164 From Michael_Snyder@NeXT.COM (Michael Snyder):
3165 * valops.c (value_arg_coerce): Coerce float to double, unless the
3166 function prototype specifies float.
3168 Mon Feb 5 09:51:55 1996 Tom Tromey <tromey@creche.cygnus.com>
3170 * language.c (set_language_command): Use languages table when
3171 printing available languages.
3173 Sat Feb 3 12:22:05 1996 Fred Fish <fnf@cygnus.com>
3175 Fix problems reported by Hans Verkuil (hans@wyst.hobby.nl):
3176 * command.c (add_cmd): Add missing initialization for enums member.
3177 Reorder members to match structure declaration to make it easier to
3178 tell when one is missing.
3179 * exec.c (exec_file_command): Fix problem where filename in malloc'd
3180 memory is referenced after being freed.
3182 Sat Feb 3 03:26:21 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3184 * dwarfread.c (read_func_scope): Avoid GDB core dumps if
3185 AT_name tag is missing.
3187 * procfs.c (procfs_stopped_by_watchpoint): Fix logic when
3188 FLTWATCH and FLTKWATCH are defined.
3190 * remote.c (remote_read_bytes): Advance memaddr for transfers,
3191 return number of bytes transferred for partial reads.
3193 * top.c (init_signals): Reset SIGTRAP to SIG_DFL.
3195 Fri Feb 2 13:40:50 1996 Steve Chamberlain <sac@slash.cygnus.com>
3197 * win32-nat.c (mappings): Add ppc registers.
3198 (child_resume): Turn off step for ppc.
3200 Thu Feb 1 10:29:31 1996 Steve Chamberlain <sac@slash.cygnus.com>
3202 * config/powerpc/(cygwin32.mh, cygwin32.mt, tm-cygwin32.h,
3203 xm-cygwin32.h): New.
3204 * config/i386/(*win32*): Becomes *cygwin32*.
3205 * configure.in (i[3456]86-*-win32*): Becomes i[3456]86-*-cygwin32.
3206 (powerpcle-*-cygwin32): New.
3207 * configure: Regenerate.
3208 * win32-nat.c (child_create_inferior): Call CreateProcess
3209 with the right program arg.
3211 Thu Feb 1 11:01:10 1996 Jeffrey A Law (law@cygnus.com)
3213 * config/pa/tm-hppa.h (SOFT_FLOAT): Provide a default definition.
3215 Wed Jan 31 19:01:28 1996 Fred Fish <fnf@cygnus.com>
3217 * serial.c: Change fputc/fputs/fprintf to _unfiltered forms.
3219 Wed Jan 31 18:36:27 1996 Stan Shebs <shebs@andros.cygnus.com>
3221 * config/sparc/xm-sun4os4.h (HAVE_TERMIOS): Remove.
3223 * config/sparc/xm-sparc.h (HAVE_WAIT_STRUCT): Remove, never used.
3225 * config/i386/nm-i386mach.h (CHILD_PREPARE_TO_STORE): Move to
3226 here from config/i386/xm-i386mach.h, fix name.
3227 * config/i386/nm-sun386.h: Ditto, from config/i386/xm-sun386.h.
3228 * config/i386/nm-ptx4.h (CHILD_PREPARE_TO_STORE): Move to
3229 here from config/i386/xm-ptx4.h.
3230 * config/i386/nm-ptx4.h: Ditto, from config/i386/xm-ptx.h.
3231 * config/i386/nm-symmetry.h: Ditto, from config/i386/xm-symmetry.h.
3232 * config/m68k/nm-sun3.h: Ditto, from config/m68k/xm-sun3.h.
3233 * config/sparc/nm-nbsd.h: Ditto, from config/sparc/xm-nbsd.h.
3234 * config/sparc/nm-sun4os4: Ditto, from config/sparc/xm-sparc.h.
3236 * config/sparc/nm-sun4sol2.h: New file, renamed from nm-sysv4.h.
3237 (PRSVADDR_BROKEN): Move here from xm-sun4sol2.h.
3238 * config/sparc/sun4sol2.mh (NAT_FILE): Update.
3240 Wed Jan 31 17:20:26 1996 Jeffrey A Law (law@cygnus.com)
3242 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Handle software
3243 floating point correctly.
3244 (STORE_RETURN_VALUE): Likewise.
3245 * config/pa/tm-pro.h (SOFT_FLOAT): define.
3247 Wed Jan 31 13:34:52 1996 Fred Fish <fnf@cygnus.com>
3249 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
3250 Define to what should be reasonable values. However, apparently
3251 a bug in linux mmap prevents mapped symbol tables from working.
3253 Tue Jan 30 18:26:19 1996 Fred Fish <fnf@cygnus.com>
3255 * defs.h (errno.h>: Move #include closer to head of file to solve
3256 obscure problem with systems that declare perror with const arg, in
3257 both errno.h and stdio.h, and const is defined away by intervening
3260 Tue Jan 30 15:41:10 1996 Fred Fish <fnf@cygnus.com>
3262 From Jon Reeves <reeves@zk3.dec.com>:
3263 * i386-stub.c (getpacket): Change fprintf stream from "gdb" to stderr.
3264 (mem_fault_routine): Fix misplaced volatile type qualifier in decl.
3266 Mon Jan 29 19:05:58 1996 Fred Fish <fnf@cygnus.com>
3268 * Makefile.in (diststuff): Make all-doc; diststuff target does not
3269 exist in doc/Makefile.in.
3271 Mon Jan 29 18:44:57 1996 Stan Shebs <shebs@andros.cygnus.com>
3273 * config/m88k/xm-cxux.h (BP_HIT_COUNT): Remove, never used.
3275 Mon Jan 29 00:10:35 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
3277 * ch-valprint.c (calculate_array_length): New function to
3278 determine the length of an array type.
3279 (chill_val_print (case TYPE_CODE_ARRAY)): If the length of an
3280 array type is zero, call calculate_array_length.
3282 * gdbtypes.c (get_discrete_bounds (case TYPE_CODE_ENUM)): The
3283 values may not be sorted. Scan all entries and set the real lower
3286 Sun Jan 28 15:50:42 1996 Fred Fish <fnf@cygnus.com>
3288 * config/xm-linux.h: Move include of solib.h and #define of
3289 SVR4_SHARED_LIBS from here ...
3290 * config/nm-linux.h: ...to here.
3292 Sat Jan 27 10:34:05 1996 Fred Fish <fnf@cygnus.com>
3294 * configure.in (AC_CHECK_HEADERS): Check for sys/procfs.h.
3295 Also check for gregset_t and fpregset_t types.
3296 * configure: Regenerate.
3297 * core-regset.c (sys/procfs.h): Only include if HAVE_SYS_PROCFS_H
3299 (fetch_core_registers): Turn into stub unless both HAVE_GREGSET_T
3300 and HAVE_FPREGSET_T are defined. These changes allow systems
3301 like linux that are migrating to /proc support to use a single
3302 configuration for both new and old versions.
3304 * config/i386/linux.mt: Note that this is now for both a.out and
3306 * config/i386/linux.mh (NATDEPFILES): Add solib.o, core-regset.o,
3308 * config/i386/tm-linux.h (tm-sysv4.h): Include.
3309 * config/i386/xm-linux.h (solib.h): Include
3310 (SVR4_SHARED_LIBS): Define.
3311 * i386v4-nat.c: Only compile if HAVE_SYS_PROCFS_H is defined.
3312 (supply_gregset, fill_gregset): Compile if HAVE_GREGSET_T defined.
3313 (supply_fpregset, fill_fpregset): Compile if HAVE_FPREGSET_T
3316 Fri Jan 26 13:48:14 1996 Stan Shebs <shebs@andros.cygnus.com>
3318 * config/sparc/xm-sparc.h (NEW_SUN_CORE): Remove, never used.
3319 * config/i386/xm-sun386.h: Ditto.
3320 * config/m68k/xm-sun2.h, config/m68k/xm-sun3.h: Ditto.
3322 Thu Jan 25 16:05:53 1996 Tom Tromey <tromey@creche.cygnus.com>
3324 * Makefile.in (INSTALLED_LIBS, CLIBS): Include @LIBS@.
3326 Thu Jan 25 09:22:15 1996 Steve Chamberlain <sac@slash.cygnus.com>
3328 From Greg McGary <gkm@gnu.ai.mit.edu>:
3329 * dcache.c (dcache_peek, dcache_poke): Advance addr for
3332 Thu Jan 25 13:08:51 1996 Doug Evans (dje@cygnus.com)
3334 * infrun.c (normal_stop): Fix test for shared library event.
3336 Thu Jan 25 03:26:38 1996 Doug Evans <dje@charmed.cygnus.com>
3338 * configure.in (sparc64-*-*): Add default host configuration.
3339 start-sanitize-gdbtk
3340 (sparc64-*-solaris2* host): Link statically if GCC used.
3342 (sparc64-*-solaris2*): Add target configuration.
3343 * configure: Regenerated.
3344 * sparc/sp64sol2.mt: New file.
3346 Wed Jan 24 22:31:37 1996 Doug Evans <dje@charmed.cygnus.com>
3348 * Makefile.in (RUNTEST): srcdir renamed to rootsrc.
3350 Wed Jan 24 15:42:24 1996 Tom Tromey <tromey@creche.cygnus.com>
3352 * Makefile.in (lint): Close backquotes.
3354 start-sanitize-gdbtk
3355 Wed Jan 24 15:28:41 1996 Tom Tromey <tromey@creche.cygnus.com>
3357 * gdbtk.tcl, gdbtk.c: Updated copyrights.
3359 * configure.in: Look for -ldl or -ldld when using Tcl 7.5 or
3361 * configure: Rebuilt.
3364 Wed Jan 24 13:19:10 1996 Fred Fish <fnf@cygnus.com>
3366 * NEWS: Make note of new record and replay feature for
3367 remote debug sessions.
3368 * serial.c (gdbcmd.h): Include.
3369 (serial_logfile, serial_logfp, serial_reading, serial_writing):
3370 Define here, for remote debug session logging.
3371 (serial_log_command, serial_logchar, serial_write, serial_readchar):
3372 New functions for remote debug session logging.
3373 (serial_open): Open remote debug session log file when needed.
3374 (serial_close): Close remote debug session log file when needed.
3375 (_initialize_serial): Add set/show commands for name of remote
3376 debug session log file.
3377 * serial.h (serial_readchar): Declare
3378 (SERIAL_READCHAR): Call serial_readchar().
3379 (SERIAL_WRITE): Call serial_write().
3380 (serial_close): Declare as extern.
3381 (serial_logfile, serial_logfp): Declare.
3382 * top.c (execute_command): Declare serial_logfp. Log user command
3383 in remote debug session log if log file is open.
3384 * remote-array.c (array_wait): #ifdef out echo to gdb_stdout.
3385 (array_read_inferior_memory): Rewrite to fix memory overwrite bug.
3386 * remote-array.c (SREC_SIZE): Remove, duplicates define in
3388 * remote-array.c (hexchars, hex2mem): Remove, unused.
3389 * gdbserver/low-linux.c (store_inferior_registers): Remove
3390 unnecessary extern declaration of registers[].
3391 * gdbserver/Makefile.in (all): Add gdbreplay.
3392 * gdbserver/gdbreplay.c: New file.
3393 * gdbserver/README: Give example of recording a remote
3394 debug session with gdb and then replaying it with gdbreplay.
3396 Tue Jan 23 18:02:35 1996 Per Bothner <bothner@kalessin.cygnus.com>
3398 * stabsread.c (rs6000_builtin_type): Make bool type unsigned.
3399 (read_one_struct_field): Support boolean bitfields.
3400 * c-valprint.c (c_val_print): Print booleans properly.
3402 Tue Jan 23 18:54:09 1996 Stan Shebs <shebs@andros.cygnus.com>
3404 * remote-vxsparc.c (vx_convert_to_virtual, vx_convert_from_virtual):
3406 * config/sparc/vxsparc.mt (TDEPFILES): Add remote-vxsparc.o.
3408 Tue Jan 23 14:36:05 1996 Per Bothner <bothner@kalessin.cygnus.com>
3410 * ch-exp.c (parse_tuple): Error if invalid mode.
3412 * value.h (COERCE_ARRAY): Don't coerce enums.
3413 (COERCE_ENUM): Don't COERCE_REF.
3414 (COERCE_NUMBER): New macro (same as COERCE_ARRAY then COERCE_ENUM).
3415 * valops.c (value_assign): Only do COERCE_ARRAY if internalvar (let
3416 value_cast handle it otherwise); do *not* COERCE_ENUM either way.
3417 * valarith.c: Use COERCE_NUMBER instead od COEREC_ARRAY.
3418 Add COERCE_REF before COERCE_ENUM.
3419 * values.c (value_as_long): Simplify.
3421 * valops.c (value_array): Create internalvar if !c_style_arrays.
3423 * language.c (lang_bool_type): Add Fortran support.
3424 * eval.c (OP_BOOL): Use LA_BOOL_TYPE.
3426 Tue Jan 23 13:08:26 1996 Jeffrey A Law (law@cygnus.com)
3428 * symfile.c (auto_solib_add): Renamed from auto_solib_add_at_startup.
3429 All references changed.
3430 * breakpoint.c (bpstat_what): Add shlib_event to the class types.
3431 Update state table. Reformat so that it's still readable.
3432 When we hit the shlib_event breakpoint, set the calss of shlib_event.
3433 (breakpoint_1): Add "shlib events" as a breakpoint type.
3434 Print the shlib_event breakpoint like other breakpoints.
3435 (create_solib_event_breakpoint): New function.
3436 (breakpoint_re_set_one): Handle solib_event breakpoints.
3437 * breakpoint.h (enum bytype): Add bp_shlib_event breakpoint type.
3438 (enum bpstat_what_main_action): Add BPSTAT_WHAT_CHECK_SHLIBS
3440 (create_solib_event_breakpoint): Declare.
3441 * infrun.c (wait_for_inferior): Handle CHECK_SHLIBS bpstat.
3442 (normal_stop): Inform the user when the inferior stoped due
3443 to a shared library event.
3444 (_initialize_infrun): Add new set/show variable "stop-on-solib-events"
3445 to control whether or not gdb continues the inferior or stops it when
3446 a shared library event occurs.
3447 * minsyms.c (lookup_minimal_symbol_solib_trampoline): New function.
3448 * somsolib.c (TODO list): Update.
3449 (som_solib_create_inferior_hook): Arrange for gdb to be notified
3450 when significant shared library events occur.
3451 * hppa-tdep.c (find_unwind_entry): No longer static.
3453 Tue Jan 23 09:00:48 1996 Doug Evans <dje@charmed.cygnus.com>
3455 * printcmd.c (print_insn): Pass fprintf_unfiltered to
3456 INIT_DISASSEMBLE_INFO.
3457 start-sanitize-gdbtk
3458 * gdbtk.c (gdb_disassemble): Likewise.
3461 Mon Jan 22 16:59:40 1996 Stan Shebs <shebs@andros.cygnus.com>
3463 * remote.c (remotebreak): New GDB variable.
3464 (remote_break): New global.
3465 (remote_interrupt): Send a break instead of ^C if remote_break.
3466 * NEWS: Describe the new variable.
3468 Mon Jan 22 16:24:11 1996 Doug Evans <dje@charmed.cygnus.com>
3470 * sparc-tdep.c (_initialize_sparc_tdep): Always use print_insn_sparc.
3472 Fri Jan 19 07:19:38 1996 Fred Fish <fnf@cygnus.com>
3474 * hp300ux-nat.c (getpagesize): Remove unused function
3475 fetch_core_registers.
3476 (hp300ux_core_fns): Remove, is unused.
3477 (_initialize_core_hp300ux): Remove, is unused.
3478 (gdbcore.h): Remove #include, no longer needed.
3480 Fri Jan 19 00:59:53 1996 Jeffrey A Law (law@cygnus.com)
3482 * rs6000-nat.c (exec_one_dummy_insn): Rework to avoid
3483 ptrace bug in aix4.1.3 on the rs6000.
3485 Wed Jan 17 13:22:27 1996 Stan Shebs <shebs@andros.cygnus.com>
3487 * remote-hms.c (hms_ops): Add value for to_thread_alive.
3488 * remote-nindy.c (nindy_ops): Ditto.
3489 * remote-udi.c (udi_ops): Ditto.
3491 Tue Jan 16 18:00:35 1996 James G. Smith <jsmith@cygnus.co.uk>
3493 * remote-mips.c (pmon_opn, pmon_wait, pmon_makeb64, pmon_zeroset,
3494 pmon_checkset, pmon_make_fastrec, pmon_check_ack,
3495 pmon_load_fast): New functions. Support for the PMON monitor world.
3496 (common_open): New function to merge support for different monitors.
3497 (mips_open): Use common_open().
3498 (mips_send_command): New function.
3499 (mips_send_packet): Scan out-of-sequence packets.
3500 (mips_enter_debug, mips_exit_debug): New functions.
3501 (pmon_ops): New target definition structure.
3503 Tue Jan 16 11:22:58 1996 Stu Grossman (grossman@cygnus.com)
3505 * Makefile.in (CLIBS): Add LIBS to allow libraries to be
3506 specified on the make command line (via make LIBS=xxx).
3508 * configure.in (enable-gm): magic.o -> gmagic.o.
3511 start-sanitize-gdbtk
3512 Mon Jan 15 09:58:41 1996 Tom Tromey <tromey@creche.cygnus.com>
3514 * gdbtk.tcl (create_expr_window): Many changes to update GUI.
3515 (add_expr): Changes from create_expr_window.
3516 (create_command_window): Set focus.
3517 (delete_expr): Rewrote.
3518 (expr_update_button): New proc.
3519 (add_expr): Put bindings on FocusIn, FocusOut.
3520 Don't allow .file_popup to be torn off.
3523 Fri Jan 12 21:41:58 1996 Jeffrey A Law (law@cygnus.com)
3525 * symtab.c (find_pc_symtab): Don't lose if OBJF_REORDERED
3526 is set but there are no psymtabs.
3528 Fri Jan 12 15:56:12 1996 Steve Chamberlain <sac@slash.cygnus.com>
3530 * dsrec.c (load_srec): Remove unused variable.
3531 * monitor.c (monitor_expect): Don't expect a ^C to echo.
3532 * serial.c (serial_open): Add parallel interface.
3533 * sh3-rom.c (parallel, parallel_in_use): New.
3534 (sh3_load): If parallel_in_use, download though the
3536 (sh3_open): Open parallel port if specified.
3537 (sh3_close): New function.
3538 (_inititalize_sh3): Add sh3_close hook and documentation.
3539 * monitor.c (monitor_close): Export.
3540 * monitor.h (monitor_close): Add prototype.
3542 Fri Jan 12 13:11:42 1996 Stan Shebs <shebs@andros.cygnus.com>
3544 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
3545 * remote.c (remotetimeout): New GDB variable, use to set the
3546 remote timeout for reading.
3548 start-sanitize-gdbtk
3549 Fri Jan 12 09:36:17 1996 Tom Tromey <tromey@creche.cygnus.com>
3551 * gdbtk.tcl (gdbtk_tcl_query): Swap Yes and No buttons.
3552 (update_listing): Use lassign. Use "see" to scroll. Don't need
3553 screen_top, screen_bot, screen_height.
3554 (update_assembly): Use "see" to scroll.
3555 (textscrollproc): Removed.
3556 (create_file_win): Don't use textscrollproc.
3557 (asmscrollproc): Removed.
3558 (create_asm_window): Don't use asmscrollproc.
3559 (create_asm_win): Ditto.
3560 (screen_height, screen_top, screen_bot): Removed.
3561 (run_editor): New proc.
3562 (build_framework): Use it.
3563 (create_file_win, create_source_window): Don't use textscrollproc.
3564 (create_breakpoints_window): Set -xscrollcommand on canvas.
3565 (not_implemented_yet): Default button is 0.
3566 (delete_char): Don't use tk_textBackspace.
3567 (create_command_window): Allow Tk bindings to fire after deleting
3569 (create_command_window): Make Delete delete left, not right.
3572 Fri Jan 12 07:14:27 1996 Fred Fish <fnf@cygnus.com>
3574 * lynx-nat.c, irix4-nat.c, sparc-nat.c: Include gdbcore.h
3575 to get "struct core_fns" defined.
3576 * Makefile.in (lynx-nat.o, irix4-nat.o, sparc-nat.o):
3577 Are dependent upon gdbcore_h.
3579 Thu Jan 11 23:13:24 1996 Per Bothner <bothner@cygnus.com>
3581 * symfile.c (decrement_reading_symtab): New function.
3582 * symfile.c, symtab.h (currently_reading_symtab): New variable.
3583 * symfile.c (psymtab_to_symtab): Adjust currently_reading_symtab.
3584 * gdbtypes.c (check_typedef): Don't call lookup_symbol if
3585 currently_reading_symtab (since that could infinitely recurse).
3587 Thu Jan 11 17:21:25 1996 Per Bothner <bothner@kalessin.cygnus.com>
3589 * stabsread.c (read_struct_type): Trivial simplification.
3591 * stabsread.c (define-symbol): Use invisible references
3592 for TYPE_CODE_SET and TYPE_CODE_BITSTRING too.
3593 * valops.c (call_function_by_hand): Likewise.
3594 * eval.c (evaluate_subexp_standard): When known, use the formal
3595 parameter type as the expected type when evaluating arg expressions.
3596 * ch-lang.c (evaluate_subexp_chill): Likewise (for MULTI_SUBSCRIPT).
3598 start-sanitize-gdbtk
3599 Thu Jan 11 10:08:14 1996 Tom Tromey <tromey@creche.cygnus.com>
3601 * main.c (main): Disable window interface if --help or --version
3604 * gdbtk.tcl (FSBox): Don't use tk_listboxSingleSelect.
3606 Changes in sync with expect:
3607 * configure.in (ENABLE_GDBTK): Use CY_AC_PATH_TCL and
3609 * aclocal.m4: Replaced with version from expect.
3610 * configure: Regenerated.
3613 Wed Jan 10 16:08:49 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
3615 * configure.in, configure: Recognize rs6000-*-aix4*.
3616 * config/powerpc/xm-aix.h: Reduce to include "xm-aix4.h".
3617 * config/rs6000/aix4.mh (XM_FILE): Point to xm-aix4.h.
3618 * config/rs6000/xm-aix4.h: New file.
3619 * config/xm-aix4.h: New file.
3621 Wed Jan 10 11:25:37 1996 Fred Fish <fnf@cygnus.com>
3623 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
3624 * gdbserver/low-linux.c: New file.
3625 * remote.c (remote_read_bytes): Fix aborts on larger packets.
3627 * config/i386/linux.mh (GDBSERVER_DEPFILES, GDBSERVER_LIBS):
3629 * stabsread.c (define_symbol): If register value is too large,
3630 tell what it is and what max is.
3632 start-sanitize-gdbtk
3633 Wed Jan 10 09:07:22 1996 Tom Tromey <tromey@creche.cygnus.com>
3635 * gdbtk.tcl (gdbtk_tcl_fputs, gdbtk_tcl_fputs_error,
3636 gdbtk_tcl_flush): Use "see", not "yview".
3637 (gdbtk_tcl_query): Use questhead bitmap.
3638 various: Always wrap condition of 'if' in {...}.
3639 (add_breakpoint_frame): Set -value on radiobuttons.
3640 (lassign): New proc.
3641 (add_breakpoint_frame): Use lassign, not series of assignments.
3642 (decr): Made faster.
3643 (interactive_cmd): Use "see", not "yview".
3644 (not_implemented_yet): Use warning bitmap.
3645 (update_expr): Don't allow $expr to be evalled by Tcl.
3646 (create_expr_window): Don't use "focus".
3647 (delete_char, delete_line): Define globally.
3648 (delete_line, delete_char, create_command_window, update_autocmd,
3649 build_framework, create_asm_win, create_file_win): Use "see", not
3651 (create_copyright_window, center_window, bind_widget_after_class):
3653 (FSBox,create_command_window, create_autocmd_window): Binding
3655 (textscrollproc): Define globally.
3656 (build_framework): tk_menuBar no longer needed. Keys Prior, Next,
3657 Home, End, Up, and Down are all defined by Tk.
3658 (apply_filespec): Use error bitmap in dialog.
3659 (files_command): Don't use tk_listboxSingleSelect.
3660 (files_command): Don't use "uniq" to remove duplicates from a
3662 (update_assembly): Use lassign.
3663 (create_asm_win): Removed redundant bindings.
3664 (listing_window_button_1, file_popup_menu): Use tk_popup.
3665 (ButtonRelease-1 binding): Just remove tag from window; rest
3668 * gdbtk.c (gdbtk_query): Use Tcl_Merge to provide quoting.
3669 (call_wrapper): Use Tcl_Eval, not Tcl_VarEval.
3670 (gdbtk_call_command): Ditto.
3673 Tue Jan 9 09:33:53 1996 Jeffrey A Law (law@cygnus.com)
3675 * hpread.c (hpread_build_psymtabs): Finish Jan 4th
3676 enum namespace -> enum_namespace change.
3678 Tue Jan 9 04:44:47 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
3680 * ch-exp.c (parse_primval): In case ARRAY, add missing
3683 Mon Jan 8 13:29:34 1996 Stan Shebs <shebs@andros.cygnus.com>
3685 * remote-mips.c (mips_receive_header): Recognize \012 instead
3686 of \n, but write \n when program sends a \012.
3687 * ser-mac.c (mac_input_buffer): Increase size of buffer.
3689 Mon Jan 8 12:00:40 1996 Jeffrey A Law (law@cygnus.com)
3691 * infptrace.c (initialize_infptrace): Move function out of
3692 #ifdef conditional; put code within the function inside an
3695 * buildsym.c (end_symtab): Remove sort_pending and sort_linevec
3696 arguments. Sorting is now dependent on OBJF_REORDERED. All
3697 callers/references changed.
3698 * dbxread.c (read_ofile_symtab): Correctly determine value for
3699 last_source_start_addr for reordered executables.
3700 (process_one_symbol): Handle N_FUN with no name as an end of
3702 * partial-stab.h (case N_FN, N_TEXT): Don't assume CUR_SYMBOL_VALUE
3703 is the high text address for a psymtab.
3704 (case N_SO): Likewise.
3705 (case N_FUN): Handle N_FUN with no name as an end of function
3707 * minsyms.c (lookup_minimal_symbol_by_pc): Examine all symbols
3708 at the same address rather than a random subset of them.
3709 * coffread.c (coff_symfile_init): Set OBJF_REORDERED.
3710 * elfread.c (elf_symfile_init): Similarly.
3711 * somread.c (som_symfile_init): Similarly.
3712 * xcoffread.c (xcoff_symfile_init): Similarly.
3714 Fri Jan 5 17:46:01 1996 Stu Grossman (grossman@cygnus.com)
3716 * stack.c (print_stack_frame print_frame_info) symmisc.c
3717 (dump_symtab): Change RETURN_MASK_ERROR to RETURN_MASK_ALL so
3718 that catch_errors doesn't get blindsided by QUIT and lose the
3719 cleanup chain. This fixes a problem where ^C while in a
3720 user-defined command sometimes leaves instream NULL and causes a
3721 segfault in command_loop.
3723 Fri Jan 5 13:59:16 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
3725 * configure.in, configure: Add `-ldl -lw' for Solaris linking.
3727 Fri Jan 5 12:02:00 1996 Steve Chamberlain <sac@slash.cygnus.com>
3729 * config/sh/sh.mt, config/powerpc/*.mt, config/pa/hppapro.mt,
3730 config/m68k/monitor.mt, config/h8500/h8500.mt, config/h8300/h8300.mt:
3731 srec.o renamed to dsrec.o.
3733 Thu Jan 4 16:04:54 1996 Stu Grossman (grossman@cygnus.com)
3735 * breakpoint.c (remove_breakpoint): Change error to warning so
3736 that hardware watchpoint removal problems won't leave breakpoint
3737 traps in the target.
3738 start-sanitize-gdbtk
3739 * configure configure.in: Make --enable-gdbtk be the default.
3741 * remote-e7000.c (e7000_insert_breakpoint,
3742 e7000_remove_breakpoint): Use e7000 based breakpoints, not memory
3744 * (e7000_wait): Adjust PC back by two when we see a breakpoint to
3745 compensate for e7000 maladjustment.
3746 * sparcl-tdep.c (sparclite_check_watch_resources): Fix logic bug
3747 which prevented hardware watchpoints from working.
3749 Thu Jan 4 10:44:17 1996 Fred Fish <fnf@cygnus.com>
3751 * infptrace.c (udot_info): New function.
3752 (PT_*): Define each individually if that one is not defined.
3753 * rs6000-nat.c (kernel_u_size): New function
3754 Include <sys/user.h> for "struct user"
3755 * alpha-nat.c (kernel_u_size): New function.
3756 Include <sys/user.h> for "struct user"
3757 * sparc-nat.c (kernel_u_size): New function.
3758 Include <sys/user.h> for "struct user"
3759 * i386b-nat.c (kernel_u_size): New function.
3760 * i386v-nat.c (kernel_u_size): New function.
3761 * config/i386/nm-fbsd.h (KERNEL_U_SIZE): Define.
3762 (kernel_u_size): Declare.
3763 * config/i386/nm-linux.h (KERNEL_U_SIZE): Define.
3764 (kernel_u_size): Declare.
3765 * config/sparc/nm-sun4os4.h (KERNEL_U_SIZE): Define.
3766 (kernel_u_size): Declare.
3767 * config/alpha/nm-osf2.h (KERNEL_U_SIZE): Define.
3768 (kernel_u_size): Declare.
3769 * config/rs6000/nm-rs6000.h (KERNEL_U_SIZE): Define.
3770 (kernel_u_size): Declare.
3772 Thu Jan 4 11:00:01 1996 steve chamberlain <sac@slash.cygnus.com>
3774 * mdebugread.c (mylookup_symbol): enum namespace becomes
3775 enum_namespace type.
3776 * symfile.c (add_psymbol_to_list)
3777 (add_psymbol_addr_to_list): Ditto.
3778 * symtab.c (lookup_partial_symbol): Ditto.
3779 (lookup_symbol): Ditto.
3780 (lookup_block_symbol): Ditto.
3781 * win32-nat.c (handle_load_dll): Use incoming dll base.
3782 (child_wait): Catch DLL load errors.
3783 (create_child_inferior): Translated between paths correctly.
3785 Wed Jan 3 23:13:53 1996 Fred Fish <fnf@cygnus.com>
3787 * i386v4-nat.c (supply_gregset, fill_gregset): Subtract NUM_FREGS
3788 from NUM_REGS to get number of general registers that we care about.
3789 * config/i386/tm-i386.h (REGISTER_BYTES): Define in terms
3790 of number of general regs and number of floating point regs.
3792 Wed Jan 3 19:49:54 1996 steve chamberlain <sac@slash.cygnus.com>
3794 * config/i386/tm-win32.h (IN_SOLIB_CALL_TRAMPOLINE): New.
3795 (SKIP_TRAMPOLINE_CODE): New.
3796 * config/i386/xm-win32.h (CANT_FORK): Deleted.
3797 (SLASH*) Changed to use unix style slash.
3798 * symtab.h (namespace enum): becomes typedef to avoid namespace
3800 * infcmd.c (path_command): Use empty string if PATH name not set.
3801 * i386-tdep.c (skip_trampoline_code): New function.
3802 * srec.c: Renamed dsrec.c to avoid filename collision.
3803 * Makefile.in: Cope with renaming.
3805 Wed Jan 3 13:09:04 1996 Fred Fish <fnf@cygnus.com>
3807 * symmisc.c (print_objfile_statistics): Print memory use statistics
3808 for objfile psymbol, symbol, and type obstacks.
3810 Tue Jan 2 13:41:14 1996 Stan Shebs <shebs@andros.cygnus.com>
3812 * config/mips/nm-irix5.h: Restore.
3813 (TARGET_HAS_HARDWARE_WATCHPOINTS, etc): Define as for Irix 4;
3814 from Lee Iverson <leei@ai.sri.com>.
3815 * config/mips/irix5.mh (NAT_FILE): Use nm-irix5.h.
3816 * config/mips/irix[345].mh (MUNCH_DEFINE): Remove.
3818 For older changes see ChangeLog-95
3824 version-control: never