3 * symfile.c (symfile_bfd_open): Change ifdef from __WIN32__ to
6 * somread.c: Rearrange order of includes to fix warnings under
7 hpux-10.10. Also don't include sys/file.h.
11 * dbxread.c: Don't include param.h or sys/file.h.
12 * (dbx_symfile_read): Determine symfile_relocatable from bfd
13 flags instead of file extension. Also clean up a little bit.
17 * dwarf2read.c dwarfread.c exec.c infcmd.c infrun.c main.c
18 mdebugread.c os9kread.c source.c top.c utils.c: Don't
19 include param.h or sys/file.h (or unistd.h in some cases).
20 * defs.h exec.c inflow.c remote-array.c remote-e7000.c
21 sparcl-tdep.c terminal.h utils.c: Replace all occurances of
22 __WIN32__, WINGDB, WIN32, etc... with _WIN32.
23 * main.c: Remove #ifndef WINGDB around option processing. Fix
24 bug with passing argc==0 and argv==NULL to getopt.
25 * (main) Remove calls to access() before source_command. Let
26 soure_command handle access errors.
27 * maint.c (maintenance_dump_me): #ifdef out for _WIN32.
28 * symtab.c (operator_chars): Make this global for wingdb.
29 * top.c (disconnect): #ifdef out for _WIN32.
30 * (source_command): If got an error and from_tty, then call print
31 error, else just return quietly.
32 * utils.c (fatal_dump_core): Can't kill ourselves under windows.
34 * (pollquit notice_quit): #ifdef out stuff that doesn't exist
39 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Tweak for
40 structures > 4 bytes in size.
42 * valops.c (call_function_by_hand): Handle aligning stacks that
44 * config/pa/tm-hppa.h (USE_STRUCT_CONVENTION): Define.
45 (STACK_ALIGN): Define.
46 * hppa-tdep.c (hppa_alignof): Don't demand a minumim two byte
47 alignment on structs/unions.
51 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Define to "int *",
52 which is the documented type under at least AIX 3 and AIX 4.
56 * config/alpha/alpha-osf3.mh (XM_FILE): Change from xm-alpha.h to
58 (MMALLOC_CFLAGS): Define NO_MMCHECK to not install consistency
64 * gdbtk.c (mainWindow): Deleted.
65 (cleanup_init): Don't destroy main window.
66 (gdbtk_init): Main window now created by Tk_Init.
68 * configure.in: Most X checks now handled automatically by Tk.
69 Use new macros to find Tcl/Tk.
70 * aclocal.m4: New version for new Tcl/Tk; from Don Libes.
71 * config.in, configure: Regenerated.
73 * Makefile.in (TCL, TCL_CFLAGS, TK, TK_CFLAGS, X11_CFLAGS,
74 X11_LDFLAGS, X11_LIBS): Changed for new Tcl and Tk.
79 * config/mips/tm-mips.h (TM_MIPS_H): Enclose file contents in
80 this, define when contents are included.
81 (mips_read_processor_type): Add prototype.
82 * config/mips/xm-mips.h: Remove strdup decl, now in gdb_string.h
83 * mdebugread.c (ecoff_relocate_efi): Add prototype.
84 (fixup_sigtramp): Only needed when TM_MIPS_H is defined.
89 * Makefile.in (gdbtk.tcl): put in $(datadir), not $(libdir).
94 * rs6000-nat.c (add_vmap): Return 0 to caller rather than random value.
95 (vmap_ldinfo): Ensure got_exec_file is not used uninitialized.
96 (fetch_core_registers): Add prototype.
98 (objfile_symbol_add): Ditto.
100 (vmap_ldinfo): Ditto.
105 * stabsread.c (get_substring): Declare second arg as int.
107 * remote-es.c: Include gdb_string.h after defs.h.
111 * rs6000-tdep.c (push_arguments): Remove unused variable "pc".
112 (branch_dest): Remove unused variable "offset".
113 (pop_dummy_frame): Add prototype and make static.
114 (push_arguments): Guard against using len uninitialized.
115 (push_arguments): Guard against using arg uninitialized.
116 (frame_saved_pc): Remove unused variable "frameless".
117 (free_loadinfo): Ifdef out unused function.
119 * xcoffread.c (compare_lte): Change prototype and function to
120 be correct type for passing to qsort.
121 (add_stab_to_list): Ifdef out unused function and prototype.
122 (compare_lte): Add prototype
123 (arrange_linetable): Ditto.
124 (record_include_begin): Ditto.
125 (record_include_end): Ditto.
126 (process_linenos): Ditto.
127 (xcoff_next_symbol_text): Ditto.
128 (scan_xcoff_symtab): Ditto.
129 (xcoff_initial_scan): Ditto.
131 * mips-tdep.c (mips_read_processor_type): Add parens around
132 bitwise-and operands in comparison; previous expression always
133 evaluated to 0 because of equality comparison of two constants.
135 * rs6000-tdep.c (skip_prologue): Add missing parens around
136 operands of logical-or so that first operand does not bind
137 to previous logical-and.
139 * configure.in: Expand "long long" test to include code that triggers
140 known problem on HPUX with native compiler.
141 (configure): Regenerated.
145 * somsolib.c (som_solib_create_inferior_hook): Don't
146 warn if __d_pid can't be found.
150 * config/mips/tm-mips.h (struct frame_info): Forward decl.
151 (struct type): Ditto.
152 (struct value): Ditto.
154 * config/mips/tm-mips.h (sigtramp_address): Move extern decl
155 from mips-tdep.c to here.
156 (sigtramp_end): Ditto.
157 (fixup_sigtramp): Ditto.
159 * config/mips/tm-mips.h (init_extra_frame_info): Add prototype.
160 (mips_frame_chain): Ditto.
161 (mips_step_skips_delay): Ditto.
162 (mips_frame_saved_pc): Ditto.
163 (mips_find_saved_regs): Ditto.
164 (mips_frame_num_args): Ditto.
165 (mips_pop_frame): Ditto.
166 (mips_extract_return_value): Ditto.
167 (mips_store_return_value): Ditto.
168 (mips_push_dummy_frame): Ditto.
169 (mips_push_arguments): Ditto.
170 (mips_do_registers_info): Ditto.
171 (ecoff_relocate_efi): Ditto.
172 (ecoff_relocate_efi): Ditto.
173 * irix4-nat.c (fetch_core_registers): Add prototype.
174 * mips-tdep.c (read_next_frame_reg): Add prototype
175 (heuristic_proc_start): Ditto.
176 (heuristic_proc_desc): Ditto.
177 (mips_print_register): Ditto.
178 * config/mips/nm-irix5.h (procfs_set_watchpoint): Add prototype.
179 (procfs_stopped_by_watchpoint): Ditto.
180 * config/mips/nm-irix4.h (procfs_set_watchpoint): Add prototype.
181 (procfs_stopped_by_watchpoint): Ditto.
182 * config/alpha/tm-alpha.h (ecoff_relocate_efi): Add prototype.
183 (struct symbol): Add forward decl for prototype.
185 * breakpoint.c (internal_breakpoint_number): Only needed if
186 GET_LONGJMP_TARGET or SOLIB_ADD is defined.
188 * objfiles.c (ecoff_relocate_efi): Remove prototype.
192 * configure.in: Add test for "long long" support.
193 * configure: Regenerate with autoconf.
194 * acconfig.h: Add CC_HAS_LONG_LONG
195 * config.in: Regenerate with autoheader.
196 * config/mips/tm-mips64.h (FORCE_LONG_LONG): Remove
197 * config/sparc/tm-sp64.h (CC_HAS_LONG_LONG): Remove.
198 * config/mips/tm-vr4300el.h (CC_HAS_LONG_LONG): Remove.
199 * config/mips/tm-vr4300.h (CC_HAS_LONG_LONG): Remove.
200 * config/mips/xm-irix5.h (CC_HAS_LONG_LONG): Remove
201 (PRINTF_HAS_LONG_LONG): Remove.
202 (FORCE_LONG_LONG): Remove.
203 * config/powerpc/xm-aix.h (UINT_MAX): Undef and use gdb's version.
204 * config/convex/xm-convex.h (CC_HAS_LONG_LONG): Remove
205 (PRINTF_HAS_LONG_LONG): Remove.
206 * config/xm-nbsd.h (CC_HAS_LONG_LONG): Remove.
207 (PRINTF_HAS_LONG_LONG): Remove.
208 * config/pa/tm-hppa.h (GET_FIELD): Put parens around
209 subtraction inside shift. Put parens around subtraction
210 in operand of bitwise and.
211 (struct frame_info): Forward declare
213 (frame_saved_regs): Ditto.
214 (struct value): Ditto.
215 (struct type): Ditto.
216 (struct inferior_status): Ditto.
217 (init_extra_frame_info): Add prototype.
218 (skip_prologue): Ditto.
219 (frameless_function_invocation): Ditto.
220 (frame_chain): Ditto.
221 (frame_chain_valid): Ditto.
222 (saved_pc_after_call): Ditto.
223 (hppa_fix_call_dummy): Ditto.
224 (hppa_push_arguments): Ditto.
225 (pa_do_registers_info): Ditto.
226 (in_solib_call_trampoline): Ditto.
227 (in_solib_return_trampoline): Ditto.
228 (push_dummy_frame): Ditto.
229 * convex-tdep.c (decout): Use print_longest rather than
231 * defs.h: Remove use of FORCE_LONG_LONG and __GNUC__ to set
233 (INT_MIN): Fix so it works correctly when assigned to a long long.
234 * valprint.c (longest_to_int): Rewrite to remove dependence
235 on INT_MIN and INT_MAX.
236 (print_longest): Rewrite the code that falls back to synthesized
237 hex output when LONGEST value is not representable as in a long and
238 printf doesn't support printing long longs.
239 * ch-valprint.c (chill_val_print): Cast 2nd arg of
240 chill_print_type_scalar to LONGEST.
241 chill_print_type_scalar): Make static and add prototype.
242 * hppa-tdep.c (get_field): Ifdef out unused function.
245 (extract_5_store): Ditto.
249 (extract_14): Convert to static and add prototype.
254 (extract_5r_store): Ditto.
255 (extract_5R_store): Ditto.
256 (extract_5_load): Ditto.
257 (find_proc_framesize): Ditto.
258 (find_dummy_frame_regs): Ditto.
259 (sign_extend): Ditto.
260 (find_unwind_entry): Add prototype.
261 (find_return_regnum): Ditto.
262 (unwind_command): Ditto.
263 (find_dummy_frame_regs): Add parens around subtraction in operand
265 (skip_prologue): Add parens around operands of logical-and inside
266 operand of logical-or.
267 (sign_extend): Add parens around operands of subtraction inside
269 (low_sign_extend): Ditto.
270 * top.c (filename_completer): Convert old style decl of
271 filename_completion_function into prototype.
272 * f-lang.c (patch_common_entries): Ifdef out unused function.
273 * stabsread.c (read_cfront_baseclasses): Remove unused local
274 variable "msg_noterm".
275 (resolve_cfront_continuation): Remove unused local variable "fip".
276 (read_type): Remove unused variable xtypenums.
277 (read_cfront_static_fields): Remove unused variable "i".
278 (read_cfront_static_fields): Remove unused variable "nfields".
279 (read_cfront_member_functions): Add missing comment terminator.
280 (read_cfront_static_fields): Return 1 rather than random value.
281 (read_cfront_baseclasses): Ditto.
282 (read_cfront_baseclasses): Ditto.
283 (read_cfront_baseclasses): Ditto.
284 * somsolib.c (som_solib_create_inferior_hook): Remove unused
286 (som_solib_create_inferior_hook): Remove unused variable
288 (language.h): Add for needed prototypes.
289 (som_solib_sharedlibrary_command): Add prototype.
290 * hpread.c: (hpread_read_array_type): Add prototype.
291 * somread.c (hpread_build_pysmtabs): Add prototype.
292 (hpread_symfile_finish): Ditto.
293 (hpread_symfile_init): Ditto.
294 * hppah-nat.c (fetch_register): Convert old style decl
296 (gdbcore.h): Include for needed prototypes.
297 (fetch_register): Remove unused variable "mess".
298 * remote-pa.c (get_offsets): Ifdef out unused function.
299 (remote_start_remote): Remove unused variable "timeout".
300 (boot_board): Add prototype.
301 (reaad_frame): Add prototype.
302 (getpkt): Remove unused variable "bp".
303 (remote_kill): Add prototype.
304 (remote_mourn): Add prototype.
305 (remote_insert_breakpoint): Add prototype.
306 (remote_remove_breakpoint): Add prototype.
307 * valops.c (value_push): Only use if PUSH_ARGUMENTS is not defined.
308 * infcmd.c (do_registers_info): Only need prototype if
309 DO_REGISTERS_INFO is not defined.
310 (breakpoint_auto_delete_contents): Only need if
311 CALL_DUMMY_BREAKPOINT_OFFSET is defined.
315 * xcoffread.c (xcoff_end_psymtab): Add textlow_not_set parameter.
316 (END_PSYMTAB): Ditto.
317 (scan_xcoff_symtab): Call xcoff_end_psymtab with textlow_not_set.
321 * printcmd.c (_initialize_printcmd): Initialize
322 tm_print_insn_info.flavour.
324 * gdbtk.c (gdb_disassemble): Initialize di.flavour.
329 * Makefile.in (scm-valprint.o): Depends upon gdbcore_h.
332 (i386ly-tdep.o): Ditto.
333 (i960-tdep.o): Ditto.
334 (m68k-tdep.o): Ditto.
335 (nindy-tdep.o): Ditto.
339 (m68k-tdep.o): Depends upon value_h and gdb_string.h
340 (m2-valprint.o): Depends upon m2-lang.h.
341 (sparc-tdep.o): Depends upon gdb_string.h
342 (valprint.o): Depends upon valprint.h
344 * remote-e7000.c (notice_quit): Remove prototype.
345 * top.c (initialize_targets): Remove prototype, now in target.h.
346 * stabsread.c (resolve_cfront_continuation): Remove prototype.
347 * dbxread.c (resolve_cfront_continuation): Remove prototype.
348 * symfile.h (set_demangling_style): Remove prototype.
349 * config/tm-sysv4.h (in_plt_section): Remove prototype, in objfiles.h.
350 * config/sparc/tm-sparc.h (single_step): Remove extern decl, now in
352 * config/arc/tm-arc.h (one_stepped, single_step): Remove extern decls,
354 * ser-unix.c (hardwire_restore): Remove obsolete prototype.
355 * sparc-tdep.c (single_step): Remove forward decl of isbranch.
356 * scm-lang.c (find_function_in_inferior): Remove prototype.
357 (value_allocate_space_in_inferior): Ditto.
358 * infrun.c (write_pc_pid): Remove prototype, now in inferior.h.
359 * defs.h (strchr): Remove declarations, they are declared in
365 * f-valprint.c (f77_print_array_1): Remove extra arg that was being
366 passed to f77_print_array_1.
367 * gdbtypes.c (add_name): Remove unused variables lenstrlen and lenstr.
368 * scm-exp.c (scm_istr2int): Remove unused variable "j".
369 (scm_parse): Remove unused variable "str".
370 * hp300ux-nat.c (store_inferior_register): Remove unused variable
372 (store_inferior_registers): Remove unnecessary decl "registers".
373 * m68k-tdep.c (m68k_pop_frame): Remove unused variable "fi".
374 * scm-lang.c (scm_get_field): Remove unused variable "val".
375 (scm_lookup_name): Remove unused variable "symval".
376 * objfiles.c (map_to_file): Remove unused local variable "tempfd".
377 * procfs.c (do_attach, do_detach): Remove unused variable "result".
378 (last_resume_pid): Remove unused static variable.
379 * alpha-tdep.c (alpha_linux_sigtramp_offset): Remove unused variable
381 * objfiles.c (map_to_address): Remove unused function.
382 * f-valprint.c (print_max): Remove extraneous extern decl,
384 (calc_f77_array_dims): Remove extraneous prototype, in f-lang.h.
385 * ch-exp.c (write_lower_upper_value): Remove prototype for
388 * gdbtypes.c (cfront_mangle_name): #ifdef out unused function.
389 * ch-exp.c (parse_mode_call): Ditto.
390 * f-valprint.c (there_is_a_visible_common_named): Ditto.
391 * f-lang.c (clear_function_list): Ditto.
392 (get_bf_for_fcn): Ditto.
393 (clear_bf_list): Ditto.
394 (add_common_block): Ditto.
395 (patch_all_commons_by_name): Ditto.
396 (find_first_common_named): Ditto.
397 (add_common_entry): Ditto.
398 (allocate_saved_function_node): Ditto.
399 (allocate_saved_bf_node): Ditto.
400 (allocate_common_entry_node): Ditto.
401 (allocate_saved_f77_common_node): Ditto.
403 * arm-tdep.c (gdbcore.h): Include for necessary prototypes.
404 * dcache.c (gdbcore.h): Ditto.
405 * i386ly-tdep.c (gdbcore.h): Ditto.
406 * i960-tdep.c (gdbcore.h): Ditto.
407 * m2-valprint.c (m2-lang.h): Ditto.
408 * m68k-tdep.c (gdbcore.h): Ditto.
410 (gdb_string.h): Ditto.
411 * nindy-tdep.c (gdbcore.h): Ditto.
412 * scm-lang.c (gdbcore.h): Ditto.
413 * scm-valprint.c (gdbcore.h): Ditto.
414 * w65-tdep.c (gdbcore.h): Ditto.
415 * z8k-tdep.c (gdbcore.h): Ditto.
416 * sparc-tdep.c (gdb_string.h): Include.
417 * valprint.c (valprint.h): Include.
419 * config/xm-lynx.h: Remove part of comment about INT_MIN
420 redefined warnings from defs.h, since INT_MIN define in
421 defs.h is now protected by #ifndef INT_MIN.
422 * config/i386/xm-i386bsd.h: Ditto.
423 * config/m68k/xm-hp300bsd.h: Ditto.
424 * config/m68k/xm-news.h: Ditto.
426 * config/pa/xm-hppah.h (INT_MIN): Remove bogus INT_MIN
427 definition as 0x80000000. The macro in defs.h is better.
428 * config/i386/xm-i386m3.h (INT_MIN): Ditto.
429 * config/i386/xm-i386mach.h (INT_MIN): Ditto.
430 * config/ns32k/xm-ns32km3.h (INT_MIN): Ditto.
431 * config/pa/xm-hppab.h: Ditto.
433 * core-aout.c (fetch_core_registers): Add prototype.
434 * hp300ux-nat.c (fetch_inferior_register): Ditto.
435 (store_inferior_register_1): Ditto.
436 (store_inferior_register): Ditto.
437 * config/m68k/tm-m68k.h (find_saved_regs): Ditto.
438 *scm-valprint.c (c_val_print): Ditto.
439 * procfs.c (add_fd): Ditto.
442 (sigcodename): Ditto.
443 (sigcodedesc): Ditto.
444 (procfs_kill_inferior): Ditto.
445 (procfs_xfer_memory): Ditto.
446 (procfs_store_registers): Ditto.
447 (create_procinfo): Ditto.
448 (procfs_init_inferior): Ditto.
449 (proc_set_exec_trap): Ditto.
450 (procfs_attach): Ditto.
451 (procfs_detach): Ditto.
452 (procfs_prepare_to_store): Ditto.
453 (procfs_files_info): Ditto.
454 (procfs_open): Ditto.
455 (procfs_wait): Ditto.
456 (procfs_fetch_registers): Ditto.
457 (procfs_mourn_inferior): Ditto.
458 (procfs_can_run): Ditto.
459 (procfs_thread_alive): Ditto.
460 (procfs_stop): Ditto.
461 * alpha-nat.c (fetch_core_registers): Ditto.
462 * config/alpha/tm-alpha.h (alpha_osf_skip_sigtramp_frame): Ditto.
463 * objfiles.c (ecoff_relocate_efi): Ditto.
464 * inflow.c (pass_signal): Ditto.
465 (handle_sigio): Ditto.
466 * annotate.c (breakpoint_changed): Ditto.
467 * callback.c (wrap): Ditto.
470 * utils.c (malloc_botch): Ditto.
471 (fputs_maybe_filtered): Ditto.
472 (vfprintf_maybe_filtered): Ditto.
473 * defs.h (notice_quit): Ditto.
474 * defs.h (xmalloc, xrealloc): Ditto.
475 * top.c (stop_sig): Ditto.
476 (init_signals): Ditto.
477 (user_defined_command): Ditto.
478 (source_cleanup_lines): Ditto.
479 (dont_repeat_command): Ditto.
480 (serial_log_command): Ditto.
482 * target.h (initialize_targets): Ditto.
483 * os9kread.c (read_minimal_symbols): Ditto.
484 * mdebugread.c (mdebug_psymtab_to_symtab): Ditto.
486 (push_parse_stack): Ditto.
487 (pop_parse_stack): Ditto.
488 (is_pending_symbol): Ditto.
489 (add_pending): Ditto.
490 * serial.c (serial_logchar): Ditto.
491 (serial_interface_lookup): Ditto.
492 * serial.h (serial_log_command): Ditto.
493 * f-valprint.c (info_common_command): Ditto.
494 * gdbtypes.h (print_type_scalar): Ditto.
495 * scm-valprint.c (scm_scmlist_print): Ditto.
497 * scm-lang.c (scm_printstr): Ditto.
499 (evaluate_subexp_scm): Ditto.
500 * scm-exp.c (scm_read_token): Ditto.
501 (scm_skip_ws): Ditto.
502 (scm_lreadparen): Ditto.
503 * m2-lang.c (emit_char): Ditto.
504 (m2_printchar): Ditto.
505 (m2_printstr): Ditto.
506 (m2_create_fundamental_type): Ditto.
507 * f-lang.c (emit_char): Ditto.
508 (f_printchar): Ditto.
510 (f_create_fundamental_type): Ditto.
511 * ch-lang.c (chill_printchar): Ditto.
512 (chill_printstr): Ditto.
513 (chill_create_fundamental_type): Ditto.
514 (value_chill_length): Ditto.
515 (value_chill_card): Ditto.
516 (value_chill_max_min): Ditto.
517 (evaluate_subexp_chill): Ditto.
518 * ch-exp.c (PEEK_TOKEN): Ditto.
519 (peek_token_): Ditto.
520 (forward_token_): Ditto.
521 (parse_case_label): Ditto.
522 (parse_opt_untyped_expr): Ditto.
523 (parse_unary_call): Ditto.
525 (parse_named_record_element): Ditto.
526 (parse_tuple_element): Ditto.
527 (parse_opt_element_list): Ditto.
528 (parse_tuple): Ditto.
529 (parse_primval): Ditto.
530 (parse_operand6): Ditto.
531 (parse_operand5): Ditto.
532 (parse_operand4): Ditto.
533 (parse_operand3): Ditto.
534 (parse_operand2): Ditto.
535 (parse_operand1): Ditto.
536 (parse_operand0): Ditto.
538 (parse_then_alternative): Ditto.
539 (parse_else_alternative): Ditto.
540 (parse_if_expression): Ditto.
541 (parse_untyped_expr): Ditto.
542 (growbuf_by_size): Ditto.
543 (match_simple_name_string): Ditto.
544 (decode_integer_value): Ditto.
545 (decode_integer_literal): Ditto.
546 (match_float_literal): Ditto.
547 (match_float_literal): Ditto.
548 (match_string_literal): Ditto.
549 (match_character_literal): Ditto.
550 (match_integer_literal): Ditto.
551 (match_bitstring_literal): Ditto.
552 (write_lower_upper_value): Ditto.
553 * ch-lang.h (type_lower_upper): Ditto.
554 * c-lang.c (emit_char): Ditto.
555 * dwarfread.c (free_utypes): Ditto.
556 * stabsread.h (resolve_cfront_continuation): Ditto.
557 * stabsread.c (get_substring): Ditto.
558 (read_one_struct_field): Ditto.
559 * stabsread.h (process_later): Ditto.
560 * demangle.c (set_demangling_command): Ditto.
561 * defs.h (set_demangling_style): Ditto.
562 * maint.c (maintenance_info_command): Ditto.
563 (print_section_table): Ditto.
564 (maintenance_info_sections): Ditto.
565 (maintenance_print_command): Ditto.
566 * symtab.h (maintenance_print_statistics): Ditto.
567 * objfiles.h (in_plt_section): Ditto.
568 * objfiles.c (add_to_objfile_sections): Ditto.
569 * bcache.c (hash): Ditto.
570 (lookup_cache): Ditto.
571 * exec.c (bfdsec_to_vmap): Ditto.
573 * f-exp.y (growbuf_by_size, match_string_literal): Ditto.
574 * language.c (unk_lang_printchar): Ditto.
575 (unk_lang_printstr): Ditto.
576 (unk_lang_create_fundamental_type): Ditto.
577 (unk_lang_print_type): Ditto.
578 (unk_lang_val_print): Ditto.
579 (unk_lang_value_print): Ditto.
580 * target.c (update_current_target): Ditto.
581 (debug_to_open): Ditto.
582 (debug_to_close): Ditto.
583 (debug_to_attach): Ditto.
584 (debug_to_detach): Ditto.
585 (debug_to_resume): Ditto.
586 (debug_to_wait): Ditto.
587 (debug_to_fetch_registers): Ditto.
588 (debug_to_store_registers): Ditto.
589 (debug_to_prepare_to_store): Ditto.
590 (debug_to_xfer_memory): Ditto.
591 (debug_to_files_info): Ditto.
592 (debug_to_insert_breakpoint): Ditto.
593 (debug_to_remove_breakpoint): Ditto.
594 (debug_to_terminal_init): Ditto.
595 (debug_to_terminal_inferior): Ditto.
596 (debug_to_terminal_ours_for_output): Ditto.
597 (debug_to_terminal_ours): Ditto.
598 (debug_to_terminal_info): Ditto.
599 (debug_to_kill): Ditto.
600 (debug_to_load): Ditto.
601 (debug_to_lookup_symbol): Ditto.
602 (debug_to_create_inferior): Ditto.
603 (debug_to_mourn_inferior): Ditto.
604 (debug_to_can_run): Ditto.
605 (debug_to_notice_signals): Ditto.
606 (debug_to_thread_alive): Ditto.
607 (debug_to_stop): Ditto.
609 * gdbtk.c (null_routine): Ditto.
610 (gdbtk_flush): Ditto.
611 (gdbtk_fputs): Ditto.
612 (gdbtk_query): Ditto.
613 (gdbtk_readline): Ditto.
614 (gdbtk_readline_end): Ditto.
615 (gdb_get_breakpoint_list): Ditto.
616 (gdb_get_breakpoint_info): Ditto.
617 (breakpoint_notify): Ditto.
618 (gdbtk_create_breakpoint): Ditto.
619 (gdbtk_delete_breakpoint): Ditto.
620 (gdbtk_modify_breakpoint): Ditto.
623 (gdb_sourcelines): Ditto.
624 (map_arg_registers): Ditto.
625 (get_register_name): Ditto.
626 (gdb_regnames): Ditto.
627 (get_register): Ditto.
628 (gdb_fetch_registers): Ditto.
629 (register_changed_p): Ditto.
630 (gdb_changed_register_list): Ditto.
632 (call_wrapper): Ditto.
633 (gdb_listfiles): Ditto.
635 (gdbtk_dis_asm_read_memory): Ditto.
636 (compare_lines): Ditto.
637 (gdb_disassemble): Ditto.
639 (cleanup_init): Ditto.
640 (gdbtk_interactive): Ditto.
643 (gdbtk_call_command): Ditto.
644 (tk_command_loop): Ditto.
647 * breakpoint.h (set_breakpoint_sal): Ditto.
648 * remote-utils.c (usage): Ditto.
649 * remote.c (set_thread): Ditto.
650 (remote_thread_alive): Ditto.
651 (get_offsets): Ditto.
653 (remote_insert_breakpoint): Ditto.
654 (remote_remove_breakpoint): Ditto.
655 * sparc-nat.c (fetch_core_registers): Ditto.
656 * corelow.c (add_to_thread_list): Ditto.
658 * inftarg.c (proc_wait): Ditto.
659 * infptrace.c (udot_info): Ditto.
660 (fetch_register): Ditto.
661 * ser-unix.c (hardwire_noflush_set_tty_state): Ditto.
662 (hardwire_print_tty_state): Ditto.
663 (hardwire_flush_output): Ditto.
664 (hardwire_flush_input): Ditto.
665 (hardwire_send_break): Ditto.
666 (hardwire_setstopbits): Ditto.
667 * ser-tcp.c (tcp_return_0): Ditto.
668 (tcp_noflush_set_tty_state): Ditto.
669 (tcp_print_tty_state): Ditto.
670 * solib.c (match_main): Ditto.
671 * gdbtypes.c (print_bit_vector): Ditto.
672 (print_arg_types): Ditto.
673 (dump_fn_fieldlists): Ditto.
674 (print_cplus_stuff): Ditto.
675 * symfile.h (entry_point_address): Ditto.
676 * symfile.c (decrement_reading_symtab): Ditto.
677 * valops.c (value_arg_coerce): Ditto.
678 * value.h (find_function_in_inferior): Ditto.
679 (value_allocate_space_in_inferior): Ditto.
680 * values.c (vb_match): Ditto.
681 * thread.c (info_thread_command): Ditto.
682 (restore_current_thread): Ditto.
683 (thread_apply_all_command): Ditto.
684 (thread_apply_command): Ditto.
685 * inferior.h (write_pc_pid): Ditto.
686 * infrun.c (delete_breakpoint_current_contents): Ditto.
687 * breakpoint.c (print_it_normal): Ditto.
688 (watchpoint_check): Ditto.
689 (print_it_done): Ditto.
690 (print_it_noop): Ditto.
691 (maintenance_info_breakpoints): Ditto.
692 (create_longjmp_breakpoint): Ditto.
693 (hbreak_command): Ditto.
694 (thbreak_command): Ditto.
695 (watch_commnd_1): Ditto.
696 (rwatch_command): Ditto.
697 (awatch_command): Ditto.
698 (do_enable_breakpoint): Ditto.
699 * ch-valprint.c (chill_val_print_array_elements): Ditto.
700 * eval.c (evaluate_subexp): Ditto.
702 (evaluate_struct_tuple): Ditto.
703 * eval.c (init_array_element): Ditto.
705 * alpha-tdep.c (push_sigtramp_desc): Add prototype and make static.
706 * breakpoint.c (hw_breakpoint_used_count): Ditto.
707 (hw_watchpoint_used_count): Ditto.
708 * findvar.c (write_register_gen): Ditto.
709 (read_register_pid): Ditto.
710 * symtab.c (cplusplus_hint): Ditto.
711 * infcmd.c (breakpoint_auto_delete_contents): Ditto.
712 * ch-valprint.c (chill_print_type_scalar): Ditto.
713 * gdbtypes.c (add_name): Ditto.
714 (add_mangled_type): Ditto.
715 (cfront_mangle_name): Ditto.
716 * sparc-tdep.c (isbranch): Ditto.
717 * inftarg.c (child_stop): Ditto.
718 * win32-nat.c (child_stop): Ditto.
719 * mac-nat.c (child_stop): Ditto.
720 * remote-utils.c (sr_com): Ditto.
721 * dbxread.c (process_now): Ditto.
722 * ch-exp.c (require): Ditto.
723 (check_token): Ditto.
725 (parse_mode_call): Ditto.
726 (parse_mode_or_normal_call): Ditto.
727 * scm-lang.c (scm_lookup_name): Ditto
728 * f-lang.c (allocate_saved_bf_node): Ditto.
729 (allocate_saved_function_node): Ditto.
730 (allocate_saved_f77_common_node): Ditto.
731 (allocate_common_entry_node): Ditto.
732 (add_common_block): Ditto.
733 (add_common_entry): Ditto.
734 (find_first_common_named): Ditto.
735 (patch_common_entries): Ditto.
736 (patch_all_commons_by_name): Ditto.
737 (clear_bf_list): Ditto.
738 (get_bf_for_fcn): Ditto.
739 (clear_function_list): Ditto.
740 * scm-exp.c (scm_istr2int): Ditto.
741 (scm_istring2number): Ditto.
742 * scm-valprint.c (scm_inferior_print): Ditto.
743 * f-typeprint.c (print_equivalent_f77_float_type): Ditto.
744 * f-valprint.c (f77_get_dynamic_length_of_aggregate): Ditto.
745 (f77_create_arrayprint_offset_tbl): Ditto.
746 (f77_print_array_1): Ditto.
747 (f77_print_array): Ditto.
748 (list_all_visible_commons): Ditto.
749 (there_is_a_visible_common_named): Ditto.
750 * mdebugread.c (ecoff_relocate_efi): Ditto.
751 * callback.c (os_close): Ditto.
752 (os_get_errno): Ditto.
757 (os_read_stdin): Ditto.
759 (os_write_stdout): Ditto.
764 (os_shutdown): Ditto.
766 (os_printf_filtered): Ditto.
768 * scm-lang.h (scm_parse): Change old style decl to prototype.
769 * config/alpha/tm-alphalinux.h (alpha_linux_sigtramp_offset): Ditto.
770 * top.c (init_proc): Ditto.
773 * f-lang.c (c_value_print): Ditto.
774 * ch-exp.c (parse_expression): Ditto.
775 (parse_primval): Ditto.
776 (parse_untyped_expr): Ditto.
777 (parse_opt_untyped_expr): Ditto.
779 * config/sparc/tm-sparc.h (sparc_init_extra_frame_info): Ditto.
780 (sparc_frame_saved_pc): Ditto.
781 (sparc_push_dummy_frame): Ditto.
782 (sparc_pop_frame): Ditto.
783 * defs.h (fclose): Ditto.
787 * arc-tdep.c (single_step): Change arg to type "enum target_signal".
788 * rs6000-tdep.c (single_step): Ditto.
789 * sparc-tdep.c (single_step): Ditto.
791 * breakpoint.c (cleanup_executing_breakpoints): Change unused arg type
792 to PTR which is what make_cleanup expects.
793 * utils.c (null_cleanup): Change arg type to PTR.
794 * defs.h (null_cleanup): Change prototype to match actual function.
795 * config/sparc/tm-sparc.h (struct frame_info): Move forward decl.
796 * ch-valprint.c (chill_val_print): Cast 2nd arg of
797 chill_print_type_scalar to LONGEST.
798 * infrun.c (wait_for_inferior): Have empty switch case for
799 BPSTAT_WHAT_CHECK_SHLIBS when SOLIB_ADD is not defined.
800 (stop_on_solib_events): Only needed if SOLIB_ADD is defined.
801 * infcmd.c (attach_command): Only need auto_solib_add if SOLIB_ADD
803 * symfile.c (generic_load): Scan long int using a long int spec,
805 * infptrace.c (udot_info): Only need local variables if KERNEL_U_SIZE
807 (fetch_register): Only need function if FETCH_INFERIOR_REGISTERS is
809 * inflow.c (handle_sigio): Only need prototype when the actual
810 function is compiled in.
811 * valprint.c (longest_to_int): Expand error message to be
812 separate messages for args larger than largest signed int
813 and args smaller than smallest signed int.
814 * valprint.c (print_longest): Fix problems with support for case
815 where compiler supports type "long long" but the runtime doesn't
816 support printing them with "%ll".
817 * scm-valprint.c (scm_scmlist_print, scm_scmval_print): Change
818 return types to void since we don't actually return anything
819 meaningful and callees ignore the values anyway.
820 * procfs.c (modify_inherit_on_fork_flag): Enclose pr_flags in PIOCSET
822 (modify_run_on_last_close_flag): Ditto.
823 (wait_fd): Enclose local variables "num_fds" and "i" LOSING_POLL
825 * alpha-tdep.c (push_sigtramp_desc): Return proc_desc rather than
827 * infrun.c (wait_for_inferior): Ensure random_signal is not used
829 * valops.c (call_function_by_hand): Ensure struct_addr is not used
831 * breakpoint.c (watch_command_1): Ensure prev_frame is not used
833 * utils.c (vfprintf_maybe_filtered): Change second arg from "char *"
836 * gdbtk.c (gdb_fetch_registers): Cast fourth arg to map_arg_registers
837 to proper pointer type, from int.
838 (gdbtk_query): Change first arg to "const char *" from "char *".
840 * infptrace.c (udot_info): Add two dummy args so that the type is
841 correct for passing to add_info.
842 * f-lang.c (saved_fcn): Move decl to head of file so it can be used
844 (saved_bf_symnum): Ditto.
845 (SAVED_FUNCTION): Ditto.
846 (SAVED_FUNCTION_PTR): Ditto.
848 (SAVED_BF_PTR): Ditto.
849 * ch-exp.c (parse_named_record_element): Build error message in
850 temporary buffer before passing it to expect, rather than passing
851 wrong number of args to expect.
852 * demangle.c (set_demangling_style): Call set_demangling_command with
853 correct number of arguments.
854 * inferior.h (terminal_init_inferior_with_pgrp): Change arg type to
855 int to match actual function.
856 (os_isatty): Call fdmap with right number of arguments, was missing
857 the host_callback* arg.
858 * target.c (cleanup_target): Prototype all functions casts.
859 * target.h (one_stepped, single_step): Declare here and convert
860 single_step to prototype.
861 * infrun.c (one_stepped, single_step): Don't declare externs
862 here, they have moved to target.h.
863 * eval.c (init_array_element): Declare previously undeclared
864 last two args as LONGEST.
865 * dcache.c (dcache_xfer_memory): Change xfunc decls to prototype form.
867 * gdbtk.c (register_changed_p): Remove unused local variable "buf".
872 * dsrec.c (load_srec): Protect ANSI style function parms with PARAMS.
876 * Makefile.in (os9kread.o): Remove dependency on partial-stab.h.
877 * dbxread.c (read_dbx_symtab end_psymtab), partial-stab.h: Don't
878 use partial_symtab->textlow==0 as a flag, as 0 is a legitimate
879 text address. Use a seperate flag (textlow_not_set) instead.
880 This makes stabs in ELF .o files work a lot better.
881 * mdebugread.c xcoffread.c: Define textlow_not_set for
883 * stabsread.h (end_psymtab): Add textlow_not_set arg to prototype.
888 * gdbtk.tcl (files_command): Reorder the binding tags for
889 the listbox widget to avoid referencing the listbox after
890 the containing widget has been destroyed by the action of
896 * dwarf2read.c (struct filenames): Change internal "struct file"
897 to "struct fileinfo" to avoid conflict with "struct file" in
898 <sys/file.h> on HPUX and Solaris.
903 * gdbtk.tcl (delete_expr): Unset corresponding element of
904 expr_update_list when destroying an expression.
905 (create_expr_window): Initialize expr_num, delete_expr_num,
906 and expr_update_list here when each new expression window
907 is created, rather than once at startup.
912 * dwarf2read.c: New file, DWARF 2 reader originally contributed by
913 Brent Benson, with additions by Gary Funck and Jerry Kreuscher.
914 * Makefile.in (COMMON_OBS): Add dwarf2read.o.
915 (SFILES): Add dwarf2read.c.
916 (dwarf2read.o): Add build rule.
917 * symfile.h (dwarf2_has_info, dwarf2_build_psymtabs): Declare
919 * elfread.c (elf_symfile_read): Call them.
920 (elf_symtab_read) [HARRIS_TARGET]: Skip some special symbols.
924 * symfile.c (symfile_bfd_open):
925 * exec.c (exec_file_command): for __GO32__ and __WIN32__ systems,
926 free the user from having to type the .exe extension.
930 * mon960-rom.c: Shorten the mon960_inits string to a single
931 carriage return; this prevents a hang on connecting immediately
932 after powerup, when MON960 is attempting autobaud detection.
936 * a29k-tdep.c (get_saved_register): Allow PC to be modified
937 when innermost frame is selected, but not in outer frames.
941 * command.c (do_setshow_command): Don't segfault when showing
942 var_string and var_string_noescape vars that are NULL.
946 * win32-nat.c (handle_load_dll): dos_path_to_unix_path renamed to
947 cygwin32_conv_to_posix_path.
948 (child_create_inferior): unix_path_to_dos_path renamed to
949 cygwin32_conv_to_win32_path. Rewrite code to translate PATH.
953 * defs.h printcmd.c: Create global disassemble_info structure
956 * gdbtk.c (gdb_disassemble): Setup di.mach from
957 tm_print_insn_info.mach, and set endian from TARGET_BYTE_ORDER.
959 * i386-tdep.c (set_assembly_language_command): set
960 tm_print_insn_info.mach to the appropriate value for 386 or 8086
962 * printcmd.c (print_insn): Move init of disassembler_info to
963 _initialize_printcmd. Set endian for disassembler here.
964 * sparc-tdep.c: Set tm_print_insn_info.mach as appropriate to
965 select sparc/sparclite.
966 * config/sparc/{tm-sparc.h tm-sparclite.h}: Get rid of
967 TM_PRINT_INSN. Set TM_PRINT_INSN_MACH to
968 bfd_mach_sparc/bfd_mach_sparc_sparclite.
972 * hpread.c (hpread_lookup_type): Use xmmalloc/xmrealloc rather
973 than xmalloc/xrealloc.
977 * objfiles.c (map_to_file): Error return from mmalloc_findbase is
978 a NULL pointer, not a -1.
982 * i386-tdep.c (set_assembly_language_command): New routine to
983 select between i386 and i8086 instruction sets for disassembly.
984 New command `set assembly-language {i386 i8086}'.
988 * monitor.c (monitor_write_memory, monitor_read_memory_single):
989 Disable use of "long long" memory read/write commands; can't
990 use them because we hold the values to read/write in an int
991 variable, and because strtoul fails on values that exceed the
992 size of a long. This fixes breakpoint problems on MON960.
996 * config/m68k/xm-hp300hpux.h (HAVE_MMAP): Remove definition.
997 * config/pa/xm-hppah.h (HAVE_MMAP): Ditto.
1001 * Makefile.in (MMALLOC_CFLAGS): Eliminate intermediate MMALLOC_DISABLE
1002 and MMALLOC_CHECK macros, and add comment indicating how host dependent
1003 makefile fragment should modify MMALLOC_CFLAGS to not use mmalloc, or
1004 to use it but to not do heap corruption checking.
1005 * gdbserver/Makefile.in: Ditto.
1006 * utils.c (init_malloc): Replace warning() use with direct call of
1007 fprintf_unfiltered, since current_target has not yet been set and thus
1008 we cannot use warning(). If we try to use mmcheck and it fails,
1009 suggest that this configuration needs NO_MMCHECK or MMCHECK_FORCE
1010 defined. Other small mmalloc related cleanups.
1011 * config/sparc/sun4os4.mh (MMALLOC_CFLAGS): Define MMCHECK_FORCE to 1.
1012 * config/alpha/alpha-osf2.mh (MMALLOC_CFLAGS): Set to -DNO_MMCHECK.
1014 * config/sparc/xm-sun4os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1015 * config/i386/xm-i386v4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1016 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1017 * config/m68k/xm-hp300hpux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1018 * config/m68k/xm-m68kv4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT);
1019 * config/m68k/xm-sun3os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1020 * config/pa/xm-hppah.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1021 * config/sparc/xm-sun4sol2.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1022 Remove obsolete defines.
1024 * config/alpha/alpha-linux.mh (MMALLOC_DISABLE):
1025 * config/alpha/alpha-osf1.mh (MMALLOC_DISABLE):
1026 * config/rs6000/rs6000.mh (MMALLOC_DISABLE):
1027 * config/rs6000/aix4.mh (MMALLOC_DISABLE):
1028 * config/powerpc/aix4.mh (MMALLOC_DISABLE):
1029 * config/powerpc/aix.mh (MMALLOC_DISABLE):
1030 * config/ns32k/ns32km3.mh (MMALLOC_DISABLE):
1031 * config/mips/mipsm3.mh (MMALLOC_DISABLE):
1032 * config/mips/decstation.mh (MMALLOC_DISABLE):
1033 * config/m88k/cxux.mh (MMALLOC_DISABLE):
1034 * config/i386/i386mk.mh (MMALLOC_DISABLE):
1035 * config/i386/i386m3.mh (MMALLOC_DISABLE):
1036 * config/i386/i386gnu.mh (MMALLOC_DISABLE):
1037 Use MMALLOC_CFLAGS instead.
1041 * h8300-tdep.c: Remove some outdated comments.
1042 (h8300_skip_prologue): Rework to be more correct for the H8/300H.
1043 Handle stm.l insns for the H8/S.
1044 (examine_prologue): Likewise.
1048 * ser-mac.c (mac_close): Change a typo SetSetBuf to SerSetBuf.
1052 * mon960-rom.c (mon960_open): Add floating point detection to
1053 prevent hang on non-FPU processors (PR 9775).
1054 (mon960_cmds): Swap setmem.cmdw and setmem.cmdl to fix problem
1055 setting breakpoints and improve loading speed.
1059 * coffread.c (record_minimal_symbol): Don't presave name string
1060 on symbol_obstack before passing to prim_record_minimal_symbol.
1061 It now handles saving the string itself.
1062 * dbxread.c (read_dbx_dynamic_symtab): Ditto.
1063 * mipsread.c (read_alphacoff_dynamic_symtab): Ditto.
1064 * os9kread.c (record_minimal_symbol): Ditto.
1065 * solib.c (solib_add_common_symbols): Ditto.
1067 * coffread.c (coff_symtab_read): Don't presave name string on
1068 symbol_obstack before passing to prim_record_minimal_symbol_and_info.
1069 It now handles saving the string itself.
1070 * dbxread.c (record_minimal_symbol): Ditto.
1071 * elfread.c (record_minimal_symbol_and_info): Ditto.
1073 * dstread.c (record_minimal_symbol): Remove static function that just
1074 called prim_record_minimal_symbol with the same args (after change to
1075 prim_record_minimal_symbol to do it's own name string saves).
1076 * nlmread.c (record_minimal_symbol): Ditto.
1077 * somread.c (record_minimal_symbol): Ditto.
1079 * hpread.c (hpread_read_enum_type): Save symbol name on symbol obstack.
1080 (hpread_read_function_type): Ditto.
1081 (hpread_process_one_debug_symbol): Ditto.
1082 * mdebugread.c (parse_symbol): Ditto.
1083 (new_symbol): Ditto.
1084 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
1086 * coffread.c (process_coff_symbol): Use obsavestring to save
1087 SYMBOL_NAME, rather than obstack_copy0.
1088 * dstread.c (create_new_symbol): Ditto
1089 * symfile.c (obconcat): Ditto.
1090 * stabsread.c (patch_block_stabs): Ditto.
1091 * xcoffread.c (SYMNAME_ALLOC): Ditto.
1093 * symfile.c (obsavestring): Update comments
1094 * solib.c (solib_add_common_symbols): Remove local var origname.
1098 * configure: Re-build with autoconf-2.10.
1100 * sparcl-tdep.c (_initialize_sparc_tdep) config/sparc/tm-sparc.h,
1101 config/sparc/tm-sparclite.h: Initialize tm_print_insn from
1102 TM_PRINT_INSN, which comes from the tm file.
1106 * coffread.c, dbxread.c, elfread.c, mipsread.c, nlmread.c,
1107 os9kread.c: Replace identical sym_offsets functions with
1108 default_symfile_offsets.
1109 * somread.c (som_symfile_offsets): Use new SIZEOF_SECTION_OFFSETS
1110 macro to allocate section_offsets.
1111 * symfile.c (default_symfile_offsets): New function.
1112 * symfile.h: Declare default_symfile_offsets.
1113 * symtab.h: Define SIZEOF_SECTION_OFFSETS macro to
1114 simplify allocation of section_offsets.
1118 * Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
1119 * configure configure.in: Only make sol-thread.o for native.
1120 Also, switch to dlopened libthread_db.so.1.
1121 * sol-thread.c: Switch to using dlopen to get the thread_db
1126 * configure, configure.in: Change test for libthread_db to only
1127 work for configs where build/host/target are the same.
1131 * config/powerpc/{linux.mh,xm-linux.h}: New files, for Linux on
1134 * configure.in (powerpc-*-linux): Add Linux, System V, and ELF
1136 * configure: Regenerate.
1141 * mpw-make.sed: Add lines to whack out autoconf hook
1146 * remote-e7000.c (e7000_stop): New function.
1150 * configure, configure.in: Add target sparclet.
1151 * monitor.h, monitor.c: Added monitor flags MO_NO_ECHO_ON_SETMEM
1152 (don't expect echo on setmem command), MO_RUN_FIRST_TIME (if
1153 command to start process running on target is different from one
1154 to continue execution), MO_HEX_PREFIX (if addresses from monitor
1155 have a "0x" prefix).
1156 * monitor.c, parse.c, sparc-tdep.c: Don't require strings in the
1157 registers array. This is to allow NULLs to be place holders in
1158 the tm-*.h file so that only minor changes are needed when a new
1159 processor is introduced (eg, one without floating point).
1160 * sparc-tdep.c: Conditionally remove dependancies on floating
1162 * sparclet-rom.c, config/sparc/sparclet.mt,
1163 config/sparc/tm-sparclet.h: New files for target sparclet.
1164 * symfile.c (load_command): Add option for 2nd parameter; a load
1165 offset added to the vma of each section.
1169 * main.c (main): Add option "l" for setting remote_timeout.
1173 * remote-e7000.c, remote.c, target.h, top.c: Add set option
1174 "remote_timeout" for setting remote_timeout. Add set option
1175 "use_hard_breakpoints" for setting hardware .vs. memory
1180 * remote-e7000.c (e7000_parse_device): New function.
1181 Add option "tcp_remote" to target command if using
1182 tcp to connect to a remote host which is then connected
1183 via serial port to the e7000 (for exampole, a port master).
1184 (e7000_open): Change to call e7000_parse_device.
1188 * monitor.c (monitor_debug): Fix remotedebug buffering.
1192 * config/i386/cygwin32.mh, config/powerpc/cygwin32.mh
1193 (NATDEPFILES): Add a space.
1197 * gdbtypes.c (create_array_type): If TYPE_LENGTH (result_type)
1198 is zero, set TYPE_FLAG_TARGET_STUB to force reevaluation of the type.
1200 * ch-exp.c (calculate_array_length): Function removed.
1204 * remote-e7000.c (e7000_read_inferior_memory_large): New function.
1205 (e7000_xfer_inferior_memory): Call it.
1209 * gdb/gdbserver/Makefile.in (docdir): Removed.
1213 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir):
1214 Use autoconf set values.
1216 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
1217 * nlm/Makefile.in (bindir, libdir, datadir, mandir, infodir,
1218 includedir): Use autoconf set values.
1220 * nlm/configure.in (AC_PREREQ): autoconf 2.5 or higher.
1221 * nlm/configure: Rebuilt.
1222 * gdb/gdbserver/Makefile.in (datadir): Set to $(prefix)/share.
1226 * stabsread.c (read_cfront_member_functions): add type
1230 * win32-nat.c: #include <unistd.h>.
1231 (unix_paths_to_dos_paths, dos_paths_to_unix_paths): Delete.
1232 (child_create_inferior): Convert only env var PATH to win32 style.
1233 (set_pathstyle_dos): Delete.
1234 (_initialize_inftarg): Delete dos-path-style command.
1236 start-sanitize-gdbtk
1239 * gdbtk.tcl (create_register_windows): Include missing '$'s.
1240 Add global declarations for various reg_format_* variables.
1241 * gdbtk.tcl (populate_register_window): Make initial window one
1242 line taller to account for new column header line.
1246 * gdbtk.c (get_register): Support for printing raw formats.
1247 * gdbtk.tcl: Add hint for using debug_interface.
1248 (center_window, add_breakpoint_frame, delete_breakpoint_frame):
1249 Enclose arg in braces for consistency.
1250 (create_registers_window, populate_reg_window, update_registers):
1251 Major rewrite to support displaying multiple formats in the register
1253 (init_reg_info): New function.
1254 (recompute_reg_display_list): Reset reg_display_list, start
1255 register display lines at line 2.
1260 * configure.in: Revise sol-thread.o test.
1261 * configure: Regenerated.
1263 * source.c (find_source_lines): Reassign size to result of read.
1265 start-sanitize-gdbtk
1268 * gdbtk.tcl (gdbtk_tcl_readline_begin): Handle backspace to
1269 avoid backing up over prompt. At every input, make sure insert
1270 point is at least after command start, handle control-u to delete
1272 (tclsh): Handle backspace to avoid backing up over prompt. Handle
1273 control-u to delete current input line.
1277 * configure.in: disable gdbtk for *cygwin32* hosted compiles
1278 * configure: regenerated with autoconf 2.8
1283 * h8300-dep.c (gdb_print_insn_h8300): Handle the H8/S.
1284 (h8300_command): Likewise.
1285 (set_machine): Likewise.
1286 (set_machine_hook): Likewise.
1287 (_initialize_h8300m): Likewise.
1289 * config/h8300/tm-h8300.h (h8300smode): Declare.
1293 * somsolib.c (som_solib_create_inferior_hook): Handle tracking
1294 of shl_load calls for hpux10.
1298 * config.in: Regenerated.
1299 * acconfig.h (HAVE_THREAD_DB_LIB): Added entry.
1301 * configure: Regenerated.
1302 * aclocal.m4 (CY_AC_PATH_TCLH, CY_AC_PATH_TKH): Use odd names to
1303 avoid name clashes with SunOS headers.
1308 * bcache.c (print_bcache_statistics): Avoid divide-by-zero
1309 exception if one or more objfile has no symbols, such as when
1310 a dynamic library has been stripped.
1314 * Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
1315 * configure configure.in: Only make sol-thread.o for native.
1316 Also, switch to dlopened libthread_db.so.1.
1317 * sol-thread.c: Switch to using dlopen to get the thread_db
1322 * config/sparc/{xm-sun4sol2.h,xm-sun4os4.h} (MMAP_BASE_ADDRESS):
1323 Change from 0xE0000000 to 0xC0000000.
1327 * config/powerpc/xm-solaris.h: Initial version of support for
1332 * configure.in (configdirs): Force 4100 builds to use 4300 GDB
1334 * configure: Rebuild.
1336 * config/mips/vr4300el.mt (SIM_OBS): Include simulator in
1337 little-endian builds.
1341 * inftarg.c (child_thread_alive): Protect declaration with
1342 #ifndef CHILD_THREAD_ALIVE.
1344 * source.c (find_source_lines): Check the time on the symtab's bfd if
1345 it exists, else check the time on the exec_bfd.
1349 * dsrec.c (make_srec): Fix calculation of address size
1350 to allow addresses less than 0x100.
1354 * ch-exp.c (ch_lex): In case of LOC_TYPEDEF call calculate_array_length.
1358 * remote-mips.c: cannot use EINVAL for breakpoint test since
1359 its value varies for different hosts (e.g. go32's is 19, while
1360 sunos is 22). Changed to hardcoded 22 since that is what the
1365 * configure: Regenerated.
1366 * aclocal.m4 (CY_AC_PATH_TCLH): Don't use AC_TRY_RUN.
1367 (CY_AC_PATH_TKH): Don't use AC_TRY_RUN.
1371 * solib.c (solib_absolute_prefix, solib_search_path): New variables.
1372 (_initialize_solib): Add set/show commands for those variables.
1373 (solib_map_sections): Implement searching using them.
1379 * NEWS: Add Alpha Linux as a new native configuration.
1381 * mdebugread.c (parse_symbol): When we find a malloc() symbol with
1382 return type VOID, assume no debugging info is available for that
1383 object file and patch the return value into VOID *. Otherwise,
1384 operations requiring an implicit call to malloc() will fail.
1386 * infrun.c (wait_for_inferior): The criterion to detect entering a
1387 sigtramp handler is now: (a) the current pc is inside a sigtramp
1388 handler, (b) the previous pc is not in a sigtramp handler, and (c)
1389 the current stack pointer is "inner" than the old one. Condition
1390 (c) is new to avoid mistaking a return from a signal handler into
1391 sigtramp as a new sigtramp invocation.
1393 * dcache.c (struct dcache_block): Declare addr as CORE_ADDR. An
1394 int may not be big enough to hold an address.
1395 (dcache_hit): Ditto.
1396 (dcache_peek_byte): Fix indentation.
1398 * configure.in (alpha-*-linux*): Add target.
1399 * configure: Rebuild
1401 * config/alpha/tm-alpha.h (PROC_DESC_IS_DYN_SIGTRAMP): New macro.
1402 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1403 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
1404 (SIGCONTEXT_ADDR): Ditto.
1405 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
1407 * config/alpha/alpha-linux.mh: New file.
1408 * config/alpha/alpha-linux.mt: Ditto.
1409 * config/alpha/nm-linux.h: Ditto.
1410 * config/alpha/tm-alphalinux.h: Ditto.
1411 * config/alpha/xm-alphalinux.h: Ditto.
1412 * config/alpha/xm-alphaosf.h: Renamed from xm-alpha.h.
1413 * config/alpha/alpha-osf1.mh (XM_FILE): Change from xm-alpha.h to
1415 * config/alpha/alpha-osf2.mh: Ditto.
1417 * blockframe.c (find_pc_partial_function): Pass PC to
1418 SIGTRAMP_START and SIGTRAMP_END macros for the benefit of systems
1419 that detect sigtramp code via designated code sequences (as is the
1420 case for Linux/Alpha, for example).
1422 * config/i386/tm-i386bsd.h: Change SIGTRAMP_START and SIGTRAMP_END
1423 to ignore new PC argument.
1424 * config/m68k/tm-hp300bsd.h: Ditto.
1425 * config/vax/tm-vax.h: Ditto.
1427 * alpha-tdep.c (alpha_linux_sigtramp_offset): New function.
1428 (alpha_osf_skip_sigtramp_frame): Ditto.
1429 (push_sigtramp_desc): Ditto.
1430 (alpha_find_saved_regs): Use SIGCONTEXT_ADDR macro to extract
1431 sigcontext address from frame.
1432 (alpha_saved_pc_after_call): When in sigtramp, use
1433 alpha_frame_saved_pc() instead of read-register().
1434 (after_prologue): When inside a dynamically generated sigtramp
1435 function, there is no prologue, so return address of first
1437 (alpha_in_prologue): Fix typo in comment.
1438 (find_proc_desc): Use macro DYNAMIC_SIGTRAMP_OFFSET to determine
1439 whether we're inside a dynamicaly generated sigtramp function. If
1440 so, create and push and appropriate procedure descriptor.
1441 (alpha_frame_chain): Use macro FRAME_PAST_SIGTRAMP_FRAME to obtain
1442 the frame past a sigtramp frame (if the current frame is indeed a
1444 (init_extra_frame_info): Don't read next frame register off of
1445 stack-pointer when inside a dynamiccaly generated sigtramp.
1446 (alpha_pop_frame): Also unlink and destroy procedure descriptors
1447 created for dynamically generated sigtramp functions.
1449 * alpha-nat.c: When compiling under Linux, include <asm/reg.h> and
1450 <alpha/ptrace.h> instead of <machine/reg.h>
1454 * gnu-nat.c (inf_validate_task_sc):
1455 Give terminal to gdb while asking question.
1456 (inf_resume): Don't validate the task suspend-count while execing.
1460 * gnu-nat.c (inf_validate_task_sc): Query user before clearing any
1461 additional suspend count.
1462 (S_proc_wait_reply, gnu_attach): Don't call inf_validate_task_sc.
1463 (inf_resume): Call inf_validate_task_sc here.
1464 (gnu_resume): Call inf_update_procs to ensure noticing new threads.
1468 * gnu-nat.c (gnu_create_inferior: attach_to_child): Return PID.
1472 * h8300-tdep.c (IS_PUSH): Refine.
1473 (IS_MOVE_FP, IS_MOV_SP_FP): Accept H8/300H varaints.
1474 (IS_SUB4_SP, IS_SUBL_SP): New macros.
1475 (h8300_skip_prologue): Handle H8/300H prologue code sequences.
1476 (examine_prologue): Handle addresses from 0x010000 to 0xffffff
1477 when in H8/300H mode. Get the return pointer's address correctly
1478 for the H8/300H. Handle H8/300H prolouge code sequences.
1480 * symfile.c (generic_load): Print the starting address
1481 of the file just loaded.
1485 * mpw-make.sed: Edit @THREAD_DB_OBS@ out of makefile.
1489 * breakpoint.c (bpstat_do_actions): Avoid endless recursion
1490 if a `source' command is contained in bs->commands.
1492 * infrun.c (wait_for_inferior): Update step_frame_address when
1493 stepping into a new line.
1496 * breakpoint.c (breakpoint_1): Add shlib_disabled case to
1501 * dsrec.c (load_srec): Add WAITACK parameter, for machines
1502 like EST visionICE that send back an ACK after each S-record.
1503 * monitor.c (monitor_wait_srec_ack): New function.
1504 (monitor_load): Pass monitor_wait_srec_ack to load_srec
1505 if the monitor's MO_SREC_ACK flag is set.
1506 * monitor.h: Define MO_SREC_ACK flag.
1507 * remote-est.c (est_cmds): Add MO_SREC_ACK flag.
1508 * sh3-rom.c (sh3_load): Accomodate change in load_srec prototype.
1509 * srec.h: Add WAITACK parameter to load_srec prototype.
1511 Sun May 19 21:22:00 1996 Rob Savoye <rob@chinadoll>
1513 * config/sparc/sparclite.mt: Add the sparc simulator.
1517 * defs.h (read_command_lines, query_hook): Update prototypes.
1518 (readline_begin_hook, readline_hook, readline_end_hook): Declare.
1519 * breakpoint.c (commands_command): Build message in temporary buffer
1520 and pass that, as well as tty control flag, to read_command_lines.
1521 * top.c (readline_begin_hook, readline_hook, readline_end_hook):
1523 (command_loop): Check for non-NULL instream before looping.
1524 (command_line_input): Use readline_hook when appropriate, to get
1525 user input from a GUI window.
1526 (read_next_line): Also build prompt if getting user input from a GUI.
1527 (recurse_read_control_structure): Fix typo in comment.
1528 (read_command_lines): Use passed in prompt and tty flag to decide how
1529 to build message. Use readline_begin_hook when appropriate, to set
1530 up a GUI interaction window. Just return head, whether NULL or not,
1531 after using readline_end_hook to complete GUI interaction.
1532 (define_command, document_command): Build message in a temporary
1533 buffer and pass it to read_command_lines, along with tty flag.
1535 start-sanitize-gdbtk
1536 * gdbtk.c (gdbtk_readline_begin, gdbtk_readline, gdbtk_readline_end):
1538 (tk_command_loop): Set instream to NULL to enable Tk user interaction.
1539 (gdbtk_init): Set readline_begin_hook, readline_hook,
1540 and readline_end_hook.
1541 * gdbtk.tcl (gdbtk_tcl_readline_begin, gdbtk_tcl_readline,
1542 gdbtk_tcl_readline_end): New functions.
1543 (tclsh): Pack scroll bar on right side of window, not left.
1548 * blockframe.c (frameless_look_for_prologue):
1549 Add FUNCTION_START_OFFSET only if func_start is non-zero.
1550 * minsyms.c (lookup_minimal_symbol_by_pc): Return NULL if
1551 pc is not in a known section.
1552 * stack.c (print_frame_info): Remove check for fi->pc in known
1553 section, now handled by lookup_minimal_symbol_by_pc.
1555 start-sanitize-gdbtk
1558 * gdbtk.tcl (create_command_window): Change a misspelled "get"
1559 to the intended "cget".
1560 (delete_line): Fix so it deletes the current line at the
1566 * sh-stub.c: New file, was config/sh/stub.c.
1568 start-sanitize-gdbtk
1571 * gdbtk.tcl (gdb_prompt): Set this early on.
1572 (create_command_window): Use gdb_prompt rather than "(gdb) ".
1573 (gdbtk_tcl_preloop): Proc executed just prior to Tk main loop.
1574 (tclsh): If an evaluation window already exists, just bring it
1575 to the front instead of trying to create another.
1576 * gdbtk.c (tk_command_loop): New function.
1577 (gdbtk_init): Call tk_command_loop rather than Tk_MainLoop.
1581 * gdbtk.tcl (evaluate_tcl_command, tclsh): New functions that
1582 implement a tcl evaluation window for gdbtk maintainers to use.
1586 * gdbtk.tcl (files_command): Correctly insert list of files into
1589 * gdbtk.tcl (files_command): listbox command no longer accepts
1594 * gdbtk.tcl (create_command_window): If command window's buffer
1595 is disabled, don't execute any of the key bindings.
1600 * top.c (read_next_line): Fix thinkos. From Donn Seeley.
1602 * coffread.c (coff_symtab_read): Handle C_LABEL symbols like
1604 * h8300-tdep.c (h8300_pop_frame): Reset $sp and $pc correctly.
1605 Flush cached frames just before exiting.
1606 * remote-sim.c (gdbsim_resume): Complain if the program isn't
1608 * config/h8300/tm-h8300.h (BELIEVE_PCC_PROMOTION): Define.
1612 * procfs.c (procfs_thread_alive procfs_stop): Make static.
1613 (procfs_pid_to_str): New routine to print out thread id's in an
1614 intelligible manner.
1615 * sol-thread.c (sol_thread_fetch_registers): Re-order manner in
1616 which supply_register is called to fix bug with writing
1618 * config/sparc/tm-sun4sol2.h: Define default for
1619 target_pid_to_str in case host lacks libthread_db.
1623 * Makefile.in config.in configure configure.in
1624 config/sparc/nm-sun4sol2.h config/sparc/sun4sol2.mh
1625 config/sparc/tm-sun4sol2.h: Use autoconf to config Solaris thread
1626 and pthread support, since pre-2.5 systems don't come with
1629 * procfs.c (info_proc): Use int instead of id_t. Old versions of
1630 Irix don't seem to define this.
1632 start-sanitize-gdbtk
1635 * gdbtk.c (tk_command): Catch case where no argument is given
1636 since this will cause the tcl interpreter to dump core.
1641 * top.c (execute_control_command, case while_control): Allow
1642 a while command to be interrupted.
1646 * sol-thread.c: More cleanup, add comments.
1647 (sol_thread_resume): Prevent people from trying to step
1649 (sol_thread_wait sol_thread_fetch_registers
1650 sol_thread_store_registers): Remove unnecessary check for
1651 sol_thread_active. These routines won't get called unless threads
1657 * sh-tdep.c (sh_reg_names, sh3_reg_names): Add empty names for
1659 (sh3e_reg_names): New register name array.
1660 (sh_processor_type_table): Add sh3e processor type.
1661 * config/sh/tm-sh.h (REGISTER_VIRTUAL_TYPE): Fix test.
1662 (REGISTER_NAMES, NUM_REGS, NUM_REALREGS, etc): Adjust for
1663 full set of registers.
1664 * remote-e7000.c (want_sh3, want_sh3_nopc): New globals.
1665 (e7000_fetch_registers, e7000_wait): Use them.
1666 * sh3-rom.c (sh3_regnames): Add float registers.
1667 (sh3e_cmds, sh3e_ops): New globals.
1668 (sh3e_open): New function.
1669 (_initialize_sh3_rom): Rename from _initialize_sh3, set up
1674 * sol-thread.c: Cleanup. gcc -Wall fixes. Add prototypes.
1675 Print out messages instead of codes for thread_db errors. Make
1676 access macros for thread and lwp manipulation. Make cleanups to
1677 fixup inferior_pid in case of errors.
1681 * aclocal.m4: Remove unused definition of AC_C_CROSS.
1682 * configure.in: Add powerpcle-*-solaris* host and target config
1683 so April 30th change does not get lost next time configure is
1688 * Makefile.in, breakpoint.c, corelow.c, fork-child.c, inflow.c,
1689 infrun.c, mac-nat.c, procfs.c, remote.c, sol-thread.c, thread.c,
1690 win32-nat.c, config/nm-lynx.h: Rename thread.h to gdbthread.h to
1691 avoid conflict with Solaris /usr/include/thread.h.
1695 * abug-rom.c: Config file for the older style ABug monitor that
1696 runs on the mvme13x boards.
1697 * config/m68k/monitor.mt: Add abug support for m68k cross
1702 * infcmd.c (do_registers_info): Always print the raw floating
1703 point value's bytes in big endian order, so the the leftmost bit
1704 is the most significant.
1705 * breakpoint.c (clear_momentary_breakpoints): Remove dead code
1706 that is referenced nowhere else.
1707 (set_breakpoint): Ditto.
1708 (do_enable_breakpoint): Created from enable_once_breakpoint
1709 with a couple of changes.
1710 (enable_breakpoint): Call do_enable_breakpoint with an appropriate
1711 bpdisp enum value to set disposition of breakpoint.
1712 (enable_once_breakpoint): Ditto.
1713 (enable_delete_breakpoint): Ditto.
1714 * breakpoint.h (clear_momentary_breakpoints): Remove prototype.
1715 * symtab.c (find_pc_line): Improve comments.
1716 start-sanitize-gdbtk
1717 * gdbtk.c: Fix a couple of misspellings.
1719 * xcoffread.c: Ditto.
1723 * target.c (debug_to_xfer_memory): Insert line breaks when
1724 dumping the memory block.
1728 * fork-child.c (fork_inferior), inferior.h: init_trace_fun now
1729 returns a possibly modified pid.
1730 * inftarg.c (ptrace_him): Now returns pid;
1731 * m3-nat.c (m3_trace_him): Now returns pid;
1732 * infcmd.c (run_command): Minor cleanup.
1733 * infrun.c (wait_for_inferior): Add another check for one_stepped
1734 near where we read the pc to avoid erroneously setting
1735 random_signal for multi-threaded support.
1736 * procfs.c: Add support for Solaris LWPs. Remove def of
1737 LOSING_POLL. Many cleanups... Several workarounds for Solaris
1738 lossage. System call entry and exit are now handled by
1739 dynamically registered handlers.
1740 * (syscallname): Don't barf when handed an unknown syscall
1742 * (info_proc_syscalls): Ditto.
1743 * sol-thread.c: New file. Implements Solaris thread support.
1744 * symfile.c (symbol_file_add): Add call to target_new_objfile to
1745 notify target-dependent code about new symbol tables.
1746 * (clear_symtab_users): Call target_new_objfile to notify it of
1747 the removal of all symbol tables.
1748 * target.c (push_target): Make sure that to_close is non-zero
1750 * target.h (target_new_objfile): Provide default.
1751 * config/alpha/nm-osf2.h: Define LOSING_POLL because this version
1752 of OSF can't hack using poll with /proc.
1753 * config/sparc/nm-sun4sol2.h (target_new_objfile): Define to be
1754 sol-thread-new-objfile.
1755 * config/sparc/sun4sol2.mh: Add sol-thread.o to NATDEFFILES, and
1756 add libthread_db.so.1 to NAT_CLIBS.
1757 * config/sparc/tm-sun4sol2.h: Define PIDGET, TIDGET, and
1762 * procfs.c (remove_fd): Fix copy of fds to fill hole left after
1763 removal of the requested fd.
1767 * rs6000-tdep.c (_initialize_rs6000_tdep): Don't do XCOFF specific
1770 * config/powerpc/tm-ppc-eabi.h: Define ELF_OBJECT_FORMAT.
1772 start-sanitize-gdbtk
1775 * gdbtk.tcl (debug_interface): New global, use to aid debugging.
1776 (insert_breakpoint_tag, delete_breakpoint_tag): Fix range.
1777 (file_popup_menu): Delete, never used.
1778 (listing_window_popup): Rename from listing_window_button_1,
1779 remove breakpoint toggling code.
1780 (toggle_breakpoint): New procedure.
1781 (create_file_win): Bind popup menu to button 2, toggle breakpoints
1782 with button 1 in breakpoint area, add display of tagged areas if
1789 * breakpoint.h (enum bpdisp): Add del_at_next_stop.
1790 * breakpoint.c (insert_breakpoints, watchpoint_check,
1791 bpstat_stop_status): Avoid bad references to memory freed via
1792 delete_breakpoint on watchpoints going out of scope.
1793 Do not delete these watchpoints, disable them and change their
1794 disposition to del_at_next_stop instead.
1795 (breakpoint_auto_delete): Delete all breakpoints whose disposition
1796 is del_at_next_stop.
1797 (breakpoint_init_inferior): Use switch to avoid reference to
1798 already deleted breakpoint.
1802 * Makefile.in (rs6000-nat.o): Depend on xcoffsolib.h.
1803 * config/rs6000/rs6000.mh (NATDEPFILES): Move xcoffread.o ...
1804 * config/rs6000/rs6000.mt (TDEPFILES): ... to here.
1805 * xcoffsolib.c (xcoff_relocate_symtab_hook): Define and initialize.
1806 (solib_info): Call xcoff_relocate_symtab via the hook.
1807 (sharedlibrary_command): Ditto.
1808 * xcoffread.c: Remove all FAKING_RS6000 comments and defines.
1809 (xcoff_add_toc_to_loadinfo_hook): Define and initialize here.
1810 (xcoff_init_loadinfo_hook): Define and initialize here.
1811 (scan_xcoff_symtab): Call xcoff_add_toc_to_loadinfo via the hook.
1812 (xcoff_initial_scan): Call xcoff_init_loadinfo via the hook.
1813 * xcoffsolib.h (xcoff_relocate_symtab_hook): Declare extern func.
1814 * rs6000-tdep.c (_initialize_rs6000_tdep): Add initializations
1815 of xcoff_add_toc_to_loadinfo_hook and xcoff_init_loadinfo_hook.
1816 * rs6000-nat.c (_initialize_core_rs6000): Add initialization
1817 of xcoff_relocate_symtab_hook.
1821 * configure (powerpcle-*-solaris*): Add Solaris support.
1823 * config/powerpc/{solaris.m[ht],tm-solaris.h}: New files for
1828 * c-valprint.c (c_val_print): Fix printing for arrays defined
1833 Support for bi-endian remote breakpoints.
1834 * remote.c (big_break_insn, little_break_insn): New globals.
1835 (break_insn): Remove.
1836 (remote_insert_breakpoint, remote_remove_breakpoint): Use own
1837 code if REMOTE_BREAKPOINT defined, otherwise call memory
1838 breakpoint functions.
1839 * config/sh/tm-sh.h (REMOTE_BREAKPOINT): Remove.
1840 (BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT): Define.
1842 * mon960-rom.c (mon960_cmds): Remove forward decl.
1843 (mon960_load): Use current_monitor instead of mon960_cmds.
1844 (mon960_regnames): Remove backslashes from line ends.
1845 (_initialize_mon960): Fix documentation string.
1849 * symfile.h (psymbol_allocation_list): Expand comments which
1850 describe the psymbol allocation list and how each field is
1855 * breakpoint.c (delete_breakpoint): Fix bpt->val, bpt->exp
1857 (breakpoint_re_set_one): Fix b->exp, b->val, b->cond storage leaks.
1859 * infcmd.c (run_command), solib.c (locate_base): Check for
1860 target_has_execution in addition to inferior_pid, a core file
1861 from a threaded program is yielding a non-zero inferior_pid.
1863 * sparc-tdep.c (get_saved_register): Handle window registers
1864 in a dummy frame correctly.
1868 * Makefile.in (CLIBS): Move $(MMALLOC) past all other libs,
1869 so that anything that wants an allocation function not yet pulled
1870 in, will get it from mmalloc rather than a system library.
1871 * Makefile.in (INSTALLED_LIBS): Reorder to match order of CLIBS,
1872 to avoid surprising results when used.
1876 * stabsread.c: Changes and bug fixes for cfront support.
1877 Fix bug for class data members.
1878 Fix parsing bug when no base classes exist.
1879 Fix memory bug - allocate space for cplusplus specific info.
1880 Add support for static data.
1881 Add prototypes for static functions.
1882 Enhance comments to show what each function expects to parse.
1884 * stabsread.c(resolve_cont),dbxread.c(resolve_cont): Rename
1885 function to resolve_cfront_continuation.
1889 * infrun.c (wait_for_inferior): Call registers_changed when
1890 restarting the inferior to get over a nullified instruction.
1894 * dbxread.c,stabsread.c,gdbtypes.c,partial-stab.h,valops.c:
1895 Add new support for parsing cfront stabs.
1899 * infrun.c (wait_for_inferior): Move "have_waited" label
1900 outside of #ifdef conditionals. Don't trash the wait status
1901 if we get a signal and the current instruction is nullified.
1905 * Makefile.in (VERSION): Bump version number to 4.16.1.
1906 * NEWS: Update for 4.16 release.
1910 * monitor.h: Clean up comment formatting.
1911 (current_monitor): Remove decl.
1912 (LOADTYPES, LOADPROTOS, INIT_CMD, etc): Remove definitions.
1913 (push_monitor, SREC_SIZE): Remove.
1914 * monitor.c: Expand old macro into current_monitor derefs
1916 * remote-os9k.c (current_monitor): Remove definition.
1920 * corefile.c (specify_exec_file_hook): Allow arbitrary number of
1922 (call_extra_exec_file_hooks): New function.
1923 * h8300-tdep.c: Lint; add .h files to provide missing declarations,
1924 remove unused variables.
1925 (set_machine_hook): New function.
1926 (_initialize_h8300m): Initialize it.
1930 * remote-mips.c (encoding): Don't specify size, to avoid bug in
1931 SunOS native compiler.
1935 * monitor.c: Use int rather than LONGEST for values, since
1936 the formatting strings are not prepared to accept long longs.
1940 * arm-tdep.c (initialize_arm_tdep): Make apcs32 a `zinteger'.
1944 * corelow.c (add_to_thread_list): Make sure reg_sect is non-null
1945 before de-referencing it. Prevents deref of NULL pointer if core
1946 file lacks .reg section.
1947 * defs.h: Rename floatformat_{to from}_long_double to
1948 floatformat_{to from}_doublest. Get rid of FLOATFORMAT_{TO
1950 * findvar.c (extract_floating store_floating): Change all refs to
1951 FLOATFORMAT_{FROM TO}... to floatformat_{from to}_doublest.
1952 * utils.c: Change floatformat_{to from}_long_double to
1953 floatformat_{to from}_doublest cuz the new routines will use
1954 whatever size (double or long double) is appropriate.
1955 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
1956 REGISTER_CONVERT_TO_RAW): Change FLOATFORMAT... macros to
1957 floatformat... routine calls.
1961 * stabsread.c (read_type): Move handling of '@' from type
1962 number handling to handling of types proper (as emitted by gcc!).
1963 For typedefs, allocate the typedef type before reading its
1964 definition, to properly handling recursive types.
1968 * ch-exp.c (calculate_array_length): Fix prototype.
1972 * remote-nindy.c (nindy_open): Acquire more target state so that
1973 user can attach to a previously running program.
1974 * (nindy_fetch_registers nindy_store_registers): Get rid of fp
1975 conversion code. That's all handled in {extract store}_floating
1977 * utils.c (floatformat_to_double): Don't bias exponent when
1978 handling zero's, denorms or NaNs.
1979 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
1980 REGISTER_CONVERT_TO_RAW): Change to using DOUBLST and
1981 FLOATFORMAT_TO/FROM_DOUBLEST macros.
1982 * config/i960/tm-nindy960.h: Undefine
1983 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW, and
1984 REGISTER_CONVERTIBLE. These are no longer necessary now that all
1985 the magic happens in extract/store_floating.
1989 * eval.c (evaluate_subexp_standard): Report error when attempting to
1990 evaluate subscripts for types which cannot be subscripted.
1992 * valarith.c (value_x_binop, value_x_unop): Add noside parameter.
1993 Return a zero value with the return type of the member function
1994 if noside is EVAL_AVOID_SIDE_EFFECTS instead of calling the member
1996 * values.h (value_x_binop, value_x_unop): Update prototypes
1998 * eval.c (evaluate_subexp_standard): Update all callers of
1999 value_x_binop, value_x_unop accordingly.
2001 * valarith.c (value_neg, value_complement): Perform ANSI C/C++
2002 integral promotion on operands.
2006 * README: Update for 4.16 release.
2007 * configure.in (AC_CHECK_FUNCS): Also check for sbrk.
2008 * configure: Regenerate with autoconf.
2009 * config.in: Regenerate with autoheader.
2010 * main.c (main): Only use sbrk() when HAVE_SBRK is defined.
2011 * top.c (command_loop): Ditto.
2015 * defs.h: Define TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
2016 defaults for bi-endian targets. Replace function pointers for
2017 floatformat routines with macros. No need for these to be runtime
2019 * findvar.c: Get rid of floatformat function pointers. Use
2020 macros in extract_floating and store_floating.
2021 * remote-nindy.c (nindy_fetch_registers nindy_store_registers):
2022 Use floatformat macros.
2027 * configure.in (AC_CHECK_HEADERS): check for endian.h.
2028 Use AC_CHECK_TOOL to find AR & RANLIB. Add AC_PROG_AWK.
2029 Add host & target cases for i[345]86-*-gnu*.
2030 * config.in: Regenerate with autoheader.
2031 * configure: Regenerate with autoconf.
2032 * Makefile.in (AR, AWK): Set from corresponding autoconf substs.
2033 (init.c): Don't scan mig-generated files.
2034 * defs.h (endian.h): Include if HAVE_ENDIAN_H defined.
2035 * config/nm-m3.h (ATTACH_NO_WAIT): Define.
2036 * infcmd.c (attach_command): Use "#ifndef ATTACH_NO_WAIT"
2037 rather than "#ifndef MACH".
2041 * remote.c (remotewritesize): New GDB variable, controls size
2042 of memory packets sent to the target.
2046 * dcache.c: Add prototypes. Make many functions static.
2047 * (dcache_peek dcache_fetch dcache_poke): Make dcache_fetch and
2048 dcache_poke call dcache_xfer_memory directly in order to fix
2049 problems with turning off dcache. dcache_peek is now unnecessary,
2052 * defs.h: Define new macros HOST_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
2053 and TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT to specify a pointer
2054 to a struct floatformat. This allows for better handling of
2055 targets whose floating point formats differ from the host by more
2056 than just byte order.
2057 * (floatformat_to_long_double floatformat_from_long_double):
2058 Prototypes for new functions in utils.c.
2059 * (floatformat_to_doublest floatformat_from_doublest): Prototypes
2060 for pointers to floating point conversion functions. The actual
2061 function uses either double or long double if the host supports it.
2062 * findvar.c (floatformat_to_doublest floatformat_from_doublest):
2063 Initialize to point at correct function depending on HAVE_LONG_DOUBLE.
2064 * (extract_floating store_floating): Rewrite. Now, if host fp
2065 format is the same as the target, we just do a copy. Otherwise,
2066 we call floatformat_{to from}_doublest.
2067 * remote-nindy.c (nindy_xfer_inferior_memory): Change param
2068 `write' to `should_write'.
2069 * utils.c (floatformat_to_long_double
2070 floatformat_from_long_double): New routines that implement long
2071 double versions of functions in libiberty/floatformat.c.
2072 * config/i960/tm-i960.h (TARGET_LONG_DOUBLE_FORMAT): Define this for
2073 i960 extended real (80 bit) numbers.
2074 * nindy-share/nindy.c (ninMemGet ninMemPut): Return number of bytes
2075 actually read or written.
2079 * ch-valprint.c (chill_val_print): Remove call to calculate_array_length.
2080 (calculate_array_length): Move function from here ...
2082 * ch-exp.c (calculate_array_length): ... to here.
2083 (parse_primval): If we have a symbol with an array type
2084 and the length is 0, call calculate_array_length.
2088 * eval.c (evaluate_subexp_standard): In case of TYPE_CODE_SET:
2089 Add some checks for powerset compatibility.
2091 * valops.c (value_slice): Use lowbound instead of lowerbound for
2092 call to slice_range_type to get correct bounds.
2096 * Makefile.in (scm-exp.o, scm-lang.o, scm-valprint.o): Add targets and
2098 * scm-lang.c (gdb_string.h): Include.
2099 * objfiles.c (add_to_objfile_sections): Cast second arg of obstack_grow
2100 call to correct type (char *).
2101 * cp-valprint.c (cp_print_static_field): Ditto.
2102 * somsolib.c (som_solib_create_inferior_hook): Add a declaration
2103 for external find_unwind_entry function (from hppa-tdep.c).
2104 * remote-pa.c (remote_write_bytes, remote_read_bytes): Change
2105 type of second arg to "char *" to be type compatible with
2107 (remote_wait): Cast second arg to strtol to correct type.
2108 * hppa-tdep.c (compare_unwind_entries): Change argument types to
2109 "const void *" to be type compatible with qsort, and then
2110 assign to local args prior to use.
2114 * infptrace.c (kill_inferior): Remove call to "kill"; update
2119 * remote-e7000.c: don't append :23 to target port if __WIN32__
2120 is defined (it's WinGDB).
2125 * gnu-nat.c, gnu-nat.h, msg.defs, exc_request.defs, i386gnu-nat.c,
2126 msg_reply.defs, notify.defs, process_reply.defs, reply_mig_hack.awk,
2127 config/nm-gnu.h, config/i386/{i386gnu.mh, i386gnu.mt, nm-gnu.h,
2128 m-i386gnu.h, xm-i386gnu.h}: New files for GNU hurd.
2132 * configure.in (case host): Add i386sco5 host.
2133 * configure: Regenerate.
2136 Add support for SCO OpenServer 5 (a.k.a. 3.2v5*) This
2137 target is an SVR3.2 with COFF, ELF, and shared libes, but
2139 * config/i386/i386sco5.mh: New file.
2140 * config/i386/nm-i386sco5.h: New file.
2144 * bcache.c (bcache): When size of chunk to cache is exactly equal to
2145 BCACHE_MAXLENGTH, stash chunk as unique copy.
2149 * symfile.c (INLINE_ADD_PSYMBOL): Remove ifdef.
2150 (add_psymbol_to_list): Add an arg for passing CORE_ADDR values and
2151 use it, rather than calling add_psymbol_addr_to_list.
2152 (add_psymbol_addr_to_list): Delete.
2153 (add_psymbol_to_list): Make psymbol static to avoid random data in
2154 gaps due to alignment of structure members.
2155 * symfile.h (INLINE_ADD_PSYMBOL, ADD_PSYMBOL_TO_LIST,
2156 ADD_PSYMBOL_ADDR_TO_LIST): Remove. Real world tests show no
2157 performance improvements by inlining via complicated macros and
2158 they just make gdb larger and harder to maintain.
2159 * dwarfread.c (add_enum_psymbol): Replace ADD_PSYMBOL_TO_LIST
2160 and/or ADD_PSYMBOL_ADDR_TO_LIST macro(s) with call to
2161 add_psymbol_to_list with appropriate long or CORE_ADDR args.
2162 (add_partial_symbol): Ditto.
2163 * partial-stab.h: Ditto.
2164 * os9kread.c (read_os9k_psymtab): Ditto
2165 * mdebugread.c (parse_partial_symbols): Ditto.
2166 (handle_psymbol_enumerators): Ditto.
2167 (demangle.h): Include.
2168 * hpread.c (hpread_build_psymtabs): Ditto.
2169 (hpread_build_psymtabs): Ditto.
2170 (demangle.h): Include
2172 start-sanitize-gdbtk
2175 * gdbtk.c (running_now): New global variable.
2176 (gdb_cmd): Test it before executing any command.
2177 (gdbtk_call_command): Set it when inferior is running.
2178 * gdbtk.tcl (gdbtk_tcl_busy, gdbtk_tcl_idle): Enable and
2179 disable interaction with command window's text appropriately.
2183 * gdbtk.c (SIOCSPGRP, linux): If on Linux, undef SIOCSPGRP, since
2184 some versions of the kernel don't support it.
2189 * configure.in: Check for setpgid function.
2190 * config.in: Regenerate with autoheader.
2191 * configure: Regenerate with autoconf.
2192 * inflow.c (_initialize_inflow): Only try to use _SC_JOB_CONTROL
2193 if it is actually defined.
2194 (gdb_setpgid): Use HAVE_SETPGID.
2195 * ch-exp.c: Change include of <string.h> to "gdb_string.h".
2196 * c-exp.y, f-exp.y, m2-exp.y: Ditto.
2197 * c-exp.y, serial.c: Include <ctype.h>.
2198 * config/m68k/nm-news.h: Add typedef for pid_t which is
2199 apparently missing from <sys/types.h>. Enclose entire
2200 file in NM_NEWS_H ifndef and define when included.
2201 * config/mips/nm-news-mips.h: Ditto.
2202 * config/m68k/tm-m68k.h (REGISTER_CONVERT_TO_VIRTUAL,
2203 REGISTER_CONVERT_TO_RAW): Change name of temporary variable.
2207 * arm-xdep.c: Move native-specific code to here from arm-tdep.c.
2208 * arm-tdep.c (arm_apcs_32): New global.
2209 (arm_addr_bits_remove, arm_saved_pc_after_call,
2210 arm_push_dummy_frame, arm_pop_frame): New functions.
2211 (arm_skip_prologue): Updated version from Richard Earnshaw.
2212 (_initialize_arm_tdep): Add set/show "apcs32".
2213 * config/arm/tm-arm.h (ADDR_BITS_REMOVE): Call
2214 arm_addr_bits_remove.
2215 (SAVED_PC_AFTER_CALL): Call arm_saved_pc_after_call.
2216 (frame_find_saved_regs): Declare properly.
2217 (PUSH_DUMMY_FRAME): Call arm_push_dummy_frame.
2218 (POP_FRAME): Call arm_pop_frame, use ADDR_BITS_REMOVE instead of
2220 * config/arm/nm-arm.h: New file.
2221 * config/arm/xm-arm.h (KERNEL_U_ADDR, FETCH_INFERIOR_REGISTERS):
2222 Move definitions to nm-arm.h.
2223 * config/arm/arm.mh (NAT_FILE): Define.
2225 * symfile.c (generic_load): Initialize data_count properly.
2229 * symmisc.c (print_objfile_statistics): Print memory used by
2230 psymbol cache obstack.
2234 * symfile.c (report_transfer_performance): New function.
2235 (generic_load): Call it to report transfer rate.
2236 * remote-e7000.c (e7000_load): Ditto.
2240 * mpw-make.sed: Change references to config.h to be in objdir,
2241 edit out rules to rebuild config.h.
2245 * hppa-tdep.c (hppa_pop_frame): Call clear_proceed_status before
2250 * hppah-nat.c (store_inferior_registers, store_inferior_registers,
2251 fetch_register, child_xfer_memory): Use call_ptrace function supplied
2252 by infptrace.c rather than calling ptrace directly.
2256 * mon960-rom.c: Cleanups and elimination of unused code,
2257 clarify documentation string.
2258 (mon960_serial, mon960_ttyname): Remove.
2259 * config/i960/tm-mon960.h (ADDITIONAL_OPTIONS,
2260 ADDITIONAL_OPTION_CASES, ADDITIONAL_OPTION_HELP): Remove.
2264 * configure.in: Check whether printf family supports printing
2265 long doubles or not and define PRINTF_HAS_LONG_DOUBLE if so.
2266 * acconfig.h: Provide default undef for PRINTF_HAS_LONG_DOUBLE.
2267 * configure: Regenerate.
2268 * valprint.c (print_floating): Use PRINTF_HAS_LONG_DOUBLE.
2269 * c-exp.y (parse_number): Use PRINTF_HAS_LONG_DOUBLE.
2270 * configure.in: Fix have_gregset and have_fpregset autoconf
2271 variable names so that they match the pattern required to
2276 * core-aout.c (fetch_core_registers): Cast core_reg_size to int
2277 before testing against reg_ptr.
2278 * eval.c (evaluate_subexp_standard): Cast type of
2279 TYPE_FN_FIELD_VOFFSET to int.
2280 * findvar.c (extract_signed_integer, extract_unsigned_integer,
2281 extract_long_unsigned_integer): Cast type of sizeof to int.
2282 * values.c (unpack_field_as_long, modify_field): Ditto.
2283 * valops.c (value_assign, call_function_by_hand): Ditto.
2284 * infcmd.c (do_registers_info): Ditto.
2285 * ser-tcp.c (tcp_open): Ditto.
2286 * remote.c (putpkt): Ditto.
2287 * dcache.c (dcache_peek): Ditto.
2288 * dcache.c (dcache_poke): Ditto.
2289 * m2-exp.y (yylex): Ditto.
2290 * gnu-regex.c (re_match_2): Ditto.
2291 * f-lang.c (ADD_BF_SYMNUM, saved_bf_list_end, tmp_bf_ptr): Ifdef
2292 out unused macro definition and variables.
2293 * inftarg.c (proc_wait): Move from main.c to here, and make static.
2294 * valprint.c (val_print_string): Change bufsize from int to unsigned.
2295 * main.c (wait.h): Include.
2296 * top.c (command_line_input): Remove unused variable "c".
2297 * f-typeprint.c (f_type_print_varspec_prefix): Add missing enum
2298 value TYPE_CODE_TYPEDEF to switch statement.
2299 (f_type_print_varspec_suffix): Add missing enum value
2300 TYPE_CODE_TYPEDEF to switch statement.
2301 * ch-exp.c (parse_primval): Add remaining enumeration values to
2302 switch statement, with no specific action.
2303 (ch_lex): Add LOC_UNRESOLVED in switch statement.
2304 (pushback_token): Ifdef out, since code using it is ifdef'd out.
2305 * stabsread.c (cleanup_undefined_types): Remove unused label
2307 * objfiles.h (print_symbol_bcache_statistics): Add prototype.
2308 * maint.c (objfiles.h): Include.
2309 (maintenance_print_statistics): Remove unused variable "temp".
2310 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
2311 unused variable "found_file_symbol".
2312 * m2-exp.y (yylex): Add LOC_UNRESOLVED case to switch.
2313 * language.c (lang_bool_type): Use existing function local type
2314 variable rather than create block local variables.
2315 * solib.c (disable_break): Enclose in ifndef SVR4_SHARED_LIBS.
2316 * infptrace.c (wait.h, command.h): Include.
2317 * ser-tcp.c (gdb_string.h): Include
2318 * i386-tdep.c (codestream_seek): Change "place" to CORE_ADDR.
2319 (i386_get_frame_setup): Change "pc" from int to CORE_ADDR.
2320 * command.c (complete_on_enum): Make assignment used as truth value
2321 explictly check against NULL.
2323 * infrun.c (wait_for_inferior): Ifdef out prologue_pc since code
2324 that uses it is ifdef'd out.
2325 * parser-defs.h: Add prototype for write_dollar_variable.
2326 * infrun.c: Add prototype for write_pc_pid.
2327 * breakpoint.h: Add prototype for re_enable_breakpoints_in_shlibs.
2328 * symmisc.c (bcache.h): Include.
2329 * bcache.h: Add prototype for print_bcache_statistics.
2330 * symfile.c: Include <time.h>.
2331 * printcmd.c (print_scalar_formatted): Change len to unsigned int.
2332 * valarith.c (value_equal): Cast result of TYPE_LENGTH to int.
2333 * valarith.c (value_binop): Change result_len, promoted_len1,
2334 and promoted_len2 to unsigned int.
2335 * valarith.c (value_subscripted_rvalue): Change elt_offs and
2336 elt_size to unsigned int.
2337 * valops.c (value_array): Change typelength to unsigned int.
2338 (destructor_name_p): Change len to unsigned int.
2339 * scm-lang.h (scm_parse): Add prototype for scm_unpack.
2340 * symfile.c (decrement_reading_symtab): Change return type to void.
2341 * valarith.c (value_subscript): Remove unused variable "word".
2342 (value_subscript): Remove unused variable "tint".
2343 * valops.c (auto_abandon): Ifdef out, since code using it is also
2345 * eval.c (init_array_element): Remove unused variable "val".
2346 * Makefile.in (values.o): Depends on scm-lang.h.
2347 (command.o): Depends upon wait_h.
2348 (ser-tcp.o): Depends upon gdb_string.h.
2349 (infptrace.o): Depends upon wait_h and command_h.
2350 (maint.o): Depends on objfiles.h and symfile.h.
2351 * values.c (allocate_repeat_value): Remove unused variable
2353 (scm-lang.h): Include.
2354 * breakpoint.c (create_longjmp_breakpoint): Enclose in
2355 GET_LONGJMP_TARGET define, unused otherwise.
2356 * config/i386/nm-linux.h: Add prototypes for i386_insert_watchpoint,
2357 i386_remove_watchpoint and i386_stopped_by_watchpoint.
2361 * configure.in (sparc64-*-solaris2*): Delete.
2362 Stick with sparc-*-solaris2*.
2363 * configure: Regenerated.
2367 * valops.c (value_assign): Make copy of internal variable value
2368 before returning it as a new value, since it is owned by the
2369 internal variable and will be freed along with it.
2373 * From Peter Schauer.
2374 * breakpoint.c (breakpoint_re_set_one): Keep temporary
2375 breakpoints bp_until, bp_finish, bp_watchpoint_cope, bp_call_dummy
2376 and bp_step_resume in case breakpoint_re_set_one is called due
2377 to a step over a dlopen call.
2378 * infrun.c (wait_for_inferior): Always remove breakpoints from
2379 inferior in BPSTAT_WHAT_CHECK_SHLIBS case.
2383 * config/mips/tm-mips.h (COERCE_FLOAT_TO_DOUBLE): Only prefer
2384 non-prototyped case over prototyped case for C.
2385 * config/pa/tm-hppa.h (COERCE_FLOAT_TO_DOUBLE): Ditto.
2389 * os9kread.c (os9k_process_one_symbol): Note nonportable
2390 assumption that an int can hold a char *.
2392 * bcache.h (struct hashlink): Wrap data[] inside union with
2393 double to force longest alignment.
2394 (BCACHE_DATA): New macro to access data[].
2395 (BCACHE_ALIGNMENT): New macro to get offset to data[].
2396 * bcache.c (lookup_cache, bcache): Use BCACHE_DATA to get
2397 address of cached data. Use BCACHE_ALIGNMENT to compute
2398 amount of space to allocate for each hashlink struct.
2402 * ch-lang.c (evaluate_subexp_chill): Fix typo.
2406 * Makefile.in (VERSION): Bump version to 4.15.3
2410 * config.in: Rename from config.h.in.
2411 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
2412 Change CONFIG_HEADERS test in AC_OUTPUT accordingly.
2413 * configure: Rebuild.
2414 * Makefile.in (stamp-h): Depend upon config.in, not config.h.in.
2415 Set CONFIG_HEADERS to config.h:config.in.
2419 * partial-stab.h (case N_ENDM): Finish current partial symbol
2420 table for Solaris 2 cc.
2424 * rs6000-nat.c (exec_one_dummy_insn): Don't clobber the
2425 PC in the registers array. From Peter Schauer.
2429 * symfile.c (reread_symbols): Reinitialize bcache struct
2430 members to zero using memset. Also use memset to reinit
2431 global_psymbols and static_psymbols, rather than explicitly
2432 resetting each structure member.
2436 * configure.in: Add fragment to create stamp-h.
2439 * configure.in (AC_CHECK_HEADERS): Check for link.h.
2440 * configure: Regenerate with autoconf.
2441 * config.h.in: Regenerate with autoheader.
2442 * config/i386/nm-linux.h: Include solib.h only if HAVE_LINK_H
2444 * solib.c: Exclude most of the code if HAVE_LINK_H is not defined.
2445 * config/i386/linux.mh: Reinstate XM_CLIBS, it is needed for
2446 older a.out based systems.
2450 * config.h.in: New file.
2451 * acconfig.h: New file, for autoheader.
2452 * configure.in (AC_CONFIG_HEADER): Add, generate config.h.
2453 * configure: Regenerate.
2454 * Makefile.in (defs_h): Add config.h
2455 (distclean): Remove config.h and stamp-h during distclean.
2456 (config.h, stamp-h): New targets to remake config.h when necessary.
2457 * defs.h (config.h): Include before any other includes or defines.
2458 * i386-tdep.c (gdb_string.h): Move include after include of defs.h.
2459 * i386v4-nat.c (defs.h): Include before testing HAVE_SYS_PROCFS_H.
2464 * Makefile.in (INSTALLED_LIBS): Make sure that @LIBS@ will not
2465 result in an empty line, to work around a bug in native Ultrix 4.4
2466 and OSF/1-3.2C make.
2470 * configure.in: Add gdbserver to configdirs under linux.
2471 * configure: Regenerate.
2475 * config/i386/nm-nbsd.h (FLOAT_INFO): Comment out.
2476 * config/i386/tm-nbsd.h (NUM_REGS): Define.
2480 * solib.c (solib_break_names): Add _r_debug_state for
2481 vanilla SVR4 implementations. From Peter Schauer.
2485 * mon960-rom.c: New file; support mon960 rom monitor on i960.
2486 * monitor.c (monitor_debug): Change remotedebug to buffer strings.
2487 * monitor.c (monitor_open): Add test for flag MO_NO_ECHO_ON_OPEN before
2488 epecting prompt and echo during open.
2489 * monitor.c (monitor_stop): Add test for flag MO_SEND_BREAK_ON_OPEN to
2490 determine if break should be sent as stop command.
2491 * monitor.h: Add flags MO_NO_ECHO_ON_OPEN and MO_SEND_BREAK_ON_OPEN.
2492 * i960-tdep.c (mon960_frame_chain_valid): New function for getting
2493 stack frame on mon960.
2494 * Makefile.in: Add mon960 files.
2495 * configure.in: Changed i960-*-coff* and i960-*-elf* to target mon960;
2496 added i960-nindy-coff* and i960-nindy-elf* for target nindy.
2497 * configure: Regenerated.
2498 * config/i960/mon960.mt, config/i960/tm-mon960.h: New files;
2499 support mon960 rom monitor on i960.
2503 With Michael Snyder:
2504 * i386-tdep.c (skip_trampoline_code): Fix strncmp length.
2505 * win32-nat.c (CHECK, DEBUG*, debug_*): New.
2506 (handle_load_dll): Don't reload symbols.
2507 (handle_exception): Use the DEBUG_* names.
2508 (child_wait): Add DEBUG_* code.
2509 (_initialize_inftarg): Add new commands to set debug_ names.
2513 * From Peter Schauer:
2514 * breakpoint.c (insert_breakpoints): Use ALL_BREAKPOINTS_SAFE.
2515 (bpstat_stop_status): Likewise.
2516 (remove_solib_event_breakpoints): Likewise.
2517 (clear_momentary_breakpoints): Likewise.
2518 (re_enable_breakpoints_in_shlibs): Don't reenable a breakpoint
2519 if we still can't read the memory for that breakpoint.
2520 (mention): Add bp_shlib_event case to keep gcc quiet.
2524 * breakpoint.h (enum enable): New enum shlib_disabled for
2525 shared library breakpoints that have been temporarily disabled.
2526 * breakpoint.c: Handle temporarily disabled shared library
2527 breakpoints like disabled breakpoints in most places.
2528 (insert_breakpoints): Use shlib_disabled to indicate
2529 that an unsettable breakpoint is only temporarily disabled.
2530 (re_enable_breakpoints_in_shlibs): New function.
2531 * corelow.c (solib_add_stub): After adding shared libraries,
2532 try to reenable any temporarily disabled breakpoints.
2533 * infcmd.c (attach_command): Likewise.
2534 * infrun.c (wait_for_inferior): Likewise.
2538 * defs.h (extract_long_unsigned_integer): Declare.
2539 * findvar.c (extract_long_unsigned_integer): New function.
2540 * printcmd.c (print_scalar_formatted): Use it.
2541 * valprint.c (val_print_type_code_int): Likewise.
2545 * infcmd.c (do_registers_info): Ignore anonymous registers.
2546 * sh-tdep.c (set processor): New command to set specific
2548 (sh_reg_names, sh3_reg_names): Arrays of register names for
2549 SH and SH3 processors.
2550 (sh_set_processor_type): New function.
2551 * sh3-rom.c (sh3_open): Call it.
2552 (sh3_regname): Add names of all the bank registers.
2553 (sh3_supply_register): Clean up formatting.
2554 * config/sh/tm-sh.h (NUM_REGS, NUM_REALREGS): Increase to include
2556 (REGISTER_NAMES): Add names of bank registers.
2557 (FP15_REGNUM): Define.
2558 (REGISTER_VIRTUAL_TYPE): Use it.
2559 * monitor.c: Clean up some comments.
2563 * i386b-nat.c: Revert part of Mar 5 change. FreeBSD collapsed the
2564 s* and t* symbols too.
2568 * symfile.c (generic_load): Avoid division by zero.
2572 * breakpoint.c (bfd_lookup_symbol): Provide for all SVR4 systems,
2573 not just those with HANDLE_SVR4_EXEC_EMULATORS.
2576 * breakpoint.c (internal_breakpoint_number): Move to file scope.
2577 (create_solib_event_breakpoint): Use an internal breakpoint number.
2581 * valarith.c (value_in): Change builtin_type_chill_bool to
2586 * ch-exp.c (parse_primval): Handle CARD, MAX, MIN.
2587 (match_string_literal): Handle control sequence.
2588 (match_character_literal): Deto.
2590 * ch-lang.c (chill_printchar): Change formating of nonprintable
2591 characters from C'xx' to ^(num).
2592 (chill_printstr): Deto.
2593 (value_chill_card, value_chill_max_min): New functions to process
2594 Chill's CARD, MAX, MIN.
2595 (evaluate_subexp_chill): Process UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN.
2597 * expression.h (exp_opcode): Add UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN
2598 for Chill's CARD, MAX, MIN.
2600 * valarith.c (value_in): Add processing of TYPE_CODE_RANGE
2601 and change return type from builtin_type_int to
2602 builtin_type_chill_bool.
2606 * config/nm-nbsd.h (link_object, lo_name, etc): Move to here
2607 from config/nm-nbsd.h.
2608 * config/sparc/nm-nbsd.h (regs, fp_status, etc): Move to here
2609 from config/sparc/tm-nbsd.h.
2611 * config/m68k/nm-hp300hpux.h (FIVE_ARG_PTRACE): Define here
2612 instead of in config/m68k/xm-hp300hpux.h.
2616 * i386b-nat.c, m68knbsd-nat.c (fetch_core_registers): Provide
2617 implementation for NetBSD systems.
2621 * valarith.c (binop_user_defined_p): Return 0 for BINOP_CONCAT.
2622 (value_concat): Handle varying strings (add COERCE_VARYING_ARRAY).
2624 * ch-lang.c (evaluate_subexp_chill case MULTI_SUBSCRIPT): Error
2625 if "function" is pointer to non-function.
2629 * top.c (print_gdb_version): Update copyright year.
2634 * infrun.c (wait_for_inferior): Remove breakpoints and
2635 switch terminal settings before calling SOLIB_ADD.
2636 * solib.c (enable_break, SVR4 variant): Don't map in symbols
2637 for the dynamic linker, the namespace pollution causes real
2642 * remote-mips.c (common_breakpoint): Explicitly terminate the
2648 * remote.c (remote_detach): Send a command 'D' to the target
2649 when detaching, update the function's comments.
2653 * gnu-nat.c (thread_cmd_list): New declaration.
2654 (parse_int_arg): New function.
2658 * gnu-nat.h (struct proc): Add DETACH_SC field.
2659 * gnu-nat.c (make_proc): Set DETACH_SC.
2660 (struct inf): Add DETACH_SC & DEFAULT_THREAD_DETACH_SC fields.
2661 (make_inf): Set DETACH_SC & DEFAULT_THREAD_DETACH_SC fields.
2662 (add_thread_commands): Add set/show for detach-suspend-count.
2663 Add takeover-suspend-count cmd.
2664 (inf_detach): Set suspend counts to the detach SC, not 0.
2665 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd,
2666 set_task_detach_sc_cmd, show_task_detach_sc_cmd,
2667 set_thread_default_thread_detach_sc_cmd,
2668 show_thread_default_thread_detach_sc_cmd): New functions.
2669 (show_task_cmd): Also show detach-suspend-count values.
2670 (thread_takeover_sc_cmd): New function.
2674 * gnu-nat.c (show_thread_run_cmd): Actually print state.
2678 * gnu-nat.c (inf_signal): Make unforwardable exceptions an error.
2682 * gnu-nat.c (inf_validate_stopped): proc_getprocinfo takes a
2683 pointer to the flags now, not the flags themselves.
2687 * gnu-nat.c (gnu_wait): Print debugging msgs for pending execs.
2688 (gnu_create_inferior): Check return from ptrace.
2692 * gnu-nat.h (struct proc): Add DEAD field.
2693 * gnu-nat.c (make_proc): Initialize DEAD.
2694 (inf_set_traced, inf_validate_task_sc, inf_validate_procs: Frob it.
2695 (gnu_wait): Only abort for 0 threads if the task isn't dead.
2699 * gnu-nat.c (inf_signal): Pass SIGCODE when posting a signal.
2703 * gnu-nat.c (S_proc_wait_reply): Add SIGCODE argument.
2704 (inf_set_traced): Only give no-signal-thread error message if
2705 turning *on* tracing.
2709 * gnu-nat.c (inf_validate_procs): If INF has no threads, always
2710 set inf->threads_up_to_date to 0.
2711 (inf_signal): Pass in new SIGCODE argument to msg_sig_post_untraced.
2712 (gnu_wait): Pass in new TIMEOUT arg to interrupt_operation.
2713 (proc_update_sc): Cast thread state arg to thread_set_state.
2714 (proc_get_state): Cast thread state arg to thread_get_state.
2715 (inf_validate_task_sc): Cast task_basic_info arg to task_info.
2716 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Call
2717 inf_update_procs before we lookup the thread.
2718 * config/i386/i386gnu.mh (MH_CFLAGS): New variable.
2722 * gnu-nat.c (gnu_kill_inferior): Use inf_set_task to clear the task.
2726 * gnu-nat.c (inf_set_traced): Use msg_set_init_int with
2727 INIT_TRACEMASK instead of setting the exec flags.
2731 * gnu-nat.c (inf_validate_procs): Don't clear INF->task if we find
2732 the task's died, so others have a chance at it.
2733 (gnu_resume): When single-stepping a single thread, given an error
2734 if there is no such thread. When single-stepping one but running
2735 the others, just given a warning and still run all the threads.
2736 (gnu_wait): If there seem to be no threads, look harder, and
2737 signal an error if there really aren't any.
2738 (gnu_attach): Reset thread numbering to 0.
2740 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Give
2741 thread name in warning messages.
2743 * gnu-nat.c (active_inf): New function.
2744 (show_sig_thread_cmd, show_stopped_cmd): Use it.
2745 (info_port_rights, info_send_rights_cmd, info_port_sets_cmd,
2746 info_recv_rights_cmd, info_port_rights_cmd, info_port_rights_cmd):
2748 (add_task_commands): Add new port-right info commands.
2752 * gnu-nat.c (gnu_wait): Instead of _hurd_intr_rpc_mach_msg, just
2753 use mach_msg with MACH_RCV_INTERRUPT.
2754 (set_noninvasive_cmd): New function.
2755 (add_task_commands): Add command entry for `set noninvasive'.
2759 * gnu-nat.c (gnu_read_inferior): Use hurd_safe_memmove, not safe_bcopy.
2760 (safe_bcopy): Function removed.
2764 * gnu-nat.c (proc_update_sc): Assert only threads can have state.
2765 (make_proc): Initialize state_valid & state_changed fields.
2769 * reply_mig_hack.awk: New file.
2773 * breakpoint.c (breakpoint_1): Print breakpoint thread field.
2775 * lynx-nat.c (child_wait): Return TARGET_WAITKIND_SPURIOUS for new
2780 * target.c (debug_to_check_threads): New function.
2782 * inflow.c (terminal_init_inferior_with_pgrp): New function.
2783 (terminal_init_inferior): Call terminal_init_inferior_with_pgrp.
2784 * inferior.h (terminal_init_inferior_with_pgrp): New declaration,
2785 but only if PROCESS_GROUP_TYPE is defined.
2789 * target.c (debug_to_thread_alive): Pass through the return value.
2793 * target.c (signals, target_signal_from_host, target_signal_to_host):
2794 Add mach exceptions.
2795 * target.h (enum target_signal): Add mach exceptions.
2799 * gnu-nat.c: New file: gnu native backend.
2800 * i386gnu-nat.c: New file: i386-specific part of gnu native backend.
2801 * gnu-nat.h: New file.
2802 * config/nm-gnu.h: New file.
2803 * config/tm-i386gnu.h: New file.
2804 * config/xm-i386gnu.h: New file.
2805 * config/i386/i386gnu.mh: New file.
2806 * config/i386/i386gnu.mt: New file.
2810 * Makefile.in (VERSION): Bump version to 4.15.2 to establish
2811 baseline for gdb 4.16 rerelease testing.
2815 * somsolib.c (som_solib_create_inferior_hook): Before returning
2816 call clear_symtab_users.
2820 * remote-e7000.c (e7000_open): Delete all breakpoints when
2821 connecting to e7000. Change connect message to allow use of
2822 monitor.exp in test suite.
2823 * (e7000_load): Print transfer rate of download.
2824 * symfile.c (generic_load): Print transfer rate of download.
2828 * configure.in (mips*-*-vxworks*): New config.
2829 * configure: Regenerated.
2831 * config/mips/vxmips.mt, config/mips/tm-vxmips.h: New files.
2832 * remote-vxmips.c (vx_convert_to_virtual, vx_convert_from_virtual):
2837 * partial-stab.h (case N_FUN): Function symbols generated
2838 by SPARCworks cc have a meaningless zero value, do not update
2839 pst->textlow if the function symbol value is zero.
2841 * stabsread.c (define_symbol): Initialize SYMBOL_TYPE field
2842 for function prototype declaration symbols.
2846 * remote-e7000.c (e7000_load): New routine to download via the
2848 * (e7000_wait): Don't backup PC when we hit a breakpoint.
2849 Apparantly new sh2 pods get this right...
2850 * (e7000_ops): Add call to e7000_load.
2854 * config/m68k/{nbsd.mh,nbsd.mt,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h},
2855 m68knbsd-nat.c: New files, support for NetBSD/m68k.
2857 * configure.in (m68k-*-netbsd*): New config.
2858 * configure: Regenerated.
2862 * standalone.c (open, _initialize_standalone): Fix obvious typos
2867 * solib.c (solib_create_inferior_hook): Fix thinko.
2871 * solib.c (solib_break_names): Define for Solaris and Linux.
2872 (enable_break): For SVR4 systems, first try to use the debugger
2873 interfaces in the dynamic linker to track shared library events
2874 as they happen, then fall back to BKPT_AT_SYMBOL code. Convert
2875 BKPT_AT_SYMBOL code to use shared library event breakpoints.
2876 (solib_create_inferior_hook): Simplify BKPT_AT_SYMBOL code,
2877 it no longer needs to restart/wait on the inferior.
2878 * symfile.c (find_lowest_section): No longer static.
2879 * symfile.h (find_lowest_section): Corresponding changes.
2883 * valops.c (COERCE_FLOAT_TO_DOUBLE): Define default value.
2884 (value_arg_coerce): Use COERCE_FLOAT_TO_DOUBLE.
2885 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Define to 1.
2886 * config/mips/tm-mips.h: Ditto.
2887 * config/pa/tm-hppa.h: Ditto.
2888 * config/rs6000/tm-rs6000.h: Ditto.
2889 * config/sparc/tm-sparc.h: Ditto.
2893 * config/{i386,ns32k}/nbsd.mh (NATDEPFILES): Remove core-aout.o.
2895 * config/nm-nbsd.h (FETCH_INFERIOR_REGISTERS): Defined.
2896 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
2897 #ifdef'd out definitions --- Causes serious gdb failures on
2898 the i386. Need to investigate further before enabling.
2900 * i386b-nat.c (fetch_inferior_registers, store_inferior_registers,
2901 fetch_core_registers): New functions. These functions are defined
2902 if FETCH_INFERIOR_REGISTERS is set. Registers are fetched/stored
2903 with ptrace PT_GETREGS/PT_SETREGS.
2907 * findvar.c (extract_floating store_floating): Replace `long
2908 double' with `DOUBLEST'.
2912 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
2917 * symtab.h (looup_minimal_symbol_solib_trampoline): Declare.
2919 * breakpoint.h (remove_solib_event_breakpoints): Declare.
2920 * breakpoint.c (remove_solib_event_breakpoints): New function.
2921 * somsolib.c (solib_create_inferior_hook): Remove all solib event
2922 breakpoints before inserting any new ones. Use a solib event
2923 breakpoint for the breakpoint at "_start".
2924 Remove extraneous "\n" from calls to warning.
2926 * breakpoint.c (breakpoint_1): Add missing "sigtramp" to bptypes
2931 * dwarfread.c (add_partial_symbol): Use ADD_PSYMBOL_ADDR_TO_LIST
2932 for CORE_ADDR values.
2933 (new_symbol): Use SYMBOL_VALUE_ADDRESS for CORE_ADDR values.
2934 * symfile.h (add_psymbol_{,addr}to_list): Add prototypes.
2938 * mipsread.c (mipscoff_symfile_read): Unconditionally add
2939 alpha coff dynamic symbols for all symbol files. Makes skipping
2940 over the trampoline code work when stepping from a function in a
2941 shared library into a function in a different shared library.
2945 * config/sparc/tm-sparc.h: Define PS_FLAG_CARRY. Define
2946 RETURN_VALUE_ON_STACK to return long doubles on the stack.
2950 * Makefile.in (ch-exp.o): Add dependencies.
2951 (various): Add gdb_string.h to dependencies that need it.
2955 * symmisc.c (print_symbol_bcache_statistics): Update description for
2956 printing byte cache statistics.
2960 * Add native support for long double data type.
2961 * c-exp.y (%union): Change dval to typed_val_float. Use DOUBLEST
2962 to store actual data. Change types of INT and FLOAT tokens to
2963 typed_val_int and typed_val_float respectively. Create new token
2964 DOUBLE_KEYWORD to specify the string `double'. Make production
2965 for FLOAT use type determined by parse_number. Add production for
2966 "long double" data type.
2967 * (parse_number): Use sscanf to parse numbers as float, double or
2968 long double depending upon the type of typed_val_float.dval. Also
2969 allow user to specify `f' or `l' suffix to explicitly specify
2970 float or long double constants. Change typed_val to
2972 * (yylex): Change typed_val to typed_val_int. Also, scan for
2974 * coffread.c (decode_base_type): Add support for T_LNGDBL basic
2976 * configure, configure.in: Add check for long double support in
2978 * defs.h: Define DOUBLEST appropriatly depending on whether
2979 HAVE_LONG_DOUBLE (from autoconf) is defined. Also, fix prototypes
2980 for functions that handle this type.
2981 * expression.h (union exp_element): doubleconst is now type
2983 * m2-exp.y f-exp.y (%union): dval becomes type DOUBLEST.
2984 * findvar.c (extract_floating): Make return value be DOUBLEST.
2985 Also, add support for numbers with size of long double.
2986 * (store_floating): Arg `val' is now type DOUBLEST. Handle all
2988 * parser-defs.h parse.c (write_exp_elt_dblcst): Arg expelt is now
2990 * valarith.c (value_binop): Change temp variables v1, v2 and v to
2991 type DOUBLEST. Coerce type of result to long double if either op
2993 * valops.c (value_arg_coerce): If argument type is bigger than
2994 double, coerce to long double.
2995 * (call_function_by_hand): If REG_STRUCT_HAS_ADDR is defined, and
2996 arg type is float and > 8 bytes, then use pointer-to-object
2997 calling conventions.
2998 * valprint.c (print_floating): Arg doub is now type DOUBLEST.
2999 Use appropriate format and precision to print out floating point
3001 * value.h: Fixup prototypes for value_as_double,
3002 value_from_double, and unpack_double to use DOUBLEST.
3003 * values.c (record_latest_value): Remove check for invalid
3004 floats. Allow history to store them so that people may examine
3005 them in hex if they want.
3006 * (value_as_double unpack_double): Change return value to DOUBLEST.
3007 * (value_from_double): Arg `num' is now DOUBLEST.
3008 * (using_struct_return): Use RETURN_VALUE_ON_STACK macro (target
3009 specific) to expect certain types to always be returned on the stack.
3013 * bcache.c, bcache.h: New files to implement a byte cache.
3014 * Makefile.in (SFILES): Add bcache.c.
3015 (symtab_h): Add bcache.h.
3016 (HFILES_NO_SRCDIR): add bcache.h
3017 (COMMON_OBJS): Add bcache.o
3018 (bcache.o): New target.
3019 * dbxread.c (start_psymtab): Make global_syms & static_syms
3020 type "partial_symbol **".
3021 * hpread.c (hpread_start_symtab): Ditto.
3022 * os9kread.c (os9k_start_psymtab): Ditto.
3023 * stabsread.h (start_psymtab): Ditto.
3024 * {symfile.c, symfile.h} (start_psymtab_common): Ditto.
3025 * maint.c (maintenance_print_statistics): Call
3026 print_symbol_bcache_statistics.
3027 * objfiles.c (allocate_objfile): Initialize psymbol bcache malloc
3029 * solib.c (allocate_rt_common_objfile): Ditto.
3030 * symfile.c (reread_symbols): Ditto.
3031 (free_objfile): Free psymbol bcache when objfile is freed.
3032 (objfile_relocate): Use new indirect psymbol pointers.
3033 * objfiles.h (struct objfile): Add psymbol cache.
3034 * symfile.c (compare_psymbols): Now passed pointers to pointers to
3036 (reread_symbols): Free psymbol bcache when freeing other objfile
3038 (add_psymbol_to_list, add_psymbol_addr_to_list): Initialize new
3039 psymbol using the psymbol bcache.
3040 (init_psymbol_list): Psymbol lists now contain pointers rather than
3041 the actual psymbols.
3042 * symfile.h (psymbol_allocation_list): Psymbol lists now dynamically
3043 grown arrays of pointers.
3044 (ADD_PSYMBOL_VT_TO_LIST): Initialize new symbol using the psymbol
3046 * symmisc.c (print_partial_symbols): Now takes pointer to pointer
3048 (print_symbol_bcache_statistics): New function to print per objfile
3050 (print_partial_symbol, print_partial_symbols,
3051 maintenance_check_symtabs, extend_psymbol_list):
3052 Account for change to pointer to pointer to partial symbol.
3053 * symtab.c (find_pc_psymbol, lookup_partial_symbol, decode_line_2,
3054 make_symbol_completion_list):
3055 Account for change to pointer to pointer to partial symbol.
3056 * symtab.h (bcache.h): Include.
3057 * xcoffread.c (xcoff_start_psymtab): Make global_syms & static_syms
3058 type "partial_symbol **".
3062 * dwarfread.c (free_utypes): New function.
3063 (read_file_scope): Call free_utypes as cleanup, rather than just
3064 freeing the utypes pointer.
3068 * demangle.c (is_cplus_marker): New function, checks if a
3069 character is one of the commonly used C++ marker characters.
3070 * defs.h (is_cplus_marker): Add prototype.
3071 * c-typeprint.c (c_type_print_base), ch-lang.c (chill_demangle),
3072 cp-valprint.c (cp_print_class_method), mdebugread.c (parse_symbol),
3073 stabsread.c (define_symbol, read_member_functions, read_struct_fields),
3074 symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P),
3075 values.c (vb_match): Use is_cplus_marker instead of comparison
3080 * symfile.h (INLINE_ADD_PSYMBOL): Default this to 0 and possibly
3081 delete entirely someday.
3085 * mpw-make.sed: Edit out makefile rebuild rule.
3086 (host_alias, target_alias): Comment out instead of deleting.
3087 (@LIBS@): Edit out references.
3091 * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
3092 Use n_psyms in OBJSTAT, not psyms.
3096 * configure.in (sparclet-*-aout*): New config.
3097 * configure: Regenerated.
3101 * somsolib.c (som_solib_add): Use xmalloc rather than bare
3102 unchecked call to malloc.
3103 * remote-mips.c (pmon_load_fast): ditto.
3104 * remote-mm.c (mm_open): ditto.
3105 * hpread.c (hpread_lookup_type): ditto.
3106 * remote-adapt.c (adapt_open): ditto.
3110 * f-lang.c (allocate_saved_bf_node, allocate_saved_function_node,
3111 allocate_saved_f77_common_node, allocate_common_entry_node,
3112 add_common_block): Use xmalloc rather than malloc, some of which
3114 * gnu-regex.c: At same point as other gdb specific changes
3115 #undef malloc and then #define it to xmalloc.
3116 * ch-exp.c (growbuf_by_size): Use xmalloc/xrealloc rather than
3117 bare unchecked calls to malloc/realloc.
3118 * stabsread.c (dbx_lookup_type): Use xmalloc rather than bare
3119 unchecked call to malloc.
3123 * symtab.c (gdb_mangle_name): Change opname var to be const to
3124 match return val of cplus_mangle_name.
3125 * i960-tdep.c: Change arg types of next_insn to match callers.
3129 * config/i386/linux.mh (XM_CLIBS, GDBSERVER_LIBS): Remove. These
3130 apparently aren't needed in any reasonably recent version of
3135 * stabsread.c (read_range_type): If !self-subrange and language
3136 is Chill, assume a true range. If a true_range is a sub_subrange,
3137 use builtin_type_int for index_type.
3141 * nindy-share/nindy.c (say): Use stdarg.h macros when compiling
3142 with an ANSI compiler.
3144 start-sanitize-gdbtk
3147 * gdbtk.tcl (create_file_win): Eliminate text widget B1 binding so
3148 double-clicking will work again.
3149 (create_asm_win): Put "break" at end of all B1 bindings.
3150 (create_file_win): Lower "sel" tag, don't raise it.
3151 (ensure_line_visible): New proc.
3152 (update_listing, update_assembly): Use it.
3153 (create_copyright_window): Destroy window on Leave event.
3154 (create_command_window): Put "break" at end of all B2 bindings.
3160 * valops.c (value_arg_coerce): Coerce float to double, unless the
3161 function prototype specifies float.
3165 * language.c (set_language_command): Use languages table when
3166 printing available languages.
3171 * command.c (add_cmd): Add missing initialization for enums member.
3172 Reorder members to match structure declaration to make it easier to
3173 tell when one is missing.
3174 * exec.c (exec_file_command): Fix problem where filename in malloc'd
3175 memory is referenced after being freed.
3179 * dwarfread.c (read_func_scope): Avoid GDB core dumps if
3180 AT_name tag is missing.
3182 * procfs.c (procfs_stopped_by_watchpoint): Fix logic when
3183 FLTWATCH and FLTKWATCH are defined.
3185 * remote.c (remote_read_bytes): Advance memaddr for transfers,
3186 return number of bytes transferred for partial reads.
3188 * top.c (init_signals): Reset SIGTRAP to SIG_DFL.
3192 * win32-nat.c (mappings): Add ppc registers.
3193 (child_resume): Turn off step for ppc.
3197 * config/powerpc/(cygwin32.mh, cygwin32.mt, tm-cygwin32.h,
3198 xm-cygwin32.h): New.
3199 * config/i386/(*win32*): Becomes *cygwin32*.
3200 * configure.in (i[3456]86-*-win32*): Becomes i[3456]86-*-cygwin32.
3201 (powerpcle-*-cygwin32): New.
3202 * configure: Regenerate.
3203 * win32-nat.c (child_create_inferior): Call CreateProcess
3204 with the right program arg.
3208 * config/pa/tm-hppa.h (SOFT_FLOAT): Provide a default definition.
3212 * serial.c: Change fputc/fputs/fprintf to _unfiltered forms.
3216 * config/sparc/xm-sun4os4.h (HAVE_TERMIOS): Remove.
3218 * config/sparc/xm-sparc.h (HAVE_WAIT_STRUCT): Remove, never used.
3220 * config/i386/nm-i386mach.h (CHILD_PREPARE_TO_STORE): Move to
3221 here from config/i386/xm-i386mach.h, fix name.
3222 * config/i386/nm-sun386.h: Ditto, from config/i386/xm-sun386.h.
3223 * config/i386/nm-ptx4.h (CHILD_PREPARE_TO_STORE): Move to
3224 here from config/i386/xm-ptx4.h.
3225 * config/i386/nm-ptx4.h: Ditto, from config/i386/xm-ptx.h.
3226 * config/i386/nm-symmetry.h: Ditto, from config/i386/xm-symmetry.h.
3227 * config/m68k/nm-sun3.h: Ditto, from config/m68k/xm-sun3.h.
3228 * config/sparc/nm-nbsd.h: Ditto, from config/sparc/xm-nbsd.h.
3229 * config/sparc/nm-sun4os4: Ditto, from config/sparc/xm-sparc.h.
3231 * config/sparc/nm-sun4sol2.h: New file, renamed from nm-sysv4.h.
3232 (PRSVADDR_BROKEN): Move here from xm-sun4sol2.h.
3233 * config/sparc/sun4sol2.mh (NAT_FILE): Update.
3237 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Handle software
3238 floating point correctly.
3239 (STORE_RETURN_VALUE): Likewise.
3240 * config/pa/tm-pro.h (SOFT_FLOAT): define.
3244 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
3245 Define to what should be reasonable values. However, apparently
3246 a bug in linux mmap prevents mapped symbol tables from working.
3250 * defs.h (errno.h>: Move #include closer to head of file to solve
3251 obscure problem with systems that declare perror with const arg, in
3252 both errno.h and stdio.h, and const is defined away by intervening
3258 * i386-stub.c (getpacket): Change fprintf stream from "gdb" to stderr.
3259 (mem_fault_routine): Fix misplaced volatile type qualifier in decl.
3263 * Makefile.in (diststuff): Make all-doc; diststuff target does not
3264 exist in doc/Makefile.in.
3268 * config/m88k/xm-cxux.h (BP_HIT_COUNT): Remove, never used.
3272 * ch-valprint.c (calculate_array_length): New function to
3273 determine the length of an array type.
3274 (chill_val_print (case TYPE_CODE_ARRAY)): If the length of an
3275 array type is zero, call calculate_array_length.
3277 * gdbtypes.c (get_discrete_bounds (case TYPE_CODE_ENUM)): The
3278 values may not be sorted. Scan all entries and set the real lower
3283 * config/xm-linux.h: Move include of solib.h and #define of
3284 SVR4_SHARED_LIBS from here ...
3285 * config/nm-linux.h: ...to here.
3289 * configure.in (AC_CHECK_HEADERS): Check for sys/procfs.h.
3290 Also check for gregset_t and fpregset_t types.
3291 * configure: Regenerate.
3292 * core-regset.c (sys/procfs.h): Only include if HAVE_SYS_PROCFS_H
3294 (fetch_core_registers): Turn into stub unless both HAVE_GREGSET_T
3295 and HAVE_FPREGSET_T are defined. These changes allow systems
3296 like linux that are migrating to /proc support to use a single
3297 configuration for both new and old versions.
3299 * config/i386/linux.mt: Note that this is now for both a.out and
3301 * config/i386/linux.mh (NATDEPFILES): Add solib.o, core-regset.o,
3303 * config/i386/tm-linux.h (tm-sysv4.h): Include.
3304 * config/i386/xm-linux.h (solib.h): Include
3305 (SVR4_SHARED_LIBS): Define.
3306 * i386v4-nat.c: Only compile if HAVE_SYS_PROCFS_H is defined.
3307 (supply_gregset, fill_gregset): Compile if HAVE_GREGSET_T defined.
3308 (supply_fpregset, fill_fpregset): Compile if HAVE_FPREGSET_T
3313 * config/sparc/xm-sparc.h (NEW_SUN_CORE): Remove, never used.
3314 * config/i386/xm-sun386.h: Ditto.
3315 * config/m68k/xm-sun2.h, config/m68k/xm-sun3.h: Ditto.
3319 * Makefile.in (INSTALLED_LIBS, CLIBS): Include @LIBS@.
3324 * dcache.c (dcache_peek, dcache_poke): Advance addr for
3329 * infrun.c (normal_stop): Fix test for shared library event.
3333 * configure.in (sparc64-*-*): Add default host configuration.
3334 start-sanitize-gdbtk
3335 (sparc64-*-solaris2* host): Link statically if GCC used.
3337 (sparc64-*-solaris2*): Add target configuration.
3338 * configure: Regenerated.
3339 * sparc/sp64sol2.mt: New file.
3343 * Makefile.in (RUNTEST): srcdir renamed to rootsrc.
3347 * Makefile.in (lint): Close backquotes.
3349 start-sanitize-gdbtk
3352 * gdbtk.tcl, gdbtk.c: Updated copyrights.
3354 * configure.in: Look for -ldl or -ldld when using Tcl 7.5 or
3356 * configure: Rebuilt.
3361 * NEWS: Make note of new record and replay feature for
3362 remote debug sessions.
3363 * serial.c (gdbcmd.h): Include.
3364 (serial_logfile, serial_logfp, serial_reading, serial_writing):
3365 Define here, for remote debug session logging.
3366 (serial_log_command, serial_logchar, serial_write, serial_readchar):
3367 New functions for remote debug session logging.
3368 (serial_open): Open remote debug session log file when needed.
3369 (serial_close): Close remote debug session log file when needed.
3370 (_initialize_serial): Add set/show commands for name of remote
3371 debug session log file.
3372 * serial.h (serial_readchar): Declare
3373 (SERIAL_READCHAR): Call serial_readchar().
3374 (SERIAL_WRITE): Call serial_write().
3375 (serial_close): Declare as extern.
3376 (serial_logfile, serial_logfp): Declare.
3377 * top.c (execute_command): Declare serial_logfp. Log user command
3378 in remote debug session log if log file is open.
3379 * remote-array.c (array_wait): #ifdef out echo to gdb_stdout.
3380 (array_read_inferior_memory): Rewrite to fix memory overwrite bug.
3381 * remote-array.c (SREC_SIZE): Remove, duplicates define in
3383 * remote-array.c (hexchars, hex2mem): Remove, unused.
3384 * gdbserver/low-linux.c (store_inferior_registers): Remove
3385 unnecessary extern declaration of registers[].
3386 * gdbserver/Makefile.in (all): Add gdbreplay.
3387 * gdbserver/gdbreplay.c: New file.
3388 * gdbserver/README: Give example of recording a remote
3389 debug session with gdb and then replaying it with gdbreplay.
3393 * stabsread.c (rs6000_builtin_type): Make bool type unsigned.
3394 (read_one_struct_field): Support boolean bitfields.
3395 * c-valprint.c (c_val_print): Print booleans properly.
3399 * remote-vxsparc.c (vx_convert_to_virtual, vx_convert_from_virtual):
3401 * config/sparc/vxsparc.mt (TDEPFILES): Add remote-vxsparc.o.
3405 * ch-exp.c (parse_tuple): Error if invalid mode.
3407 * value.h (COERCE_ARRAY): Don't coerce enums.
3408 (COERCE_ENUM): Don't COERCE_REF.
3409 (COERCE_NUMBER): New macro (same as COERCE_ARRAY then COERCE_ENUM).
3410 * valops.c (value_assign): Only do COERCE_ARRAY if internalvar (let
3411 value_cast handle it otherwise); do *not* COERCE_ENUM either way.
3412 * valarith.c: Use COERCE_NUMBER instead od COEREC_ARRAY.
3413 Add COERCE_REF before COERCE_ENUM.
3414 * values.c (value_as_long): Simplify.
3416 * valops.c (value_array): Create internalvar if !c_style_arrays.
3418 * language.c (lang_bool_type): Add Fortran support.
3419 * eval.c (OP_BOOL): Use LA_BOOL_TYPE.
3423 * symfile.c (auto_solib_add): Renamed from auto_solib_add_at_startup.
3424 All references changed.
3425 * breakpoint.c (bpstat_what): Add shlib_event to the class types.
3426 Update state table. Reformat so that it's still readable.
3427 When we hit the shlib_event breakpoint, set the calss of shlib_event.
3428 (breakpoint_1): Add "shlib events" as a breakpoint type.
3429 Print the shlib_event breakpoint like other breakpoints.
3430 (create_solib_event_breakpoint): New function.
3431 (breakpoint_re_set_one): Handle solib_event breakpoints.
3432 * breakpoint.h (enum bytype): Add bp_shlib_event breakpoint type.
3433 (enum bpstat_what_main_action): Add BPSTAT_WHAT_CHECK_SHLIBS
3435 (create_solib_event_breakpoint): Declare.
3436 * infrun.c (wait_for_inferior): Handle CHECK_SHLIBS bpstat.
3437 (normal_stop): Inform the user when the inferior stoped due
3438 to a shared library event.
3439 (_initialize_infrun): Add new set/show variable "stop-on-solib-events"
3440 to control whether or not gdb continues the inferior or stops it when
3441 a shared library event occurs.
3442 * minsyms.c (lookup_minimal_symbol_solib_trampoline): New function.
3443 * somsolib.c (TODO list): Update.
3444 (som_solib_create_inferior_hook): Arrange for gdb to be notified
3445 when significant shared library events occur.
3446 * hppa-tdep.c (find_unwind_entry): No longer static.
3450 * printcmd.c (print_insn): Pass fprintf_unfiltered to
3451 INIT_DISASSEMBLE_INFO.
3452 start-sanitize-gdbtk
3453 * gdbtk.c (gdb_disassemble): Likewise.
3458 * remote.c (remotebreak): New GDB variable.
3459 (remote_break): New global.
3460 (remote_interrupt): Send a break instead of ^C if remote_break.
3461 * NEWS: Describe the new variable.
3465 * sparc-tdep.c (_initialize_sparc_tdep): Always use print_insn_sparc.
3469 * hp300ux-nat.c (getpagesize): Remove unused function
3470 fetch_core_registers.
3471 (hp300ux_core_fns): Remove, is unused.
3472 (_initialize_core_hp300ux): Remove, is unused.
3473 (gdbcore.h): Remove #include, no longer needed.
3477 * rs6000-nat.c (exec_one_dummy_insn): Rework to avoid
3478 ptrace bug in aix4.1.3 on the rs6000.
3482 * remote-hms.c (hms_ops): Add value for to_thread_alive.
3483 * remote-nindy.c (nindy_ops): Ditto.
3484 * remote-udi.c (udi_ops): Ditto.
3488 * remote-mips.c (pmon_opn, pmon_wait, pmon_makeb64, pmon_zeroset,
3489 pmon_checkset, pmon_make_fastrec, pmon_check_ack,
3490 pmon_load_fast): New functions. Support for the PMON monitor world.
3491 (common_open): New function to merge support for different monitors.
3492 (mips_open): Use common_open().
3493 (mips_send_command): New function.
3494 (mips_send_packet): Scan out-of-sequence packets.
3495 (mips_enter_debug, mips_exit_debug): New functions.
3496 (pmon_ops): New target definition structure.
3500 * Makefile.in (CLIBS): Add LIBS to allow libraries to be
3501 specified on the make command line (via make LIBS=xxx).
3503 * configure.in (enable-gm): magic.o -> gmagic.o.
3506 start-sanitize-gdbtk
3509 * gdbtk.tcl (create_expr_window): Many changes to update GUI.
3510 (add_expr): Changes from create_expr_window.
3511 (create_command_window): Set focus.
3512 (delete_expr): Rewrote.
3513 (expr_update_button): New proc.
3514 (add_expr): Put bindings on FocusIn, FocusOut.
3515 Don't allow .file_popup to be torn off.
3520 * symtab.c (find_pc_symtab): Don't lose if OBJF_REORDERED
3521 is set but there are no psymtabs.
3525 * dsrec.c (load_srec): Remove unused variable.
3526 * monitor.c (monitor_expect): Don't expect a ^C to echo.
3527 * serial.c (serial_open): Add parallel interface.
3528 * sh3-rom.c (parallel, parallel_in_use): New.
3529 (sh3_load): If parallel_in_use, download though the
3531 (sh3_open): Open parallel port if specified.
3532 (sh3_close): New function.
3533 (_inititalize_sh3): Add sh3_close hook and documentation.
3534 * monitor.c (monitor_close): Export.
3535 * monitor.h (monitor_close): Add prototype.
3540 * remote.c (remotetimeout): New GDB variable, use to set the
3541 remote timeout for reading.
3543 start-sanitize-gdbtk
3546 * gdbtk.tcl (gdbtk_tcl_query): Swap Yes and No buttons.
3547 (update_listing): Use lassign. Use "see" to scroll. Don't need
3548 screen_top, screen_bot, screen_height.
3549 (update_assembly): Use "see" to scroll.
3550 (textscrollproc): Removed.
3551 (create_file_win): Don't use textscrollproc.
3552 (asmscrollproc): Removed.
3553 (create_asm_window): Don't use asmscrollproc.
3554 (create_asm_win): Ditto.
3555 (screen_height, screen_top, screen_bot): Removed.
3556 (run_editor): New proc.
3557 (build_framework): Use it.
3558 (create_file_win, create_source_window): Don't use textscrollproc.
3559 (create_breakpoints_window): Set -xscrollcommand on canvas.
3560 (not_implemented_yet): Default button is 0.
3561 (delete_char): Don't use tk_textBackspace.
3562 (create_command_window): Allow Tk bindings to fire after deleting
3564 (create_command_window): Make Delete delete left, not right.
3569 * lynx-nat.c, irix4-nat.c, sparc-nat.c: Include gdbcore.h
3570 to get "struct core_fns" defined.
3571 * Makefile.in (lynx-nat.o, irix4-nat.o, sparc-nat.o):
3572 Are dependent upon gdbcore_h.
3576 * symfile.c (decrement_reading_symtab): New function.
3577 * symfile.c, symtab.h (currently_reading_symtab): New variable.
3578 * symfile.c (psymtab_to_symtab): Adjust currently_reading_symtab.
3579 * gdbtypes.c (check_typedef): Don't call lookup_symbol if
3580 currently_reading_symtab (since that could infinitely recurse).
3584 * stabsread.c (read_struct_type): Trivial simplification.
3586 * stabsread.c (define-symbol): Use invisible references
3587 for TYPE_CODE_SET and TYPE_CODE_BITSTRING too.
3588 * valops.c (call_function_by_hand): Likewise.
3589 * eval.c (evaluate_subexp_standard): When known, use the formal
3590 parameter type as the expected type when evaluating arg expressions.
3591 * ch-lang.c (evaluate_subexp_chill): Likewise (for MULTI_SUBSCRIPT).
3593 start-sanitize-gdbtk
3596 * main.c (main): Disable window interface if --help or --version
3599 * gdbtk.tcl (FSBox): Don't use tk_listboxSingleSelect.
3601 Changes in sync with expect:
3602 * configure.in (ENABLE_GDBTK): Use CY_AC_PATH_TCL and
3604 * aclocal.m4: Replaced with version from expect.
3605 * configure: Regenerated.
3610 * configure.in, configure: Recognize rs6000-*-aix4*.
3611 * config/powerpc/xm-aix.h: Reduce to include "xm-aix4.h".
3612 * config/rs6000/aix4.mh (XM_FILE): Point to xm-aix4.h.
3613 * config/rs6000/xm-aix4.h: New file.
3614 * config/xm-aix4.h: New file.
3619 * gdbserver/low-linux.c: New file.
3620 * remote.c (remote_read_bytes): Fix aborts on larger packets.
3622 * config/i386/linux.mh (GDBSERVER_DEPFILES, GDBSERVER_LIBS):
3624 * stabsread.c (define_symbol): If register value is too large,
3625 tell what it is and what max is.
3627 start-sanitize-gdbtk
3630 * gdbtk.tcl (gdbtk_tcl_fputs, gdbtk_tcl_fputs_error,
3631 gdbtk_tcl_flush): Use "see", not "yview".
3632 (gdbtk_tcl_query): Use questhead bitmap.
3633 various: Always wrap condition of 'if' in {...}.
3634 (add_breakpoint_frame): Set -value on radiobuttons.
3635 (lassign): New proc.
3636 (add_breakpoint_frame): Use lassign, not series of assignments.
3637 (decr): Made faster.
3638 (interactive_cmd): Use "see", not "yview".
3639 (not_implemented_yet): Use warning bitmap.
3640 (update_expr): Don't allow $expr to be evalled by Tcl.
3641 (create_expr_window): Don't use "focus".
3642 (delete_char, delete_line): Define globally.
3643 (delete_line, delete_char, create_command_window, update_autocmd,
3644 build_framework, create_asm_win, create_file_win): Use "see", not
3646 (create_copyright_window, center_window, bind_widget_after_class):
3648 (FSBox,create_command_window, create_autocmd_window): Binding
3650 (textscrollproc): Define globally.
3651 (build_framework): tk_menuBar no longer needed. Keys Prior, Next,
3652 Home, End, Up, and Down are all defined by Tk.
3653 (apply_filespec): Use error bitmap in dialog.
3654 (files_command): Don't use tk_listboxSingleSelect.
3655 (files_command): Don't use "uniq" to remove duplicates from a
3657 (update_assembly): Use lassign.
3658 (create_asm_win): Removed redundant bindings.
3659 (listing_window_button_1, file_popup_menu): Use tk_popup.
3660 (ButtonRelease-1 binding): Just remove tag from window; rest
3663 * gdbtk.c (gdbtk_query): Use Tcl_Merge to provide quoting.
3664 (call_wrapper): Use Tcl_Eval, not Tcl_VarEval.
3665 (gdbtk_call_command): Ditto.
3670 * hpread.c (hpread_build_psymtabs): Finish Jan 4th
3671 enum namespace -> enum_namespace change.
3675 * ch-exp.c (parse_primval): In case ARRAY, add missing
3680 * remote-mips.c (mips_receive_header): Recognize \012 instead
3681 of \n, but write \n when program sends a \012.
3682 * ser-mac.c (mac_input_buffer): Increase size of buffer.
3686 * infptrace.c (initialize_infptrace): Move function out of
3687 #ifdef conditional; put code within the function inside an
3690 * buildsym.c (end_symtab): Remove sort_pending and sort_linevec
3691 arguments. Sorting is now dependent on OBJF_REORDERED. All
3692 callers/references changed.
3693 * dbxread.c (read_ofile_symtab): Correctly determine value for
3694 last_source_start_addr for reordered executables.
3695 (process_one_symbol): Handle N_FUN with no name as an end of
3697 * partial-stab.h (case N_FN, N_TEXT): Don't assume CUR_SYMBOL_VALUE
3698 is the high text address for a psymtab.
3699 (case N_SO): Likewise.
3700 (case N_FUN): Handle N_FUN with no name as an end of function
3702 * minsyms.c (lookup_minimal_symbol_by_pc): Examine all symbols
3703 at the same address rather than a random subset of them.
3704 * coffread.c (coff_symfile_init): Set OBJF_REORDERED.
3705 * elfread.c (elf_symfile_init): Similarly.
3706 * somread.c (som_symfile_init): Similarly.
3707 * xcoffread.c (xcoff_symfile_init): Similarly.
3711 * stack.c (print_stack_frame print_frame_info) symmisc.c
3712 (dump_symtab): Change RETURN_MASK_ERROR to RETURN_MASK_ALL so
3713 that catch_errors doesn't get blindsided by QUIT and lose the
3714 cleanup chain. This fixes a problem where ^C while in a
3715 user-defined command sometimes leaves instream NULL and causes a
3716 segfault in command_loop.
3720 * configure.in, configure: Add `-ldl -lw' for Solaris linking.
3724 * config/sh/sh.mt, config/powerpc/*.mt, config/pa/hppapro.mt,
3725 config/m68k/monitor.mt, config/h8500/h8500.mt, config/h8300/h8300.mt:
3726 srec.o renamed to dsrec.o.
3730 * breakpoint.c (remove_breakpoint): Change error to warning so
3731 that hardware watchpoint removal problems won't leave breakpoint
3732 traps in the target.
3733 start-sanitize-gdbtk
3734 * configure configure.in: Make --enable-gdbtk be the default.
3736 * remote-e7000.c (e7000_insert_breakpoint,
3737 e7000_remove_breakpoint): Use e7000 based breakpoints, not memory
3739 * (e7000_wait): Adjust PC back by two when we see a breakpoint to
3740 compensate for e7000 maladjustment.
3741 * sparcl-tdep.c (sparclite_check_watch_resources): Fix logic bug
3742 which prevented hardware watchpoints from working.
3746 * infptrace.c (udot_info): New function.
3747 (PT_*): Define each individually if that one is not defined.
3748 * rs6000-nat.c (kernel_u_size): New function
3749 Include <sys/user.h> for "struct user"
3750 * alpha-nat.c (kernel_u_size): New function.
3751 Include <sys/user.h> for "struct user"
3752 * sparc-nat.c (kernel_u_size): New function.
3753 Include <sys/user.h> for "struct user"
3754 * i386b-nat.c (kernel_u_size): New function.
3755 * i386v-nat.c (kernel_u_size): New function.
3756 * config/i386/nm-fbsd.h (KERNEL_U_SIZE): Define.
3757 (kernel_u_size): Declare.
3758 * config/i386/nm-linux.h (KERNEL_U_SIZE): Define.
3759 (kernel_u_size): Declare.
3760 * config/sparc/nm-sun4os4.h (KERNEL_U_SIZE): Define.
3761 (kernel_u_size): Declare.
3762 * config/alpha/nm-osf2.h (KERNEL_U_SIZE): Define.
3763 (kernel_u_size): Declare.
3764 * config/rs6000/nm-rs6000.h (KERNEL_U_SIZE): Define.
3765 (kernel_u_size): Declare.
3769 * mdebugread.c (mylookup_symbol): enum namespace becomes
3770 enum_namespace type.
3771 * symfile.c (add_psymbol_to_list)
3772 (add_psymbol_addr_to_list): Ditto.
3773 * symtab.c (lookup_partial_symbol): Ditto.
3774 (lookup_symbol): Ditto.
3775 (lookup_block_symbol): Ditto.
3776 * win32-nat.c (handle_load_dll): Use incoming dll base.
3777 (child_wait): Catch DLL load errors.
3778 (create_child_inferior): Translated between paths correctly.
3782 * i386v4-nat.c (supply_gregset, fill_gregset): Subtract NUM_FREGS
3783 from NUM_REGS to get number of general registers that we care about.
3784 * config/i386/tm-i386.h (REGISTER_BYTES): Define in terms
3785 of number of general regs and number of floating point regs.
3789 * config/i386/tm-win32.h (IN_SOLIB_CALL_TRAMPOLINE): New.
3790 (SKIP_TRAMPOLINE_CODE): New.
3791 * config/i386/xm-win32.h (CANT_FORK): Deleted.
3792 (SLASH*) Changed to use unix style slash.
3793 * symtab.h (namespace enum): becomes typedef to avoid namespace
3795 * infcmd.c (path_command): Use empty string if PATH name not set.
3796 * i386-tdep.c (skip_trampoline_code): New function.
3797 * srec.c: Renamed dsrec.c to avoid filename collision.
3798 * Makefile.in: Cope with renaming.
3802 * symmisc.c (print_objfile_statistics): Print memory use statistics
3803 for objfile psymbol, symbol, and type obstacks.
3807 * config/mips/nm-irix5.h: Restore.
3808 (TARGET_HAS_HARDWARE_WATCHPOINTS, etc): Define as for Irix 4;
3810 * config/mips/irix5.mh (NAT_FILE): Use nm-irix5.h.
3811 * config/mips/irix[345].mh (MUNCH_DEFINE): Remove.
3813 For older changes see ChangeLog-95
3819 version-control: never