1 Sun Aug 4 16:22:42 1996 Fred Fish <fnf@cygnus.com>
3 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Define to "int *",
4 which is the documented type under at least AIX 3 and AIX 4.
6 Sat Aug 3 04:02:46 1996 Fred Fish <fnf@cygnus.com>
8 * config/alpha/alpha-osf3.mh (XM_FILE): Change from xm-alpha.h to
10 (MMALLOC_CFLAGS): Define NO_MMCHECK to not install consistency
14 Thu Aug 1 20:35:01 1996 Tom Tromey <tromey@creche.cygnus.com>
16 * gdbtk.c (mainWindow): Deleted.
17 (cleanup_init): Don't destroy main window.
18 (gdbtk_init): Main window now created by Tk_Init.
20 * configure.in: Most X checks now handled automatically by Tk.
21 Use new macros to find Tcl/Tk.
22 * aclocal.m4: New version for new Tcl/Tk; from Don Libes.
23 * config.in, configure: Regenerated.
25 * Makefile.in (TCL, TCL_CFLAGS, TK, TK_CFLAGS, X11_CFLAGS,
26 X11_LDFLAGS, X11_LIBS): Changed for new Tcl and Tk.
29 Thu Aug 1 10:11:34 1996 Fred Fish <fnf@cygnus.com>
31 * config/mips/tm-mips.h (TM_MIPS_H): Enclose file contents in
32 this, define when contents are included.
33 (mips_read_processor_type): Add prototype.
34 * config/mips/xm-mips.h: Remove strdup decl, now in gdb_string.h
35 * mdebugread.c (ecoff_relocate_efi): Add prototype.
36 (fixup_sigtramp): Only needed when TM_MIPS_H is defined.
39 Thu Aug 1 16:12:05 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
41 * Makefile.in (gdbtk.tcl): put in $(datadir), not $(libdir).
44 Wed Jul 31 20:21:24 1996 Fred Fish <fnf@cygnus.com>
46 * rs6000-nat.c (add_vmap): Return 0 to caller rather than random value.
47 (vmap_ldinfo): Ensure got_exec_file is not used uninitialized.
48 (fetch_core_registers): Add prototype.
50 (objfile_symbol_add): Ditto.
55 Tue Jul 30 17:57:46 1996 Stan Shebs <shebs@andros.cygnus.com>
57 * stabsread.c (get_substring): Declare second arg as int.
59 * remote-es.c: Include gdb_string.h after defs.h.
61 Mon Jul 29 21:13:20 1996 Fred Fish <fnf@cygnus.com>
63 * rs6000-tdep.c (push_arguments): Remove unused variable "pc".
64 (branch_dest): Remove unused variable "offset".
65 (pop_dummy_frame): Add prototype and make static.
66 (push_arguments): Guard against using len uninitialized.
67 (push_arguments): Guard against using arg uninitialized.
68 (frame_saved_pc): Remove unused variable "frameless".
69 (free_loadinfo): Ifdef out unused function.
71 * xcoffread.c (compare_lte): Change prototype and function to
72 be correct type for passing to qsort.
73 (add_stab_to_list): Ifdef out unused function and prototype.
74 (compare_lte): Add prototype
75 (arrange_linetable): Ditto.
76 (record_include_begin): Ditto.
77 (record_include_end): Ditto.
78 (process_linenos): Ditto.
79 (xcoff_next_symbol_text): Ditto.
80 (scan_xcoff_symtab): Ditto.
81 (xcoff_initial_scan): Ditto.
83 * mips-tdep.c (mips_read_processor_type): Add parens around
84 bitwise-and operands in comparison; previous expression always
85 evaluated to 0 because of equality comparison of two constants.
87 * rs6000-tdep.c (skip_prologue): Add missing parens around
88 operands of logical-or so that first operand does not bind
89 to previous logical-and.
91 * configure.in: Expand "long long" test to include code that triggers
92 known problem on HPUX with native compiler.
93 (configure): Regenerated.
95 Mon Jul 29 18:12:27 1996 Jeffrey A Law (law@cygnus.com)
97 * somsolib.c (som_solib_create_inferior_hook): Don't
98 warn if __d_pid can't be found.
100 Sun Jul 28 10:46:39 1996 Fred Fish <fnf@cygnus.com>
102 * config/mips/tm-mips.h (struct frame_info): Forward decl.
103 (struct type): Ditto.
104 (struct value): Ditto.
106 * config/mips/tm-mips.h (sigtramp_address): Move extern decl
107 from mips-tdep.c to here.
108 (sigtramp_end): Ditto.
109 (fixup_sigtramp): Ditto.
111 * config/mips/tm-mips.h (init_extra_frame_info): Add prototype.
112 (mips_frame_chain): Ditto.
113 (mips_step_skips_delay): Ditto.
114 (mips_frame_saved_pc): Ditto.
115 (mips_find_saved_regs): Ditto.
116 (mips_frame_num_args): Ditto.
117 (mips_pop_frame): Ditto.
118 (mips_extract_return_value): Ditto.
119 (mips_store_return_value): Ditto.
120 (mips_push_dummy_frame): Ditto.
121 (mips_push_arguments): Ditto.
122 (mips_do_registers_info): Ditto.
123 (ecoff_relocate_efi): Ditto.
124 (ecoff_relocate_efi): Ditto.
125 * irix4-nat.c (fetch_core_registers): Add prototype.
126 * mips-tdep.c (read_next_frame_reg): Add prototype
127 (heuristic_proc_start): Ditto.
128 (heuristic_proc_desc): Ditto.
129 (mips_print_register): Ditto.
130 * config/mips/nm-irix5.h (procfs_set_watchpoint): Add prototype.
131 (procfs_stopped_by_watchpoint): Ditto.
132 * config/mips/nm-irix4.h (procfs_set_watchpoint): Add prototype.
133 (procfs_stopped_by_watchpoint): Ditto.
134 * config/alpha/tm-alpha.h (ecoff_relocate_efi): Add prototype.
135 (struct symbol): Add forward decl for prototype.
137 * breakpoint.c (internal_breakpoint_number): Only needed if
138 GET_LONGJMP_TARGET or SOLIB_ADD is defined.
140 * objfiles.c (ecoff_relocate_efi): Remove prototype.
142 Sat Jul 27 17:47:35 1996 Fred Fish <fnf@cygnus.com>
144 * configure.in: Add test for "long long" support.
145 * configure: Regenerate with autoconf.
146 * acconfig.h: Add CC_HAS_LONG_LONG
147 * config.in: Regenerate with autoheader.
148 * config/mips/tm-mips64.h (FORCE_LONG_LONG): Remove
149 * config/sparc/tm-sp64.h (CC_HAS_LONG_LONG): Remove.
150 * config/mips/tm-vr4300el.h (CC_HAS_LONG_LONG): Remove.
151 * config/mips/tm-vr4300.h (CC_HAS_LONG_LONG): Remove.
152 * config/mips/xm-irix5.h (CC_HAS_LONG_LONG): Remove
153 (PRINTF_HAS_LONG_LONG): Remove.
154 (FORCE_LONG_LONG): Remove.
155 * config/powerpc/xm-aix.h (UINT_MAX): Undef and use gdb's version.
156 * config/convex/xm-convex.h (CC_HAS_LONG_LONG): Remove
157 (PRINTF_HAS_LONG_LONG): Remove.
158 * config/xm-nbsd.h (CC_HAS_LONG_LONG): Remove.
159 (PRINTF_HAS_LONG_LONG): Remove.
160 * config/pa/tm-hppa.h (GET_FIELD): Put parens around
161 subtraction inside shift. Put parens around subtraction
162 in operand of bitwise and.
163 (struct frame_info): Forward declare
165 (frame_saved_regs): Ditto.
166 (struct value): Ditto.
167 (struct type): Ditto.
168 (struct inferior_status): Ditto.
169 (init_extra_frame_info): Add prototype.
170 (skip_prologue): Ditto.
171 (frameless_function_invocation): Ditto.
172 (frame_chain): Ditto.
173 (frame_chain_valid): Ditto.
174 (saved_pc_after_call): Ditto.
175 (hppa_fix_call_dummy): Ditto.
176 (hppa_push_arguments): Ditto.
177 (pa_do_registers_info): Ditto.
178 (in_solib_call_trampoline): Ditto.
179 (in_solib_return_trampoline): Ditto.
180 (push_dummy_frame): Ditto.
181 * convex-tdep.c (decout): Use print_longest rather than
183 * defs.h: Remove use of FORCE_LONG_LONG and __GNUC__ to set
185 (INT_MIN): Fix so it works correctly when assigned to a long long.
186 * valprint.c (longest_to_int): Rewrite to remove dependence
187 on INT_MIN and INT_MAX.
188 (print_longest): Rewrite the code that falls back to synthesized
189 hex output when LONGEST value is not representable as in a long and
190 printf doesn't support printing long longs.
191 * ch-valprint.c (chill_val_print): Cast 2nd arg of
192 chill_print_type_scalar to LONGEST.
193 chill_print_type_scalar): Make static and add prototype.
194 * hppa-tdep.c (get_field): Ifdef out unused function.
197 (extract_5_store): Ditto.
201 (extract_14): Convert to static and add prototype.
206 (extract_5r_store): Ditto.
207 (extract_5R_store): Ditto.
208 (extract_5_load): Ditto.
209 (find_proc_framesize): Ditto.
210 (find_dummy_frame_regs): Ditto.
211 (sign_extend): Ditto.
212 (find_unwind_entry): Add prototype.
213 (find_return_regnum): Ditto.
214 (unwind_command): Ditto.
215 (find_dummy_frame_regs): Add parens around subtraction in operand
217 (skip_prologue): Add parens around operands of logical-and inside
218 operand of logical-or.
219 (sign_extend): Add parens around operands of subtraction inside
221 (low_sign_extend): Ditto.
222 * top.c (filename_completer): Convert old style decl of
223 filename_completion_function into prototype.
224 * f-lang.c (patch_common_entries): Ifdef out unused function.
225 * stabsread.c (read_cfront_baseclasses): Remove unused local
226 variable "msg_noterm".
227 (resolve_cfront_continuation): Remove unused local variable "fip".
228 (read_type): Remove unused variable xtypenums.
229 (read_cfront_static_fields): Remove unused variable "i".
230 (read_cfront_static_fields): Remove unused variable "nfields".
231 (read_cfront_member_functions): Add missing comment terminator.
232 (read_cfront_static_fields): Return 1 rather than random value.
233 (read_cfront_baseclasses): Ditto.
234 (read_cfront_baseclasses): Ditto.
235 (read_cfront_baseclasses): Ditto.
236 * somsolib.c (som_solib_create_inferior_hook): Remove unused
238 (som_solib_create_inferior_hook): Remove unused variable
240 (language.h): Add for needed prototypes.
241 (som_solib_sharedlibrary_command): Add prototype.
242 * hpread.c: (hpread_read_array_type): Add prototype.
243 * somread.c (hpread_build_pysmtabs): Add prototype.
244 (hpread_symfile_finish): Ditto.
245 (hpread_symfile_init): Ditto.
246 * hppah-nat.c (fetch_register): Convert old style decl
248 (gdbcore.h): Include for needed prototypes.
249 (fetch_register): Remove unused variable "mess".
250 * remote-pa.c (get_offsets): Ifdef out unused function.
251 (remote_start_remote): Remove unused variable "timeout".
252 (boot_board): Add prototype.
253 (reaad_frame): Add prototype.
254 (getpkt): Remove unused variable "bp".
255 (remote_kill): Add prototype.
256 (remote_mourn): Add prototype.
257 (remote_insert_breakpoint): Add prototype.
258 (remote_remove_breakpoint): Add prototype.
259 * valops.c (value_push): Only use if PUSH_ARGUMENTS is not defined.
260 * infcmd.c (do_registers_info): Only need prototype if
261 DO_REGISTERS_INFO is not defined.
262 (breakpoint_auto_delete_contents): Only need if
263 CALL_DUMMY_BREAKPOINT_OFFSET is defined.
265 Sat Jul 27 08:49:49 1996 Fred Fish <fnf@cygnus.com>
267 * xcoffread.c (xcoff_end_psymtab): Add textlow_not_set parameter.
268 (END_PSYMTAB): Ditto.
269 (scan_xcoff_symtab): Call xcoff_end_psymtab with textlow_not_set.
271 Fri Jul 26 14:07:37 1996 Ian Lance Taylor <ian@cygnus.com>
273 * printcmd.c (_initialize_printcmd): Initialize
274 tm_print_insn_info.flavour.
276 * gdbtk.c (gdb_disassemble): Initialize di.flavour.
279 Thu Jul 25 19:41:31 1996 Fred Fish <fnf@cygnus.com>
281 * Makefile.in (scm-valprint.o): Depends upon gdbcore_h.
284 (i386ly-tdep.o): Ditto.
285 (i960-tdep.o): Ditto.
286 (m68k-tdep.o): Ditto.
287 (nindy-tdep.o): Ditto.
291 (m68k-tdep.o): Depends upon value_h and gdb_string.h
292 (m2-valprint.o): Depends upon m2-lang.h.
293 (sparc-tdep.o): Depends upon gdb_string.h
294 (valprint.o): Depends upon valprint.h
296 * remote-e7000.c (notice_quit): Remove prototype.
297 * top.c (initialize_targets): Remove prototype, now in target.h.
298 * stabsread.c (resolve_cfront_continuation): Remove prototype.
299 * dbxread.c (resolve_cfront_continuation): Remove prototype.
300 * symfile.h (set_demangling_style): Remove prototype.
301 * config/tm-sysv4.h (in_plt_section): Remove prototype, in objfiles.h.
302 * config/sparc/tm-sparc.h (single_step): Remove extern decl, now in
304 * config/arc/tm-arc.h (one_stepped, single_step): Remove extern decls,
306 * ser-unix.c (hardwire_restore): Remove obsolete prototype.
307 * sparc-tdep.c (single_step): Remove forward decl of isbranch.
308 * scm-lang.c (find_function_in_inferior): Remove prototype.
309 (value_allocate_space_in_inferior): Ditto.
310 * infrun.c (write_pc_pid): Remove prototype, now in inferior.h.
311 * defs.h (strchr): Remove declarations, they are declared in
317 * f-valprint.c (f77_print_array_1): Remove extra arg that was being
318 passed to f77_print_array_1.
319 * gdbtypes.c (add_name): Remove unused variables lenstrlen and lenstr.
320 * scm-exp.c (scm_istr2int): Remove unused variable "j".
321 (scm_parse): Remove unused variable "str".
322 * hp300ux-nat.c (store_inferior_register): Remove unused variable
324 (store_inferior_registers): Remove unnecessary decl "registers".
325 * m68k-tdep.c (m68k_pop_frame): Remove unused variable "fi".
326 * scm-lang.c (scm_get_field): Remove unused variable "val".
327 (scm_lookup_name): Remove unused variable "symval".
328 * objfiles.c (map_to_file): Remove unused local variable "tempfd".
329 * procfs.c (do_attach, do_detach): Remove unused variable "result".
330 (last_resume_pid): Remove unused static variable.
331 * alpha-tdep.c (alpha_linux_sigtramp_offset): Remove unused variable
333 * objfiles.c (map_to_address): Remove unused function.
334 * f-valprint.c (print_max): Remove extraneous extern decl,
336 (calc_f77_array_dims): Remove extraneous prototype, in f-lang.h.
337 * ch-exp.c (write_lower_upper_value): Remove prototype for
340 * gdbtypes.c (cfront_mangle_name): #ifdef out unused function.
341 * ch-exp.c (parse_mode_call): Ditto.
342 * f-valprint.c (there_is_a_visible_common_named): Ditto.
343 * f-lang.c (clear_function_list): Ditto.
344 (get_bf_for_fcn): Ditto.
345 (clear_bf_list): Ditto.
346 (add_common_block): Ditto.
347 (patch_all_commons_by_name): Ditto.
348 (find_first_common_named): Ditto.
349 (add_common_entry): Ditto.
350 (allocate_saved_function_node): Ditto.
351 (allocate_saved_bf_node): Ditto.
352 (allocate_common_entry_node): Ditto.
353 (allocate_saved_f77_common_node): Ditto.
355 * arm-tdep.c (gdbcore.h): Include for necessary prototypes.
356 * dcache.c (gdbcore.h): Ditto.
357 * i386ly-tdep.c (gdbcore.h): Ditto.
358 * i960-tdep.c (gdbcore.h): Ditto.
359 * m2-valprint.c (m2-lang.h): Ditto.
360 * m68k-tdep.c (gdbcore.h): Ditto.
362 (gdb_string.h): Ditto.
363 * nindy-tdep.c (gdbcore.h): Ditto.
364 * scm-lang.c (gdbcore.h): Ditto.
365 * scm-valprint.c (gdbcore.h): Ditto.
366 * w65-tdep.c (gdbcore.h): Ditto.
367 * z8k-tdep.c (gdbcore.h): Ditto.
368 * sparc-tdep.c (gdb_string.h): Include.
369 * valprint.c (valprint.h): Include.
371 * config/xm-lynx.h: Remove part of comment about INT_MIN
372 redefined warnings from defs.h, since INT_MIN define in
373 defs.h is now protected by #ifndef INT_MIN.
374 * config/i386/xm-i386bsd.h: Ditto.
375 * config/m68k/xm-hp300bsd.h: Ditto.
376 * config/m68k/xm-news.h: Ditto.
378 * config/pa/xm-hppah.h (INT_MIN): Remove bogus INT_MIN
379 definition as 0x80000000. The macro in defs.h is better.
380 * config/i386/xm-i386m3.h (INT_MIN): Ditto.
381 * config/i386/xm-i386mach.h (INT_MIN): Ditto.
382 * config/ns32k/xm-ns32km3.h (INT_MIN): Ditto.
383 * config/pa/xm-hppab.h: Ditto.
385 * core-aout.c (fetch_core_registers): Add prototype.
386 * hp300ux-nat.c (fetch_inferior_register): Ditto.
387 (store_inferior_register_1): Ditto.
388 (store_inferior_register): Ditto.
389 * config/m68k/tm-m68k.h (find_saved_regs): Ditto.
390 *scm-valprint.c (c_val_print): Ditto.
391 * procfs.c (add_fd): Ditto.
394 (sigcodename): Ditto.
395 (sigcodedesc): Ditto.
396 (procfs_kill_inferior): Ditto.
397 (procfs_xfer_memory): Ditto.
398 (procfs_store_registers): Ditto.
399 (create_procinfo): Ditto.
400 (procfs_init_inferior): Ditto.
401 (proc_set_exec_trap): Ditto.
402 (procfs_attach): Ditto.
403 (procfs_detach): Ditto.
404 (procfs_prepare_to_store): Ditto.
405 (procfs_files_info): Ditto.
406 (procfs_open): Ditto.
407 (procfs_wait): Ditto.
408 (procfs_fetch_registers): Ditto.
409 (procfs_mourn_inferior): Ditto.
410 (procfs_can_run): Ditto.
411 (procfs_thread_alive): Ditto.
412 (procfs_stop): Ditto.
413 * alpha-nat.c (fetch_core_registers): Ditto.
414 * config/alpha/tm-alpha.h (alpha_osf_skip_sigtramp_frame): Ditto.
415 * objfiles.c (ecoff_relocate_efi): Ditto.
416 * inflow.c (pass_signal): Ditto.
417 (handle_sigio): Ditto.
418 * annotate.c (breakpoint_changed): Ditto.
419 * callback.c (wrap): Ditto.
422 * utils.c (malloc_botch): Ditto.
423 (fputs_maybe_filtered): Ditto.
424 (vfprintf_maybe_filtered): Ditto.
425 * defs.h (notice_quit): Ditto.
426 * defs.h (xmalloc, xrealloc): Ditto.
427 * top.c (stop_sig): Ditto.
428 (init_signals): Ditto.
429 (user_defined_command): Ditto.
430 (source_cleanup_lines): Ditto.
431 (dont_repeat_command): Ditto.
432 (serial_log_command): Ditto.
434 * target.h (initialize_targets): Ditto.
435 * os9kread.c (read_minimal_symbols): Ditto.
436 * mdebugread.c (mdebug_psymtab_to_symtab): Ditto.
438 (push_parse_stack): Ditto.
439 (pop_parse_stack): Ditto.
440 (is_pending_symbol): Ditto.
441 (add_pending): Ditto.
442 * serial.c (serial_logchar): Ditto.
443 (serial_interface_lookup): Ditto.
444 * serial.h (serial_log_command): Ditto.
445 * f-valprint.c (info_common_command): Ditto.
446 * gdbtypes.h (print_type_scalar): Ditto.
447 * scm-valprint.c (scm_scmlist_print): Ditto.
449 * scm-lang.c (scm_printstr): Ditto.
451 (evaluate_subexp_scm): Ditto.
452 * scm-exp.c (scm_read_token): Ditto.
453 (scm_skip_ws): Ditto.
454 (scm_lreadparen): Ditto.
455 * m2-lang.c (emit_char): Ditto.
456 (m2_printchar): Ditto.
457 (m2_printstr): Ditto.
458 (m2_create_fundamental_type): Ditto.
459 * f-lang.c (emit_char): Ditto.
460 (f_printchar): Ditto.
462 (f_create_fundamental_type): Ditto.
463 * ch-lang.c (chill_printchar): Ditto.
464 (chill_printstr): Ditto.
465 (chill_create_fundamental_type): Ditto.
466 (value_chill_length): Ditto.
467 (value_chill_card): Ditto.
468 (value_chill_max_min): Ditto.
469 (evaluate_subexp_chill): Ditto.
470 * ch-exp.c (PEEK_TOKEN): Ditto.
471 (peek_token_): Ditto.
472 (forward_token_): Ditto.
473 (parse_case_label): Ditto.
474 (parse_opt_untyped_expr): Ditto.
475 (parse_unary_call): Ditto.
477 (parse_named_record_element): Ditto.
478 (parse_tuple_element): Ditto.
479 (parse_opt_element_list): Ditto.
480 (parse_tuple): Ditto.
481 (parse_primval): Ditto.
482 (parse_operand6): Ditto.
483 (parse_operand5): Ditto.
484 (parse_operand4): Ditto.
485 (parse_operand3): Ditto.
486 (parse_operand2): Ditto.
487 (parse_operand1): Ditto.
488 (parse_operand0): Ditto.
490 (parse_then_alternative): Ditto.
491 (parse_else_alternative): Ditto.
492 (parse_if_expression): Ditto.
493 (parse_untyped_expr): Ditto.
494 (growbuf_by_size): Ditto.
495 (match_simple_name_string): Ditto.
496 (decode_integer_value): Ditto.
497 (decode_integer_literal): Ditto.
498 (match_float_literal): Ditto.
499 (match_float_literal): Ditto.
500 (match_string_literal): Ditto.
501 (match_character_literal): Ditto.
502 (match_integer_literal): Ditto.
503 (match_bitstring_literal): Ditto.
504 (write_lower_upper_value): Ditto.
505 * ch-lang.h (type_lower_upper): Ditto.
506 * c-lang.c (emit_char): Ditto.
507 * dwarfread.c (free_utypes): Ditto.
508 * stabsread.h (resolve_cfront_continuation): Ditto.
509 * stabsread.c (get_substring): Ditto.
510 (read_one_struct_field): Ditto.
511 * stabsread.h (process_later): Ditto.
512 * demangle.c (set_demangling_command): Ditto.
513 * defs.h (set_demangling_style): Ditto.
514 * maint.c (maintenance_info_command): Ditto.
515 (print_section_table): Ditto.
516 (maintenance_info_sections): Ditto.
517 (maintenance_print_command): Ditto.
518 * symtab.h (maintenance_print_statistics): Ditto.
519 * objfiles.h (in_plt_section): Ditto.
520 * objfiles.c (add_to_objfile_sections): Ditto.
521 * bcache.c (hash): Ditto.
522 (lookup_cache): Ditto.
523 * exec.c (bfdsec_to_vmap): Ditto.
525 * f-exp.y (growbuf_by_size, match_string_literal): Ditto.
526 * language.c (unk_lang_printchar): Ditto.
527 (unk_lang_printstr): Ditto.
528 (unk_lang_create_fundamental_type): Ditto.
529 (unk_lang_print_type): Ditto.
530 (unk_lang_val_print): Ditto.
531 (unk_lang_value_print): Ditto.
532 * target.c (update_current_target): Ditto.
533 (debug_to_open): Ditto.
534 (debug_to_close): Ditto.
535 (debug_to_attach): Ditto.
536 (debug_to_detach): Ditto.
537 (debug_to_resume): Ditto.
538 (debug_to_wait): Ditto.
539 (debug_to_fetch_registers): Ditto.
540 (debug_to_store_registers): Ditto.
541 (debug_to_prepare_to_store): Ditto.
542 (debug_to_xfer_memory): Ditto.
543 (debug_to_files_info): Ditto.
544 (debug_to_insert_breakpoint): Ditto.
545 (debug_to_remove_breakpoint): Ditto.
546 (debug_to_terminal_init): Ditto.
547 (debug_to_terminal_inferior): Ditto.
548 (debug_to_terminal_ours_for_output): Ditto.
549 (debug_to_terminal_ours): Ditto.
550 (debug_to_terminal_info): Ditto.
551 (debug_to_kill): Ditto.
552 (debug_to_load): Ditto.
553 (debug_to_lookup_symbol): Ditto.
554 (debug_to_create_inferior): Ditto.
555 (debug_to_mourn_inferior): Ditto.
556 (debug_to_can_run): Ditto.
557 (debug_to_notice_signals): Ditto.
558 (debug_to_thread_alive): Ditto.
559 (debug_to_stop): Ditto.
561 * gdbtk.c (null_routine): Ditto.
562 (gdbtk_flush): Ditto.
563 (gdbtk_fputs): Ditto.
564 (gdbtk_query): Ditto.
565 (gdbtk_readline): Ditto.
566 (gdbtk_readline_end): Ditto.
567 (gdb_get_breakpoint_list): Ditto.
568 (gdb_get_breakpoint_info): Ditto.
569 (breakpoint_notify): Ditto.
570 (gdbtk_create_breakpoint): Ditto.
571 (gdbtk_delete_breakpoint): Ditto.
572 (gdbtk_modify_breakpoint): Ditto.
575 (gdb_sourcelines): Ditto.
576 (map_arg_registers): Ditto.
577 (get_register_name): Ditto.
578 (gdb_regnames): Ditto.
579 (get_register): Ditto.
580 (gdb_fetch_registers): Ditto.
581 (register_changed_p): Ditto.
582 (gdb_changed_register_list): Ditto.
584 (call_wrapper): Ditto.
585 (gdb_listfiles): Ditto.
587 (gdbtk_dis_asm_read_memory): Ditto.
588 (compare_lines): Ditto.
589 (gdb_disassemble): Ditto.
591 (cleanup_init): Ditto.
592 (gdbtk_interactive): Ditto.
595 (gdbtk_call_command): Ditto.
596 (tk_command_loop): Ditto.
599 * breakpoint.h (set_breakpoint_sal): Ditto.
600 * remote-utils.c (usage): Ditto.
601 * remote.c (set_thread): Ditto.
602 (remote_thread_alive): Ditto.
603 (get_offsets): Ditto.
605 (remote_insert_breakpoint): Ditto.
606 (remote_remove_breakpoint): Ditto.
607 * sparc-nat.c (fetch_core_registers): Ditto.
608 * corelow.c (add_to_thread_list): Ditto.
610 * inftarg.c (proc_wait): Ditto.
611 * infptrace.c (udot_info): Ditto.
612 (fetch_register): Ditto.
613 * ser-unix.c (hardwire_noflush_set_tty_state): Ditto.
614 (hardwire_print_tty_state): Ditto.
615 (hardwire_flush_output): Ditto.
616 (hardwire_flush_input): Ditto.
617 (hardwire_send_break): Ditto.
618 (hardwire_setstopbits): Ditto.
619 * ser-tcp.c (tcp_return_0): Ditto.
620 (tcp_noflush_set_tty_state): Ditto.
621 (tcp_print_tty_state): Ditto.
622 * solib.c (match_main): Ditto.
623 * gdbtypes.c (print_bit_vector): Ditto.
624 (print_arg_types): Ditto.
625 (dump_fn_fieldlists): Ditto.
626 (print_cplus_stuff): Ditto.
627 * symfile.h (entry_point_address): Ditto.
628 * symfile.c (decrement_reading_symtab): Ditto.
629 * valops.c (value_arg_coerce): Ditto.
630 * value.h (find_function_in_inferior): Ditto.
631 (value_allocate_space_in_inferior): Ditto.
632 * values.c (vb_match): Ditto.
633 * thread.c (info_thread_command): Ditto.
634 (restore_current_thread): Ditto.
635 (thread_apply_all_command): Ditto.
636 (thread_apply_command): Ditto.
637 * inferior.h (write_pc_pid): Ditto.
638 * infrun.c (delete_breakpoint_current_contents): Ditto.
639 * breakpoint.c (print_it_normal): Ditto.
640 (watchpoint_check): Ditto.
641 (print_it_done): Ditto.
642 (print_it_noop): Ditto.
643 (maintenance_info_breakpoints): Ditto.
644 (create_longjmp_breakpoint): Ditto.
645 (hbreak_command): Ditto.
646 (thbreak_command): Ditto.
647 (watch_commnd_1): Ditto.
648 (rwatch_command): Ditto.
649 (awatch_command): Ditto.
650 (do_enable_breakpoint): Ditto.
651 * ch-valprint.c (chill_val_print_array_elements): Ditto.
652 * eval.c (evaluate_subexp): Ditto.
654 (evaluate_struct_tuple): Ditto.
655 * eval.c (init_array_element): Ditto.
657 * alpha-tdep.c (push_sigtramp_desc): Add prototype and make static.
658 * breakpoint.c (hw_breakpoint_used_count): Ditto.
659 (hw_watchpoint_used_count): Ditto.
660 * findvar.c (write_register_gen): Ditto.
661 (read_register_pid): Ditto.
662 * symtab.c (cplusplus_hint): Ditto.
663 * infcmd.c (breakpoint_auto_delete_contents): Ditto.
664 * ch-valprint.c (chill_print_type_scalar): Ditto.
665 * gdbtypes.c (add_name): Ditto.
666 (add_mangled_type): Ditto.
667 (cfront_mangle_name): Ditto.
668 * sparc-tdep.c (isbranch): Ditto.
669 * inftarg.c (child_stop): Ditto.
670 * win32-nat.c (child_stop): Ditto.
671 * mac-nat.c (child_stop): Ditto.
672 * remote-utils.c (sr_com): Ditto.
673 * dbxread.c (process_now): Ditto.
674 * ch-exp.c (require): Ditto.
675 (check_token): Ditto.
677 (parse_mode_call): Ditto.
678 (parse_mode_or_normal_call): Ditto.
679 * scm-lang.c (scm_lookup_name): Ditto
680 * f-lang.c (allocate_saved_bf_node): Ditto.
681 (allocate_saved_function_node): Ditto.
682 (allocate_saved_f77_common_node): Ditto.
683 (allocate_common_entry_node): Ditto.
684 (add_common_block): Ditto.
685 (add_common_entry): Ditto.
686 (find_first_common_named): Ditto.
687 (patch_common_entries): Ditto.
688 (patch_all_commons_by_name): Ditto.
689 (clear_bf_list): Ditto.
690 (get_bf_for_fcn): Ditto.
691 (clear_function_list): Ditto.
692 * scm-exp.c (scm_istr2int): Ditto.
693 (scm_istring2number): Ditto.
694 * scm-valprint.c (scm_inferior_print): Ditto.
695 * f-typeprint.c (print_equivalent_f77_float_type): Ditto.
696 * f-valprint.c (f77_get_dynamic_length_of_aggregate): Ditto.
697 (f77_create_arrayprint_offset_tbl): Ditto.
698 (f77_print_array_1): Ditto.
699 (f77_print_array): Ditto.
700 (list_all_visible_commons): Ditto.
701 (there_is_a_visible_common_named): Ditto.
702 * mdebugread.c (ecoff_relocate_efi): Ditto.
703 * callback.c (os_close): Ditto.
704 (os_get_errno): Ditto.
709 (os_read_stdin): Ditto.
711 (os_write_stdout): Ditto.
716 (os_shutdown): Ditto.
718 (os_printf_filtered): Ditto.
720 * scm-lang.h (scm_parse): Change old style decl to prototype.
721 * config/alpha/tm-alphalinux.h (alpha_linux_sigtramp_offset): Ditto.
722 * top.c (init_proc): Ditto.
725 * f-lang.c (c_value_print): Ditto.
726 * ch-exp.c (parse_expression): Ditto.
727 (parse_primval): Ditto.
728 (parse_untyped_expr): Ditto.
729 (parse_opt_untyped_expr): Ditto.
731 * config/sparc/tm-sparc.h (sparc_init_extra_frame_info): Ditto.
732 (sparc_frame_saved_pc): Ditto.
733 (sparc_push_dummy_frame): Ditto.
734 (sparc_pop_frame): Ditto.
735 * defs.h (fclose): Ditto.
739 * arc-tdep.c (single_step): Change arg to type "enum target_signal".
740 * rs6000-tdep.c (single_step): Ditto.
741 * sparc-tdep.c (single_step): Ditto.
743 * breakpoint.c (cleanup_executing_breakpoints): Change unused arg type
744 to PTR which is what make_cleanup expects.
745 * utils.c (null_cleanup): Change arg type to PTR.
746 * defs.h (null_cleanup): Change prototype to match actual function.
747 * config/sparc/tm-sparc.h (struct frame_info): Move forward decl.
748 * ch-valprint.c (chill_val_print): Cast 2nd arg of
749 chill_print_type_scalar to LONGEST.
750 * infrun.c (wait_for_inferior): Have empty switch case for
751 BPSTAT_WHAT_CHECK_SHLIBS when SOLIB_ADD is not defined.
752 (stop_on_solib_events): Only needed if SOLIB_ADD is defined.
753 * infcmd.c (attach_command): Only need auto_solib_add if SOLIB_ADD
755 * symfile.c (generic_load): Scan long int using a long int spec,
757 * infptrace.c (udot_info): Only need local variables if KERNEL_U_SIZE
759 (fetch_register): Only need function if FETCH_INFERIOR_REGISTERS is
761 * inflow.c (handle_sigio): Only need prototype when the actual
762 function is compiled in.
763 * valprint.c (longest_to_int): Expand error message to be
764 separate messages for args larger than largest signed int
765 and args smaller than smallest signed int.
766 * valprint.c (print_longest): Fix problems with support for case
767 where compiler supports type "long long" but the runtime doesn't
768 support printing them with "%ll".
769 * scm-valprint.c (scm_scmlist_print, scm_scmval_print): Change
770 return types to void since we don't actually return anything
771 meaningful and callees ignore the values anyway.
772 * procfs.c (modify_inherit_on_fork_flag): Enclose pr_flags in PIOCSET
774 (modify_run_on_last_close_flag): Ditto.
775 (wait_fd): Enclose local variables "num_fds" and "i" LOSING_POLL
777 * alpha-tdep.c (push_sigtramp_desc): Return proc_desc rather than
779 * infrun.c (wait_for_inferior): Ensure random_signal is not used
781 * valops.c (call_function_by_hand): Ensure struct_addr is not used
783 * breakpoint.c (watch_command_1): Ensure prev_frame is not used
785 * utils.c (vfprintf_maybe_filtered): Change second arg from "char *"
788 * gdbtk.c (gdb_fetch_registers): Cast fourth arg to map_arg_registers
789 to proper pointer type, from int.
790 (gdbtk_query): Change first arg to "const char *" from "char *".
792 * infptrace.c (udot_info): Add two dummy args so that the type is
793 correct for passing to add_info.
794 * f-lang.c (saved_fcn): Move decl to head of file so it can be used
796 (saved_bf_symnum): Ditto.
797 (SAVED_FUNCTION): Ditto.
798 (SAVED_FUNCTION_PTR): Ditto.
800 (SAVED_BF_PTR): Ditto.
801 * ch-exp.c (parse_named_record_element): Build error message in
802 temporary buffer before passing it to expect, rather than passing
803 wrong number of args to expect.
804 * demangle.c (set_demangling_style): Call set_demangling_command with
805 correct number of arguments.
806 * inferior.h (terminal_init_inferior_with_pgrp): Change arg type to
807 int to match actual function.
808 (os_isatty): Call fdmap with right number of arguments, was missing
809 the host_callback* arg.
810 * target.c (cleanup_target): Prototype all functions casts.
811 * target.h (one_stepped, single_step): Declare here and convert
812 single_step to prototype.
813 * infrun.c (one_stepped, single_step): Don't declare externs
814 here, they have moved to target.h.
815 * eval.c (init_array_element): Declare previously undeclared
816 last two args as LONGEST.
817 * dcache.c (dcache_xfer_memory): Change xfunc decls to prototype form.
819 * gdbtk.c (register_changed_p): Remove unused local variable "buf".
822 Thu Jul 25 16:11:54 1996 Doug Evans <dje@canuck.cygnus.com>
824 * dsrec.c (load_srec): Protect ANSI style function parms with PARAMS.
826 Mon Jul 22 18:13:27 1996 Stu Grossman (grossman@critters.cygnus.com)
828 * Makefile.in (os9kread.o): Remove dependency on partial-stab.h.
829 * dbxread.c (read_dbx_symtab end_psymtab), partial-stab.h: Don't
830 use partial_symtab->textlow==0 as a flag, as 0 is a legitimate
831 text address. Use a seperate flag (textlow_not_set) instead.
832 This makes stabs in ELF .o files work a lot better.
833 * mdebugread.c xcoffread.c: Define textlow_not_set for
835 * stabsread.h (end_psymtab): Add textlow_not_set arg to prototype.
838 Sat Jul 20 17:46:40 1996 Fred Fish <fnf@cygnus.com>
840 * gdbtk.tcl (files_command): Reorder the binding tags for
841 the listbox widget to avoid referencing the listbox after
842 the containing widget has been destroyed by the action of
846 Sat Jul 20 10:41:06 1996 Fred Fish <fnf@cygnus.com>
848 * dwarf2read.c (struct filenames): Change internal "struct file"
849 to "struct fileinfo" to avoid conflict with "struct file" in
850 <sys/file.h> on HPUX and Solaris.
853 Sat Jul 20 10:09:28 1996 Fred Fish <fnf@cygnus.com>
855 * gdbtk.tcl (delete_expr): Unset corresponding element of
856 expr_update_list when destroying an expression.
857 (create_expr_window): Initialize expr_num, delete_expr_num,
858 and expr_update_list here when each new expression window
859 is created, rather than once at startup.
862 Fri Jul 19 14:05:57 1996 Stan Shebs <shebs@andros.cygnus.com>
864 * dwarf2read.c: New file, DWARF 2 reader originally contributed by
865 Brent Benson, with additions by Gary Funck and Jerry Kreuscher.
866 * Makefile.in (COMMON_OBS): Add dwarf2read.o.
867 (SFILES): Add dwarf2read.c.
868 (dwarf2read.o): Add build rule.
869 * symfile.h (dwarf2_has_info, dwarf2_build_psymtabs): Declare
871 * elfread.c (elf_symfile_read): Call them.
872 (elf_symtab_read) [HARRIS_TARGET]: Skip some special symbols.
874 Thu Jul 18 01:22:01 1996 Geoffrey Noer <noer@cygnus.com>
876 * symfile.c (symfile_bfd_open):
877 * exec.c (exec_file_command): for __GO32__ and __WIN32__ systems,
878 free the user from having to type the .exe extension.
880 Wed Jul 17 06:54:50 1996 Mark Alexander <marka@cygnus.com>
882 * mon960-rom.c: Shorten the mon960_inits string to a single
883 carriage return; this prevents a hang on connecting immediately
884 after powerup, when MON960 is attempting autobaud detection.
886 Tue Jul 16 23:47:04 1996 Mark Alexander <marka@cygnus.com>
888 * a29k-tdep.c (get_saved_register): Allow PC to be modified
889 when innermost frame is selected, but not in outer frames.
891 Tue Jul 16 23:37:25 1996 Stu Grossman (grossman@critters.cygnus.com)
893 * command.c (do_setshow_command): Don't segfault when showing
894 var_string and var_string_noescape vars that are NULL.
896 Mon Jul 15 16:55:48 1996 Doug Evans <dje@canuck.cygnus.com>
898 * win32-nat.c (handle_load_dll): dos_path_to_unix_path renamed to
899 cygwin32_conv_to_posix_path.
900 (child_create_inferior): unix_path_to_dos_path renamed to
901 cygwin32_conv_to_win32_path. Rewrite code to translate PATH.
903 Mon Jul 15 16:44:05 1996 Stu Grossman (grossman@critters.cygnus.com)
905 * defs.h printcmd.c: Create global disassemble_info structure
908 * gdbtk.c (gdb_disassemble): Setup di.mach from
909 tm_print_insn_info.mach, and set endian from TARGET_BYTE_ORDER.
911 * i386-tdep.c (set_assembly_language_command): set
912 tm_print_insn_info.mach to the appropriate value for 386 or 8086
914 * printcmd.c (print_insn): Move init of disassembler_info to
915 _initialize_printcmd. Set endian for disassembler here.
916 * sparc-tdep.c: Set tm_print_insn_info.mach as appropriate to
917 select sparc/sparclite.
918 * config/sparc/{tm-sparc.h tm-sparclite.h}: Get rid of
919 TM_PRINT_INSN. Set TM_PRINT_INSN_MACH to
920 bfd_mach_sparc/bfd_mach_sparc_sparclite.
922 Fri Jul 12 19:04:32 1996 Fred Fish <fnf@cygnus.com>
924 * hpread.c (hpread_lookup_type): Use xmmalloc/xmrealloc rather
925 than xmalloc/xrealloc.
927 Fri Jul 12 17:59:47 1996 Fred Fish <fnf@ninemoons.com>
929 * objfiles.c (map_to_file): Error return from mmalloc_findbase is
930 a NULL pointer, not a -1.
932 Fri Jul 12 10:16:24 1996 Stu Grossman (grossman@critters.cygnus.com)
934 * i386-tdep.c (set_assembly_language_command): New routine to
935 select between i386 and i8086 instruction sets for disassembly.
936 New command `set assembly-language {i386 i8086}'.
938 Thu Jul 11 21:13:21 1996 Mark Alexander <marka@cygnus.com>
940 * monitor.c (monitor_write_memory, monitor_read_memory_single):
941 Disable use of "long long" memory read/write commands; can't
942 use them because we hold the values to read/write in an int
943 variable, and because strtoul fails on values that exceed the
944 size of a long. This fixes breakpoint problems on MON960.
946 Thu Jul 11 11:39:31 1996 Fred Fish <fnf@cygnus.com>
948 * config/m68k/xm-hp300hpux.h (HAVE_MMAP): Remove definition.
949 * config/pa/xm-hppah.h (HAVE_MMAP): Ditto.
951 Wed Jul 10 16:54:41 1996 Fred Fish <fnf@cygnus.com>
953 * Makefile.in (MMALLOC_CFLAGS): Eliminate intermediate MMALLOC_DISABLE
954 and MMALLOC_CHECK macros, and add comment indicating how host dependent
955 makefile fragment should modify MMALLOC_CFLAGS to not use mmalloc, or
956 to use it but to not do heap corruption checking.
957 * gdbserver/Makefile.in: Ditto.
958 * utils.c (init_malloc): Replace warning() use with direct call of
959 fprintf_unfiltered, since current_target has not yet been set and thus
960 we cannot use warning(). If we try to use mmcheck and it fails,
961 suggest that this configuration needs NO_MMCHECK or MMCHECK_FORCE
962 defined. Other small mmalloc related cleanups.
963 * config/sparc/sun4os4.mh (MMALLOC_CFLAGS): Define MMCHECK_FORCE to 1.
964 * config/alpha/alpha-osf2.mh (MMALLOC_CFLAGS): Set to -DNO_MMCHECK.
966 * config/sparc/xm-sun4os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
967 * config/i386/xm-i386v4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
968 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
969 * config/m68k/xm-hp300hpux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
970 * config/m68k/xm-m68kv4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT);
971 * config/m68k/xm-sun3os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
972 * config/pa/xm-hppah.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
973 * config/sparc/xm-sun4sol2.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
974 Remove obsolete defines.
976 * config/alpha/alpha-linux.mh (MMALLOC_DISABLE):
977 * config/alpha/alpha-osf1.mh (MMALLOC_DISABLE):
978 * config/rs6000/rs6000.mh (MMALLOC_DISABLE):
979 * config/rs6000/aix4.mh (MMALLOC_DISABLE):
980 * config/powerpc/aix4.mh (MMALLOC_DISABLE):
981 * config/powerpc/aix.mh (MMALLOC_DISABLE):
982 * config/ns32k/ns32km3.mh (MMALLOC_DISABLE):
983 * config/mips/mipsm3.mh (MMALLOC_DISABLE):
984 * config/mips/decstation.mh (MMALLOC_DISABLE):
985 * config/m88k/cxux.mh (MMALLOC_DISABLE):
986 * config/i386/i386mk.mh (MMALLOC_DISABLE):
987 * config/i386/i386m3.mh (MMALLOC_DISABLE):
988 * config/i386/i386gnu.mh (MMALLOC_DISABLE):
989 Use MMALLOC_CFLAGS instead.
991 Tue Jul 9 22:41:12 1996 Jeffrey A Law (law@cygnus.com)
993 * h8300-tdep.c: Remove some outdated comments.
994 (h8300_skip_prologue): Rework to be more correct for the H8/300H.
995 Handle stm.l insns for the H8/S.
996 (examine_prologue): Likewise.
998 Tue Jul 9 16:48:55 1996 Raymond Jou <rjou@mexican.cygnus.com>
1000 * ser-mac.c (mac_close): Change a typo SetSetBuf to SerSetBuf.
1002 Mon Jul 08 08:50:39 1996 Mark Alexander <marka@cygnus.com>
1004 * mon960-rom.c (mon960_open): Add floating point detection to
1005 prevent hang on non-FPU processors (PR 9775).
1006 (mon960_cmds): Swap setmem.cmdw and setmem.cmdl to fix problem
1007 setting breakpoints and improve loading speed.
1009 Sun Jul 7 14:57:34 1996 Fred Fish <fnf@cygnus.com>
1011 * coffread.c (record_minimal_symbol): Don't presave name string
1012 on symbol_obstack before passing to prim_record_minimal_symbol.
1013 It now handles saving the string itself.
1014 * dbxread.c (read_dbx_dynamic_symtab): Ditto.
1015 * mipsread.c (read_alphacoff_dynamic_symtab): Ditto.
1016 * os9kread.c (record_minimal_symbol): Ditto.
1017 * solib.c (solib_add_common_symbols): Ditto.
1019 * coffread.c (coff_symtab_read): Don't presave name string on
1020 symbol_obstack before passing to prim_record_minimal_symbol_and_info.
1021 It now handles saving the string itself.
1022 * dbxread.c (record_minimal_symbol): Ditto.
1023 * elfread.c (record_minimal_symbol_and_info): Ditto.
1025 * dstread.c (record_minimal_symbol): Remove static function that just
1026 called prim_record_minimal_symbol with the same args (after change to
1027 prim_record_minimal_symbol to do it's own name string saves).
1028 * nlmread.c (record_minimal_symbol): Ditto.
1029 * somread.c (record_minimal_symbol): Ditto.
1031 * hpread.c (hpread_read_enum_type): Save symbol name on symbol obstack.
1032 (hpread_read_function_type): Ditto.
1033 (hpread_process_one_debug_symbol): Ditto.
1034 * mdebugread.c (parse_symbol): Ditto.
1035 (new_symbol): Ditto.
1036 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
1038 * coffread.c (process_coff_symbol): Use obsavestring to save
1039 SYMBOL_NAME, rather than obstack_copy0.
1040 * dstread.c (create_new_symbol): Ditto
1041 * symfile.c (obconcat): Ditto.
1042 * stabsread.c (patch_block_stabs): Ditto.
1043 * xcoffread.c (SYMNAME_ALLOC): Ditto.
1045 * symfile.c (obsavestring): Update comments
1046 * solib.c (solib_add_common_symbols): Remove local var origname.
1048 Wed Jul 3 15:56:08 1996 Stu Grossman (grossman@critters.cygnus.com)
1050 * configure: Re-build with autoconf-2.10.
1052 * sparcl-tdep.c (_initialize_sparc_tdep) config/sparc/tm-sparc.h,
1053 config/sparc/tm-sparclite.h: Initialize tm_print_insn from
1054 TM_PRINT_INSN, which comes from the tm file.
1056 Tue Jul 02 21:41:20 1996 Mark Alexander <marka@cygnus.com>
1058 * coffread.c, dbxread.c, elfread.c, mipsread.c, nlmread.c,
1059 os9kread.c: Replace identical sym_offsets functions with
1060 default_symfile_offsets.
1061 * somread.c (som_symfile_offsets): Use new SIZEOF_SECTION_OFFSETS
1062 macro to allocate section_offsets.
1063 * symfile.c (default_symfile_offsets): New function.
1064 * symfile.h: Declare default_symfile_offsets.
1065 * symtab.h: Define SIZEOF_SECTION_OFFSETS macro to
1066 simplify allocation of section_offsets.
1068 Tue Jun 11 12:02:55 1996 Stu Grossman (grossman@critters.cygnus.com)
1070 * Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
1071 * configure configure.in: Only make sol-thread.o for native.
1072 Also, switch to dlopened libthread_db.so.1.
1073 * sol-thread.c: Switch to using dlopen to get the thread_db
1076 Thu Jun 13 16:53:25 1996 Stu Grossman (grossman@critters.cygnus.com)
1078 * configure, configure.in: Change test for libthread_db to only
1079 work for configs where build/host/target are the same.
1081 Tue Jul 2 15:04:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1083 * config/powerpc/{linux.mh,xm-linux.h}: New files, for Linux on
1086 * configure.in (powerpc-*-linux): Add Linux, System V, and ELF
1088 * configure: Regenerate.
1090 Mon Jul 1 13:00:43 1996 Stan Shebs <shebs@andros.cygnus.com>
1092 From Raymond Jou <rjou@mexican.cygnus.com>:
1093 * mpw-make.sed: Add lines to whack out autoconf hook
1096 Mon Jul 01 11:07:15 1996 Mark Alexander <marka@cygnus.com>
1098 * remote-e7000.c (e7000_stop): New function.
1100 Fri Jun 28 06:34:19 1996 Dawn Perchik <dawn@cygnus.com>
1102 * configure, configure.in: Add target sparclet.
1103 * monitor.h, monitor.c: Added monitor flags MO_NO_ECHO_ON_SETMEM
1104 (don't expect echo on setmem command), MO_RUN_FIRST_TIME (if
1105 command to start process running on target is different from one
1106 to continue execution), MO_HEX_PREFIX (if addresses from monitor
1107 have a "0x" prefix).
1108 * monitor.c, parse.c, sparc-tdep.c: Don't require strings in the
1109 registers array. This is to allow NULLs to be place holders in
1110 the tm-*.h file so that only minor changes are needed when a new
1111 processor is introduced (eg, one without floating point).
1112 * sparc-tdep.c: Conditionally remove dependancies on floating
1114 * sparclet-rom.c, config/sparc/sparclet.mt,
1115 config/sparc/tm-sparclet.h: New files for target sparclet.
1116 * symfile.c (load_command): Add option for 2nd parameter; a load
1117 offset added to the vma of each section.
1119 Fri Jun 28 05:39:19 1996 Dawn Perchik <dawn@cygnus.com>
1121 * main.c (main): Add option "l" for setting remote_timeout.
1123 Fri Jun 28 05:25:18 1996 Dawn Perchik <dawn@cygnus.com>
1125 * remote-e7000.c, remote.c, target.h, top.c: Add set option
1126 "remote_timeout" for setting remote_timeout. Add set option
1127 "use_hard_breakpoints" for setting hardware .vs. memory
1130 Fri Jun 28 04:32:18 1996 Dawn Perchik <dawn@cygnus.com>
1132 * remote-e7000.c (e7000_parse_device): New function.
1133 Add option "tcp_remote" to target command if using
1134 tcp to connect to a remote host which is then connected
1135 via serial port to the e7000 (for exampole, a port master).
1136 (e7000_open): Change to call e7000_parse_device.
1138 Fri Jun 28 03:47:17 1996 Dawn Perchik <dawn@cygnus.com>
1140 * monitor.c (monitor_debug): Fix remotedebug buffering.
1142 Thu Jun 27 18:24:17 1996 Stan Shebs <shebs@andros.cygnus.com>
1144 * config/i386/cygwin32.mh, config/powerpc/cygwin32.mh
1145 (NATDEPFILES): Add a space.
1147 Wed Jun 26 06:05:39 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
1149 * gdbtypes.c (create_array_type): If TYPE_LENGTH (result_type)
1150 is zero, set TYPE_FLAG_TARGET_STUB to force reevaluation of the type.
1152 * ch-exp.c (calculate_array_length): Function removed.
1154 Tue Jun 25 17:41:06 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1156 * remote-e7000.c (e7000_read_inferior_memory_large): New function.
1157 (e7000_xfer_inferior_memory): Call it.
1159 Tue Jun 25 23:14:07 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1161 * gdb/gdbserver/Makefile.in (docdir): Removed.
1163 Tue Jun 25 22:05:38 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1165 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir):
1166 Use autoconf set values.
1168 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
1169 * nlm/Makefile.in (bindir, libdir, datadir, mandir, infodir,
1170 includedir): Use autoconf set values.
1172 * nlm/configure.in (AC_PREREQ): autoconf 2.5 or higher.
1173 * nlm/configure: Rebuilt.
1174 * gdb/gdbserver/Makefile.in (datadir): Set to $(prefix)/share.
1176 Mon Jun 24 09:56:14 1996 Angela Marie Thomas (angela@cygnus.com)
1178 * stabsread.c (read_cfront_member_functions): add type
1180 Sun Jun 23 23:40:48 1996 Doug Evans <dje@canuck.cygnus.com>
1182 * win32-nat.c: #include <unistd.h>.
1183 (unix_paths_to_dos_paths, dos_paths_to_unix_paths): Delete.
1184 (child_create_inferior): Convert only env var PATH to win32 style.
1185 (set_pathstyle_dos): Delete.
1186 (_initialize_inftarg): Delete dos-path-style command.
1188 start-sanitize-gdbtk
1189 Fri Jun 21 11:04:47 1996 Fred Fish <fnf@cygnus.com>
1191 * gdbtk.tcl (create_register_windows): Include missing '$'s.
1192 Add global declarations for various reg_format_* variables.
1193 * gdbtk.tcl (populate_register_window): Make initial window one
1194 line taller to account for new column header line.
1196 Fri Jun 21 09:46:47 1996 Fred Fish <fnf@cygnus.com>
1198 * gdbtk.c (get_register): Support for printing raw formats.
1199 * gdbtk.tcl: Add hint for using debug_interface.
1200 (center_window, add_breakpoint_frame, delete_breakpoint_frame):
1201 Enclose arg in braces for consistency.
1202 (create_registers_window, populate_reg_window, update_registers):
1203 Major rewrite to support displaying multiple formats in the register
1205 (init_reg_info): New function.
1206 (recompute_reg_display_list): Reset reg_display_list, start
1207 register display lines at line 2.
1210 Thu Jun 20 13:42:23 1996 Doug Evans <dje@canuck.cygnus.com>
1212 * configure.in: Revise sol-thread.o test.
1213 * configure: Regenerated.
1215 * source.c (find_source_lines): Reassign size to result of read.
1217 start-sanitize-gdbtk
1218 Thu Jun 20 08:18:59 1996 Fred Fish <fnf@cygnus.com>
1220 * gdbtk.tcl (gdbtk_tcl_readline_begin): Handle backspace to
1221 avoid backing up over prompt. At every input, make sure insert
1222 point is at least after command start, handle control-u to delete
1224 (tclsh): Handle backspace to avoid backing up over prompt. Handle
1225 control-u to delete current input line.
1227 Wed Jun 19 17:23:38 1996 Geoffrey Noer <noer@cygnus.com>
1229 * configure.in: disable gdbtk for *cygwin32* hosted compiles
1230 * configure: regenerated with autoconf 2.8
1233 Tue Jun 18 16:25:54 1996 Jeffrey A. Law <law@rtl.cygnus.com>
1235 * h8300-dep.c (gdb_print_insn_h8300): Handle the H8/S.
1236 (h8300_command): Likewise.
1237 (set_machine): Likewise.
1238 (set_machine_hook): Likewise.
1239 (_initialize_h8300m): Likewise.
1241 * config/h8300/tm-h8300.h (h8300smode): Declare.
1243 Sun Jun 16 15:21:51 1996 Jeffrey A. Law <law@rtl.cygnus.com>
1245 * somsolib.c (som_solib_create_inferior_hook): Handle tracking
1246 of shl_load calls for hpux10.
1248 Thu Jun 13 11:16:10 1996 Tom Tromey <tromey@thepub.cygnus.com>
1250 * config.in: Regenerated.
1251 * acconfig.h (HAVE_THREAD_DB_LIB): Added entry.
1253 * configure: Regenerated.
1254 * aclocal.m4 (CY_AC_PATH_TCLH, CY_AC_PATH_TKH): Use odd names to
1255 avoid name clashes with SunOS headers.
1257 Tue Jun 11 19:52:50 1996 Fred Fish <fnf@cygnus.com>
1259 From Michael Snyder <Michael_Snyder@next.com>:
1260 * bcache.c (print_bcache_statistics): Avoid divide-by-zero
1261 exception if one or more objfile has no symbols, such as when
1262 a dynamic library has been stripped.
1264 Tue Jun 11 12:02:55 1996 Stu Grossman (grossman@critters.cygnus.com)
1266 * Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
1267 * configure configure.in: Only make sol-thread.o for native.
1268 Also, switch to dlopened libthread_db.so.1.
1269 * sol-thread.c: Switch to using dlopen to get the thread_db
1272 Mon Jun 10 14:17:19 1996 Fred Fish <fnf@cygnus.com>
1274 * config/sparc/{xm-sun4sol2.h,xm-sun4os4.h} (MMAP_BASE_ADDRESS):
1275 Change from 0xE0000000 to 0xC0000000.
1277 Thu Jun 6 17:10:32 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1279 * config/powerpc/xm-solaris.h: Initial version of support for
1282 Wed Jun 5 01:52:57 1996 James G. Smith <jsmith@cygnus.co.uk>
1284 * configure.in (configdirs): Force 4100 builds to use 4300 GDB
1286 * configure: Rebuild.
1288 * config/mips/vr4300el.mt (SIM_OBS): Include simulator in
1289 little-endian builds.
1291 Mon Jun 3 11:48:29 1996 Jeffrey A Law (law@cygnus.com)
1293 * inftarg.c (child_thread_alive): Protect declaration with
1294 #ifndef CHILD_THREAD_ALIVE.
1296 * source.c (find_source_lines): Check the time on the symtab's bfd if
1297 it exists, else check the time on the exec_bfd.
1299 Thu May 30 09:43:17 1996 Mark Alexander <marka@cygnus.com>
1301 * dsrec.c (make_srec): Fix calculation of address size
1302 to allow addresses less than 0x100.
1304 Thu May 30 04:24:09 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
1306 * ch-exp.c (ch_lex): In case of LOC_TYPEDEF call calculate_array_length.
1308 Tue May 28 16:15:47 1996 Geoffrey Noer <noer@cygnus.com>
1310 * remote-mips.c: cannot use EINVAL for breakpoint test since
1311 its value varies for different hosts (e.g. go32's is 19, while
1312 sunos is 22). Changed to hardcoded 22 since that is what the
1315 Tue May 28 11:14:58 1996 Tom Tromey <tromey@creche.cygnus.com>
1317 * configure: Regenerated.
1318 * aclocal.m4 (CY_AC_PATH_TCLH): Don't use AC_TRY_RUN.
1319 (CY_AC_PATH_TKH): Don't use AC_TRY_RUN.
1321 Sun May 26 16:56:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
1323 * solib.c (solib_absolute_prefix, solib_search_path): New variables.
1324 (_initialize_solib): Add set/show commands for those variables.
1325 (solib_map_sections): Implement searching using them.
1327 Sun May 26 14:14:49 1996 Fred Fish <fnf@cygnus.com>
1329 Changes from: David Mosberger-Tang <davidm@azstarnet.com>
1331 * NEWS: Add Alpha Linux as a new native configuration.
1333 * mdebugread.c (parse_symbol): When we find a malloc() symbol with
1334 return type VOID, assume no debugging info is available for that
1335 object file and patch the return value into VOID *. Otherwise,
1336 operations requiring an implicit call to malloc() will fail.
1338 * infrun.c (wait_for_inferior): The criterion to detect entering a
1339 sigtramp handler is now: (a) the current pc is inside a sigtramp
1340 handler, (b) the previous pc is not in a sigtramp handler, and (c)
1341 the current stack pointer is "inner" than the old one. Condition
1342 (c) is new to avoid mistaking a return from a signal handler into
1343 sigtramp as a new sigtramp invocation.
1345 * dcache.c (struct dcache_block): Declare addr as CORE_ADDR. An
1346 int may not be big enough to hold an address.
1347 (dcache_hit): Ditto.
1348 (dcache_peek_byte): Fix indentation.
1350 * configure.in (alpha-*-linux*): Add target.
1351 * configure: Rebuild
1353 * config/alpha/tm-alpha.h (PROC_DESC_IS_DYN_SIGTRAMP): New macro.
1354 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1355 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
1356 (SIGCONTEXT_ADDR): Ditto.
1357 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
1359 * config/alpha/alpha-linux.mh: New file.
1360 * config/alpha/alpha-linux.mt: Ditto.
1361 * config/alpha/nm-linux.h: Ditto.
1362 * config/alpha/tm-alphalinux.h: Ditto.
1363 * config/alpha/xm-alphalinux.h: Ditto.
1364 * config/alpha/xm-alphaosf.h: Renamed from xm-alpha.h.
1365 * config/alpha/alpha-osf1.mh (XM_FILE): Change from xm-alpha.h to
1367 * config/alpha/alpha-osf2.mh: Ditto.
1369 * blockframe.c (find_pc_partial_function): Pass PC to
1370 SIGTRAMP_START and SIGTRAMP_END macros for the benefit of systems
1371 that detect sigtramp code via designated code sequences (as is the
1372 case for Linux/Alpha, for example).
1374 * config/i386/tm-i386bsd.h: Change SIGTRAMP_START and SIGTRAMP_END
1375 to ignore new PC argument.
1376 * config/m68k/tm-hp300bsd.h: Ditto.
1377 * config/vax/tm-vax.h: Ditto.
1379 * alpha-tdep.c (alpha_linux_sigtramp_offset): New function.
1380 (alpha_osf_skip_sigtramp_frame): Ditto.
1381 (push_sigtramp_desc): Ditto.
1382 (alpha_find_saved_regs): Use SIGCONTEXT_ADDR macro to extract
1383 sigcontext address from frame.
1384 (alpha_saved_pc_after_call): When in sigtramp, use
1385 alpha_frame_saved_pc() instead of read-register().
1386 (after_prologue): When inside a dynamically generated sigtramp
1387 function, there is no prologue, so return address of first
1389 (alpha_in_prologue): Fix typo in comment.
1390 (find_proc_desc): Use macro DYNAMIC_SIGTRAMP_OFFSET to determine
1391 whether we're inside a dynamicaly generated sigtramp function. If
1392 so, create and push and appropriate procedure descriptor.
1393 (alpha_frame_chain): Use macro FRAME_PAST_SIGTRAMP_FRAME to obtain
1394 the frame past a sigtramp frame (if the current frame is indeed a
1396 (init_extra_frame_info): Don't read next frame register off of
1397 stack-pointer when inside a dynamiccaly generated sigtramp.
1398 (alpha_pop_frame): Also unlink and destroy procedure descriptors
1399 created for dynamically generated sigtramp functions.
1401 * alpha-nat.c: When compiling under Linux, include <asm/reg.h> and
1402 <alpha/ptrace.h> instead of <machine/reg.h>
1404 Tue Jul 2 13:58:10 1996 Miles Bader <miles@gnu.ai.mit.edu>
1406 * gnu-nat.c (inf_validate_task_sc):
1407 Give terminal to gdb while asking question.
1408 (inf_resume): Don't validate the task suspend-count while execing.
1410 Thu Jun 13 11:04:52 1996 Miles Bader <miles@gnu.ai.mit.edu>
1412 * gnu-nat.c (inf_validate_task_sc): Query user before clearing any
1413 additional suspend count.
1414 (S_proc_wait_reply, gnu_attach): Don't call inf_validate_task_sc.
1415 (inf_resume): Call inf_validate_task_sc here.
1416 (gnu_resume): Call inf_update_procs to ensure noticing new threads.
1418 Fri Jun 7 17:00:43 1996 Miles Bader <miles@gnu.ai.mit.edu>
1420 * gnu-nat.c (gnu_create_inferior: attach_to_child): Return PID.
1422 Thu May 23 15:13:56 1996 Jeffrey A Law (law@cygnus.com)
1424 * h8300-tdep.c (IS_PUSH): Refine.
1425 (IS_MOVE_FP, IS_MOV_SP_FP): Accept H8/300H varaints.
1426 (IS_SUB4_SP, IS_SUBL_SP): New macros.
1427 (h8300_skip_prologue): Handle H8/300H prologue code sequences.
1428 (examine_prologue): Handle addresses from 0x010000 to 0xffffff
1429 when in H8/300H mode. Get the return pointer's address correctly
1430 for the H8/300H. Handle H8/300H prolouge code sequences.
1432 * symfile.c (generic_load): Print the starting address
1433 of the file just loaded.
1435 Thu May 23 12:09:52 1996 Stan Shebs <shebs@andros.cygnus.com>
1437 * mpw-make.sed: Edit @THREAD_DB_OBS@ out of makefile.
1439 Tue May 21 11:53:56 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1441 * breakpoint.c (bpstat_do_actions): Avoid endless recursion
1442 if a `source' command is contained in bs->commands.
1444 * infrun.c (wait_for_inferior): Update step_frame_address when
1445 stepping into a new line.
1447 From schwab@issan.informatik.uni-dortmund.de (Andreas Schwab):
1448 * breakpoint.c (breakpoint_1): Add shlib_disabled case to
1451 Mon May 20 22:52:00 1996 Mark Alexander <marka@cygnus.com>
1453 * dsrec.c (load_srec): Add WAITACK parameter, for machines
1454 like EST visionICE that send back an ACK after each S-record.
1455 * monitor.c (monitor_wait_srec_ack): New function.
1456 (monitor_load): Pass monitor_wait_srec_ack to load_srec
1457 if the monitor's MO_SREC_ACK flag is set.
1458 * monitor.h: Define MO_SREC_ACK flag.
1459 * remote-est.c (est_cmds): Add MO_SREC_ACK flag.
1460 * sh3-rom.c (sh3_load): Accomodate change in load_srec prototype.
1461 * srec.h: Add WAITACK parameter to load_srec prototype.
1463 Sun May 19 21:22:00 1996 Rob Savoye <rob@chinadoll>
1465 * config/sparc/sparclite.mt: Add the sparc simulator.
1467 Sun May 19 16:49:37 1996 Fred Fish <fnf@cygnus.com>
1469 * defs.h (read_command_lines, query_hook): Update prototypes.
1470 (readline_begin_hook, readline_hook, readline_end_hook): Declare.
1471 * breakpoint.c (commands_command): Build message in temporary buffer
1472 and pass that, as well as tty control flag, to read_command_lines.
1473 * top.c (readline_begin_hook, readline_hook, readline_end_hook):
1475 (command_loop): Check for non-NULL instream before looping.
1476 (command_line_input): Use readline_hook when appropriate, to get
1477 user input from a GUI window.
1478 (read_next_line): Also build prompt if getting user input from a GUI.
1479 (recurse_read_control_structure): Fix typo in comment.
1480 (read_command_lines): Use passed in prompt and tty flag to decide how
1481 to build message. Use readline_begin_hook when appropriate, to set
1482 up a GUI interaction window. Just return head, whether NULL or not,
1483 after using readline_end_hook to complete GUI interaction.
1484 (define_command, document_command): Build message in a temporary
1485 buffer and pass it to read_command_lines, along with tty flag.
1487 start-sanitize-gdbtk
1488 * gdbtk.c (gdbtk_readline_begin, gdbtk_readline, gdbtk_readline_end):
1490 (tk_command_loop): Set instream to NULL to enable Tk user interaction.
1491 (gdbtk_init): Set readline_begin_hook, readline_hook,
1492 and readline_end_hook.
1493 * gdbtk.tcl (gdbtk_tcl_readline_begin, gdbtk_tcl_readline,
1494 gdbtk_tcl_readline_end): New functions.
1495 (tclsh): Pack scroll bar on right side of window, not left.
1498 Sat May 18 02:43:58 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1500 * blockframe.c (frameless_look_for_prologue):
1501 Add FUNCTION_START_OFFSET only if func_start is non-zero.
1502 * minsyms.c (lookup_minimal_symbol_by_pc): Return NULL if
1503 pc is not in a known section.
1504 * stack.c (print_frame_info): Remove check for fi->pc in known
1505 section, now handled by lookup_minimal_symbol_by_pc.
1507 start-sanitize-gdbtk
1508 Fri May 17 13:54:34 1996 Fred Fish <fnf@cygnus.com>
1510 * gdbtk.tcl (create_command_window): Change a misspelled "get"
1511 to the intended "cget".
1512 (delete_line): Fix so it deletes the current line at the
1516 Fri May 17 13:31:04 1996 Stan Shebs <shebs@andros.cygnus.com>
1518 * sh-stub.c: New file, was config/sh/stub.c.
1520 start-sanitize-gdbtk
1521 Thu May 16 19:20:29 1996 Fred Fish <fnf@fishfood.ninemoons.com>
1523 * gdbtk.tcl (gdb_prompt): Set this early on.
1524 (create_command_window): Use gdb_prompt rather than "(gdb) ".
1525 (gdbtk_tcl_preloop): Proc executed just prior to Tk main loop.
1526 (tclsh): If an evaluation window already exists, just bring it
1527 to the front instead of trying to create another.
1528 * gdbtk.c (tk_command_loop): New function.
1529 (gdbtk_init): Call tk_command_loop rather than Tk_MainLoop.
1531 Thu May 16 16:16:35 1996 Fred Fish <fnf@cygnus.com>
1533 * gdbtk.tcl (evaluate_tcl_command, tclsh): New functions that
1534 implement a tcl evaluation window for gdbtk maintainers to use.
1536 Thu May 16 11:42:58 1996 Tom Tromey <tromey@creche.cygnus.com>
1538 * gdbtk.tcl (files_command): Correctly insert list of files into
1541 * gdbtk.tcl (files_command): listbox command no longer accepts
1544 Wed May 15 16:04:09 1996 Stan Shebs <shebs@andros.cygnus.com>
1546 * gdbtk.tcl (create_command_window): If command window's buffer
1547 is disabled, don't execute any of the key bindings.
1550 Wed May 15 08:25:12 1996 Jeffrey A Law (law@cygnus.com)
1552 * top.c (read_next_line): Fix thinkos. From Donn Seeley.
1554 * coffread.c (coff_symtab_read): Handle C_LABEL symbols like
1556 * h8300-tdep.c (h8300_pop_frame): Reset $sp and $pc correctly.
1557 Flush cached frames just before exiting.
1558 * remote-sim.c (gdbsim_resume): Complain if the program isn't
1560 * config/h8300/tm-h8300.h (BELIEVE_PCC_PROMOTION): Define.
1562 Tue May 14 18:05:16 1996 Stu Grossman (grossman@critters.cygnus.com)
1564 * procfs.c (procfs_thread_alive procfs_stop): Make static.
1565 (procfs_pid_to_str): New routine to print out thread id's in an
1566 intelligible manner.
1567 * sol-thread.c (sol_thread_fetch_registers): Re-order manner in
1568 which supply_register is called to fix bug with writing
1570 * config/sparc/tm-sun4sol2.h: Define default for
1571 target_pid_to_str in case host lacks libthread_db.
1573 Mon May 13 23:53:30 1996 Stu Grossman (grossman@critters.cygnus.com)
1575 * Makefile.in config.in configure configure.in
1576 config/sparc/nm-sun4sol2.h config/sparc/sun4sol2.mh
1577 config/sparc/tm-sun4sol2.h: Use autoconf to config Solaris thread
1578 and pthread support, since pre-2.5 systems don't come with
1581 * procfs.c (info_proc): Use int instead of id_t. Old versions of
1582 Irix don't seem to define this.
1584 start-sanitize-gdbtk
1585 Mon May 13 13:43:25 1996 Fred Fish <fnf@cygnus.com>
1587 * gdbtk.c (tk_command): Catch case where no argument is given
1588 since this will cause the tcl interpreter to dump core.
1591 Mon May 13 17:40:58 1996 Jeffrey A Law (law@cygnus.com)
1593 * top.c (execute_control_command, case while_control): Allow
1594 a while command to be interrupted.
1596 Mon May 13 16:17:36 1996 Stu Grossman (grossman@critters.cygnus.com)
1598 * sol-thread.c: More cleanup, add comments.
1599 (sol_thread_resume): Prevent people from trying to step
1601 (sol_thread_wait sol_thread_fetch_registers
1602 sol_thread_store_registers): Remove unnecessary check for
1603 sol_thread_active. These routines won't get called unless threads
1606 Mon May 13 11:29:37 1996 Stan Shebs <shebs@andros.cygnus.com>
1608 SH3-E support from Allan Tajii <atajii@hmsi.com>:
1609 * sh-tdep.c (sh_reg_names, sh3_reg_names): Add empty names for
1611 (sh3e_reg_names): New register name array.
1612 (sh_processor_type_table): Add sh3e processor type.
1613 * config/sh/tm-sh.h (REGISTER_VIRTUAL_TYPE): Fix test.
1614 (REGISTER_NAMES, NUM_REGS, NUM_REALREGS, etc): Adjust for
1615 full set of registers.
1616 * remote-e7000.c (want_sh3, want_sh3_nopc): New globals.
1617 (e7000_fetch_registers, e7000_wait): Use them.
1618 * sh3-rom.c (sh3_regnames): Add float registers.
1619 (sh3e_cmds, sh3e_ops): New globals.
1620 (sh3e_open): New function.
1621 (_initialize_sh3_rom): Rename from _initialize_sh3, set up
1624 Fri May 10 15:53:38 1996 Stu Grossman (grossman@lisa.cygnus.com)
1626 * sol-thread.c: Cleanup. gcc -Wall fixes. Add prototypes.
1627 Print out messages instead of codes for thread_db errors. Make
1628 access macros for thread and lwp manipulation. Make cleanups to
1629 fixup inferior_pid in case of errors.
1631 Thu May 9 19:06:02 1996 Fred Fish <fnf@cygnus.com>
1633 * aclocal.m4: Remove unused definition of AC_C_CROSS.
1634 * configure.in: Add powerpcle-*-solaris* host and target config
1635 so April 30th change does not get lost next time configure is
1638 Thu May 9 14:13:08 1996 Stu Grossman (grossman@critters.cygnus.com)
1640 * Makefile.in, breakpoint.c, corelow.c, fork-child.c, inflow.c,
1641 infrun.c, mac-nat.c, procfs.c, remote.c, sol-thread.c, thread.c,
1642 win32-nat.c, config/nm-lynx.h: Rename thread.h to gdbthread.h to
1643 avoid conflict with Solaris /usr/include/thread.h.
1645 Thu May 9 12:33:32 1996 Rob Savoye <rob@chinadoll.cygnus.com>
1647 * abug-rom.c: Config file for the older style ABug monitor that
1648 runs on the mvme13x boards.
1649 * config/m68k/monitor.mt: Add abug support for m68k cross
1652 Wed May 8 20:33:24 1996 Fred Fish <fnf@cygnus.com>
1654 * infcmd.c (do_registers_info): Always print the raw floating
1655 point value's bytes in big endian order, so the the leftmost bit
1656 is the most significant.
1657 * breakpoint.c (clear_momentary_breakpoints): Remove dead code
1658 that is referenced nowhere else.
1659 (set_breakpoint): Ditto.
1660 (do_enable_breakpoint): Created from enable_once_breakpoint
1661 with a couple of changes.
1662 (enable_breakpoint): Call do_enable_breakpoint with an appropriate
1663 bpdisp enum value to set disposition of breakpoint.
1664 (enable_once_breakpoint): Ditto.
1665 (enable_delete_breakpoint): Ditto.
1666 * breakpoint.h (clear_momentary_breakpoints): Remove prototype.
1667 * symtab.c (find_pc_line): Improve comments.
1668 start-sanitize-gdbtk
1669 * gdbtk.c: Fix a couple of misspellings.
1671 * xcoffread.c: Ditto.
1673 Tue May 7 18:37:06 1996 Stan Shebs <shebs@andros.cygnus.com>
1675 * target.c (debug_to_xfer_memory): Insert line breaks when
1676 dumping the memory block.
1678 Mon May 6 13:52:52 1996 Stu Grossman (grossman@critters.cygnus.com)
1680 * fork-child.c (fork_inferior), inferior.h: init_trace_fun now
1681 returns a possibly modified pid.
1682 * inftarg.c (ptrace_him): Now returns pid;
1683 * m3-nat.c (m3_trace_him): Now returns pid;
1684 * infcmd.c (run_command): Minor cleanup.
1685 * infrun.c (wait_for_inferior): Add another check for one_stepped
1686 near where we read the pc to avoid erroneously setting
1687 random_signal for multi-threaded support.
1688 * procfs.c: Add support for Solaris LWPs. Remove def of
1689 LOSING_POLL. Many cleanups... Several workarounds for Solaris
1690 lossage. System call entry and exit are now handled by
1691 dynamically registered handlers.
1692 * (syscallname): Don't barf when handed an unknown syscall
1694 * (info_proc_syscalls): Ditto.
1695 * sol-thread.c: New file. Implements Solaris thread support.
1696 * symfile.c (symbol_file_add): Add call to target_new_objfile to
1697 notify target-dependent code about new symbol tables.
1698 * (clear_symtab_users): Call target_new_objfile to notify it of
1699 the removal of all symbol tables.
1700 * target.c (push_target): Make sure that to_close is non-zero
1702 * target.h (target_new_objfile): Provide default.
1703 * config/alpha/nm-osf2.h: Define LOSING_POLL because this version
1704 of OSF can't hack using poll with /proc.
1705 * config/sparc/nm-sun4sol2.h (target_new_objfile): Define to be
1706 sol-thread-new-objfile.
1707 * config/sparc/sun4sol2.mh: Add sol-thread.o to NATDEFFILES, and
1708 add libthread_db.so.1 to NAT_CLIBS.
1709 * config/sparc/tm-sun4sol2.h: Define PIDGET, TIDGET, and
1712 Sat May 4 02:13:34 1996 N Srin Kumar <nsrin@wipinfo.soft.net>
1714 * procfs.c (remove_fd): Fix copy of fds to fill hole left after
1715 removal of the requested fd.
1717 Mon May 6 07:52:48 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1719 * rs6000-tdep.c (_initialize_rs6000_tdep): Don't do XCOFF specific
1722 * config/powerpc/tm-ppc-eabi.h: Define ELF_OBJECT_FORMAT.
1724 start-sanitize-gdbtk
1725 Thu May 2 19:17:49 1996 Stan Shebs <shebs@andros.cygnus.com>
1727 * gdbtk.tcl (debug_interface): New global, use to aid debugging.
1728 (insert_breakpoint_tag, delete_breakpoint_tag): Fix range.
1729 (file_popup_menu): Delete, never used.
1730 (listing_window_popup): Rename from listing_window_button_1,
1731 remove breakpoint toggling code.
1732 (toggle_breakpoint): New procedure.
1733 (create_file_win): Bind popup menu to button 2, toggle breakpoints
1734 with button 1 in breakpoint area, add display of tagged areas if
1738 Thu May 2 12:46:14 1996 Jeffrey A Law (law@cygnus.com)
1741 * breakpoint.h (enum bpdisp): Add del_at_next_stop.
1742 * breakpoint.c (insert_breakpoints, watchpoint_check,
1743 bpstat_stop_status): Avoid bad references to memory freed via
1744 delete_breakpoint on watchpoints going out of scope.
1745 Do not delete these watchpoints, disable them and change their
1746 disposition to del_at_next_stop instead.
1747 (breakpoint_auto_delete): Delete all breakpoints whose disposition
1748 is del_at_next_stop.
1749 (breakpoint_init_inferior): Use switch to avoid reference to
1750 already deleted breakpoint.
1752 Wed May 1 17:29:18 1996 Fred Fish <fnf@cygnus.com>
1754 * Makefile.in (rs6000-nat.o): Depend on xcoffsolib.h.
1755 * config/rs6000/rs6000.mh (NATDEPFILES): Move xcoffread.o ...
1756 * config/rs6000/rs6000.mt (TDEPFILES): ... to here.
1757 * xcoffsolib.c (xcoff_relocate_symtab_hook): Define and initialize.
1758 (solib_info): Call xcoff_relocate_symtab via the hook.
1759 (sharedlibrary_command): Ditto.
1760 * xcoffread.c: Remove all FAKING_RS6000 comments and defines.
1761 (xcoff_add_toc_to_loadinfo_hook): Define and initialize here.
1762 (xcoff_init_loadinfo_hook): Define and initialize here.
1763 (scan_xcoff_symtab): Call xcoff_add_toc_to_loadinfo via the hook.
1764 (xcoff_initial_scan): Call xcoff_init_loadinfo via the hook.
1765 * xcoffsolib.h (xcoff_relocate_symtab_hook): Declare extern func.
1766 * rs6000-tdep.c (_initialize_rs6000_tdep): Add initializations
1767 of xcoff_add_toc_to_loadinfo_hook and xcoff_init_loadinfo_hook.
1768 * rs6000-nat.c (_initialize_core_rs6000): Add initialization
1769 of xcoff_relocate_symtab_hook.
1771 Tue Apr 30 13:22:02 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1773 * configure (powerpcle-*-solaris*): Add Solaris support.
1775 * config/powerpc/{solaris.m[ht],tm-solaris.h}: New files for
1778 Mon Apr 29 16:17:31 1996 Dawn Perchik <dawn@cygnus.com>
1780 * c-valprint.c (c_val_print): Fix printing for arrays defined
1783 Sun Apr 28 15:08:05 1996 Stan Shebs <shebs@andros.cygnus.com>
1785 Support for bi-endian remote breakpoints.
1786 * remote.c (big_break_insn, little_break_insn): New globals.
1787 (break_insn): Remove.
1788 (remote_insert_breakpoint, remote_remove_breakpoint): Use own
1789 code if REMOTE_BREAKPOINT defined, otherwise call memory
1790 breakpoint functions.
1791 * config/sh/tm-sh.h (REMOTE_BREAKPOINT): Remove.
1792 (BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT): Define.
1794 * mon960-rom.c (mon960_cmds): Remove forward decl.
1795 (mon960_load): Use current_monitor instead of mon960_cmds.
1796 (mon960_regnames): Remove backslashes from line ends.
1797 (_initialize_mon960): Fix documentation string.
1799 Sun Apr 28 12:10:35 1996 Fred Fish <fnf@cygnus.com>
1801 * symfile.h (psymbol_allocation_list): Expand comments which
1802 describe the psymbol allocation list and how each field is
1805 Sun Apr 28 03:44:30 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1807 * breakpoint.c (delete_breakpoint): Fix bpt->val, bpt->exp
1809 (breakpoint_re_set_one): Fix b->exp, b->val, b->cond storage leaks.
1811 * infcmd.c (run_command), solib.c (locate_base): Check for
1812 target_has_execution in addition to inferior_pid, a core file
1813 from a threaded program is yielding a non-zero inferior_pid.
1815 * sparc-tdep.c (get_saved_register): Handle window registers
1816 in a dummy frame correctly.
1818 Sat Apr 27 20:38:32 1996 Fred Fish <fnf@cygnus.com>
1820 * Makefile.in (CLIBS): Move $(MMALLOC) past all other libs,
1821 so that anything that wants an allocation function not yet pulled
1822 in, will get it from mmalloc rather than a system library.
1823 * Makefile.in (INSTALLED_LIBS): Reorder to match order of CLIBS,
1824 to avoid surprising results when used.
1826 Sat Apr 27 00:12:05 1996 Dawn Perchik (dawn@cygnus.com)
1828 * stabsread.c: Changes and bug fixes for cfront support.
1829 Fix bug for class data members.
1830 Fix parsing bug when no base classes exist.
1831 Fix memory bug - allocate space for cplusplus specific info.
1832 Add support for static data.
1833 Add prototypes for static functions.
1834 Enhance comments to show what each function expects to parse.
1836 * stabsread.c(resolve_cont),dbxread.c(resolve_cont): Rename
1837 function to resolve_cfront_continuation.
1839 Fri Apr 26 23:58:26 1996 Jeffrey A Law (law@cygnus.com)
1841 * infrun.c (wait_for_inferior): Call registers_changed when
1842 restarting the inferior to get over a nullified instruction.
1844 Tue Apr 24 12:12:55 1996 Dawn Perchik (dawn@cygnus.com)
1846 * dbxread.c,stabsread.c,gdbtypes.c,partial-stab.h,valops.c:
1847 Add new support for parsing cfront stabs.
1849 Wed Apr 24 00:32:55 1996 Jeffrey A Law (law@cygnus.com)
1851 * infrun.c (wait_for_inferior): Move "have_waited" label
1852 outside of #ifdef conditionals. Don't trash the wait status
1853 if we get a signal and the current instruction is nullified.
1855 Mon Apr 22 20:17:01 1996 Fred Fish <fnf@cygnus.com>
1857 * Makefile.in (VERSION): Bump version number to 4.16.1.
1858 * NEWS: Update for 4.16 release.
1860 Mon Apr 22 16:32:29 1996 Stan Shebs <shebs@andros.cygnus.com>
1862 * monitor.h: Clean up comment formatting.
1863 (current_monitor): Remove decl.
1864 (LOADTYPES, LOADPROTOS, INIT_CMD, etc): Remove definitions.
1865 (push_monitor, SREC_SIZE): Remove.
1866 * monitor.c: Expand old macro into current_monitor derefs
1868 * remote-os9k.c (current_monitor): Remove definition.
1870 Mon Apr 22 14:54:45 1996 Mark Alexander <marka@superball.cygnus.com>
1872 * corefile.c (specify_exec_file_hook): Allow arbitrary number of
1874 (call_extra_exec_file_hooks): New function.
1875 * h8300-tdep.c: Lint; add .h files to provide missing declarations,
1876 remove unused variables.
1877 (set_machine_hook): New function.
1878 (_initialize_h8300m): Initialize it.
1880 Fri Apr 19 15:03:49 1996 Ian Lance Taylor <ian@cygnus.com>
1882 * remote-mips.c (encoding): Don't specify size, to avoid bug in
1883 SunOS native compiler.
1885 Thu Apr 18 18:46:57 1996 Stan Shebs <shebs@andros.cygnus.com>
1887 * monitor.c: Use int rather than LONGEST for values, since
1888 the formatting strings are not prepared to accept long longs.
1890 Wed Apr 17 20:17:27 1996 Doug Evans <dje@canuck.cygnus.com>
1892 * arm-tdep.c (initialize_arm_tdep): Make apcs32 a `zinteger'.
1894 Tue Apr 16 17:38:23 1996 Stu Grossman (grossman@critters.cygnus.com)
1896 * corelow.c (add_to_thread_list): Make sure reg_sect is non-null
1897 before de-referencing it. Prevents deref of NULL pointer if core
1898 file lacks .reg section.
1899 * defs.h: Rename floatformat_{to from}_long_double to
1900 floatformat_{to from}_doublest. Get rid of FLOATFORMAT_{TO
1902 * findvar.c (extract_floating store_floating): Change all refs to
1903 FLOATFORMAT_{FROM TO}... to floatformat_{from to}_doublest.
1904 * utils.c: Change floatformat_{to from}_long_double to
1905 floatformat_{to from}_doublest cuz the new routines will use
1906 whatever size (double or long double) is appropriate.
1907 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
1908 REGISTER_CONVERT_TO_RAW): Change FLOATFORMAT... macros to
1909 floatformat... routine calls.
1911 Mon Apr 15 16:34:11 1996 Per Bothner <bothner@kalessin.cygnus.com>
1913 * stabsread.c (read_type): Move handling of '@' from type
1914 number handling to handling of types proper (as emitted by gcc!).
1915 For typedefs, allocate the typedef type before reading its
1916 definition, to properly handling recursive types.
1918 Mon Apr 15 11:19:26 1996 Jeffrey A Law (law@cygnus.com)
1920 * ch-exp.c (calculate_array_length): Fix prototype.
1922 Sat Apr 13 14:21:16 1996 Stu Grossman (grossman@critters.cygnus.com)
1924 * remote-nindy.c (nindy_open): Acquire more target state so that
1925 user can attach to a previously running program.
1926 * (nindy_fetch_registers nindy_store_registers): Get rid of fp
1927 conversion code. That's all handled in {extract store}_floating
1929 * utils.c (floatformat_to_double): Don't bias exponent when
1930 handling zero's, denorms or NaNs.
1931 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
1932 REGISTER_CONVERT_TO_RAW): Change to using DOUBLST and
1933 FLOATFORMAT_TO/FROM_DOUBLEST macros.
1934 * config/i960/tm-nindy960.h: Undefine
1935 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW, and
1936 REGISTER_CONVERTIBLE. These are no longer necessary now that all
1937 the magic happens in extract/store_floating.
1939 Sat Apr 13 02:58:02 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1941 * eval.c (evaluate_subexp_standard): Report error when attempting to
1942 evaluate subscripts for types which cannot be subscripted.
1944 * valarith.c (value_x_binop, value_x_unop): Add noside parameter.
1945 Return a zero value with the return type of the member function
1946 if noside is EVAL_AVOID_SIDE_EFFECTS instead of calling the member
1948 * values.h (value_x_binop, value_x_unop): Update prototypes
1950 * eval.c (evaluate_subexp_standard): Update all callers of
1951 value_x_binop, value_x_unop accordingly.
1953 * valarith.c (value_neg, value_complement): Perform ANSI C/C++
1954 integral promotion on operands.
1956 Fri Apr 12 13:19:27 1996 Fred Fish <fnf@cygnus.com>
1958 * README: Update for 4.16 release.
1959 * configure.in (AC_CHECK_FUNCS): Also check for sbrk.
1960 * configure: Regenerate with autoconf.
1961 * config.in: Regenerate with autoheader.
1962 * main.c (main): Only use sbrk() when HAVE_SBRK is defined.
1963 * top.c (command_loop): Ditto.
1965 Fri Apr 12 09:45:29 1996 Stu Grossman (grossman@critters.cygnus.com)
1967 * defs.h: Define TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
1968 defaults for bi-endian targets. Replace function pointers for
1969 floatformat routines with macros. No need for these to be runtime
1971 * findvar.c: Get rid of floatformat function pointers. Use
1972 macros in extract_floating and store_floating.
1973 * remote-nindy.c (nindy_fetch_registers nindy_store_registers):
1974 Use floatformat macros.
1976 Thu Apr 11 21:28:02 1996 Fred Fish <fnf@cygnus.com>
1978 From: Miles Bader <miles@gnu.ai.mit.edu>
1979 * configure.in (AC_CHECK_HEADERS): check for endian.h.
1980 Use AC_CHECK_TOOL to find AR & RANLIB. Add AC_PROG_AWK.
1981 Add host & target cases for i[345]86-*-gnu*.
1982 * config.in: Regenerate with autoheader.
1983 * configure: Regenerate with autoconf.
1984 * Makefile.in (AR, AWK): Set from corresponding autoconf substs.
1985 (init.c): Don't scan mig-generated files.
1986 * defs.h (endian.h): Include if HAVE_ENDIAN_H defined.
1987 * config/nm-m3.h (ATTACH_NO_WAIT): Define.
1988 * infcmd.c (attach_command): Use "#ifndef ATTACH_NO_WAIT"
1989 rather than "#ifndef MACH".
1991 Thu Apr 11 18:49:42 1996 Stan Shebs <shebs@andros.cygnus.com>
1993 * remote.c (remotewritesize): New GDB variable, controls size
1994 of memory packets sent to the target.
1996 Thu Apr 11 13:47:52 1996 Stu Grossman (grossman@critters.cygnus.com)
1998 * dcache.c: Add prototypes. Make many functions static.
1999 * (dcache_peek dcache_fetch dcache_poke): Make dcache_fetch and
2000 dcache_poke call dcache_xfer_memory directly in order to fix
2001 problems with turning off dcache. dcache_peek is now unnecessary,
2004 * defs.h: Define new macros HOST_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
2005 and TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT to specify a pointer
2006 to a struct floatformat. This allows for better handling of
2007 targets whose floating point formats differ from the host by more
2008 than just byte order.
2009 * (floatformat_to_long_double floatformat_from_long_double):
2010 Prototypes for new functions in utils.c.
2011 * (floatformat_to_doublest floatformat_from_doublest): Prototypes
2012 for pointers to floating point conversion functions. The actual
2013 function uses either double or long double if the host supports it.
2014 * findvar.c (floatformat_to_doublest floatformat_from_doublest):
2015 Initialize to point at correct function depending on HAVE_LONG_DOUBLE.
2016 * (extract_floating store_floating): Rewrite. Now, if host fp
2017 format is the same as the target, we just do a copy. Otherwise,
2018 we call floatformat_{to from}_doublest.
2019 * remote-nindy.c (nindy_xfer_inferior_memory): Change param
2020 `write' to `should_write'.
2021 * utils.c (floatformat_to_long_double
2022 floatformat_from_long_double): New routines that implement long
2023 double versions of functions in libiberty/floatformat.c.
2024 * config/i960/tm-i960.h (TARGET_LONG_DOUBLE_FORMAT): Define this for
2025 i960 extended real (80 bit) numbers.
2026 * nindy-share/nindy.c (ninMemGet ninMemPut): Return number of bytes
2027 actually read or written.
2029 Wed Apr 10 02:56:06 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
2031 * ch-valprint.c (chill_val_print): Remove call to calculate_array_length.
2032 (calculate_array_length): Move function from here ...
2034 * ch-exp.c (calculate_array_length): ... to here.
2035 (parse_primval): If we have a symbol with an array type
2036 and the length is 0, call calculate_array_length.
2038 Tue Apr 9 01:23:05 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
2040 * eval.c (evaluate_subexp_standard): In case of TYPE_CODE_SET:
2041 Add some checks for powerset compatibility.
2043 * valops.c (value_slice): Use lowbound instead of lowerbound for
2044 call to slice_range_type to get correct bounds.
2046 Mon Apr 8 12:53:56 1996 Fred Fish <fnf@cygnus.com>
2048 * Makefile.in (scm-exp.o, scm-lang.o, scm-valprint.o): Add targets and
2050 * scm-lang.c (gdb_string.h): Include.
2051 * objfiles.c (add_to_objfile_sections): Cast second arg of obstack_grow
2052 call to correct type (char *).
2053 * cp-valprint.c (cp_print_static_field): Ditto.
2054 * somsolib.c (som_solib_create_inferior_hook): Add a declaration
2055 for external find_unwind_entry function (from hppa-tdep.c).
2056 * remote-pa.c (remote_write_bytes, remote_read_bytes): Change
2057 type of second arg to "char *" to be type compatible with
2059 (remote_wait): Cast second arg to strtol to correct type.
2060 * hppa-tdep.c (compare_unwind_entries): Change argument types to
2061 "const void *" to be type compatible with qsort, and then
2062 assign to local args prior to use.
2064 Mon Apr 8 15:35:52 1996 Jeffrey A Law (law@cygnus.com)
2066 * infptrace.c (kill_inferior): Remove call to "kill"; update
2069 Mon Apr 8 14:05:07 1996 Geoffrey Noer <noer@cygnus.com>
2071 * remote-e7000.c: don't append :23 to target port if __WIN32__
2072 is defined (it's WinGDB).
2074 Sun Apr 7 22:34:29 1996 Fred Fish <fnf@cygnus.com>
2076 From: Miles Bader <miles@gnu.ai.mit.edu>
2077 * gnu-nat.c, gnu-nat.h, msg.defs, exc_request.defs, i386gnu-nat.c,
2078 msg_reply.defs, notify.defs, process_reply.defs, reply_mig_hack.awk,
2079 config/nm-gnu.h, config/i386/{i386gnu.mh, i386gnu.mt, nm-gnu.h,
2080 m-i386gnu.h, xm-i386gnu.h}: New files for GNU hurd.
2082 Sun Apr 7 13:32:41 1996 Fred Fish <fnf@cygnus.com>
2084 * configure.in (case host): Add i386sco5 host.
2085 * configure: Regenerate.
2087 From: Robert Lipe <robertl@dgii.com>
2088 Add support for SCO OpenServer 5 (a.k.a. 3.2v5*) This
2089 target is an SVR3.2 with COFF, ELF, and shared libes, but
2091 * config/i386/i386sco5.mh: New file.
2092 * config/i386/nm-i386sco5.h: New file.
2094 Sat Apr 6 08:55:22 1996 Fred Fish <fnf@cygnus.com>
2096 * bcache.c (bcache): When size of chunk to cache is exactly equal to
2097 BCACHE_MAXLENGTH, stash chunk as unique copy.
2099 Sat Apr 6 00:46:26 1996 Fred Fish <fnf@cygnus.com>
2101 * symfile.c (INLINE_ADD_PSYMBOL): Remove ifdef.
2102 (add_psymbol_to_list): Add an arg for passing CORE_ADDR values and
2103 use it, rather than calling add_psymbol_addr_to_list.
2104 (add_psymbol_addr_to_list): Delete.
2105 (add_psymbol_to_list): Make psymbol static to avoid random data in
2106 gaps due to alignment of structure members.
2107 * symfile.h (INLINE_ADD_PSYMBOL, ADD_PSYMBOL_TO_LIST,
2108 ADD_PSYMBOL_ADDR_TO_LIST): Remove. Real world tests show no
2109 performance improvements by inlining via complicated macros and
2110 they just make gdb larger and harder to maintain.
2111 * dwarfread.c (add_enum_psymbol): Replace ADD_PSYMBOL_TO_LIST
2112 and/or ADD_PSYMBOL_ADDR_TO_LIST macro(s) with call to
2113 add_psymbol_to_list with appropriate long or CORE_ADDR args.
2114 (add_partial_symbol): Ditto.
2115 * partial-stab.h: Ditto.
2116 * os9kread.c (read_os9k_psymtab): Ditto
2117 * mdebugread.c (parse_partial_symbols): Ditto.
2118 (handle_psymbol_enumerators): Ditto.
2119 (demangle.h): Include.
2120 * hpread.c (hpread_build_psymtabs): Ditto.
2121 (hpread_build_psymtabs): Ditto.
2122 (demangle.h): Include
2124 start-sanitize-gdbtk
2125 Fri Apr 5 13:44:40 1996 Stan Shebs <shebs@andros.cygnus.com>
2127 * gdbtk.c (running_now): New global variable.
2128 (gdb_cmd): Test it before executing any command.
2129 (gdbtk_call_command): Set it when inferior is running.
2130 * gdbtk.tcl (gdbtk_tcl_busy, gdbtk_tcl_idle): Enable and
2131 disable interaction with command window's text appropriately.
2133 Fri Apr 5 13:25:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2135 * gdbtk.c (SIOCSPGRP, linux): If on Linux, undef SIOCSPGRP, since
2136 some versions of the kernel don't support it.
2139 Thu Apr 4 20:16:55 1996 Fred Fish <fnf@cygnus.com>
2141 * configure.in: Check for setpgid function.
2142 * config.in: Regenerate with autoheader.
2143 * configure: Regenerate with autoconf.
2144 * inflow.c (_initialize_inflow): Only try to use _SC_JOB_CONTROL
2145 if it is actually defined.
2146 (gdb_setpgid): Use HAVE_SETPGID.
2147 * ch-exp.c: Change include of <string.h> to "gdb_string.h".
2148 * c-exp.y, f-exp.y, m2-exp.y: Ditto.
2149 * c-exp.y, serial.c: Include <ctype.h>.
2150 * config/m68k/nm-news.h: Add typedef for pid_t which is
2151 apparently missing from <sys/types.h>. Enclose entire
2152 file in NM_NEWS_H ifndef and define when included.
2153 * config/mips/nm-news-mips.h: Ditto.
2154 * config/m68k/tm-m68k.h (REGISTER_CONVERT_TO_VIRTUAL,
2155 REGISTER_CONVERT_TO_RAW): Change name of temporary variable.
2157 Thu Apr 4 19:04:18 1996 Stan Shebs <shebs@andros.cygnus.com>
2159 * arm-xdep.c: Move native-specific code to here from arm-tdep.c.
2160 * arm-tdep.c (arm_apcs_32): New global.
2161 (arm_addr_bits_remove, arm_saved_pc_after_call,
2162 arm_push_dummy_frame, arm_pop_frame): New functions.
2163 (arm_skip_prologue): Updated version from Richard Earnshaw.
2164 (_initialize_arm_tdep): Add set/show "apcs32".
2165 * config/arm/tm-arm.h (ADDR_BITS_REMOVE): Call
2166 arm_addr_bits_remove.
2167 (SAVED_PC_AFTER_CALL): Call arm_saved_pc_after_call.
2168 (frame_find_saved_regs): Declare properly.
2169 (PUSH_DUMMY_FRAME): Call arm_push_dummy_frame.
2170 (POP_FRAME): Call arm_pop_frame, use ADDR_BITS_REMOVE instead of
2172 * config/arm/nm-arm.h: New file.
2173 * config/arm/xm-arm.h (KERNEL_U_ADDR, FETCH_INFERIOR_REGISTERS):
2174 Move definitions to nm-arm.h.
2175 * config/arm/arm.mh (NAT_FILE): Define.
2177 * symfile.c (generic_load): Initialize data_count properly.
2179 Thu Apr 4 17:17:53 1996 Fred Fish <fnf@cygnus.com>
2181 * symmisc.c (print_objfile_statistics): Print memory used by
2182 psymbol cache obstack.
2184 Thu Apr 4 15:43:07 1996 Stan Shebs <shebs@andros.cygnus.com>
2186 * symfile.c (report_transfer_performance): New function.
2187 (generic_load): Call it to report transfer rate.
2188 * remote-e7000.c (e7000_load): Ditto.
2190 Mon Apr 1 16:31:00 1996 Stan Shebs <shebs@andros.cygnus.com>
2192 * mpw-make.sed: Change references to config.h to be in objdir,
2193 edit out rules to rebuild config.h.
2195 Mon Apr 1 08:32:23 1996 Fred Fish <fnf@cygnus.com>
2197 * hppa-tdep.c (hppa_pop_frame): Call clear_proceed_status before
2200 Sun Mar 31 16:15:43 1996 Fred Fish <fnf@cygnus.com>
2202 * hppah-nat.c (store_inferior_registers, store_inferior_registers,
2203 fetch_register, child_xfer_memory): Use call_ptrace function supplied
2204 by infptrace.c rather than calling ptrace directly.
2206 Sun Mar 31 15:39:00 1996 Stan Shebs <shebs@andros.cygnus.com>
2208 * mon960-rom.c: Cleanups and elimination of unused code,
2209 clarify documentation string.
2210 (mon960_serial, mon960_ttyname): Remove.
2211 * config/i960/tm-mon960.h (ADDITIONAL_OPTIONS,
2212 ADDITIONAL_OPTION_CASES, ADDITIONAL_OPTION_HELP): Remove.
2214 Sat Mar 30 11:00:22 1996 Fred Fish <fnf@cygnus.com>
2216 * configure.in: Check whether printf family supports printing
2217 long doubles or not and define PRINTF_HAS_LONG_DOUBLE if so.
2218 * acconfig.h: Provide default undef for PRINTF_HAS_LONG_DOUBLE.
2219 * configure: Regenerate.
2220 * valprint.c (print_floating): Use PRINTF_HAS_LONG_DOUBLE.
2221 * c-exp.y (parse_number): Use PRINTF_HAS_LONG_DOUBLE.
2222 * configure.in: Fix have_gregset and have_fpregset autoconf
2223 variable names so that they match the pattern required to
2226 Fri Mar 29 21:39:56 1996 Fred Fish <fnf@cygnus.com>
2228 * core-aout.c (fetch_core_registers): Cast core_reg_size to int
2229 before testing against reg_ptr.
2230 * eval.c (evaluate_subexp_standard): Cast type of
2231 TYPE_FN_FIELD_VOFFSET to int.
2232 * findvar.c (extract_signed_integer, extract_unsigned_integer,
2233 extract_long_unsigned_integer): Cast type of sizeof to int.
2234 * values.c (unpack_field_as_long, modify_field): Ditto.
2235 * valops.c (value_assign, call_function_by_hand): Ditto.
2236 * infcmd.c (do_registers_info): Ditto.
2237 * ser-tcp.c (tcp_open): Ditto.
2238 * remote.c (putpkt): Ditto.
2239 * dcache.c (dcache_peek): Ditto.
2240 * dcache.c (dcache_poke): Ditto.
2241 * m2-exp.y (yylex): Ditto.
2242 * gnu-regex.c (re_match_2): Ditto.
2243 * f-lang.c (ADD_BF_SYMNUM, saved_bf_list_end, tmp_bf_ptr): Ifdef
2244 out unused macro definition and variables.
2245 * inftarg.c (proc_wait): Move from main.c to here, and make static.
2246 * valprint.c (val_print_string): Change bufsize from int to unsigned.
2247 * main.c (wait.h): Include.
2248 * top.c (command_line_input): Remove unused variable "c".
2249 * f-typeprint.c (f_type_print_varspec_prefix): Add missing enum
2250 value TYPE_CODE_TYPEDEF to switch statement.
2251 (f_type_print_varspec_suffix): Add missing enum value
2252 TYPE_CODE_TYPEDEF to switch statement.
2253 * ch-exp.c (parse_primval): Add remaining enumeration values to
2254 switch statement, with no specific action.
2255 (ch_lex): Add LOC_UNRESOLVED in switch statement.
2256 (pushback_token): Ifdef out, since code using it is ifdef'd out.
2257 * stabsread.c (cleanup_undefined_types): Remove unused label
2259 * objfiles.h (print_symbol_bcache_statistics): Add prototype.
2260 * maint.c (objfiles.h): Include.
2261 (maintenance_print_statistics): Remove unused variable "temp".
2262 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
2263 unused variable "found_file_symbol".
2264 * m2-exp.y (yylex): Add LOC_UNRESOLVED case to switch.
2265 * language.c (lang_bool_type): Use existing function local type
2266 variable rather than create block local variables.
2267 * solib.c (disable_break): Enclose in ifndef SVR4_SHARED_LIBS.
2268 * infptrace.c (wait.h, command.h): Include.
2269 * ser-tcp.c (gdb_string.h): Include
2270 * i386-tdep.c (codestream_seek): Change "place" to CORE_ADDR.
2271 (i386_get_frame_setup): Change "pc" from int to CORE_ADDR.
2272 * command.c (complete_on_enum): Make assignment used as truth value
2273 explictly check against NULL.
2275 * infrun.c (wait_for_inferior): Ifdef out prologue_pc since code
2276 that uses it is ifdef'd out.
2277 * parser-defs.h: Add prototype for write_dollar_variable.
2278 * infrun.c: Add prototype for write_pc_pid.
2279 * breakpoint.h: Add prototype for re_enable_breakpoints_in_shlibs.
2280 * symmisc.c (bcache.h): Include.
2281 * bcache.h: Add prototype for print_bcache_statistics.
2282 * symfile.c: Include <time.h>.
2283 * printcmd.c (print_scalar_formatted): Change len to unsigned int.
2284 * valarith.c (value_equal): Cast result of TYPE_LENGTH to int.
2285 * valarith.c (value_binop): Change result_len, promoted_len1,
2286 and promoted_len2 to unsigned int.
2287 * valarith.c (value_subscripted_rvalue): Change elt_offs and
2288 elt_size to unsigned int.
2289 * valops.c (value_array): Change typelength to unsigned int.
2290 (destructor_name_p): Change len to unsigned int.
2291 * scm-lang.h (scm_parse): Add prototype for scm_unpack.
2292 * symfile.c (decrement_reading_symtab): Change return type to void.
2293 * valarith.c (value_subscript): Remove unused variable "word".
2294 (value_subscript): Remove unused variable "tint".
2295 * valops.c (auto_abandon): Ifdef out, since code using it is also
2297 * eval.c (init_array_element): Remove unused variable "val".
2298 * Makefile.in (values.o): Depends on scm-lang.h.
2299 (command.o): Depends upon wait_h.
2300 (ser-tcp.o): Depends upon gdb_string.h.
2301 (infptrace.o): Depends upon wait_h and command_h.
2302 (maint.o): Depends on objfiles.h and symfile.h.
2303 * values.c (allocate_repeat_value): Remove unused variable
2305 (scm-lang.h): Include.
2306 * breakpoint.c (create_longjmp_breakpoint): Enclose in
2307 GET_LONGJMP_TARGET define, unused otherwise.
2308 * config/i386/nm-linux.h: Add prototypes for i386_insert_watchpoint,
2309 i386_remove_watchpoint and i386_stopped_by_watchpoint.
2311 Thu Mar 28 12:53:19 1996 Doug Evans <dje@canuck.cygnus.com>
2313 * configure.in (sparc64-*-solaris2*): Delete.
2314 Stick with sparc-*-solaris2*.
2315 * configure: Regenerated.
2317 Thu Mar 28 06:51:26 1996 Fred Fish <fnf@cygnus.com>
2319 * valops.c (value_assign): Make copy of internal variable value
2320 before returning it as a new value, since it is owned by the
2321 internal variable and will be freed along with it.
2323 Wed Mar 27 08:36:17 1996 Jeffrey A Law (law@cygnus.com)
2325 * From Peter Schauer.
2326 * breakpoint.c (breakpoint_re_set_one): Keep temporary
2327 breakpoints bp_until, bp_finish, bp_watchpoint_cope, bp_call_dummy
2328 and bp_step_resume in case breakpoint_re_set_one is called due
2329 to a step over a dlopen call.
2330 * infrun.c (wait_for_inferior): Always remove breakpoints from
2331 inferior in BPSTAT_WHAT_CHECK_SHLIBS case.
2333 Tue Mar 26 13:15:32 1996 Fred Fish <fnf@cygnus.com>
2335 * config/mips/tm-mips.h (COERCE_FLOAT_TO_DOUBLE): Only prefer
2336 non-prototyped case over prototyped case for C.
2337 * config/pa/tm-hppa.h (COERCE_FLOAT_TO_DOUBLE): Ditto.
2339 Sat Mar 23 17:24:28 1996 Fred Fish <fnf@cygnus.com>
2341 * os9kread.c (os9k_process_one_symbol): Note nonportable
2342 assumption that an int can hold a char *.
2344 * bcache.h (struct hashlink): Wrap data[] inside union with
2345 double to force longest alignment.
2346 (BCACHE_DATA): New macro to access data[].
2347 (BCACHE_ALIGNMENT): New macro to get offset to data[].
2348 * bcache.c (lookup_cache, bcache): Use BCACHE_DATA to get
2349 address of cached data. Use BCACHE_ALIGNMENT to compute
2350 amount of space to allocate for each hashlink struct.
2352 Sat Mar 23 12:14:02 1996 Fred Fish <fnf@cygnus.com>
2354 * ch-lang.c (evaluate_subexp_chill): Fix typo.
2356 Thu Mar 21 08:27:19 1996 Fred Fish <fnf@cygnus.com>
2358 * Makefile.in (VERSION): Bump version to 4.15.3
2360 Thu Mar 21 10:56:41 1996 Ian Lance Taylor <ian@cygnus.com>
2362 * config.in: Rename from config.h.in.
2363 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
2364 Change CONFIG_HEADERS test in AC_OUTPUT accordingly.
2365 * configure: Rebuild.
2366 * Makefile.in (stamp-h): Depend upon config.in, not config.h.in.
2367 Set CONFIG_HEADERS to config.h:config.in.
2369 Tue Mar 19 12:47:51 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2371 * partial-stab.h (case N_ENDM): Finish current partial symbol
2372 table for Solaris 2 cc.
2374 Tue Mar 19 10:39:15 1996 Jeffrey A Law (law@cygnus.com)
2376 * rs6000-nat.c (exec_one_dummy_insn): Don't clobber the
2377 PC in the registers array. From Peter Schauer.
2379 Mon Mar 18 13:47:09 1996 Fred Fish <fnf@cygnus.com>
2381 * symfile.c (reread_symbols): Reinitialize bcache struct
2382 members to zero using memset. Also use memset to reinit
2383 global_psymbols and static_psymbols, rather than explicitly
2384 resetting each structure member.
2386 Sat Mar 16 19:47:36 1996 Fred Fish <fnf@cygnus.com>
2388 * configure.in: Add fragment to create stamp-h.
2390 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2391 * configure.in (AC_CHECK_HEADERS): Check for link.h.
2392 * configure: Regenerate with autoconf.
2393 * config.h.in: Regenerate with autoheader.
2394 * config/i386/nm-linux.h: Include solib.h only if HAVE_LINK_H
2396 * solib.c: Exclude most of the code if HAVE_LINK_H is not defined.
2397 * config/i386/linux.mh: Reinstate XM_CLIBS, it is needed for
2398 older a.out based systems.
2400 Sat Mar 16 16:45:43 1996 Fred Fish <fnf@cygnus.com>
2402 * config.h.in: New file.
2403 * acconfig.h: New file, for autoheader.
2404 * configure.in (AC_CONFIG_HEADER): Add, generate config.h.
2405 * configure: Regenerate.
2406 * Makefile.in (defs_h): Add config.h
2407 (distclean): Remove config.h and stamp-h during distclean.
2408 (config.h, stamp-h): New targets to remake config.h when necessary.
2409 * defs.h (config.h): Include before any other includes or defines.
2410 * i386-tdep.c (gdb_string.h): Move include after include of defs.h.
2411 * i386v4-nat.c (defs.h): Include before testing HAVE_SYS_PROCFS_H.
2413 Sat Mar 16 14:55:27 1996 Fred Fish <fnf@cygnus.com>
2415 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2416 * Makefile.in (INSTALLED_LIBS): Make sure that @LIBS@ will not
2417 result in an empty line, to work around a bug in native Ultrix 4.4
2418 and OSF/1-3.2C make.
2420 Sat Mar 16 13:33:17 1996 Fred Fish <fnf@cygnus.com>
2422 * configure.in: Add gdbserver to configdirs under linux.
2423 * configure: Regenerate.
2425 Fri Mar 15 12:06:58 1996 J.T. Conklin <jtc@rtl.cygnus.com>
2427 * config/i386/nm-nbsd.h (FLOAT_INFO): Comment out.
2428 * config/i386/tm-nbsd.h (NUM_REGS): Define.
2430 Thu Mar 14 10:31:18 1996 Jeffrey A Law (law@cygnus.com)
2432 * solib.c (solib_break_names): Add _r_debug_state for
2433 vanilla SVR4 implementations. From Peter Schauer.
2435 Mon Mar 11 14:24:57 1996 Dawn Perchik <dawn@critters.cygnus.com>
2437 * mon960-rom.c: New file; support mon960 rom monitor on i960.
2438 * monitor.c (monitor_debug): Change remotedebug to buffer strings.
2439 * monitor.c (monitor_open): Add test for flag MO_NO_ECHO_ON_OPEN before
2440 epecting prompt and echo during open.
2441 * monitor.c (monitor_stop): Add test for flag MO_SEND_BREAK_ON_OPEN to
2442 determine if break should be sent as stop command.
2443 * monitor.h: Add flags MO_NO_ECHO_ON_OPEN and MO_SEND_BREAK_ON_OPEN.
2444 * i960-tdep.c (mon960_frame_chain_valid): New function for getting
2445 stack frame on mon960.
2446 * Makefile.in: Add mon960 files.
2447 * configure.in: Changed i960-*-coff* and i960-*-elf* to target mon960;
2448 added i960-nindy-coff* and i960-nindy-elf* for target nindy.
2449 * configure: Regenerated.
2450 * config/i960/mon960.mt, config/i960/tm-mon960.h: New files;
2451 support mon960 rom monitor on i960.
2453 Mon Mar 11 11:02:47 1996 Steve Chamberlain <sac@slash.cygnus.com>
2455 With Michael Snyder:
2456 * i386-tdep.c (skip_trampoline_code): Fix strncmp length.
2457 * win32-nat.c (CHECK, DEBUG*, debug_*): New.
2458 (handle_load_dll): Don't reload symbols.
2459 (handle_exception): Use the DEBUG_* names.
2460 (child_wait): Add DEBUG_* code.
2461 (_initialize_inftarg): Add new commands to set debug_ names.
2463 Mon Mar 11 09:19:58 1996 Jeffrey A Law (law@cygnus.com)
2465 * From Peter Schauer:
2466 * breakpoint.c (insert_breakpoints): Use ALL_BREAKPOINTS_SAFE.
2467 (bpstat_stop_status): Likewise.
2468 (remove_solib_event_breakpoints): Likewise.
2469 (clear_momentary_breakpoints): Likewise.
2470 (re_enable_breakpoints_in_shlibs): Don't reenable a breakpoint
2471 if we still can't read the memory for that breakpoint.
2472 (mention): Add bp_shlib_event case to keep gcc quiet.
2474 Fri Mar 8 12:08:12 1996 Jeffrey A Law (law@cygnus.com)
2476 * breakpoint.h (enum enable): New enum shlib_disabled for
2477 shared library breakpoints that have been temporarily disabled.
2478 * breakpoint.c: Handle temporarily disabled shared library
2479 breakpoints like disabled breakpoints in most places.
2480 (insert_breakpoints): Use shlib_disabled to indicate
2481 that an unsettable breakpoint is only temporarily disabled.
2482 (re_enable_breakpoints_in_shlibs): New function.
2483 * corelow.c (solib_add_stub): After adding shared libraries,
2484 try to reenable any temporarily disabled breakpoints.
2485 * infcmd.c (attach_command): Likewise.
2486 * infrun.c (wait_for_inferior): Likewise.
2488 Fri Mar 8 11:41:25 1996 Ian Lance Taylor <ian@cygnus.com>
2490 * defs.h (extract_long_unsigned_integer): Declare.
2491 * findvar.c (extract_long_unsigned_integer): New function.
2492 * printcmd.c (print_scalar_formatted): Use it.
2493 * valprint.c (val_print_type_code_int): Likewise.
2495 Thu Mar 7 17:40:50 1996 Stan Shebs <shebs@andros.cygnus.com>
2497 * infcmd.c (do_registers_info): Ignore anonymous registers.
2498 * sh-tdep.c (set processor): New command to set specific
2500 (sh_reg_names, sh3_reg_names): Arrays of register names for
2501 SH and SH3 processors.
2502 (sh_set_processor_type): New function.
2503 * sh3-rom.c (sh3_open): Call it.
2504 (sh3_regname): Add names of all the bank registers.
2505 (sh3_supply_register): Clean up formatting.
2506 * config/sh/tm-sh.h (NUM_REGS, NUM_REALREGS): Increase to include
2508 (REGISTER_NAMES): Add names of bank registers.
2509 (FP15_REGNUM): Define.
2510 (REGISTER_VIRTUAL_TYPE): Use it.
2511 * monitor.c: Clean up some comments.
2513 Thu Mar 7 12:09:51 1996 J.T. Conklin <jtc@rtl.cygnus.com>
2515 * i386b-nat.c: Revert part of Mar 5 change. FreeBSD collapsed the
2516 s* and t* symbols too.
2518 Thu Mar 7 15:18:51 1996 James G. Smith <jsmith@cygnus.co.uk>
2520 * symfile.c (generic_load): Avoid division by zero.
2522 Wed Mar 6 17:57:59 1996 Jeffrey A Law (law@cygnus.com)
2524 * breakpoint.c (bfd_lookup_symbol): Provide for all SVR4 systems,
2525 not just those with HANDLE_SVR4_EXEC_EMULATORS.
2528 * breakpoint.c (internal_breakpoint_number): Move to file scope.
2529 (create_solib_event_breakpoint): Use an internal breakpoint number.
2531 Wed Mar 6 00:32:44 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
2533 * valarith.c (value_in): Change builtin_type_chill_bool to
2536 Tue Mar 5 23:48:36 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
2538 * ch-exp.c (parse_primval): Handle CARD, MAX, MIN.
2539 (match_string_literal): Handle control sequence.
2540 (match_character_literal): Deto.
2542 * ch-lang.c (chill_printchar): Change formating of nonprintable
2543 characters from C'xx' to ^(num).
2544 (chill_printstr): Deto.
2545 (value_chill_card, value_chill_max_min): New functions to process
2546 Chill's CARD, MAX, MIN.
2547 (evaluate_subexp_chill): Process UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN.
2549 * expression.h (exp_opcode): Add UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN
2550 for Chill's CARD, MAX, MIN.
2552 * valarith.c (value_in): Add processing of TYPE_CODE_RANGE
2553 and change return type from builtin_type_int to
2554 builtin_type_chill_bool.
2556 Tue Mar 5 18:54:04 1996 Stan Shebs <shebs@andros.cygnus.com>
2558 * config/nm-nbsd.h (link_object, lo_name, etc): Move to here
2559 from config/nm-nbsd.h.
2560 * config/sparc/nm-nbsd.h (regs, fp_status, etc): Move to here
2561 from config/sparc/tm-nbsd.h.
2563 * config/m68k/nm-hp300hpux.h (FIVE_ARG_PTRACE): Define here
2564 instead of in config/m68k/xm-hp300hpux.h.
2566 Tue Mar 5 12:05:35 1996 J.T. Conklin <jtc@rtl.cygnus.com>
2568 * i386b-nat.c, m68knbsd-nat.c (fetch_core_registers): Provide
2569 implementation for NetBSD systems.
2571 Mon Mar 4 23:44:16 1996 Per Bothner <bothner@kalessin.cygnus.com>
2573 * valarith.c (binop_user_defined_p): Return 0 for BINOP_CONCAT.
2574 (value_concat): Handle varying strings (add COERCE_VARYING_ARRAY).
2576 * ch-lang.c (evaluate_subexp_chill case MULTI_SUBSCRIPT): Error
2577 if "function" is pointer to non-function.
2579 Mon Mar 4 17:47:03 1996 Stan Shebs <shebs@andros.cygnus.com>
2581 * top.c (print_gdb_version): Update copyright year.
2583 Mon Mar 4 14:44:54 1996 Jeffrey A Law (law@cygnus.com)
2586 * infrun.c (wait_for_inferior): Remove breakpoints and
2587 switch terminal settings before calling SOLIB_ADD.
2588 * solib.c (enable_break, SVR4 variant): Don't map in symbols
2589 for the dynamic linker, the namespace pollution causes real
2592 Sun Mar 3 17:18:57 1996 James G. Smith <jsmith@cygnus.co.uk>
2594 * remote-mips.c (common_breakpoint): Explicitly terminate the
2597 Wed Feb 28 22:32:18 1996 Stan Shebs <shebs@andros.cygnus.com>
2599 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
2600 * remote.c (remote_detach): Send a command 'D' to the target
2601 when detaching, update the function's comments.
2603 Thu Jun 6 16:11:38 1996 Miles Bader <miles@gnu.ai.mit.edu>
2605 * gnu-nat.c (thread_cmd_list): New declaration.
2606 (parse_int_arg): New function.
2608 Wed Jun 5 17:28:04 1996 Miles Bader <miles@gnu.ai.mit.edu>
2610 * gnu-nat.h (struct proc): Add DETACH_SC field.
2611 * gnu-nat.c (make_proc): Set DETACH_SC.
2612 (struct inf): Add DETACH_SC & DEFAULT_THREAD_DETACH_SC fields.
2613 (make_inf): Set DETACH_SC & DEFAULT_THREAD_DETACH_SC fields.
2614 (add_thread_commands): Add set/show for detach-suspend-count.
2615 Add takeover-suspend-count cmd.
2616 (inf_detach): Set suspend counts to the detach SC, not 0.
2617 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd,
2618 set_task_detach_sc_cmd, show_task_detach_sc_cmd,
2619 set_thread_default_thread_detach_sc_cmd,
2620 show_thread_default_thread_detach_sc_cmd): New functions.
2621 (show_task_cmd): Also show detach-suspend-count values.
2622 (thread_takeover_sc_cmd): New function.
2624 Fri May 31 16:49:24 1996 Miles Bader <miles@gnu.ai.mit.edu>
2626 * gnu-nat.c (show_thread_run_cmd): Actually print state.
2628 Thu May 30 10:47:56 1996 Miles Bader <miles@gnu.ai.mit.edu>
2630 * gnu-nat.c (inf_signal): Make unforwardable exceptions an error.
2632 Tue May 28 17:06:36 1996 Miles Bader <miles@gnu.ai.mit.edu>
2634 * gnu-nat.c (inf_validate_stopped): proc_getprocinfo takes a
2635 pointer to the flags now, not the flags themselves.
2637 Mon May 27 13:31:17 1996 Miles Bader <miles@gnu.ai.mit.edu>
2639 * gnu-nat.c (gnu_wait): Print debugging msgs for pending execs.
2640 (gnu_create_inferior): Check return from ptrace.
2642 Sun May 26 16:56:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
2644 * gnu-nat.h (struct proc): Add DEAD field.
2645 * gnu-nat.c (make_proc): Initialize DEAD.
2646 (inf_set_traced, inf_validate_task_sc, inf_validate_procs: Frob it.
2647 (gnu_wait): Only abort for 0 threads if the task isn't dead.
2649 Sat May 25 17:06:05 1996 Miles Bader <miles@gnu.ai.mit.edu>
2651 * gnu-nat.c (inf_signal): Pass SIGCODE when posting a signal.
2653 Wed May 22 18:44:28 1996 Miles Bader <miles@gnu.ai.mit.edu>
2655 * gnu-nat.c (S_proc_wait_reply): Add SIGCODE argument.
2656 (inf_set_traced): Only give no-signal-thread error message if
2657 turning *on* tracing.
2659 Wed May 15 13:03:16 1996 Miles Bader <miles@gnu.ai.mit.edu>
2661 * gnu-nat.c (inf_validate_procs): If INF has no threads, always
2662 set inf->threads_up_to_date to 0.
2663 (inf_signal): Pass in new SIGCODE argument to msg_sig_post_untraced.
2664 (gnu_wait): Pass in new TIMEOUT arg to interrupt_operation.
2665 (proc_update_sc): Cast thread state arg to thread_set_state.
2666 (proc_get_state): Cast thread state arg to thread_get_state.
2667 (inf_validate_task_sc): Cast task_basic_info arg to task_info.
2668 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Call
2669 inf_update_procs before we lookup the thread.
2670 * config/i386/i386gnu.mh (MH_CFLAGS): New variable.
2672 Tue May 7 17:52:33 1996 Miles Bader <miles@gnu.ai.mit.edu>
2674 * gnu-nat.c (gnu_kill_inferior): Use inf_set_task to clear the task.
2676 Mon May 6 19:06:49 1996 Miles Bader <miles@gnu.ai.mit.edu>
2678 * gnu-nat.c (inf_set_traced): Use msg_set_init_int with
2679 INIT_TRACEMASK instead of setting the exec flags.
2681 Fri May 3 19:10:57 1996 Miles Bader <miles@gnu.ai.mit.edu>
2683 * gnu-nat.c (inf_validate_procs): Don't clear INF->task if we find
2684 the task's died, so others have a chance at it.
2685 (gnu_resume): When single-stepping a single thread, given an error
2686 if there is no such thread. When single-stepping one but running
2687 the others, just given a warning and still run all the threads.
2688 (gnu_wait): If there seem to be no threads, look harder, and
2689 signal an error if there really aren't any.
2690 (gnu_attach): Reset thread numbering to 0.
2692 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Give
2693 thread name in warning messages.
2695 * gnu-nat.c (active_inf): New function.
2696 (show_sig_thread_cmd, show_stopped_cmd): Use it.
2697 (info_port_rights, info_send_rights_cmd, info_port_sets_cmd,
2698 info_recv_rights_cmd, info_port_rights_cmd, info_port_rights_cmd):
2700 (add_task_commands): Add new port-right info commands.
2702 Fri Apr 26 20:42:16 1996 Miles Bader <miles@gnu.ai.mit.edu>
2704 * gnu-nat.c (gnu_wait): Instead of _hurd_intr_rpc_mach_msg, just
2705 use mach_msg with MACH_RCV_INTERRUPT.
2706 (set_noninvasive_cmd): New function.
2707 (add_task_commands): Add command entry for `set noninvasive'.
2709 Mon Mar 4 14:12:02 1996 Miles Bader <miles@gnu.ai.mit.edu>
2711 * gnu-nat.c (gnu_read_inferior): Use hurd_safe_memmove, not safe_bcopy.
2712 (safe_bcopy): Function removed.
2714 Mon Dec 4 14:18:26 1995 Miles Bader <miles@gnu.ai.mit.edu>
2716 * gnu-nat.c (proc_update_sc): Assert only threads can have state.
2717 (make_proc): Initialize state_valid & state_changed fields.
2719 Tue Nov 28 17:51:21 1995 Miles Bader <miles@gnu.ai.mit.edu>
2721 * reply_mig_hack.awk: New file.
2723 Tue Nov 14 14:31:03 1995 Miles Bader <miles@gnu.ai.mit.edu>
2725 * breakpoint.c (breakpoint_1): Print breakpoint thread field.
2727 * lynx-nat.c (child_wait): Return TARGET_WAITKIND_SPURIOUS for new
2730 Mon Nov 13 18:30:53 1995 Miles Bader <miles@gnu.ai.mit.edu>
2732 * target.c (debug_to_check_threads): New function.
2734 * inflow.c (terminal_init_inferior_with_pgrp): New function.
2735 (terminal_init_inferior): Call terminal_init_inferior_with_pgrp.
2736 * inferior.h (terminal_init_inferior_with_pgrp): New declaration,
2737 but only if PROCESS_GROUP_TYPE is defined.
2739 Mon Nov 6 16:42:09 1995 Miles Bader <miles@gnu.ai.mit.edu>
2741 * target.c (debug_to_thread_alive): Pass through the return value.
2743 Thu Nov 2 18:05:00 1995 Miles Bader <miles@gnu.ai.mit.edu>
2745 * target.c (signals, target_signal_from_host, target_signal_to_host):
2746 Add mach exceptions.
2747 * target.h (enum target_signal): Add mach exceptions.
2749 Mon Oct 30 16:41:04 1995 Miles Bader <miles@gnu.ai.mit.edu>
2751 * gnu-nat.c: New file: gnu native backend.
2752 * i386gnu-nat.c: New file: i386-specific part of gnu native backend.
2753 * gnu-nat.h: New file.
2754 * config/nm-gnu.h: New file.
2755 * config/tm-i386gnu.h: New file.
2756 * config/xm-i386gnu.h: New file.
2757 * config/i386/i386gnu.mh: New file.
2758 * config/i386/i386gnu.mt: New file.
2760 Wed Feb 28 15:50:12 1996 Fred Fish <fnf@cygnus.com>
2762 * Makefile.in (VERSION): Bump version to 4.15.2 to establish
2763 baseline for gdb 4.16 rerelease testing.
2765 Wed Feb 28 13:32:05 1996 Jeffrey A Law (law@cygnus.com)
2767 * somsolib.c (som_solib_create_inferior_hook): Before returning
2768 call clear_symtab_users.
2770 Tue Feb 27 00:04:46 1996 Stu Grossman (grossman@critters.cygnus.com)
2772 * remote-e7000.c (e7000_open): Delete all breakpoints when
2773 connecting to e7000. Change connect message to allow use of
2774 monitor.exp in test suite.
2775 * (e7000_load): Print transfer rate of download.
2776 * symfile.c (generic_load): Print transfer rate of download.
2778 Sun Feb 25 13:58:33 1996 Stan Shebs <shebs@andros.cygnus.com>
2780 * configure.in (mips*-*-vxworks*): New config.
2781 * configure: Regenerated.
2783 * config/mips/vxmips.mt, config/mips/tm-vxmips.h: New files.
2784 * remote-vxmips.c (vx_convert_to_virtual, vx_convert_from_virtual):
2787 Sat Feb 24 12:30:28 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2789 * partial-stab.h (case N_FUN): Function symbols generated
2790 by SPARCworks cc have a meaningless zero value, do not update
2791 pst->textlow if the function symbol value is zero.
2793 * stabsread.c (define_symbol): Initialize SYMBOL_TYPE field
2794 for function prototype declaration symbols.
2796 Fri Feb 23 22:33:04 1996 Stu Grossman (grossman@critters.cygnus.com)
2798 * remote-e7000.c (e7000_load): New routine to download via the
2800 * (e7000_wait): Don't backup PC when we hit a breakpoint.
2801 Apparantly new sh2 pods get this right...
2802 * (e7000_ops): Add call to e7000_load.
2804 Thu Feb 22 00:52:42 1996 J.T. Conklin <jtc@rtl.cygnus.com>
2806 * config/m68k/{nbsd.mh,nbsd.mt,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h},
2807 m68knbsd-nat.c: New files, support for NetBSD/m68k.
2809 * configure.in (m68k-*-netbsd*): New config.
2810 * configure: Regenerated.
2812 Wed Feb 21 19:00:21 1996 Fred Fish <fnf@cygnus.com>
2814 * standalone.c (open, _initialize_standalone): Fix obvious typos
2815 reported by Martin Pool <martin@citr.uq.oz.au>.
2817 Wed Feb 21 14:24:04 1996 Jeffrey A Law (law@cygnus.com)
2819 * solib.c (solib_create_inferior_hook): Fix thinko.
2821 Tue Feb 20 23:59:19 1996 Jeffrey A Law (law@cygnus.com)
2823 * solib.c (solib_break_names): Define for Solaris and Linux.
2824 (enable_break): For SVR4 systems, first try to use the debugger
2825 interfaces in the dynamic linker to track shared library events
2826 as they happen, then fall back to BKPT_AT_SYMBOL code. Convert
2827 BKPT_AT_SYMBOL code to use shared library event breakpoints.
2828 (solib_create_inferior_hook): Simplify BKPT_AT_SYMBOL code,
2829 it no longer needs to restart/wait on the inferior.
2830 * symfile.c (find_lowest_section): No longer static.
2831 * symfile.h (find_lowest_section): Corresponding changes.
2833 Tue Feb 20 18:54:08 1996 Fred Fish <fnf@cygnus.com>
2835 * valops.c (COERCE_FLOAT_TO_DOUBLE): Define default value.
2836 (value_arg_coerce): Use COERCE_FLOAT_TO_DOUBLE.
2837 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Define to 1.
2838 * config/mips/tm-mips.h: Ditto.
2839 * config/pa/tm-hppa.h: Ditto.
2840 * config/rs6000/tm-rs6000.h: Ditto.
2841 * config/sparc/tm-sparc.h: Ditto.
2843 Tue Feb 20 17:32:05 1996 J.T. Conklin <jtc@rtl.cygnus.com>
2845 * config/{i386,ns32k}/nbsd.mh (NATDEPFILES): Remove core-aout.o.
2847 * config/nm-nbsd.h (FETCH_INFERIOR_REGISTERS): Defined.
2848 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
2849 #ifdef'd out definitions --- Causes serious gdb failures on
2850 the i386. Need to investigate further before enabling.
2852 * i386b-nat.c (fetch_inferior_registers, store_inferior_registers,
2853 fetch_core_registers): New functions. These functions are defined
2854 if FETCH_INFERIOR_REGISTERS is set. Registers are fetched/stored
2855 with ptrace PT_GETREGS/PT_SETREGS.
2857 Tue Feb 20 16:55:06 1996 Stu Grossman (grossman@critters.cygnus.com)
2859 * findvar.c (extract_floating store_floating): Replace `long
2860 double' with `DOUBLEST'.
2862 Mon Feb 19 15:25:51 1996 J.T. Conklin <jtc@rtl.cygnus.com>
2864 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
2867 Mon Feb 19 10:32:05 1996 Jeffrey A Law (law@cygnus.com)
2869 * symtab.h (looup_minimal_symbol_solib_trampoline): Declare.
2871 * breakpoint.h (remove_solib_event_breakpoints): Declare.
2872 * breakpoint.c (remove_solib_event_breakpoints): New function.
2873 * somsolib.c (solib_create_inferior_hook): Remove all solib event
2874 breakpoints before inserting any new ones. Use a solib event
2875 breakpoint for the breakpoint at "_start".
2876 Remove extraneous "\n" from calls to warning.
2878 * breakpoint.c (breakpoint_1): Add missing "sigtramp" to bptypes
2881 Mon Feb 19 01:09:32 1996 Doug Evans <dje@cygnus.com>
2883 * dwarfread.c (add_partial_symbol): Use ADD_PSYMBOL_ADDR_TO_LIST
2884 for CORE_ADDR values.
2885 (new_symbol): Use SYMBOL_VALUE_ADDRESS for CORE_ADDR values.
2886 * symfile.h (add_psymbol_{,addr}to_list): Add prototypes.
2888 Sun Feb 18 14:37:13 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2890 * mipsread.c (mipscoff_symfile_read): Unconditionally add
2891 alpha coff dynamic symbols for all symbol files. Makes skipping
2892 over the trampoline code work when stepping from a function in a
2893 shared library into a function in a different shared library.
2895 Sun Feb 18 09:27:10 1996 Stu Grossman (grossman@cygnus.com)
2897 * config/sparc/tm-sparc.h: Define PS_FLAG_CARRY. Define
2898 RETURN_VALUE_ON_STACK to return long doubles on the stack.
2900 Sat Feb 17 16:33:11 1996 Fred Fish <fnf@cygnus.com>
2902 * Makefile.in (ch-exp.o): Add dependencies.
2903 (various): Add gdb_string.h to dependencies that need it.
2905 Sat Feb 17 08:57:50 1996 Fred Fish <fnf@cygnus.com>
2907 * symmisc.c (print_symbol_bcache_statistics): Update description for
2908 printing byte cache statistics.
2910 Thu Feb 16 16:02:03 1996 Stu Grossman (grossman@cygnus.com)
2912 * Add native support for long double data type.
2913 * c-exp.y (%union): Change dval to typed_val_float. Use DOUBLEST
2914 to store actual data. Change types of INT and FLOAT tokens to
2915 typed_val_int and typed_val_float respectively. Create new token
2916 DOUBLE_KEYWORD to specify the string `double'. Make production
2917 for FLOAT use type determined by parse_number. Add production for
2918 "long double" data type.
2919 * (parse_number): Use sscanf to parse numbers as float, double or
2920 long double depending upon the type of typed_val_float.dval. Also
2921 allow user to specify `f' or `l' suffix to explicitly specify
2922 float or long double constants. Change typed_val to
2924 * (yylex): Change typed_val to typed_val_int. Also, scan for
2926 * coffread.c (decode_base_type): Add support for T_LNGDBL basic
2928 * configure, configure.in: Add check for long double support in
2930 * defs.h: Define DOUBLEST appropriatly depending on whether
2931 HAVE_LONG_DOUBLE (from autoconf) is defined. Also, fix prototypes
2932 for functions that handle this type.
2933 * expression.h (union exp_element): doubleconst is now type
2935 * m2-exp.y f-exp.y (%union): dval becomes type DOUBLEST.
2936 * findvar.c (extract_floating): Make return value be DOUBLEST.
2937 Also, add support for numbers with size of long double.
2938 * (store_floating): Arg `val' is now type DOUBLEST. Handle all
2940 * parser-defs.h parse.c (write_exp_elt_dblcst): Arg expelt is now
2942 * valarith.c (value_binop): Change temp variables v1, v2 and v to
2943 type DOUBLEST. Coerce type of result to long double if either op
2945 * valops.c (value_arg_coerce): If argument type is bigger than
2946 double, coerce to long double.
2947 * (call_function_by_hand): If REG_STRUCT_HAS_ADDR is defined, and
2948 arg type is float and > 8 bytes, then use pointer-to-object
2949 calling conventions.
2950 * valprint.c (print_floating): Arg doub is now type DOUBLEST.
2951 Use appropriate format and precision to print out floating point
2953 * value.h: Fixup prototypes for value_as_double,
2954 value_from_double, and unpack_double to use DOUBLEST.
2955 * values.c (record_latest_value): Remove check for invalid
2956 floats. Allow history to store them so that people may examine
2957 them in hex if they want.
2958 * (value_as_double unpack_double): Change return value to DOUBLEST.
2959 * (value_from_double): Arg `num' is now DOUBLEST.
2960 * (using_struct_return): Use RETURN_VALUE_ON_STACK macro (target
2961 specific) to expect certain types to always be returned on the stack.
2963 Fri Feb 16 14:00:54 1996 Fred Fish <fnf@cygnus.com>
2965 * bcache.c, bcache.h: New files to implement a byte cache.
2966 * Makefile.in (SFILES): Add bcache.c.
2967 (symtab_h): Add bcache.h.
2968 (HFILES_NO_SRCDIR): add bcache.h
2969 (COMMON_OBJS): Add bcache.o
2970 (bcache.o): New target.
2971 * dbxread.c (start_psymtab): Make global_syms & static_syms
2972 type "partial_symbol **".
2973 * hpread.c (hpread_start_symtab): Ditto.
2974 * os9kread.c (os9k_start_psymtab): Ditto.
2975 * stabsread.h (start_psymtab): Ditto.
2976 * {symfile.c, symfile.h} (start_psymtab_common): Ditto.
2977 * maint.c (maintenance_print_statistics): Call
2978 print_symbol_bcache_statistics.
2979 * objfiles.c (allocate_objfile): Initialize psymbol bcache malloc
2981 * solib.c (allocate_rt_common_objfile): Ditto.
2982 * symfile.c (reread_symbols): Ditto.
2983 (free_objfile): Free psymbol bcache when objfile is freed.
2984 (objfile_relocate): Use new indirect psymbol pointers.
2985 * objfiles.h (struct objfile): Add psymbol cache.
2986 * symfile.c (compare_psymbols): Now passed pointers to pointers to
2988 (reread_symbols): Free psymbol bcache when freeing other objfile
2990 (add_psymbol_to_list, add_psymbol_addr_to_list): Initialize new
2991 psymbol using the psymbol bcache.
2992 (init_psymbol_list): Psymbol lists now contain pointers rather than
2993 the actual psymbols.
2994 * symfile.h (psymbol_allocation_list): Psymbol lists now dynamically
2995 grown arrays of pointers.
2996 (ADD_PSYMBOL_VT_TO_LIST): Initialize new symbol using the psymbol
2998 * symmisc.c (print_partial_symbols): Now takes pointer to pointer
3000 (print_symbol_bcache_statistics): New function to print per objfile
3002 (print_partial_symbol, print_partial_symbols,
3003 maintenance_check_symtabs, extend_psymbol_list):
3004 Account for change to pointer to pointer to partial symbol.
3005 * symtab.c (find_pc_psymbol, lookup_partial_symbol, decode_line_2,
3006 make_symbol_completion_list):
3007 Account for change to pointer to pointer to partial symbol.
3008 * symtab.h (bcache.h): Include.
3009 * xcoffread.c (xcoff_start_psymtab): Make global_syms & static_syms
3010 type "partial_symbol **".
3012 Fri Feb 16 10:02:34 1996 Fred Fish <fnf@cygnus.com>
3014 * dwarfread.c (free_utypes): New function.
3015 (read_file_scope): Call free_utypes as cleanup, rather than just
3016 freeing the utypes pointer.
3018 Thu Feb 15 21:40:52 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3020 * demangle.c (is_cplus_marker): New function, checks if a
3021 character is one of the commonly used C++ marker characters.
3022 * defs.h (is_cplus_marker): Add prototype.
3023 * c-typeprint.c (c_type_print_base), ch-lang.c (chill_demangle),
3024 cp-valprint.c (cp_print_class_method), mdebugread.c (parse_symbol),
3025 stabsread.c (define_symbol, read_member_functions, read_struct_fields),
3026 symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P),
3027 values.c (vb_match): Use is_cplus_marker instead of comparison
3030 Thu Feb 15 18:08:13 1996 Fred Fish <fnf@cygnus.com>
3032 * symfile.h (INLINE_ADD_PSYMBOL): Default this to 0 and possibly
3033 delete entirely someday.
3035 Thu Feb 15 15:25:34 1996 Stan Shebs <shebs@andros.cygnus.com>
3037 * mpw-make.sed: Edit out makefile rebuild rule.
3038 (host_alias, target_alias): Comment out instead of deleting.
3039 (@LIBS@): Edit out references.
3041 Tue Feb 13 22:56:46 1996 Fred Fish <fnf@cygnus.com>
3043 * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
3044 Use n_psyms in OBJSTAT, not psyms.
3046 Mon Feb 12 15:59:31 1996 Doug Evans <dje@charmed.cygnus.com>
3048 * configure.in (sparclet-*-aout*): New config.
3049 * configure: Regenerated.
3051 Mon Feb 12 14:17:52 1996 Fred Fish <fnf@cygnus.com>
3053 * somsolib.c (som_solib_add): Use xmalloc rather than bare
3054 unchecked call to malloc.
3055 * remote-mips.c (pmon_load_fast): ditto.
3056 * remote-mm.c (mm_open): ditto.
3057 * hpread.c (hpread_lookup_type): ditto.
3058 * remote-adapt.c (adapt_open): ditto.
3060 Mon Feb 12 13:11:32 1996 Fred Fish <fnf@cygnus.com>
3062 * f-lang.c (allocate_saved_bf_node, allocate_saved_function_node,
3063 allocate_saved_f77_common_node, allocate_common_entry_node,
3064 add_common_block): Use xmalloc rather than malloc, some of which
3066 * gnu-regex.c: At same point as other gdb specific changes
3067 #undef malloc and then #define it to xmalloc.
3068 * ch-exp.c (growbuf_by_size): Use xmalloc/xrealloc rather than
3069 bare unchecked calls to malloc/realloc.
3070 * stabsread.c (dbx_lookup_type): Use xmalloc rather than bare
3071 unchecked call to malloc.
3073 Wed Feb 7 11:31:26 1996 Stu Grossman (grossman@cygnus.com)
3075 * symtab.c (gdb_mangle_name): Change opname var to be const to
3076 match return val of cplus_mangle_name.
3077 * i960-tdep.c: Change arg types of next_insn to match callers.
3079 Wed Feb 7 07:34:24 1996 Fred Fish <fnf@cygnus.com>
3081 * config/i386/linux.mh (XM_CLIBS, GDBSERVER_LIBS): Remove. These
3082 apparently aren't needed in any reasonably recent version of
3085 Tue Feb 6 21:37:03 1996 Per Bothner <bothner@kalessin.cygnus.com>
3087 * stabsread.c (read_range_type): If !self-subrange and language
3088 is Chill, assume a true range. If a true_range is a sub_subrange,
3089 use builtin_type_int for index_type.
3091 Tue Feb 6 18:38:51 1996 J.T. Conklin <jtc@slave.cygnus.com>
3093 * nindy-share/nindy.c (say): Use stdarg.h macros when compiling
3094 with an ANSI compiler.
3096 start-sanitize-gdbtk
3097 Tue Feb 6 16:31:25 1996 Tom Tromey <tromey@creche.cygnus.com>
3099 * gdbtk.tcl (create_file_win): Eliminate text widget B1 binding so
3100 double-clicking will work again.
3101 (create_asm_win): Put "break" at end of all B1 bindings.
3102 (create_file_win): Lower "sel" tag, don't raise it.
3103 (ensure_line_visible): New proc.
3104 (update_listing, update_assembly): Use it.
3105 (create_copyright_window): Destroy window on Leave event.
3106 (create_command_window): Put "break" at end of all B2 bindings.
3109 Mon Feb 5 18:24:28 1996 Steve Chamberlain <sac@slash.cygnus.com>
3111 From Michael_Snyder@NeXT.COM (Michael Snyder):
3112 * valops.c (value_arg_coerce): Coerce float to double, unless the
3113 function prototype specifies float.
3115 Mon Feb 5 09:51:55 1996 Tom Tromey <tromey@creche.cygnus.com>
3117 * language.c (set_language_command): Use languages table when
3118 printing available languages.
3120 Sat Feb 3 12:22:05 1996 Fred Fish <fnf@cygnus.com>
3122 Fix problems reported by Hans Verkuil (hans@wyst.hobby.nl):
3123 * command.c (add_cmd): Add missing initialization for enums member.
3124 Reorder members to match structure declaration to make it easier to
3125 tell when one is missing.
3126 * exec.c (exec_file_command): Fix problem where filename in malloc'd
3127 memory is referenced after being freed.
3129 Sat Feb 3 03:26:21 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3131 * dwarfread.c (read_func_scope): Avoid GDB core dumps if
3132 AT_name tag is missing.
3134 * procfs.c (procfs_stopped_by_watchpoint): Fix logic when
3135 FLTWATCH and FLTKWATCH are defined.
3137 * remote.c (remote_read_bytes): Advance memaddr for transfers,
3138 return number of bytes transferred for partial reads.
3140 * top.c (init_signals): Reset SIGTRAP to SIG_DFL.
3142 Fri Feb 2 13:40:50 1996 Steve Chamberlain <sac@slash.cygnus.com>
3144 * win32-nat.c (mappings): Add ppc registers.
3145 (child_resume): Turn off step for ppc.
3147 Thu Feb 1 10:29:31 1996 Steve Chamberlain <sac@slash.cygnus.com>
3149 * config/powerpc/(cygwin32.mh, cygwin32.mt, tm-cygwin32.h,
3150 xm-cygwin32.h): New.
3151 * config/i386/(*win32*): Becomes *cygwin32*.
3152 * configure.in (i[3456]86-*-win32*): Becomes i[3456]86-*-cygwin32.
3153 (powerpcle-*-cygwin32): New.
3154 * configure: Regenerate.
3155 * win32-nat.c (child_create_inferior): Call CreateProcess
3156 with the right program arg.
3158 Thu Feb 1 11:01:10 1996 Jeffrey A Law (law@cygnus.com)
3160 * config/pa/tm-hppa.h (SOFT_FLOAT): Provide a default definition.
3162 Wed Jan 31 19:01:28 1996 Fred Fish <fnf@cygnus.com>
3164 * serial.c: Change fputc/fputs/fprintf to _unfiltered forms.
3166 Wed Jan 31 18:36:27 1996 Stan Shebs <shebs@andros.cygnus.com>
3168 * config/sparc/xm-sun4os4.h (HAVE_TERMIOS): Remove.
3170 * config/sparc/xm-sparc.h (HAVE_WAIT_STRUCT): Remove, never used.
3172 * config/i386/nm-i386mach.h (CHILD_PREPARE_TO_STORE): Move to
3173 here from config/i386/xm-i386mach.h, fix name.
3174 * config/i386/nm-sun386.h: Ditto, from config/i386/xm-sun386.h.
3175 * config/i386/nm-ptx4.h (CHILD_PREPARE_TO_STORE): Move to
3176 here from config/i386/xm-ptx4.h.
3177 * config/i386/nm-ptx4.h: Ditto, from config/i386/xm-ptx.h.
3178 * config/i386/nm-symmetry.h: Ditto, from config/i386/xm-symmetry.h.
3179 * config/m68k/nm-sun3.h: Ditto, from config/m68k/xm-sun3.h.
3180 * config/sparc/nm-nbsd.h: Ditto, from config/sparc/xm-nbsd.h.
3181 * config/sparc/nm-sun4os4: Ditto, from config/sparc/xm-sparc.h.
3183 * config/sparc/nm-sun4sol2.h: New file, renamed from nm-sysv4.h.
3184 (PRSVADDR_BROKEN): Move here from xm-sun4sol2.h.
3185 * config/sparc/sun4sol2.mh (NAT_FILE): Update.
3187 Wed Jan 31 17:20:26 1996 Jeffrey A Law (law@cygnus.com)
3189 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Handle software
3190 floating point correctly.
3191 (STORE_RETURN_VALUE): Likewise.
3192 * config/pa/tm-pro.h (SOFT_FLOAT): define.
3194 Wed Jan 31 13:34:52 1996 Fred Fish <fnf@cygnus.com>
3196 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
3197 Define to what should be reasonable values. However, apparently
3198 a bug in linux mmap prevents mapped symbol tables from working.
3200 Tue Jan 30 18:26:19 1996 Fred Fish <fnf@cygnus.com>
3202 * defs.h (errno.h>: Move #include closer to head of file to solve
3203 obscure problem with systems that declare perror with const arg, in
3204 both errno.h and stdio.h, and const is defined away by intervening
3207 Tue Jan 30 15:41:10 1996 Fred Fish <fnf@cygnus.com>
3209 From Jon Reeves <reeves@zk3.dec.com>:
3210 * i386-stub.c (getpacket): Change fprintf stream from "gdb" to stderr.
3211 (mem_fault_routine): Fix misplaced volatile type qualifier in decl.
3213 Mon Jan 29 19:05:58 1996 Fred Fish <fnf@cygnus.com>
3215 * Makefile.in (diststuff): Make all-doc; diststuff target does not
3216 exist in doc/Makefile.in.
3218 Mon Jan 29 18:44:57 1996 Stan Shebs <shebs@andros.cygnus.com>
3220 * config/m88k/xm-cxux.h (BP_HIT_COUNT): Remove, never used.
3222 Mon Jan 29 00:10:35 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
3224 * ch-valprint.c (calculate_array_length): New function to
3225 determine the length of an array type.
3226 (chill_val_print (case TYPE_CODE_ARRAY)): If the length of an
3227 array type is zero, call calculate_array_length.
3229 * gdbtypes.c (get_discrete_bounds (case TYPE_CODE_ENUM)): The
3230 values may not be sorted. Scan all entries and set the real lower
3233 Sun Jan 28 15:50:42 1996 Fred Fish <fnf@cygnus.com>
3235 * config/xm-linux.h: Move include of solib.h and #define of
3236 SVR4_SHARED_LIBS from here ...
3237 * config/nm-linux.h: ...to here.
3239 Sat Jan 27 10:34:05 1996 Fred Fish <fnf@cygnus.com>
3241 * configure.in (AC_CHECK_HEADERS): Check for sys/procfs.h.
3242 Also check for gregset_t and fpregset_t types.
3243 * configure: Regenerate.
3244 * core-regset.c (sys/procfs.h): Only include if HAVE_SYS_PROCFS_H
3246 (fetch_core_registers): Turn into stub unless both HAVE_GREGSET_T
3247 and HAVE_FPREGSET_T are defined. These changes allow systems
3248 like linux that are migrating to /proc support to use a single
3249 configuration for both new and old versions.
3251 * config/i386/linux.mt: Note that this is now for both a.out and
3253 * config/i386/linux.mh (NATDEPFILES): Add solib.o, core-regset.o,
3255 * config/i386/tm-linux.h (tm-sysv4.h): Include.
3256 * config/i386/xm-linux.h (solib.h): Include
3257 (SVR4_SHARED_LIBS): Define.
3258 * i386v4-nat.c: Only compile if HAVE_SYS_PROCFS_H is defined.
3259 (supply_gregset, fill_gregset): Compile if HAVE_GREGSET_T defined.
3260 (supply_fpregset, fill_fpregset): Compile if HAVE_FPREGSET_T
3263 Fri Jan 26 13:48:14 1996 Stan Shebs <shebs@andros.cygnus.com>
3265 * config/sparc/xm-sparc.h (NEW_SUN_CORE): Remove, never used.
3266 * config/i386/xm-sun386.h: Ditto.
3267 * config/m68k/xm-sun2.h, config/m68k/xm-sun3.h: Ditto.
3269 Thu Jan 25 16:05:53 1996 Tom Tromey <tromey@creche.cygnus.com>
3271 * Makefile.in (INSTALLED_LIBS, CLIBS): Include @LIBS@.
3273 Thu Jan 25 09:22:15 1996 Steve Chamberlain <sac@slash.cygnus.com>
3275 From Greg McGary <gkm@gnu.ai.mit.edu>:
3276 * dcache.c (dcache_peek, dcache_poke): Advance addr for
3279 Thu Jan 25 13:08:51 1996 Doug Evans (dje@cygnus.com)
3281 * infrun.c (normal_stop): Fix test for shared library event.
3283 Thu Jan 25 03:26:38 1996 Doug Evans <dje@charmed.cygnus.com>
3285 * configure.in (sparc64-*-*): Add default host configuration.
3286 start-sanitize-gdbtk
3287 (sparc64-*-solaris2* host): Link statically if GCC used.
3289 (sparc64-*-solaris2*): Add target configuration.
3290 * configure: Regenerated.
3291 * sparc/sp64sol2.mt: New file.
3293 Wed Jan 24 22:31:37 1996 Doug Evans <dje@charmed.cygnus.com>
3295 * Makefile.in (RUNTEST): srcdir renamed to rootsrc.
3297 Wed Jan 24 15:42:24 1996 Tom Tromey <tromey@creche.cygnus.com>
3299 * Makefile.in (lint): Close backquotes.
3301 start-sanitize-gdbtk
3302 Wed Jan 24 15:28:41 1996 Tom Tromey <tromey@creche.cygnus.com>
3304 * gdbtk.tcl, gdbtk.c: Updated copyrights.
3306 * configure.in: Look for -ldl or -ldld when using Tcl 7.5 or
3308 * configure: Rebuilt.
3311 Wed Jan 24 13:19:10 1996 Fred Fish <fnf@cygnus.com>
3313 * NEWS: Make note of new record and replay feature for
3314 remote debug sessions.
3315 * serial.c (gdbcmd.h): Include.
3316 (serial_logfile, serial_logfp, serial_reading, serial_writing):
3317 Define here, for remote debug session logging.
3318 (serial_log_command, serial_logchar, serial_write, serial_readchar):
3319 New functions for remote debug session logging.
3320 (serial_open): Open remote debug session log file when needed.
3321 (serial_close): Close remote debug session log file when needed.
3322 (_initialize_serial): Add set/show commands for name of remote
3323 debug session log file.
3324 * serial.h (serial_readchar): Declare
3325 (SERIAL_READCHAR): Call serial_readchar().
3326 (SERIAL_WRITE): Call serial_write().
3327 (serial_close): Declare as extern.
3328 (serial_logfile, serial_logfp): Declare.
3329 * top.c (execute_command): Declare serial_logfp. Log user command
3330 in remote debug session log if log file is open.
3331 * remote-array.c (array_wait): #ifdef out echo to gdb_stdout.
3332 (array_read_inferior_memory): Rewrite to fix memory overwrite bug.
3333 * remote-array.c (SREC_SIZE): Remove, duplicates define in
3335 * remote-array.c (hexchars, hex2mem): Remove, unused.
3336 * gdbserver/low-linux.c (store_inferior_registers): Remove
3337 unnecessary extern declaration of registers[].
3338 * gdbserver/Makefile.in (all): Add gdbreplay.
3339 * gdbserver/gdbreplay.c: New file.
3340 * gdbserver/README: Give example of recording a remote
3341 debug session with gdb and then replaying it with gdbreplay.
3343 Tue Jan 23 18:02:35 1996 Per Bothner <bothner@kalessin.cygnus.com>
3345 * stabsread.c (rs6000_builtin_type): Make bool type unsigned.
3346 (read_one_struct_field): Support boolean bitfields.
3347 * c-valprint.c (c_val_print): Print booleans properly.
3349 Tue Jan 23 18:54:09 1996 Stan Shebs <shebs@andros.cygnus.com>
3351 * remote-vxsparc.c (vx_convert_to_virtual, vx_convert_from_virtual):
3353 * config/sparc/vxsparc.mt (TDEPFILES): Add remote-vxsparc.o.
3355 Tue Jan 23 14:36:05 1996 Per Bothner <bothner@kalessin.cygnus.com>
3357 * ch-exp.c (parse_tuple): Error if invalid mode.
3359 * value.h (COERCE_ARRAY): Don't coerce enums.
3360 (COERCE_ENUM): Don't COERCE_REF.
3361 (COERCE_NUMBER): New macro (same as COERCE_ARRAY then COERCE_ENUM).
3362 * valops.c (value_assign): Only do COERCE_ARRAY if internalvar (let
3363 value_cast handle it otherwise); do *not* COERCE_ENUM either way.
3364 * valarith.c: Use COERCE_NUMBER instead od COEREC_ARRAY.
3365 Add COERCE_REF before COERCE_ENUM.
3366 * values.c (value_as_long): Simplify.
3368 * valops.c (value_array): Create internalvar if !c_style_arrays.
3370 * language.c (lang_bool_type): Add Fortran support.
3371 * eval.c (OP_BOOL): Use LA_BOOL_TYPE.
3373 Tue Jan 23 13:08:26 1996 Jeffrey A Law (law@cygnus.com)
3375 * symfile.c (auto_solib_add): Renamed from auto_solib_add_at_startup.
3376 All references changed.
3377 * breakpoint.c (bpstat_what): Add shlib_event to the class types.
3378 Update state table. Reformat so that it's still readable.
3379 When we hit the shlib_event breakpoint, set the calss of shlib_event.
3380 (breakpoint_1): Add "shlib events" as a breakpoint type.
3381 Print the shlib_event breakpoint like other breakpoints.
3382 (create_solib_event_breakpoint): New function.
3383 (breakpoint_re_set_one): Handle solib_event breakpoints.
3384 * breakpoint.h (enum bytype): Add bp_shlib_event breakpoint type.
3385 (enum bpstat_what_main_action): Add BPSTAT_WHAT_CHECK_SHLIBS
3387 (create_solib_event_breakpoint): Declare.
3388 * infrun.c (wait_for_inferior): Handle CHECK_SHLIBS bpstat.
3389 (normal_stop): Inform the user when the inferior stoped due
3390 to a shared library event.
3391 (_initialize_infrun): Add new set/show variable "stop-on-solib-events"
3392 to control whether or not gdb continues the inferior or stops it when
3393 a shared library event occurs.
3394 * minsyms.c (lookup_minimal_symbol_solib_trampoline): New function.
3395 * somsolib.c (TODO list): Update.
3396 (som_solib_create_inferior_hook): Arrange for gdb to be notified
3397 when significant shared library events occur.
3398 * hppa-tdep.c (find_unwind_entry): No longer static.
3400 Tue Jan 23 09:00:48 1996 Doug Evans <dje@charmed.cygnus.com>
3402 * printcmd.c (print_insn): Pass fprintf_unfiltered to
3403 INIT_DISASSEMBLE_INFO.
3404 start-sanitize-gdbtk
3405 * gdbtk.c (gdb_disassemble): Likewise.
3408 Mon Jan 22 16:59:40 1996 Stan Shebs <shebs@andros.cygnus.com>
3410 * remote.c (remotebreak): New GDB variable.
3411 (remote_break): New global.
3412 (remote_interrupt): Send a break instead of ^C if remote_break.
3413 * NEWS: Describe the new variable.
3415 Mon Jan 22 16:24:11 1996 Doug Evans <dje@charmed.cygnus.com>
3417 * sparc-tdep.c (_initialize_sparc_tdep): Always use print_insn_sparc.
3419 Fri Jan 19 07:19:38 1996 Fred Fish <fnf@cygnus.com>
3421 * hp300ux-nat.c (getpagesize): Remove unused function
3422 fetch_core_registers.
3423 (hp300ux_core_fns): Remove, is unused.
3424 (_initialize_core_hp300ux): Remove, is unused.
3425 (gdbcore.h): Remove #include, no longer needed.
3427 Fri Jan 19 00:59:53 1996 Jeffrey A Law (law@cygnus.com)
3429 * rs6000-nat.c (exec_one_dummy_insn): Rework to avoid
3430 ptrace bug in aix4.1.3 on the rs6000.
3432 Wed Jan 17 13:22:27 1996 Stan Shebs <shebs@andros.cygnus.com>
3434 * remote-hms.c (hms_ops): Add value for to_thread_alive.
3435 * remote-nindy.c (nindy_ops): Ditto.
3436 * remote-udi.c (udi_ops): Ditto.
3438 Tue Jan 16 18:00:35 1996 James G. Smith <jsmith@cygnus.co.uk>
3440 * remote-mips.c (pmon_opn, pmon_wait, pmon_makeb64, pmon_zeroset,
3441 pmon_checkset, pmon_make_fastrec, pmon_check_ack,
3442 pmon_load_fast): New functions. Support for the PMON monitor world.
3443 (common_open): New function to merge support for different monitors.
3444 (mips_open): Use common_open().
3445 (mips_send_command): New function.
3446 (mips_send_packet): Scan out-of-sequence packets.
3447 (mips_enter_debug, mips_exit_debug): New functions.
3448 (pmon_ops): New target definition structure.
3450 Tue Jan 16 11:22:58 1996 Stu Grossman (grossman@cygnus.com)
3452 * Makefile.in (CLIBS): Add LIBS to allow libraries to be
3453 specified on the make command line (via make LIBS=xxx).
3455 * configure.in (enable-gm): magic.o -> gmagic.o.
3458 start-sanitize-gdbtk
3459 Mon Jan 15 09:58:41 1996 Tom Tromey <tromey@creche.cygnus.com>
3461 * gdbtk.tcl (create_expr_window): Many changes to update GUI.
3462 (add_expr): Changes from create_expr_window.
3463 (create_command_window): Set focus.
3464 (delete_expr): Rewrote.
3465 (expr_update_button): New proc.
3466 (add_expr): Put bindings on FocusIn, FocusOut.
3467 Don't allow .file_popup to be torn off.
3470 Fri Jan 12 21:41:58 1996 Jeffrey A Law (law@cygnus.com)
3472 * symtab.c (find_pc_symtab): Don't lose if OBJF_REORDERED
3473 is set but there are no psymtabs.
3475 Fri Jan 12 15:56:12 1996 Steve Chamberlain <sac@slash.cygnus.com>
3477 * dsrec.c (load_srec): Remove unused variable.
3478 * monitor.c (monitor_expect): Don't expect a ^C to echo.
3479 * serial.c (serial_open): Add parallel interface.
3480 * sh3-rom.c (parallel, parallel_in_use): New.
3481 (sh3_load): If parallel_in_use, download though the
3483 (sh3_open): Open parallel port if specified.
3484 (sh3_close): New function.
3485 (_inititalize_sh3): Add sh3_close hook and documentation.
3486 * monitor.c (monitor_close): Export.
3487 * monitor.h (monitor_close): Add prototype.
3489 Fri Jan 12 13:11:42 1996 Stan Shebs <shebs@andros.cygnus.com>
3491 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
3492 * remote.c (remotetimeout): New GDB variable, use to set the
3493 remote timeout for reading.
3495 start-sanitize-gdbtk
3496 Fri Jan 12 09:36:17 1996 Tom Tromey <tromey@creche.cygnus.com>
3498 * gdbtk.tcl (gdbtk_tcl_query): Swap Yes and No buttons.
3499 (update_listing): Use lassign. Use "see" to scroll. Don't need
3500 screen_top, screen_bot, screen_height.
3501 (update_assembly): Use "see" to scroll.
3502 (textscrollproc): Removed.
3503 (create_file_win): Don't use textscrollproc.
3504 (asmscrollproc): Removed.
3505 (create_asm_window): Don't use asmscrollproc.
3506 (create_asm_win): Ditto.
3507 (screen_height, screen_top, screen_bot): Removed.
3508 (run_editor): New proc.
3509 (build_framework): Use it.
3510 (create_file_win, create_source_window): Don't use textscrollproc.
3511 (create_breakpoints_window): Set -xscrollcommand on canvas.
3512 (not_implemented_yet): Default button is 0.
3513 (delete_char): Don't use tk_textBackspace.
3514 (create_command_window): Allow Tk bindings to fire after deleting
3516 (create_command_window): Make Delete delete left, not right.
3519 Fri Jan 12 07:14:27 1996 Fred Fish <fnf@cygnus.com>
3521 * lynx-nat.c, irix4-nat.c, sparc-nat.c: Include gdbcore.h
3522 to get "struct core_fns" defined.
3523 * Makefile.in (lynx-nat.o, irix4-nat.o, sparc-nat.o):
3524 Are dependent upon gdbcore_h.
3526 Thu Jan 11 23:13:24 1996 Per Bothner <bothner@cygnus.com>
3528 * symfile.c (decrement_reading_symtab): New function.
3529 * symfile.c, symtab.h (currently_reading_symtab): New variable.
3530 * symfile.c (psymtab_to_symtab): Adjust currently_reading_symtab.
3531 * gdbtypes.c (check_typedef): Don't call lookup_symbol if
3532 currently_reading_symtab (since that could infinitely recurse).
3534 Thu Jan 11 17:21:25 1996 Per Bothner <bothner@kalessin.cygnus.com>
3536 * stabsread.c (read_struct_type): Trivial simplification.
3538 * stabsread.c (define-symbol): Use invisible references
3539 for TYPE_CODE_SET and TYPE_CODE_BITSTRING too.
3540 * valops.c (call_function_by_hand): Likewise.
3541 * eval.c (evaluate_subexp_standard): When known, use the formal
3542 parameter type as the expected type when evaluating arg expressions.
3543 * ch-lang.c (evaluate_subexp_chill): Likewise (for MULTI_SUBSCRIPT).
3545 start-sanitize-gdbtk
3546 Thu Jan 11 10:08:14 1996 Tom Tromey <tromey@creche.cygnus.com>
3548 * main.c (main): Disable window interface if --help or --version
3551 * gdbtk.tcl (FSBox): Don't use tk_listboxSingleSelect.
3553 Changes in sync with expect:
3554 * configure.in (ENABLE_GDBTK): Use CY_AC_PATH_TCL and
3556 * aclocal.m4: Replaced with version from expect.
3557 * configure: Regenerated.
3560 Wed Jan 10 16:08:49 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
3562 * configure.in, configure: Recognize rs6000-*-aix4*.
3563 * config/powerpc/xm-aix.h: Reduce to include "xm-aix4.h".
3564 * config/rs6000/aix4.mh (XM_FILE): Point to xm-aix4.h.
3565 * config/rs6000/xm-aix4.h: New file.
3566 * config/xm-aix4.h: New file.
3568 Wed Jan 10 11:25:37 1996 Fred Fish <fnf@cygnus.com>
3570 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
3571 * gdbserver/low-linux.c: New file.
3572 * remote.c (remote_read_bytes): Fix aborts on larger packets.
3574 * config/i386/linux.mh (GDBSERVER_DEPFILES, GDBSERVER_LIBS):
3576 * stabsread.c (define_symbol): If register value is too large,
3577 tell what it is and what max is.
3579 start-sanitize-gdbtk
3580 Wed Jan 10 09:07:22 1996 Tom Tromey <tromey@creche.cygnus.com>
3582 * gdbtk.tcl (gdbtk_tcl_fputs, gdbtk_tcl_fputs_error,
3583 gdbtk_tcl_flush): Use "see", not "yview".
3584 (gdbtk_tcl_query): Use questhead bitmap.
3585 various: Always wrap condition of 'if' in {...}.
3586 (add_breakpoint_frame): Set -value on radiobuttons.
3587 (lassign): New proc.
3588 (add_breakpoint_frame): Use lassign, not series of assignments.
3589 (decr): Made faster.
3590 (interactive_cmd): Use "see", not "yview".
3591 (not_implemented_yet): Use warning bitmap.
3592 (update_expr): Don't allow $expr to be evalled by Tcl.
3593 (create_expr_window): Don't use "focus".
3594 (delete_char, delete_line): Define globally.
3595 (delete_line, delete_char, create_command_window, update_autocmd,
3596 build_framework, create_asm_win, create_file_win): Use "see", not
3598 (create_copyright_window, center_window, bind_widget_after_class):
3600 (FSBox,create_command_window, create_autocmd_window): Binding
3602 (textscrollproc): Define globally.
3603 (build_framework): tk_menuBar no longer needed. Keys Prior, Next,
3604 Home, End, Up, and Down are all defined by Tk.
3605 (apply_filespec): Use error bitmap in dialog.
3606 (files_command): Don't use tk_listboxSingleSelect.
3607 (files_command): Don't use "uniq" to remove duplicates from a
3609 (update_assembly): Use lassign.
3610 (create_asm_win): Removed redundant bindings.
3611 (listing_window_button_1, file_popup_menu): Use tk_popup.
3612 (ButtonRelease-1 binding): Just remove tag from window; rest
3615 * gdbtk.c (gdbtk_query): Use Tcl_Merge to provide quoting.
3616 (call_wrapper): Use Tcl_Eval, not Tcl_VarEval.
3617 (gdbtk_call_command): Ditto.
3620 Tue Jan 9 09:33:53 1996 Jeffrey A Law (law@cygnus.com)
3622 * hpread.c (hpread_build_psymtabs): Finish Jan 4th
3623 enum namespace -> enum_namespace change.
3625 Tue Jan 9 04:44:47 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
3627 * ch-exp.c (parse_primval): In case ARRAY, add missing
3630 Mon Jan 8 13:29:34 1996 Stan Shebs <shebs@andros.cygnus.com>
3632 * remote-mips.c (mips_receive_header): Recognize \012 instead
3633 of \n, but write \n when program sends a \012.
3634 * ser-mac.c (mac_input_buffer): Increase size of buffer.
3636 Mon Jan 8 12:00:40 1996 Jeffrey A Law (law@cygnus.com)
3638 * infptrace.c (initialize_infptrace): Move function out of
3639 #ifdef conditional; put code within the function inside an
3642 * buildsym.c (end_symtab): Remove sort_pending and sort_linevec
3643 arguments. Sorting is now dependent on OBJF_REORDERED. All
3644 callers/references changed.
3645 * dbxread.c (read_ofile_symtab): Correctly determine value for
3646 last_source_start_addr for reordered executables.
3647 (process_one_symbol): Handle N_FUN with no name as an end of
3649 * partial-stab.h (case N_FN, N_TEXT): Don't assume CUR_SYMBOL_VALUE
3650 is the high text address for a psymtab.
3651 (case N_SO): Likewise.
3652 (case N_FUN): Handle N_FUN with no name as an end of function
3654 * minsyms.c (lookup_minimal_symbol_by_pc): Examine all symbols
3655 at the same address rather than a random subset of them.
3656 * coffread.c (coff_symfile_init): Set OBJF_REORDERED.
3657 * elfread.c (elf_symfile_init): Similarly.
3658 * somread.c (som_symfile_init): Similarly.
3659 * xcoffread.c (xcoff_symfile_init): Similarly.
3661 Fri Jan 5 17:46:01 1996 Stu Grossman (grossman@cygnus.com)
3663 * stack.c (print_stack_frame print_frame_info) symmisc.c
3664 (dump_symtab): Change RETURN_MASK_ERROR to RETURN_MASK_ALL so
3665 that catch_errors doesn't get blindsided by QUIT and lose the
3666 cleanup chain. This fixes a problem where ^C while in a
3667 user-defined command sometimes leaves instream NULL and causes a
3668 segfault in command_loop.
3670 Fri Jan 5 13:59:16 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
3672 * configure.in, configure: Add `-ldl -lw' for Solaris linking.
3674 Fri Jan 5 12:02:00 1996 Steve Chamberlain <sac@slash.cygnus.com>
3676 * config/sh/sh.mt, config/powerpc/*.mt, config/pa/hppapro.mt,
3677 config/m68k/monitor.mt, config/h8500/h8500.mt, config/h8300/h8300.mt:
3678 srec.o renamed to dsrec.o.
3680 Thu Jan 4 16:04:54 1996 Stu Grossman (grossman@cygnus.com)
3682 * breakpoint.c (remove_breakpoint): Change error to warning so
3683 that hardware watchpoint removal problems won't leave breakpoint
3684 traps in the target.
3685 start-sanitize-gdbtk
3686 * configure configure.in: Make --enable-gdbtk be the default.
3688 * remote-e7000.c (e7000_insert_breakpoint,
3689 e7000_remove_breakpoint): Use e7000 based breakpoints, not memory
3691 * (e7000_wait): Adjust PC back by two when we see a breakpoint to
3692 compensate for e7000 maladjustment.
3693 * sparcl-tdep.c (sparclite_check_watch_resources): Fix logic bug
3694 which prevented hardware watchpoints from working.
3696 Thu Jan 4 10:44:17 1996 Fred Fish <fnf@cygnus.com>
3698 * infptrace.c (udot_info): New function.
3699 (PT_*): Define each individually if that one is not defined.
3700 * rs6000-nat.c (kernel_u_size): New function
3701 Include <sys/user.h> for "struct user"
3702 * alpha-nat.c (kernel_u_size): New function.
3703 Include <sys/user.h> for "struct user"
3704 * sparc-nat.c (kernel_u_size): New function.
3705 Include <sys/user.h> for "struct user"
3706 * i386b-nat.c (kernel_u_size): New function.
3707 * i386v-nat.c (kernel_u_size): New function.
3708 * config/i386/nm-fbsd.h (KERNEL_U_SIZE): Define.
3709 (kernel_u_size): Declare.
3710 * config/i386/nm-linux.h (KERNEL_U_SIZE): Define.
3711 (kernel_u_size): Declare.
3712 * config/sparc/nm-sun4os4.h (KERNEL_U_SIZE): Define.
3713 (kernel_u_size): Declare.
3714 * config/alpha/nm-osf2.h (KERNEL_U_SIZE): Define.
3715 (kernel_u_size): Declare.
3716 * config/rs6000/nm-rs6000.h (KERNEL_U_SIZE): Define.
3717 (kernel_u_size): Declare.
3719 Thu Jan 4 11:00:01 1996 steve chamberlain <sac@slash.cygnus.com>
3721 * mdebugread.c (mylookup_symbol): enum namespace becomes
3722 enum_namespace type.
3723 * symfile.c (add_psymbol_to_list)
3724 (add_psymbol_addr_to_list): Ditto.
3725 * symtab.c (lookup_partial_symbol): Ditto.
3726 (lookup_symbol): Ditto.
3727 (lookup_block_symbol): Ditto.
3728 * win32-nat.c (handle_load_dll): Use incoming dll base.
3729 (child_wait): Catch DLL load errors.
3730 (create_child_inferior): Translated between paths correctly.
3732 Wed Jan 3 23:13:53 1996 Fred Fish <fnf@cygnus.com>
3734 * i386v4-nat.c (supply_gregset, fill_gregset): Subtract NUM_FREGS
3735 from NUM_REGS to get number of general registers that we care about.
3736 * config/i386/tm-i386.h (REGISTER_BYTES): Define in terms
3737 of number of general regs and number of floating point regs.
3739 Wed Jan 3 19:49:54 1996 steve chamberlain <sac@slash.cygnus.com>
3741 * config/i386/tm-win32.h (IN_SOLIB_CALL_TRAMPOLINE): New.
3742 (SKIP_TRAMPOLINE_CODE): New.
3743 * config/i386/xm-win32.h (CANT_FORK): Deleted.
3744 (SLASH*) Changed to use unix style slash.
3745 * symtab.h (namespace enum): becomes typedef to avoid namespace
3747 * infcmd.c (path_command): Use empty string if PATH name not set.
3748 * i386-tdep.c (skip_trampoline_code): New function.
3749 * srec.c: Renamed dsrec.c to avoid filename collision.
3750 * Makefile.in: Cope with renaming.
3752 Wed Jan 3 13:09:04 1996 Fred Fish <fnf@cygnus.com>
3754 * symmisc.c (print_objfile_statistics): Print memory use statistics
3755 for objfile psymbol, symbol, and type obstacks.
3757 Tue Jan 2 13:41:14 1996 Stan Shebs <shebs@andros.cygnus.com>
3759 * config/mips/nm-irix5.h: Restore.
3760 (TARGET_HAS_HARDWARE_WATCHPOINTS, etc): Define as for Irix 4;
3761 from Lee Iverson <leei@ai.sri.com>.
3762 * config/mips/irix5.mh (NAT_FILE): Use nm-irix5.h.
3763 * config/mips/irix[345].mh (MUNCH_DEFINE): Remove.
3765 For older changes see ChangeLog-95
3771 version-control: never