3 * blockframe.c (inside_main_func): Cleanup slightly. Move
4 mainsym def into the block it's used in.
5 * configure.in configure: Allow NATDEPFILES to be recognized in
6 .mh files regardless of whitespace.
8 * cpu32bug-rom.c (cpu32bug_cmds): Change load_response string to
9 keep downloads from hanging.
11 * remote-wiggler.c: Add support for flash upgrades.
12 * (wiggler_error): Fix message format. Add new error code.
13 * (wiggler_write_byets): Error code is hex. Report errors with
15 * (wiggler_read_byets): Report errors with proper routine name.
16 * (get_packet): Add support for new flash commands.
17 * (wiggler_load): Call clear_symtab_users() to reset things
18 properly after download.
19 * (flash_xfer_memory bdm_update_flash_command): New funxtions to
20 support flash upgrades for Wiggler.
21 * (_initialize_remote_wiggler): Add `bdm update-flash' command.
25 * ser-tcp.c: don't include netinet/tcp.h if __CYGWIN32__
29 * config/i386/cygwin32.mh:
30 * config/powerpc/cygwin32.mh: build ser-tcp.o for both hosts
34 * value.h (COERCE_REF): Fix previous change.
35 (COERCE_ENUM): Add a check_typedef (this is the real fix).
39 * eval.c (evaluate_subexp_standard): In case of OP_ARRAY: make a
40 better check of array boundaries.
44 * configure: Update aclocal.m4 and re-run autoconf to get correct
46 * remote-wiggler.c (wiggler_error): Error codes are hex. Also,
47 fix default message generation.
51 * Makefile.in: Add mswin to SUBDIRS. Add rules for
52 mswin/libwingdb.a and remote-wiggler.o.
53 * breakpoint.c (breakpoint_here_p): Clean up bp enabled test.
54 * (breakpoint_inserted_here_p): New func, just like
55 breakpoint_here_p, except it's honest. Honestly.
56 * breakpoint.h: Proto for above.
58 * configure configure.in: Add host *windows* to list of hosts
59 that don't support GDBtk.
61 * configure configure.in: Add mswin to configdirs if host is
63 * core-aout.c (fetch_core_registers register_addr) gdbcore.h:
64 Change all vars that can contain addresses to type CORE_ADDR.
65 * findvar.c (supply_register): Allow val to be NULL. This means
66 that regno is unsupported.
67 * (read_pc read_pc_pid write_pc write_pc_pid): Make non-pid forms
68 just call pid forms with inferior_pid so that there's only once
69 place to hack PC's and such.
70 * infrun.c (proceed): Don't skip breakpoints if user changed PC.
71 * remote-wiggler.c: New file. Support for BDM interface from
73 * serial.c: Enhance serial logging capability. Add hex and octal
74 output modes (set remotelogbase {hex|octal|ascii}. Also log
75 breaks, timeouts, errors, and eofs.
76 * serial.h: Redefine SERIAL_SEND_BREAK to go through a wrapper
77 function so that we can log breaks. Don't export serial_logfile
79 * top.c (execute_command): Don't test for serial_logfp here.
80 Just call serial_log_comand, and let serial.c sort it out.
81 * valops.c (value_of_variable): Don't attempt to establish frames
82 for static and global variables. This makes things work a bit
83 better if the stack or frame pointer is trashed.
84 * config/m68k/monitor.mt (TDEPFILES): Add remote-wiggler.o.
85 * config/m68k/tm-m68k.h: Define STACK_ALIGN. CPU32 can't hack
86 misaligned stacks during function calls.
90 * terminal.h: Don't use #elif.
94 * ch-exp.c (parse_tuple_element): Allow (*): for array tuples
97 * eval.c (evaluate_subexp_standard): In case of OP_ARRAY:
98 check number of args against bounds of array to avoid
101 * value.h (COERCE_REF): Do a CHECK_TYPEDEF in case we get
106 * remote-mips.c: Provide support for CAIRO target board.
107 (cairo_open, cairo_ops): Added.
108 (mips_monitor_type): MON_CAIRO Added.
109 (mips_enter_debug, mips_exit_debug, mips_initialize,
110 mips_fetch_registers, common_breakpoint, mips_load,
111 _initialize_remote_mips): Updated.
115 * nlm/configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
116 * nlm/configure: Regenerate.
118 * gdbserver/configure.in (i[345]86-*-*): Recognize i686 for
123 * configure.in: If CY_AC_PATH_TCLCONFIG can't find TCL, don't run
124 CY_AC_LOAD_TCLCONFIG.
125 * configure: Rebuild.
129 * infrun.c (wait_for_inferior): Initialize stop_func_end before calling
130 find_pc_partial_function.
134 * configure: Regenerate again.
138 * configure.in: work around host_alias configure bug.
139 AC_CANONICAL_HOST is called twice (first by AC_CHECK_TOOL
140 and second by AC_CANONICAL_SYSTEM). The second clobbers the
141 previous setting. Circumventing by moving the second check
143 * configure: regenerated
148 * config/d10v/d10v.mt: New file.
149 * config/d10v/tm-d10v.h: New file.
150 * configure.in: New target D10V.
151 * d10v-tdep.c: New file.
156 * rs6000-tdep.c: Fix typo in comment.
157 * valops.c (call_function_by_hand): Set using_gcc to 2
158 for code compiled without -g, per comment in code.
159 * config/a29k/tm-a29k.h (STACK_ALIGN): Add comment.
160 * config/sparc/tm-sparc.h (STACK_ALIGN): Add comment.
161 * config/sparc/tm-sp64.h (STACK_ALIGN): Add comment.
162 * config/pyr/tm-pyr.h (STACK_ALIGN): Add comment.
163 * config/m88k/tm-m88k.h (STACK_ALIGN): Add comment.
164 * config/pa/tm-hppa.h (PUSH_ARGUMENTS): Enclose args in ()'s.
165 (STACK_ALIGN): Add comment, move to be with other associated
166 macros, and document.
167 * config/mips/tm-mips.h (PUSH_ARGUMENTS): Enclose args in ()'s.
168 (STACK_ALIGN): Remove completely, handled by PUSH_ARGUMENTS.
169 * config/alpha/tm-alpha.h (PUSH_ARGUMENTS): Enclose args in ()'s.
170 * config/rs6000/tm-rs6000.h (STACK_ALIGN): Remove completely,
171 handled by PUSH_ARGUMENTS.
172 (PUSH_ARGUMENTS): Enclose args in ()'s.
176 * infrun.c (wait_for_inferior): Try to reenable shared library
177 breakpoints even if auto_solib_load is not set.
181 * gdbtk.c (gdbtk_init): Check for a DISPLAY env variable and
182 gracefully degrade to using command line interface if none is
187 * valprint.c (print_longest): Test for CC_HAS_LONG_LONG as well as
188 PRINTF_HAS_LONG_LONG.
189 * expprint.c (dump_expression): Ditto.
190 * configure.in: Fix check for long long support in compiler to
191 use a function body, not a nested function.
192 * configure: Rebuild with autoconf.
196 * aclocal.m4: Include ../bfd/aclocal.m4.
197 * configure.in: Add stdlib.h to AC_CHECK_HEADERS. Call
198 BFD_NEED_DECLARATION on malloc, realloc, and free.
199 * acconfig.h: Add NEED_DECLARATION_MALLOC,
200 NEED_DECLARATION_REALLOC, and NEED_DECLARATION_FREE.
201 * configure, config.in: Rebuild.
202 * defs.h: Include <stddef.h> and <stdlib.h> based on HAVE_*_H
203 rather than __STDC__. Only declare malloc, realloc, and free if
204 NEED_DECLARATION_* is defined.
208 * solib.c (_initialize_solib): Add missing '\' chars at ends of
209 strings that continue on next line.
210 (enable_break): Replace "return 0" with setting success to zero
211 and letting normal return handle the return.
215 * mips-tdep.c (mips_push_arguments): Make sure sp and struct_addr
216 are properly aligned.
220 * rs6000-tdep.c (rs6000_fix_call_dummy): Add full set of arguments.
221 * config/rs6000/tm-rs6000.h (FIX_CALL_DUMMY): Pass all arguments
222 to function, declare function correctly.
226 * symtab.h: changed namespace to _namespace for compiling under
231 * mpw-make.sed: Update for various recent changes, add some
234 * mpw-config.in: Fix name of Magic Cap-specific file.
239 * config/rs6000/tm-rs6000.h (FIX_CALL_DUMMY): Cast args to be an
240 integer for type correctness.
244 * config/mips/{vr4300.mt, vr4300el.mt} (SIM): Add -lm when
245 simulator is included.
249 * findvar.c (write_register_pid): Only needed when TARGET_WRITE_PC
251 (read_register_pid): Only needed when TARGET_READ_PC is not
253 * hppa-tdep.c (frame_saved_pc): Remove prototype.
254 * infptrace.c (udot_info): Prototype when CHILD_XFER_MEMORY is
256 * config/xm-aix4.h (aix_resizewindow): Convert old style decl
258 * xcoffsolib.c (command.h): Include for needed prototypes.
262 * config/i386/cygwin32.mh: Set NAT_FILE to nm-empty.h to make
268 * hppa-tdep.c (hppa_fix_call_dummy): Use MSYMBOL_TYPE rather
269 than SYMBOL_TYPE on msymbols.
270 * somsolib.c (som_solib_create_inferior_hook): Ditto.
272 * Makefile.in (init.c): Generate with prototypes.
274 * config/pa/tm-hppa.h (frame_saved_pc): Add prototype.
275 * config/rs6000/xm-rs6000.h (aix_resizewindow): Ditto.
276 * config/rs6000/tm-rs6000.h (frame_initial_stack_address): Ditto.
277 (pc_load_segment_name): Ditto.
279 (extract_return_value): Ditto.
280 (is_magic_function_pointer): Ditto.
281 (push_dummy_frame): Ditto.
282 (fix_call_dummy): Ditto.
283 (push_arguments): Ditto.
284 (skip_trampoline_code): Ditto.
285 (aix_process_linenos): Ditto.
287 * config/m68k/tm-cisco.h (get_longjmp_target): Add prototype.
288 * config/m68k/tm-es1800.h: Ditto.
289 * config/m68k/tm-vx68.h: Ditto.
290 * config/m68k/tm-sun3.h: Ditto.
291 * config/m68k/tm-m68kv4.h: Ditto.
295 * config/mips/nm-mips.h (get_longjmp_target): Add prototype.
296 * config/mips/nm-irix3.h (get_longjmp_target): Add prototype.
297 * remote-mips.c (mips_read_processor_type): Remove prototype.
298 * mips-tdep.c (gdb_print_insn_mips): Add prototype and make static.
299 * irix5-nat.c (fetch_core_registers): Add prototype.
303 * remote-pa.c (boot_board): Add dummy params to make type compatible
304 for passing to add_com.
305 * scm-exp.c (scm_lreadr): Ensure svalue is not used uninitialized.
306 * buildsym.c (compare_line_numbers): Change function to match
307 prototype and also what qsort expects.
311 * remote.c: Make remote_write_size public.
312 * sh-tdep.c (_initialize_sh_tdep): Set remote_write_size to 300
313 to prevent packet errors with some versions of CMON.
317 * defs.h: Define CONST_PTR as blank if compiling with Microsoft
318 C, else it's `const'.
319 * c-lang.c c-lang.h ch-lang.c f-lang.c language.c m2-lang.c
320 scm-lang.c: Microsoft C can't hack const pointers. Use CONST_PTR
322 * configure configure.in defs.h: Use AC_C_CONST to figure out if
323 the compiler supports const. Gets rid of some cruft in defs.h.
324 * dwarf2read.c: <string.h> -> "gdb_string.h"
325 * remote-sim.c: Add prototypes. Fix call to gdbsim_kill.
326 * sparcl-tdep.c (download): Add prototypes to write_routine and
329 * mswin/gdbwin.c: Don't include both varargs.h AND stdarg.h. Get
330 rid of varargs.h Include string.h.
331 * (gdbwin_update gdbwin_fputs regs_changed_f bpt_changed_f
332 update): Fix prototypes, fix calls.
333 * (update): Return value for catch_errors.
334 * (run_execute_command togdb_command_from_tty togdb_command):
335 Cleanup catching of errors from calls to execute_command. Also,
336 dup command string to avoid modifying const strings.
337 * (togdb_breakinfo_i_init togdb_breakinfo_i_next): Use 0 instead
338 of NULL when see if b->address isn't set.
339 * (bi_disable_bpt bi_enable_bpt bi_delete_all
340 bi_delete_breakpoint): Add arg to calls to update.
341 * (gui_command): Add prototype.
342 * (mswin_query): Fix prototype.
343 * (_initialize_gdbwin): Dup string to avoid modifying const.
344 * (info_path togdb_get_info_path): Remove const from decls cuz
345 this can't be const (it points at malloc'ed memory).
346 * (togdb_searchpath): Remove const from path. Dup string to
347 avoid modifying const strings.
349 * (gdbwin_list_symbols): Regexp param is const.
350 * Fix lots of refs to psymtabs to deref correct pointers.
351 * (togdb_set_breakpoint_sal): Call set_breakpoint_sal with sal,
353 * mswin/gdbwin.h (togdb_searchpath togdb_get_info_path
354 toget_set_info_path): Fix prototypes to match reality.
355 * mswin/gui.cpp: Define _beginthreadex and _endthreadex routines
356 with proper prototypes.
357 * mswin/iface.cpp (gdbwin_fputs): Define with correct number of args.
358 * mswin/ser-win32s.c: Fix defs of min and max.
359 * mswin/serdll32.c (OpenComm16): Make cbInQueue and cbOutQueue be
361 * (WriteComm16): Change lpBug from LPVOID to LPCSTR.
362 * mswin/serdll32.h: Fix prototypes for OpenComm16 and WriteComm16.
366 * main.c (main): Make sure command loop is used with cygwin32.
367 * terminal.h: Allow cygwin32 to use termios.h.
372 * Makefile.in (LIB_INSTALL_DIR): New macro.
373 (TCL): Include @TCL_LD_SEARCH_FLAGS@.
378 * somread.c (som_symtab_read): Handle secondary definition
379 symbols (aka weak symbols).
381 * config/tm-hppa.h (EXTRACT_RETURN_VALUE): Fix thinko in
386 * symfile.c (symfile_bfd_open): Change ifdef from __WIN32__ to
389 * somread.c: Rearrange order of includes to fix warnings under
390 hpux-10.10. Also don't include sys/file.h.
394 * dbxread.c: Don't include param.h or sys/file.h.
395 * (dbx_symfile_read): Determine symfile_relocatable from bfd
396 flags instead of file extension. Also clean up a little bit.
400 * dwarf2read.c dwarfread.c exec.c infcmd.c infrun.c main.c
401 mdebugread.c os9kread.c source.c top.c utils.c: Don't
402 include param.h or sys/file.h (or unistd.h in some cases).
403 * defs.h exec.c inflow.c remote-array.c remote-e7000.c
404 sparcl-tdep.c terminal.h utils.c: Replace all occurances of
405 __WIN32__, WINGDB, WIN32, etc... with _WIN32.
406 * main.c: Remove #ifndef WINGDB around option processing. Fix
407 bug with passing argc==0 and argv==NULL to getopt.
408 * (main) Remove calls to access() before source_command. Let
409 soure_command handle access errors.
410 * maint.c (maintenance_dump_me): #ifdef out for _WIN32.
411 * symtab.c (operator_chars): Make this global for wingdb.
412 * top.c (disconnect): #ifdef out for _WIN32.
413 * (source_command): If got an error and from_tty, then call print
414 error, else just return quietly.
415 * utils.c (fatal_dump_core): Can't kill ourselves under windows.
417 * (pollquit notice_quit): #ifdef out stuff that doesn't exist
422 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Tweak for
423 structures > 4 bytes in size.
425 * valops.c (call_function_by_hand): Handle aligning stacks that
427 * config/pa/tm-hppa.h (USE_STRUCT_CONVENTION): Define.
428 (STACK_ALIGN): Define.
429 * hppa-tdep.c (hppa_alignof): Don't demand a minumim two byte
430 alignment on structs/unions.
434 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Define to "int *",
435 which is the documented type under at least AIX 3 and AIX 4.
439 * config/alpha/alpha-osf3.mh (XM_FILE): Change from xm-alpha.h to
441 (MMALLOC_CFLAGS): Define NO_MMCHECK to not install consistency
447 * gdbtk.c (mainWindow): Deleted.
448 (cleanup_init): Don't destroy main window.
449 (gdbtk_init): Main window now created by Tk_Init.
451 * configure.in: Most X checks now handled automatically by Tk.
452 Use new macros to find Tcl/Tk.
453 * aclocal.m4: New version for new Tcl/Tk; from Don Libes.
454 * config.in, configure: Regenerated.
456 * Makefile.in (TCL, TCL_CFLAGS, TK, TK_CFLAGS, X11_CFLAGS,
457 X11_LDFLAGS, X11_LIBS): Changed for new Tcl and Tk.
462 * config/mips/tm-mips.h (TM_MIPS_H): Enclose file contents in
463 this, define when contents are included.
464 (mips_read_processor_type): Add prototype.
465 * config/mips/xm-mips.h: Remove strdup decl, now in gdb_string.h
466 * mdebugread.c (ecoff_relocate_efi): Add prototype.
467 (fixup_sigtramp): Only needed when TM_MIPS_H is defined.
472 * Makefile.in (gdbtk.tcl): put in $(datadir), not $(libdir).
477 * rs6000-nat.c (add_vmap): Return 0 to caller rather than random value.
478 (vmap_ldinfo): Ensure got_exec_file is not used uninitialized.
479 (fetch_core_registers): Add prototype.
480 (vmap_symtab): Ditto.
481 (objfile_symbol_add): Ditto.
483 (vmap_ldinfo): Ditto.
488 * stabsread.c (get_substring): Declare second arg as int.
490 * remote-es.c: Include gdb_string.h after defs.h.
494 * rs6000-tdep.c (push_arguments): Remove unused variable "pc".
495 (branch_dest): Remove unused variable "offset".
496 (pop_dummy_frame): Add prototype and make static.
497 (push_arguments): Guard against using len uninitialized.
498 (push_arguments): Guard against using arg uninitialized.
499 (frame_saved_pc): Remove unused variable "frameless".
500 (free_loadinfo): Ifdef out unused function.
502 * xcoffread.c (compare_lte): Change prototype and function to
503 be correct type for passing to qsort.
504 (add_stab_to_list): Ifdef out unused function and prototype.
505 (compare_lte): Add prototype
506 (arrange_linetable): Ditto.
507 (record_include_begin): Ditto.
508 (record_include_end): Ditto.
509 (process_linenos): Ditto.
510 (xcoff_next_symbol_text): Ditto.
511 (scan_xcoff_symtab): Ditto.
512 (xcoff_initial_scan): Ditto.
514 * mips-tdep.c (mips_read_processor_type): Add parens around
515 bitwise-and operands in comparison; previous expression always
516 evaluated to 0 because of equality comparison of two constants.
518 * rs6000-tdep.c (skip_prologue): Add missing parens around
519 operands of logical-or so that first operand does not bind
520 to previous logical-and.
522 * configure.in: Expand "long long" test to include code that triggers
523 known problem on HPUX with native compiler.
524 (configure): Regenerated.
528 * somsolib.c (som_solib_create_inferior_hook): Don't
529 warn if __d_pid can't be found.
533 * config/mips/tm-mips.h (struct frame_info): Forward decl.
534 (struct type): Ditto.
535 (struct value): Ditto.
537 * config/mips/tm-mips.h (sigtramp_address): Move extern decl
538 from mips-tdep.c to here.
539 (sigtramp_end): Ditto.
540 (fixup_sigtramp): Ditto.
542 * config/mips/tm-mips.h (init_extra_frame_info): Add prototype.
543 (mips_frame_chain): Ditto.
544 (mips_step_skips_delay): Ditto.
545 (mips_frame_saved_pc): Ditto.
546 (mips_find_saved_regs): Ditto.
547 (mips_frame_num_args): Ditto.
548 (mips_pop_frame): Ditto.
549 (mips_extract_return_value): Ditto.
550 (mips_store_return_value): Ditto.
551 (mips_push_dummy_frame): Ditto.
552 (mips_push_arguments): Ditto.
553 (mips_do_registers_info): Ditto.
554 (ecoff_relocate_efi): Ditto.
555 (ecoff_relocate_efi): Ditto.
556 * irix4-nat.c (fetch_core_registers): Add prototype.
557 * mips-tdep.c (read_next_frame_reg): Add prototype
558 (heuristic_proc_start): Ditto.
559 (heuristic_proc_desc): Ditto.
560 (mips_print_register): Ditto.
561 * config/mips/nm-irix5.h (procfs_set_watchpoint): Add prototype.
562 (procfs_stopped_by_watchpoint): Ditto.
563 * config/mips/nm-irix4.h (procfs_set_watchpoint): Add prototype.
564 (procfs_stopped_by_watchpoint): Ditto.
565 * config/alpha/tm-alpha.h (ecoff_relocate_efi): Add prototype.
566 (struct symbol): Add forward decl for prototype.
568 * breakpoint.c (internal_breakpoint_number): Only needed if
569 GET_LONGJMP_TARGET or SOLIB_ADD is defined.
571 * objfiles.c (ecoff_relocate_efi): Remove prototype.
575 * configure.in: Add test for "long long" support.
576 * configure: Regenerate with autoconf.
577 * acconfig.h: Add CC_HAS_LONG_LONG
578 * config.in: Regenerate with autoheader.
579 * config/mips/tm-mips64.h (FORCE_LONG_LONG): Remove
580 * config/sparc/tm-sp64.h (CC_HAS_LONG_LONG): Remove.
581 * config/mips/tm-vr4300el.h (CC_HAS_LONG_LONG): Remove.
582 * config/mips/tm-vr4300.h (CC_HAS_LONG_LONG): Remove.
583 * config/mips/xm-irix5.h (CC_HAS_LONG_LONG): Remove
584 (PRINTF_HAS_LONG_LONG): Remove.
585 (FORCE_LONG_LONG): Remove.
586 * config/powerpc/xm-aix.h (UINT_MAX): Undef and use gdb's version.
587 * config/convex/xm-convex.h (CC_HAS_LONG_LONG): Remove
588 (PRINTF_HAS_LONG_LONG): Remove.
589 * config/xm-nbsd.h (CC_HAS_LONG_LONG): Remove.
590 (PRINTF_HAS_LONG_LONG): Remove.
591 * config/pa/tm-hppa.h (GET_FIELD): Put parens around
592 subtraction inside shift. Put parens around subtraction
593 in operand of bitwise and.
594 (struct frame_info): Forward declare
596 (frame_saved_regs): Ditto.
597 (struct value): Ditto.
598 (struct type): Ditto.
599 (struct inferior_status): Ditto.
600 (init_extra_frame_info): Add prototype.
601 (skip_prologue): Ditto.
602 (frameless_function_invocation): Ditto.
603 (frame_chain): Ditto.
604 (frame_chain_valid): Ditto.
605 (saved_pc_after_call): Ditto.
606 (hppa_fix_call_dummy): Ditto.
607 (hppa_push_arguments): Ditto.
608 (pa_do_registers_info): Ditto.
609 (in_solib_call_trampoline): Ditto.
610 (in_solib_return_trampoline): Ditto.
611 (push_dummy_frame): Ditto.
612 * convex-tdep.c (decout): Use print_longest rather than
614 * defs.h: Remove use of FORCE_LONG_LONG and __GNUC__ to set
616 (INT_MIN): Fix so it works correctly when assigned to a long long.
617 * valprint.c (longest_to_int): Rewrite to remove dependence
618 on INT_MIN and INT_MAX.
619 (print_longest): Rewrite the code that falls back to synthesized
620 hex output when LONGEST value is not representable as in a long and
621 printf doesn't support printing long longs.
622 * ch-valprint.c (chill_val_print): Cast 2nd arg of
623 chill_print_type_scalar to LONGEST.
624 chill_print_type_scalar): Make static and add prototype.
625 * hppa-tdep.c (get_field): Ifdef out unused function.
628 (extract_5_store): Ditto.
632 (extract_14): Convert to static and add prototype.
637 (extract_5r_store): Ditto.
638 (extract_5R_store): Ditto.
639 (extract_5_load): Ditto.
640 (find_proc_framesize): Ditto.
641 (find_dummy_frame_regs): Ditto.
642 (sign_extend): Ditto.
643 (find_unwind_entry): Add prototype.
644 (find_return_regnum): Ditto.
645 (unwind_command): Ditto.
646 (find_dummy_frame_regs): Add parens around subtraction in operand
648 (skip_prologue): Add parens around operands of logical-and inside
649 operand of logical-or.
650 (sign_extend): Add parens around operands of subtraction inside
652 (low_sign_extend): Ditto.
653 * top.c (filename_completer): Convert old style decl of
654 filename_completion_function into prototype.
655 * f-lang.c (patch_common_entries): Ifdef out unused function.
656 * stabsread.c (read_cfront_baseclasses): Remove unused local
657 variable "msg_noterm".
658 (resolve_cfront_continuation): Remove unused local variable "fip".
659 (read_type): Remove unused variable xtypenums.
660 (read_cfront_static_fields): Remove unused variable "i".
661 (read_cfront_static_fields): Remove unused variable "nfields".
662 (read_cfront_member_functions): Add missing comment terminator.
663 (read_cfront_static_fields): Return 1 rather than random value.
664 (read_cfront_baseclasses): Ditto.
665 (read_cfront_baseclasses): Ditto.
666 (read_cfront_baseclasses): Ditto.
667 * somsolib.c (som_solib_create_inferior_hook): Remove unused
669 (som_solib_create_inferior_hook): Remove unused variable
671 (language.h): Add for needed prototypes.
672 (som_solib_sharedlibrary_command): Add prototype.
673 * hpread.c: (hpread_read_array_type): Add prototype.
674 * somread.c (hpread_build_pysmtabs): Add prototype.
675 (hpread_symfile_finish): Ditto.
676 (hpread_symfile_init): Ditto.
677 * hppah-nat.c (fetch_register): Convert old style decl
679 (gdbcore.h): Include for needed prototypes.
680 (fetch_register): Remove unused variable "mess".
681 * remote-pa.c (get_offsets): Ifdef out unused function.
682 (remote_start_remote): Remove unused variable "timeout".
683 (boot_board): Add prototype.
684 (reaad_frame): Add prototype.
685 (getpkt): Remove unused variable "bp".
686 (remote_kill): Add prototype.
687 (remote_mourn): Add prototype.
688 (remote_insert_breakpoint): Add prototype.
689 (remote_remove_breakpoint): Add prototype.
690 * valops.c (value_push): Only use if PUSH_ARGUMENTS is not defined.
691 * infcmd.c (do_registers_info): Only need prototype if
692 DO_REGISTERS_INFO is not defined.
693 (breakpoint_auto_delete_contents): Only need if
694 CALL_DUMMY_BREAKPOINT_OFFSET is defined.
698 * xcoffread.c (xcoff_end_psymtab): Add textlow_not_set parameter.
699 (END_PSYMTAB): Ditto.
700 (scan_xcoff_symtab): Call xcoff_end_psymtab with textlow_not_set.
704 * printcmd.c (_initialize_printcmd): Initialize
705 tm_print_insn_info.flavour.
707 * gdbtk.c (gdb_disassemble): Initialize di.flavour.
712 * Makefile.in (scm-valprint.o): Depends upon gdbcore_h.
715 (i386ly-tdep.o): Ditto.
716 (i960-tdep.o): Ditto.
717 (m68k-tdep.o): Ditto.
718 (nindy-tdep.o): Ditto.
722 (m68k-tdep.o): Depends upon value_h and gdb_string.h
723 (m2-valprint.o): Depends upon m2-lang.h.
724 (sparc-tdep.o): Depends upon gdb_string.h
725 (valprint.o): Depends upon valprint.h
727 * remote-e7000.c (notice_quit): Remove prototype.
728 * top.c (initialize_targets): Remove prototype, now in target.h.
729 * stabsread.c (resolve_cfront_continuation): Remove prototype.
730 * dbxread.c (resolve_cfront_continuation): Remove prototype.
731 * symfile.h (set_demangling_style): Remove prototype.
732 * config/tm-sysv4.h (in_plt_section): Remove prototype, in objfiles.h.
733 * config/sparc/tm-sparc.h (single_step): Remove extern decl, now in
735 * config/arc/tm-arc.h (one_stepped, single_step): Remove extern decls,
737 * ser-unix.c (hardwire_restore): Remove obsolete prototype.
738 * sparc-tdep.c (single_step): Remove forward decl of isbranch.
739 * scm-lang.c (find_function_in_inferior): Remove prototype.
740 (value_allocate_space_in_inferior): Ditto.
741 * infrun.c (write_pc_pid): Remove prototype, now in inferior.h.
742 * defs.h (strchr): Remove declarations, they are declared in
748 * f-valprint.c (f77_print_array_1): Remove extra arg that was being
749 passed to f77_print_array_1.
750 * gdbtypes.c (add_name): Remove unused variables lenstrlen and lenstr.
751 * scm-exp.c (scm_istr2int): Remove unused variable "j".
752 (scm_parse): Remove unused variable "str".
753 * hp300ux-nat.c (store_inferior_register): Remove unused variable
755 (store_inferior_registers): Remove unnecessary decl "registers".
756 * m68k-tdep.c (m68k_pop_frame): Remove unused variable "fi".
757 * scm-lang.c (scm_get_field): Remove unused variable "val".
758 (scm_lookup_name): Remove unused variable "symval".
759 * objfiles.c (map_to_file): Remove unused local variable "tempfd".
760 * procfs.c (do_attach, do_detach): Remove unused variable "result".
761 (last_resume_pid): Remove unused static variable.
762 * alpha-tdep.c (alpha_linux_sigtramp_offset): Remove unused variable
764 * objfiles.c (map_to_address): Remove unused function.
765 * f-valprint.c (print_max): Remove extraneous extern decl,
767 (calc_f77_array_dims): Remove extraneous prototype, in f-lang.h.
768 * ch-exp.c (write_lower_upper_value): Remove prototype for
771 * gdbtypes.c (cfront_mangle_name): #ifdef out unused function.
772 * ch-exp.c (parse_mode_call): Ditto.
773 * f-valprint.c (there_is_a_visible_common_named): Ditto.
774 * f-lang.c (clear_function_list): Ditto.
775 (get_bf_for_fcn): Ditto.
776 (clear_bf_list): Ditto.
777 (add_common_block): Ditto.
778 (patch_all_commons_by_name): Ditto.
779 (find_first_common_named): Ditto.
780 (add_common_entry): Ditto.
781 (allocate_saved_function_node): Ditto.
782 (allocate_saved_bf_node): Ditto.
783 (allocate_common_entry_node): Ditto.
784 (allocate_saved_f77_common_node): Ditto.
786 * arm-tdep.c (gdbcore.h): Include for necessary prototypes.
787 * dcache.c (gdbcore.h): Ditto.
788 * i386ly-tdep.c (gdbcore.h): Ditto.
789 * i960-tdep.c (gdbcore.h): Ditto.
790 * m2-valprint.c (m2-lang.h): Ditto.
791 * m68k-tdep.c (gdbcore.h): Ditto.
793 (gdb_string.h): Ditto.
794 * nindy-tdep.c (gdbcore.h): Ditto.
795 * scm-lang.c (gdbcore.h): Ditto.
796 * scm-valprint.c (gdbcore.h): Ditto.
797 * w65-tdep.c (gdbcore.h): Ditto.
798 * z8k-tdep.c (gdbcore.h): Ditto.
799 * sparc-tdep.c (gdb_string.h): Include.
800 * valprint.c (valprint.h): Include.
802 * config/xm-lynx.h: Remove part of comment about INT_MIN
803 redefined warnings from defs.h, since INT_MIN define in
804 defs.h is now protected by #ifndef INT_MIN.
805 * config/i386/xm-i386bsd.h: Ditto.
806 * config/m68k/xm-hp300bsd.h: Ditto.
807 * config/m68k/xm-news.h: Ditto.
809 * config/pa/xm-hppah.h (INT_MIN): Remove bogus INT_MIN
810 definition as 0x80000000. The macro in defs.h is better.
811 * config/i386/xm-i386m3.h (INT_MIN): Ditto.
812 * config/i386/xm-i386mach.h (INT_MIN): Ditto.
813 * config/ns32k/xm-ns32km3.h (INT_MIN): Ditto.
814 * config/pa/xm-hppab.h: Ditto.
816 * core-aout.c (fetch_core_registers): Add prototype.
817 * hp300ux-nat.c (fetch_inferior_register): Ditto.
818 (store_inferior_register_1): Ditto.
819 (store_inferior_register): Ditto.
820 * config/m68k/tm-m68k.h (find_saved_regs): Ditto.
821 *scm-valprint.c (c_val_print): Ditto.
822 * procfs.c (add_fd): Ditto.
825 (sigcodename): Ditto.
826 (sigcodedesc): Ditto.
827 (procfs_kill_inferior): Ditto.
828 (procfs_xfer_memory): Ditto.
829 (procfs_store_registers): Ditto.
830 (create_procinfo): Ditto.
831 (procfs_init_inferior): Ditto.
832 (proc_set_exec_trap): Ditto.
833 (procfs_attach): Ditto.
834 (procfs_detach): Ditto.
835 (procfs_prepare_to_store): Ditto.
836 (procfs_files_info): Ditto.
837 (procfs_open): Ditto.
838 (procfs_wait): Ditto.
839 (procfs_fetch_registers): Ditto.
840 (procfs_mourn_inferior): Ditto.
841 (procfs_can_run): Ditto.
842 (procfs_thread_alive): Ditto.
843 (procfs_stop): Ditto.
844 * alpha-nat.c (fetch_core_registers): Ditto.
845 * config/alpha/tm-alpha.h (alpha_osf_skip_sigtramp_frame): Ditto.
846 * objfiles.c (ecoff_relocate_efi): Ditto.
847 * inflow.c (pass_signal): Ditto.
848 (handle_sigio): Ditto.
849 * annotate.c (breakpoint_changed): Ditto.
850 * callback.c (wrap): Ditto.
853 * utils.c (malloc_botch): Ditto.
854 (fputs_maybe_filtered): Ditto.
855 (vfprintf_maybe_filtered): Ditto.
856 * defs.h (notice_quit): Ditto.
857 * defs.h (xmalloc, xrealloc): Ditto.
858 * top.c (stop_sig): Ditto.
859 (init_signals): Ditto.
860 (user_defined_command): Ditto.
861 (source_cleanup_lines): Ditto.
862 (dont_repeat_command): Ditto.
863 (serial_log_command): Ditto.
865 * target.h (initialize_targets): Ditto.
866 * os9kread.c (read_minimal_symbols): Ditto.
867 * mdebugread.c (mdebug_psymtab_to_symtab): Ditto.
869 (push_parse_stack): Ditto.
870 (pop_parse_stack): Ditto.
871 (is_pending_symbol): Ditto.
872 (add_pending): Ditto.
873 * serial.c (serial_logchar): Ditto.
874 (serial_interface_lookup): Ditto.
875 * serial.h (serial_log_command): Ditto.
876 * f-valprint.c (info_common_command): Ditto.
877 * gdbtypes.h (print_type_scalar): Ditto.
878 * scm-valprint.c (scm_scmlist_print): Ditto.
880 * scm-lang.c (scm_printstr): Ditto.
882 (evaluate_subexp_scm): Ditto.
883 * scm-exp.c (scm_read_token): Ditto.
884 (scm_skip_ws): Ditto.
885 (scm_lreadparen): Ditto.
886 * m2-lang.c (emit_char): Ditto.
887 (m2_printchar): Ditto.
888 (m2_printstr): Ditto.
889 (m2_create_fundamental_type): Ditto.
890 * f-lang.c (emit_char): Ditto.
891 (f_printchar): Ditto.
893 (f_create_fundamental_type): Ditto.
894 * ch-lang.c (chill_printchar): Ditto.
895 (chill_printstr): Ditto.
896 (chill_create_fundamental_type): Ditto.
897 (value_chill_length): Ditto.
898 (value_chill_card): Ditto.
899 (value_chill_max_min): Ditto.
900 (evaluate_subexp_chill): Ditto.
901 * ch-exp.c (PEEK_TOKEN): Ditto.
902 (peek_token_): Ditto.
903 (forward_token_): Ditto.
904 (parse_case_label): Ditto.
905 (parse_opt_untyped_expr): Ditto.
906 (parse_unary_call): Ditto.
908 (parse_named_record_element): Ditto.
909 (parse_tuple_element): Ditto.
910 (parse_opt_element_list): Ditto.
911 (parse_tuple): Ditto.
912 (parse_primval): Ditto.
913 (parse_operand6): Ditto.
914 (parse_operand5): Ditto.
915 (parse_operand4): Ditto.
916 (parse_operand3): Ditto.
917 (parse_operand2): Ditto.
918 (parse_operand1): Ditto.
919 (parse_operand0): Ditto.
921 (parse_then_alternative): Ditto.
922 (parse_else_alternative): Ditto.
923 (parse_if_expression): Ditto.
924 (parse_untyped_expr): Ditto.
925 (growbuf_by_size): Ditto.
926 (match_simple_name_string): Ditto.
927 (decode_integer_value): Ditto.
928 (decode_integer_literal): Ditto.
929 (match_float_literal): Ditto.
930 (match_float_literal): Ditto.
931 (match_string_literal): Ditto.
932 (match_character_literal): Ditto.
933 (match_integer_literal): Ditto.
934 (match_bitstring_literal): Ditto.
935 (write_lower_upper_value): Ditto.
936 * ch-lang.h (type_lower_upper): Ditto.
937 * c-lang.c (emit_char): Ditto.
938 * dwarfread.c (free_utypes): Ditto.
939 * stabsread.h (resolve_cfront_continuation): Ditto.
940 * stabsread.c (get_substring): Ditto.
941 (read_one_struct_field): Ditto.
942 * stabsread.h (process_later): Ditto.
943 * demangle.c (set_demangling_command): Ditto.
944 * defs.h (set_demangling_style): Ditto.
945 * maint.c (maintenance_info_command): Ditto.
946 (print_section_table): Ditto.
947 (maintenance_info_sections): Ditto.
948 (maintenance_print_command): Ditto.
949 * symtab.h (maintenance_print_statistics): Ditto.
950 * objfiles.h (in_plt_section): Ditto.
951 * objfiles.c (add_to_objfile_sections): Ditto.
952 * bcache.c (hash): Ditto.
953 (lookup_cache): Ditto.
954 * exec.c (bfdsec_to_vmap): Ditto.
956 * f-exp.y (growbuf_by_size, match_string_literal): Ditto.
957 * language.c (unk_lang_printchar): Ditto.
958 (unk_lang_printstr): Ditto.
959 (unk_lang_create_fundamental_type): Ditto.
960 (unk_lang_print_type): Ditto.
961 (unk_lang_val_print): Ditto.
962 (unk_lang_value_print): Ditto.
963 * target.c (update_current_target): Ditto.
964 (debug_to_open): Ditto.
965 (debug_to_close): Ditto.
966 (debug_to_attach): Ditto.
967 (debug_to_detach): Ditto.
968 (debug_to_resume): Ditto.
969 (debug_to_wait): Ditto.
970 (debug_to_fetch_registers): Ditto.
971 (debug_to_store_registers): Ditto.
972 (debug_to_prepare_to_store): Ditto.
973 (debug_to_xfer_memory): Ditto.
974 (debug_to_files_info): Ditto.
975 (debug_to_insert_breakpoint): Ditto.
976 (debug_to_remove_breakpoint): Ditto.
977 (debug_to_terminal_init): Ditto.
978 (debug_to_terminal_inferior): Ditto.
979 (debug_to_terminal_ours_for_output): Ditto.
980 (debug_to_terminal_ours): Ditto.
981 (debug_to_terminal_info): Ditto.
982 (debug_to_kill): Ditto.
983 (debug_to_load): Ditto.
984 (debug_to_lookup_symbol): Ditto.
985 (debug_to_create_inferior): Ditto.
986 (debug_to_mourn_inferior): Ditto.
987 (debug_to_can_run): Ditto.
988 (debug_to_notice_signals): Ditto.
989 (debug_to_thread_alive): Ditto.
990 (debug_to_stop): Ditto.
992 * gdbtk.c (null_routine): Ditto.
993 (gdbtk_flush): Ditto.
994 (gdbtk_fputs): Ditto.
995 (gdbtk_query): Ditto.
996 (gdbtk_readline): Ditto.
997 (gdbtk_readline_end): Ditto.
998 (gdb_get_breakpoint_list): Ditto.
999 (gdb_get_breakpoint_info): Ditto.
1000 (breakpoint_notify): Ditto.
1001 (gdbtk_create_breakpoint): Ditto.
1002 (gdbtk_delete_breakpoint): Ditto.
1003 (gdbtk_modify_breakpoint): Ditto.
1006 (gdb_sourcelines): Ditto.
1007 (map_arg_registers): Ditto.
1008 (get_register_name): Ditto.
1009 (gdb_regnames): Ditto.
1010 (get_register): Ditto.
1011 (gdb_fetch_registers): Ditto.
1012 (register_changed_p): Ditto.
1013 (gdb_changed_register_list): Ditto.
1015 (call_wrapper): Ditto.
1016 (gdb_listfiles): Ditto.
1018 (gdbtk_dis_asm_read_memory): Ditto.
1019 (compare_lines): Ditto.
1020 (gdb_disassemble): Ditto.
1021 (tk_command): Ditto.
1022 (cleanup_init): Ditto.
1023 (gdbtk_interactive): Ditto.
1025 (gdbtk_wait): Ditto.
1026 (gdbtk_call_command): Ditto.
1027 (tk_command_loop): Ditto.
1028 (gdbtk_init): Ditto.
1030 * breakpoint.h (set_breakpoint_sal): Ditto.
1031 * remote-utils.c (usage): Ditto.
1032 * remote.c (set_thread): Ditto.
1033 (remote_thread_alive): Ditto.
1034 (get_offsets): Ditto.
1035 (read_frame): Ditto.
1036 (remote_insert_breakpoint): Ditto.
1037 (remote_remove_breakpoint): Ditto.
1038 * sparc-nat.c (fetch_core_registers): Ditto.
1039 * corelow.c (add_to_thread_list): Ditto.
1041 * inftarg.c (proc_wait): Ditto.
1042 * infptrace.c (udot_info): Ditto.
1043 (fetch_register): Ditto.
1044 * ser-unix.c (hardwire_noflush_set_tty_state): Ditto.
1045 (hardwire_print_tty_state): Ditto.
1046 (hardwire_flush_output): Ditto.
1047 (hardwire_flush_input): Ditto.
1048 (hardwire_send_break): Ditto.
1049 (hardwire_setstopbits): Ditto.
1050 * ser-tcp.c (tcp_return_0): Ditto.
1051 (tcp_noflush_set_tty_state): Ditto.
1052 (tcp_print_tty_state): Ditto.
1053 * solib.c (match_main): Ditto.
1054 * gdbtypes.c (print_bit_vector): Ditto.
1055 (print_arg_types): Ditto.
1056 (dump_fn_fieldlists): Ditto.
1057 (print_cplus_stuff): Ditto.
1058 * symfile.h (entry_point_address): Ditto.
1059 * symfile.c (decrement_reading_symtab): Ditto.
1060 * valops.c (value_arg_coerce): Ditto.
1061 * value.h (find_function_in_inferior): Ditto.
1062 (value_allocate_space_in_inferior): Ditto.
1063 * values.c (vb_match): Ditto.
1064 * thread.c (info_thread_command): Ditto.
1065 (restore_current_thread): Ditto.
1066 (thread_apply_all_command): Ditto.
1067 (thread_apply_command): Ditto.
1068 * inferior.h (write_pc_pid): Ditto.
1069 * infrun.c (delete_breakpoint_current_contents): Ditto.
1070 * breakpoint.c (print_it_normal): Ditto.
1071 (watchpoint_check): Ditto.
1072 (print_it_done): Ditto.
1073 (print_it_noop): Ditto.
1074 (maintenance_info_breakpoints): Ditto.
1075 (create_longjmp_breakpoint): Ditto.
1076 (hbreak_command): Ditto.
1077 (thbreak_command): Ditto.
1078 (watch_commnd_1): Ditto.
1079 (rwatch_command): Ditto.
1080 (awatch_command): Ditto.
1081 (do_enable_breakpoint): Ditto.
1082 * ch-valprint.c (chill_val_print_array_elements): Ditto.
1083 * eval.c (evaluate_subexp): Ditto.
1085 (evaluate_struct_tuple): Ditto.
1086 * eval.c (init_array_element): Ditto.
1088 * alpha-tdep.c (push_sigtramp_desc): Add prototype and make static.
1089 * breakpoint.c (hw_breakpoint_used_count): Ditto.
1090 (hw_watchpoint_used_count): Ditto.
1091 * findvar.c (write_register_gen): Ditto.
1092 (read_register_pid): Ditto.
1093 * symtab.c (cplusplus_hint): Ditto.
1094 * infcmd.c (breakpoint_auto_delete_contents): Ditto.
1095 * ch-valprint.c (chill_print_type_scalar): Ditto.
1096 * gdbtypes.c (add_name): Ditto.
1097 (add_mangled_type): Ditto.
1098 (cfront_mangle_name): Ditto.
1099 * sparc-tdep.c (isbranch): Ditto.
1100 * inftarg.c (child_stop): Ditto.
1101 * win32-nat.c (child_stop): Ditto.
1102 * mac-nat.c (child_stop): Ditto.
1103 * remote-utils.c (sr_com): Ditto.
1104 * dbxread.c (process_now): Ditto.
1105 * ch-exp.c (require): Ditto.
1106 (check_token): Ditto.
1108 (parse_mode_call): Ditto.
1109 (parse_mode_or_normal_call): Ditto.
1110 * scm-lang.c (scm_lookup_name): Ditto
1111 * f-lang.c (allocate_saved_bf_node): Ditto.
1112 (allocate_saved_function_node): Ditto.
1113 (allocate_saved_f77_common_node): Ditto.
1114 (allocate_common_entry_node): Ditto.
1115 (add_common_block): Ditto.
1116 (add_common_entry): Ditto.
1117 (find_first_common_named): Ditto.
1118 (patch_common_entries): Ditto.
1119 (patch_all_commons_by_name): Ditto.
1120 (clear_bf_list): Ditto.
1121 (get_bf_for_fcn): Ditto.
1122 (clear_function_list): Ditto.
1123 * scm-exp.c (scm_istr2int): Ditto.
1124 (scm_istring2number): Ditto.
1125 * scm-valprint.c (scm_inferior_print): Ditto.
1126 * f-typeprint.c (print_equivalent_f77_float_type): Ditto.
1127 * f-valprint.c (f77_get_dynamic_length_of_aggregate): Ditto.
1128 (f77_create_arrayprint_offset_tbl): Ditto.
1129 (f77_print_array_1): Ditto.
1130 (f77_print_array): Ditto.
1131 (list_all_visible_commons): Ditto.
1132 (there_is_a_visible_common_named): Ditto.
1133 * mdebugread.c (ecoff_relocate_efi): Ditto.
1134 * callback.c (os_close): Ditto.
1135 (os_get_errno): Ditto.
1140 (os_read_stdin): Ditto.
1142 (os_write_stdout): Ditto.
1147 (os_shutdown): Ditto.
1149 (os_printf_filtered): Ditto.
1151 * scm-lang.h (scm_parse): Change old style decl to prototype.
1152 * config/alpha/tm-alphalinux.h (alpha_linux_sigtramp_offset): Ditto.
1153 * top.c (init_proc): Ditto.
1154 (query_hook): Ditto.
1155 (error_hook): Ditto.
1156 * f-lang.c (c_value_print): Ditto.
1157 * ch-exp.c (parse_expression): Ditto.
1158 (parse_primval): Ditto.
1159 (parse_untyped_expr): Ditto.
1160 (parse_opt_untyped_expr): Ditto.
1162 * config/sparc/tm-sparc.h (sparc_init_extra_frame_info): Ditto.
1163 (sparc_frame_saved_pc): Ditto.
1164 (sparc_push_dummy_frame): Ditto.
1165 (sparc_pop_frame): Ditto.
1166 * defs.h (fclose): Ditto.
1168 (error_hook): Ditto.
1170 * arc-tdep.c (single_step): Change arg to type "enum target_signal".
1171 * rs6000-tdep.c (single_step): Ditto.
1172 * sparc-tdep.c (single_step): Ditto.
1174 * breakpoint.c (cleanup_executing_breakpoints): Change unused arg type
1175 to PTR which is what make_cleanup expects.
1176 * utils.c (null_cleanup): Change arg type to PTR.
1177 * defs.h (null_cleanup): Change prototype to match actual function.
1178 * config/sparc/tm-sparc.h (struct frame_info): Move forward decl.
1179 * ch-valprint.c (chill_val_print): Cast 2nd arg of
1180 chill_print_type_scalar to LONGEST.
1181 * infrun.c (wait_for_inferior): Have empty switch case for
1182 BPSTAT_WHAT_CHECK_SHLIBS when SOLIB_ADD is not defined.
1183 (stop_on_solib_events): Only needed if SOLIB_ADD is defined.
1184 * infcmd.c (attach_command): Only need auto_solib_add if SOLIB_ADD
1186 * symfile.c (generic_load): Scan long int using a long int spec,
1188 * infptrace.c (udot_info): Only need local variables if KERNEL_U_SIZE
1190 (fetch_register): Only need function if FETCH_INFERIOR_REGISTERS is
1192 * inflow.c (handle_sigio): Only need prototype when the actual
1193 function is compiled in.
1194 * valprint.c (longest_to_int): Expand error message to be
1195 separate messages for args larger than largest signed int
1196 and args smaller than smallest signed int.
1197 * valprint.c (print_longest): Fix problems with support for case
1198 where compiler supports type "long long" but the runtime doesn't
1199 support printing them with "%ll".
1200 * scm-valprint.c (scm_scmlist_print, scm_scmval_print): Change
1201 return types to void since we don't actually return anything
1202 meaningful and callees ignore the values anyway.
1203 * procfs.c (modify_inherit_on_fork_flag): Enclose pr_flags in PIOCSET
1205 (modify_run_on_last_close_flag): Ditto.
1206 (wait_fd): Enclose local variables "num_fds" and "i" LOSING_POLL
1208 * alpha-tdep.c (push_sigtramp_desc): Return proc_desc rather than
1210 * infrun.c (wait_for_inferior): Ensure random_signal is not used
1212 * valops.c (call_function_by_hand): Ensure struct_addr is not used
1214 * breakpoint.c (watch_command_1): Ensure prev_frame is not used
1216 * utils.c (vfprintf_maybe_filtered): Change second arg from "char *"
1218 start-sanitize-gdbtk
1219 * gdbtk.c (gdb_fetch_registers): Cast fourth arg to map_arg_registers
1220 to proper pointer type, from int.
1221 (gdbtk_query): Change first arg to "const char *" from "char *".
1223 * infptrace.c (udot_info): Add two dummy args so that the type is
1224 correct for passing to add_info.
1225 * f-lang.c (saved_fcn): Move decl to head of file so it can be used
1227 (saved_bf_symnum): Ditto.
1228 (SAVED_FUNCTION): Ditto.
1229 (SAVED_FUNCTION_PTR): Ditto.
1231 (SAVED_BF_PTR): Ditto.
1232 * ch-exp.c (parse_named_record_element): Build error message in
1233 temporary buffer before passing it to expect, rather than passing
1234 wrong number of args to expect.
1235 * demangle.c (set_demangling_style): Call set_demangling_command with
1236 correct number of arguments.
1237 * inferior.h (terminal_init_inferior_with_pgrp): Change arg type to
1238 int to match actual function.
1239 (os_isatty): Call fdmap with right number of arguments, was missing
1240 the host_callback* arg.
1241 * target.c (cleanup_target): Prototype all functions casts.
1242 * target.h (one_stepped, single_step): Declare here and convert
1243 single_step to prototype.
1244 * infrun.c (one_stepped, single_step): Don't declare externs
1245 here, they have moved to target.h.
1246 * eval.c (init_array_element): Declare previously undeclared
1247 last two args as LONGEST.
1248 * dcache.c (dcache_xfer_memory): Change xfunc decls to prototype form.
1249 start-sanitize-gdbtk
1250 * gdbtk.c (register_changed_p): Remove unused local variable "buf".
1255 * dsrec.c (load_srec): Protect ANSI style function parms with PARAMS.
1259 * Makefile.in (os9kread.o): Remove dependency on partial-stab.h.
1260 * dbxread.c (read_dbx_symtab end_psymtab), partial-stab.h: Don't
1261 use partial_symtab->textlow==0 as a flag, as 0 is a legitimate
1262 text address. Use a seperate flag (textlow_not_set) instead.
1263 This makes stabs in ELF .o files work a lot better.
1264 * mdebugread.c xcoffread.c: Define textlow_not_set for
1266 * stabsread.h (end_psymtab): Add textlow_not_set arg to prototype.
1268 start-sanitize-gdbtk
1271 * gdbtk.tcl (files_command): Reorder the binding tags for
1272 the listbox widget to avoid referencing the listbox after
1273 the containing widget has been destroyed by the action of
1279 * dwarf2read.c (struct filenames): Change internal "struct file"
1280 to "struct fileinfo" to avoid conflict with "struct file" in
1281 <sys/file.h> on HPUX and Solaris.
1283 start-sanitize-gdbtk
1286 * gdbtk.tcl (delete_expr): Unset corresponding element of
1287 expr_update_list when destroying an expression.
1288 (create_expr_window): Initialize expr_num, delete_expr_num,
1289 and expr_update_list here when each new expression window
1290 is created, rather than once at startup.
1295 * dwarf2read.c: New file, DWARF 2 reader originally contributed by
1296 Brent Benson, with additions by Gary Funck and Jerry Kreuscher.
1297 * Makefile.in (COMMON_OBS): Add dwarf2read.o.
1298 (SFILES): Add dwarf2read.c.
1299 (dwarf2read.o): Add build rule.
1300 * symfile.h (dwarf2_has_info, dwarf2_build_psymtabs): Declare
1302 * elfread.c (elf_symfile_read): Call them.
1303 (elf_symtab_read) [HARRIS_TARGET]: Skip some special symbols.
1307 * symfile.c (symfile_bfd_open):
1308 * exec.c (exec_file_command): for __GO32__ and __WIN32__ systems,
1309 free the user from having to type the .exe extension.
1313 * mon960-rom.c: Shorten the mon960_inits string to a single
1314 carriage return; this prevents a hang on connecting immediately
1315 after powerup, when MON960 is attempting autobaud detection.
1319 * a29k-tdep.c (get_saved_register): Allow PC to be modified
1320 when innermost frame is selected, but not in outer frames.
1324 * command.c (do_setshow_command): Don't segfault when showing
1325 var_string and var_string_noescape vars that are NULL.
1329 * win32-nat.c (handle_load_dll): dos_path_to_unix_path renamed to
1330 cygwin32_conv_to_posix_path.
1331 (child_create_inferior): unix_path_to_dos_path renamed to
1332 cygwin32_conv_to_win32_path. Rewrite code to translate PATH.
1336 * defs.h printcmd.c: Create global disassemble_info structure
1338 start-sanitize-gdbtk
1339 * gdbtk.c (gdb_disassemble): Setup di.mach from
1340 tm_print_insn_info.mach, and set endian from TARGET_BYTE_ORDER.
1342 * i386-tdep.c (set_assembly_language_command): set
1343 tm_print_insn_info.mach to the appropriate value for 386 or 8086
1345 * printcmd.c (print_insn): Move init of disassembler_info to
1346 _initialize_printcmd. Set endian for disassembler here.
1347 * sparc-tdep.c: Set tm_print_insn_info.mach as appropriate to
1348 select sparc/sparclite.
1349 * config/sparc/{tm-sparc.h tm-sparclite.h}: Get rid of
1350 TM_PRINT_INSN. Set TM_PRINT_INSN_MACH to
1351 bfd_mach_sparc/bfd_mach_sparc_sparclite.
1355 * hpread.c (hpread_lookup_type): Use xmmalloc/xmrealloc rather
1356 than xmalloc/xrealloc.
1360 * objfiles.c (map_to_file): Error return from mmalloc_findbase is
1361 a NULL pointer, not a -1.
1365 * i386-tdep.c (set_assembly_language_command): New routine to
1366 select between i386 and i8086 instruction sets for disassembly.
1367 New command `set assembly-language {i386 i8086}'.
1371 * monitor.c (monitor_write_memory, monitor_read_memory_single):
1372 Disable use of "long long" memory read/write commands; can't
1373 use them because we hold the values to read/write in an int
1374 variable, and because strtoul fails on values that exceed the
1375 size of a long. This fixes breakpoint problems on MON960.
1379 * config/m68k/xm-hp300hpux.h (HAVE_MMAP): Remove definition.
1380 * config/pa/xm-hppah.h (HAVE_MMAP): Ditto.
1384 * Makefile.in (MMALLOC_CFLAGS): Eliminate intermediate MMALLOC_DISABLE
1385 and MMALLOC_CHECK macros, and add comment indicating how host dependent
1386 makefile fragment should modify MMALLOC_CFLAGS to not use mmalloc, or
1387 to use it but to not do heap corruption checking.
1388 * gdbserver/Makefile.in: Ditto.
1389 * utils.c (init_malloc): Replace warning() use with direct call of
1390 fprintf_unfiltered, since current_target has not yet been set and thus
1391 we cannot use warning(). If we try to use mmcheck and it fails,
1392 suggest that this configuration needs NO_MMCHECK or MMCHECK_FORCE
1393 defined. Other small mmalloc related cleanups.
1394 * config/sparc/sun4os4.mh (MMALLOC_CFLAGS): Define MMCHECK_FORCE to 1.
1395 * config/alpha/alpha-osf2.mh (MMALLOC_CFLAGS): Set to -DNO_MMCHECK.
1397 * config/sparc/xm-sun4os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1398 * config/i386/xm-i386v4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1399 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1400 * config/m68k/xm-hp300hpux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1401 * config/m68k/xm-m68kv4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT);
1402 * config/m68k/xm-sun3os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1403 * config/pa/xm-hppah.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1404 * config/sparc/xm-sun4sol2.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1405 Remove obsolete defines.
1407 * config/alpha/alpha-linux.mh (MMALLOC_DISABLE):
1408 * config/alpha/alpha-osf1.mh (MMALLOC_DISABLE):
1409 * config/rs6000/rs6000.mh (MMALLOC_DISABLE):
1410 * config/rs6000/aix4.mh (MMALLOC_DISABLE):
1411 * config/powerpc/aix4.mh (MMALLOC_DISABLE):
1412 * config/powerpc/aix.mh (MMALLOC_DISABLE):
1413 * config/ns32k/ns32km3.mh (MMALLOC_DISABLE):
1414 * config/mips/mipsm3.mh (MMALLOC_DISABLE):
1415 * config/mips/decstation.mh (MMALLOC_DISABLE):
1416 * config/m88k/cxux.mh (MMALLOC_DISABLE):
1417 * config/i386/i386mk.mh (MMALLOC_DISABLE):
1418 * config/i386/i386m3.mh (MMALLOC_DISABLE):
1419 * config/i386/i386gnu.mh (MMALLOC_DISABLE):
1420 Use MMALLOC_CFLAGS instead.
1424 * h8300-tdep.c: Remove some outdated comments.
1425 (h8300_skip_prologue): Rework to be more correct for the H8/300H.
1426 Handle stm.l insns for the H8/S.
1427 (examine_prologue): Likewise.
1431 * ser-mac.c (mac_close): Change a typo SetSetBuf to SerSetBuf.
1435 * mon960-rom.c (mon960_open): Add floating point detection to
1436 prevent hang on non-FPU processors (PR 9775).
1437 (mon960_cmds): Swap setmem.cmdw and setmem.cmdl to fix problem
1438 setting breakpoints and improve loading speed.
1442 * coffread.c (record_minimal_symbol): Don't presave name string
1443 on symbol_obstack before passing to prim_record_minimal_symbol.
1444 It now handles saving the string itself.
1445 * dbxread.c (read_dbx_dynamic_symtab): Ditto.
1446 * mipsread.c (read_alphacoff_dynamic_symtab): Ditto.
1447 * os9kread.c (record_minimal_symbol): Ditto.
1448 * solib.c (solib_add_common_symbols): Ditto.
1450 * coffread.c (coff_symtab_read): Don't presave name string on
1451 symbol_obstack before passing to prim_record_minimal_symbol_and_info.
1452 It now handles saving the string itself.
1453 * dbxread.c (record_minimal_symbol): Ditto.
1454 * elfread.c (record_minimal_symbol_and_info): Ditto.
1456 * dstread.c (record_minimal_symbol): Remove static function that just
1457 called prim_record_minimal_symbol with the same args (after change to
1458 prim_record_minimal_symbol to do it's own name string saves).
1459 * nlmread.c (record_minimal_symbol): Ditto.
1460 * somread.c (record_minimal_symbol): Ditto.
1462 * hpread.c (hpread_read_enum_type): Save symbol name on symbol obstack.
1463 (hpread_read_function_type): Ditto.
1464 (hpread_process_one_debug_symbol): Ditto.
1465 * mdebugread.c (parse_symbol): Ditto.
1466 (new_symbol): Ditto.
1467 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
1469 * coffread.c (process_coff_symbol): Use obsavestring to save
1470 SYMBOL_NAME, rather than obstack_copy0.
1471 * dstread.c (create_new_symbol): Ditto
1472 * symfile.c (obconcat): Ditto.
1473 * stabsread.c (patch_block_stabs): Ditto.
1474 * xcoffread.c (SYMNAME_ALLOC): Ditto.
1476 * symfile.c (obsavestring): Update comments
1477 * solib.c (solib_add_common_symbols): Remove local var origname.
1481 * configure: Re-build with autoconf-2.10.
1483 * sparcl-tdep.c (_initialize_sparc_tdep) config/sparc/tm-sparc.h,
1484 config/sparc/tm-sparclite.h: Initialize tm_print_insn from
1485 TM_PRINT_INSN, which comes from the tm file.
1489 * coffread.c, dbxread.c, elfread.c, mipsread.c, nlmread.c,
1490 os9kread.c: Replace identical sym_offsets functions with
1491 default_symfile_offsets.
1492 * somread.c (som_symfile_offsets): Use new SIZEOF_SECTION_OFFSETS
1493 macro to allocate section_offsets.
1494 * symfile.c (default_symfile_offsets): New function.
1495 * symfile.h: Declare default_symfile_offsets.
1496 * symtab.h: Define SIZEOF_SECTION_OFFSETS macro to
1497 simplify allocation of section_offsets.
1501 * Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
1502 * configure configure.in: Only make sol-thread.o for native.
1503 Also, switch to dlopened libthread_db.so.1.
1504 * sol-thread.c: Switch to using dlopen to get the thread_db
1509 * configure, configure.in: Change test for libthread_db to only
1510 work for configs where build/host/target are the same.
1514 * config/powerpc/{linux.mh,xm-linux.h}: New files, for Linux on
1517 * configure.in (powerpc-*-linux): Add Linux, System V, and ELF
1519 * configure: Regenerate.
1524 * mpw-make.sed: Add lines to whack out autoconf hook
1529 * remote-e7000.c (e7000_stop): New function.
1533 * configure, configure.in: Add target sparclet.
1534 * monitor.h, monitor.c: Added monitor flags MO_NO_ECHO_ON_SETMEM
1535 (don't expect echo on setmem command), MO_RUN_FIRST_TIME (if
1536 command to start process running on target is different from one
1537 to continue execution), MO_HEX_PREFIX (if addresses from monitor
1538 have a "0x" prefix).
1539 * monitor.c, parse.c, sparc-tdep.c: Don't require strings in the
1540 registers array. This is to allow NULLs to be place holders in
1541 the tm-*.h file so that only minor changes are needed when a new
1542 processor is introduced (eg, one without floating point).
1543 * sparc-tdep.c: Conditionally remove dependancies on floating
1545 * sparclet-rom.c, config/sparc/sparclet.mt,
1546 config/sparc/tm-sparclet.h: New files for target sparclet.
1547 * symfile.c (load_command): Add option for 2nd parameter; a load
1548 offset added to the vma of each section.
1552 * main.c (main): Add option "l" for setting remote_timeout.
1556 * remote-e7000.c, remote.c, target.h, top.c: Add set option
1557 "remote_timeout" for setting remote_timeout. Add set option
1558 "use_hard_breakpoints" for setting hardware .vs. memory
1563 * remote-e7000.c (e7000_parse_device): New function.
1564 Add option "tcp_remote" to target command if using
1565 tcp to connect to a remote host which is then connected
1566 via serial port to the e7000 (for exampole, a port master).
1567 (e7000_open): Change to call e7000_parse_device.
1571 * monitor.c (monitor_debug): Fix remotedebug buffering.
1575 * config/i386/cygwin32.mh, config/powerpc/cygwin32.mh
1576 (NATDEPFILES): Add a space.
1580 * gdbtypes.c (create_array_type): If TYPE_LENGTH (result_type)
1581 is zero, set TYPE_FLAG_TARGET_STUB to force reevaluation of the type.
1583 * ch-exp.c (calculate_array_length): Function removed.
1587 * remote-e7000.c (e7000_read_inferior_memory_large): New function.
1588 (e7000_xfer_inferior_memory): Call it.
1592 * gdb/gdbserver/Makefile.in (docdir): Removed.
1596 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir):
1597 Use autoconf set values.
1599 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
1600 * nlm/Makefile.in (bindir, libdir, datadir, mandir, infodir,
1601 includedir): Use autoconf set values.
1603 * nlm/configure.in (AC_PREREQ): autoconf 2.5 or higher.
1604 * nlm/configure: Rebuilt.
1605 * gdb/gdbserver/Makefile.in (datadir): Set to $(prefix)/share.
1609 * stabsread.c (read_cfront_member_functions): add type
1613 * win32-nat.c: #include <unistd.h>.
1614 (unix_paths_to_dos_paths, dos_paths_to_unix_paths): Delete.
1615 (child_create_inferior): Convert only env var PATH to win32 style.
1616 (set_pathstyle_dos): Delete.
1617 (_initialize_inftarg): Delete dos-path-style command.
1619 start-sanitize-gdbtk
1622 * gdbtk.tcl (create_register_windows): Include missing '$'s.
1623 Add global declarations for various reg_format_* variables.
1624 * gdbtk.tcl (populate_register_window): Make initial window one
1625 line taller to account for new column header line.
1629 * gdbtk.c (get_register): Support for printing raw formats.
1630 * gdbtk.tcl: Add hint for using debug_interface.
1631 (center_window, add_breakpoint_frame, delete_breakpoint_frame):
1632 Enclose arg in braces for consistency.
1633 (create_registers_window, populate_reg_window, update_registers):
1634 Major rewrite to support displaying multiple formats in the register
1636 (init_reg_info): New function.
1637 (recompute_reg_display_list): Reset reg_display_list, start
1638 register display lines at line 2.
1643 * configure.in: Revise sol-thread.o test.
1644 * configure: Regenerated.
1646 * source.c (find_source_lines): Reassign size to result of read.
1648 start-sanitize-gdbtk
1651 * gdbtk.tcl (gdbtk_tcl_readline_begin): Handle backspace to
1652 avoid backing up over prompt. At every input, make sure insert
1653 point is at least after command start, handle control-u to delete
1655 (tclsh): Handle backspace to avoid backing up over prompt. Handle
1656 control-u to delete current input line.
1660 * configure.in: disable gdbtk for *cygwin32* hosted compiles
1661 * configure: regenerated with autoconf 2.8
1666 * h8300-dep.c (gdb_print_insn_h8300): Handle the H8/S.
1667 (h8300_command): Likewise.
1668 (set_machine): Likewise.
1669 (set_machine_hook): Likewise.
1670 (_initialize_h8300m): Likewise.
1672 * config/h8300/tm-h8300.h (h8300smode): Declare.
1676 * somsolib.c (som_solib_create_inferior_hook): Handle tracking
1677 of shl_load calls for hpux10.
1681 * config.in: Regenerated.
1682 * acconfig.h (HAVE_THREAD_DB_LIB): Added entry.
1684 * configure: Regenerated.
1685 * aclocal.m4 (CY_AC_PATH_TCLH, CY_AC_PATH_TKH): Use odd names to
1686 avoid name clashes with SunOS headers.
1691 * bcache.c (print_bcache_statistics): Avoid divide-by-zero
1692 exception if one or more objfile has no symbols, such as when
1693 a dynamic library has been stripped.
1697 * Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
1698 * configure configure.in: Only make sol-thread.o for native.
1699 Also, switch to dlopened libthread_db.so.1.
1700 * sol-thread.c: Switch to using dlopen to get the thread_db
1705 * config/sparc/{xm-sun4sol2.h,xm-sun4os4.h} (MMAP_BASE_ADDRESS):
1706 Change from 0xE0000000 to 0xC0000000.
1710 * config/powerpc/xm-solaris.h: Initial version of support for
1715 * configure.in (configdirs): Force 4100 builds to use 4300 GDB
1717 * configure: Rebuild.
1719 * config/mips/vr4300el.mt (SIM_OBS): Include simulator in
1720 little-endian builds.
1724 * inftarg.c (child_thread_alive): Protect declaration with
1725 #ifndef CHILD_THREAD_ALIVE.
1727 * source.c (find_source_lines): Check the time on the symtab's bfd if
1728 it exists, else check the time on the exec_bfd.
1732 * dsrec.c (make_srec): Fix calculation of address size
1733 to allow addresses less than 0x100.
1737 * ch-exp.c (ch_lex): In case of LOC_TYPEDEF call calculate_array_length.
1741 * remote-mips.c: cannot use EINVAL for breakpoint test since
1742 its value varies for different hosts (e.g. go32's is 19, while
1743 sunos is 22). Changed to hardcoded 22 since that is what the
1748 * configure: Regenerated.
1749 * aclocal.m4 (CY_AC_PATH_TCLH): Don't use AC_TRY_RUN.
1750 (CY_AC_PATH_TKH): Don't use AC_TRY_RUN.
1754 * solib.c (solib_absolute_prefix, solib_search_path): New variables.
1755 (_initialize_solib): Add set/show commands for those variables.
1756 (solib_map_sections): Implement searching using them.
1762 * NEWS: Add Alpha Linux as a new native configuration.
1764 * mdebugread.c (parse_symbol): When we find a malloc() symbol with
1765 return type VOID, assume no debugging info is available for that
1766 object file and patch the return value into VOID *. Otherwise,
1767 operations requiring an implicit call to malloc() will fail.
1769 * infrun.c (wait_for_inferior): The criterion to detect entering a
1770 sigtramp handler is now: (a) the current pc is inside a sigtramp
1771 handler, (b) the previous pc is not in a sigtramp handler, and (c)
1772 the current stack pointer is "inner" than the old one. Condition
1773 (c) is new to avoid mistaking a return from a signal handler into
1774 sigtramp as a new sigtramp invocation.
1776 * dcache.c (struct dcache_block): Declare addr as CORE_ADDR. An
1777 int may not be big enough to hold an address.
1778 (dcache_hit): Ditto.
1779 (dcache_peek_byte): Fix indentation.
1781 * configure.in (alpha-*-linux*): Add target.
1782 * configure: Rebuild
1784 * config/alpha/tm-alpha.h (PROC_DESC_IS_DYN_SIGTRAMP): New macro.
1785 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1786 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
1787 (SIGCONTEXT_ADDR): Ditto.
1788 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
1790 * config/alpha/alpha-linux.mh: New file.
1791 * config/alpha/alpha-linux.mt: Ditto.
1792 * config/alpha/nm-linux.h: Ditto.
1793 * config/alpha/tm-alphalinux.h: Ditto.
1794 * config/alpha/xm-alphalinux.h: Ditto.
1795 * config/alpha/xm-alphaosf.h: Renamed from xm-alpha.h.
1796 * config/alpha/alpha-osf1.mh (XM_FILE): Change from xm-alpha.h to
1798 * config/alpha/alpha-osf2.mh: Ditto.
1800 * blockframe.c (find_pc_partial_function): Pass PC to
1801 SIGTRAMP_START and SIGTRAMP_END macros for the benefit of systems
1802 that detect sigtramp code via designated code sequences (as is the
1803 case for Linux/Alpha, for example).
1805 * config/i386/tm-i386bsd.h: Change SIGTRAMP_START and SIGTRAMP_END
1806 to ignore new PC argument.
1807 * config/m68k/tm-hp300bsd.h: Ditto.
1808 * config/vax/tm-vax.h: Ditto.
1810 * alpha-tdep.c (alpha_linux_sigtramp_offset): New function.
1811 (alpha_osf_skip_sigtramp_frame): Ditto.
1812 (push_sigtramp_desc): Ditto.
1813 (alpha_find_saved_regs): Use SIGCONTEXT_ADDR macro to extract
1814 sigcontext address from frame.
1815 (alpha_saved_pc_after_call): When in sigtramp, use
1816 alpha_frame_saved_pc() instead of read-register().
1817 (after_prologue): When inside a dynamically generated sigtramp
1818 function, there is no prologue, so return address of first
1820 (alpha_in_prologue): Fix typo in comment.
1821 (find_proc_desc): Use macro DYNAMIC_SIGTRAMP_OFFSET to determine
1822 whether we're inside a dynamicaly generated sigtramp function. If
1823 so, create and push and appropriate procedure descriptor.
1824 (alpha_frame_chain): Use macro FRAME_PAST_SIGTRAMP_FRAME to obtain
1825 the frame past a sigtramp frame (if the current frame is indeed a
1827 (init_extra_frame_info): Don't read next frame register off of
1828 stack-pointer when inside a dynamiccaly generated sigtramp.
1829 (alpha_pop_frame): Also unlink and destroy procedure descriptors
1830 created for dynamically generated sigtramp functions.
1832 * alpha-nat.c: When compiling under Linux, include <asm/reg.h> and
1833 <alpha/ptrace.h> instead of <machine/reg.h>
1837 * gnu-nat.c (inf_validate_task_sc):
1838 Give terminal to gdb while asking question.
1839 (inf_resume): Don't validate the task suspend-count while execing.
1843 * gnu-nat.c (inf_validate_task_sc): Query user before clearing any
1844 additional suspend count.
1845 (S_proc_wait_reply, gnu_attach): Don't call inf_validate_task_sc.
1846 (inf_resume): Call inf_validate_task_sc here.
1847 (gnu_resume): Call inf_update_procs to ensure noticing new threads.
1851 * gnu-nat.c (gnu_create_inferior: attach_to_child): Return PID.
1855 * h8300-tdep.c (IS_PUSH): Refine.
1856 (IS_MOVE_FP, IS_MOV_SP_FP): Accept H8/300H varaints.
1857 (IS_SUB4_SP, IS_SUBL_SP): New macros.
1858 (h8300_skip_prologue): Handle H8/300H prologue code sequences.
1859 (examine_prologue): Handle addresses from 0x010000 to 0xffffff
1860 when in H8/300H mode. Get the return pointer's address correctly
1861 for the H8/300H. Handle H8/300H prolouge code sequences.
1863 * symfile.c (generic_load): Print the starting address
1864 of the file just loaded.
1868 * mpw-make.sed: Edit @THREAD_DB_OBS@ out of makefile.
1872 * breakpoint.c (bpstat_do_actions): Avoid endless recursion
1873 if a `source' command is contained in bs->commands.
1875 * infrun.c (wait_for_inferior): Update step_frame_address when
1876 stepping into a new line.
1879 * breakpoint.c (breakpoint_1): Add shlib_disabled case to
1884 * dsrec.c (load_srec): Add WAITACK parameter, for machines
1885 like EST visionICE that send back an ACK after each S-record.
1886 * monitor.c (monitor_wait_srec_ack): New function.
1887 (monitor_load): Pass monitor_wait_srec_ack to load_srec
1888 if the monitor's MO_SREC_ACK flag is set.
1889 * monitor.h: Define MO_SREC_ACK flag.
1890 * remote-est.c (est_cmds): Add MO_SREC_ACK flag.
1891 * sh3-rom.c (sh3_load): Accomodate change in load_srec prototype.
1892 * srec.h: Add WAITACK parameter to load_srec prototype.
1894 Sun May 19 21:22:00 1996 Rob Savoye <rob@chinadoll>
1896 * config/sparc/sparclite.mt: Add the sparc simulator.
1900 * defs.h (read_command_lines, query_hook): Update prototypes.
1901 (readline_begin_hook, readline_hook, readline_end_hook): Declare.
1902 * breakpoint.c (commands_command): Build message in temporary buffer
1903 and pass that, as well as tty control flag, to read_command_lines.
1904 * top.c (readline_begin_hook, readline_hook, readline_end_hook):
1906 (command_loop): Check for non-NULL instream before looping.
1907 (command_line_input): Use readline_hook when appropriate, to get
1908 user input from a GUI window.
1909 (read_next_line): Also build prompt if getting user input from a GUI.
1910 (recurse_read_control_structure): Fix typo in comment.
1911 (read_command_lines): Use passed in prompt and tty flag to decide how
1912 to build message. Use readline_begin_hook when appropriate, to set
1913 up a GUI interaction window. Just return head, whether NULL or not,
1914 after using readline_end_hook to complete GUI interaction.
1915 (define_command, document_command): Build message in a temporary
1916 buffer and pass it to read_command_lines, along with tty flag.
1918 start-sanitize-gdbtk
1919 * gdbtk.c (gdbtk_readline_begin, gdbtk_readline, gdbtk_readline_end):
1921 (tk_command_loop): Set instream to NULL to enable Tk user interaction.
1922 (gdbtk_init): Set readline_begin_hook, readline_hook,
1923 and readline_end_hook.
1924 * gdbtk.tcl (gdbtk_tcl_readline_begin, gdbtk_tcl_readline,
1925 gdbtk_tcl_readline_end): New functions.
1926 (tclsh): Pack scroll bar on right side of window, not left.
1931 * blockframe.c (frameless_look_for_prologue):
1932 Add FUNCTION_START_OFFSET only if func_start is non-zero.
1933 * minsyms.c (lookup_minimal_symbol_by_pc): Return NULL if
1934 pc is not in a known section.
1935 * stack.c (print_frame_info): Remove check for fi->pc in known
1936 section, now handled by lookup_minimal_symbol_by_pc.
1938 start-sanitize-gdbtk
1941 * gdbtk.tcl (create_command_window): Change a misspelled "get"
1942 to the intended "cget".
1943 (delete_line): Fix so it deletes the current line at the
1949 * sh-stub.c: New file, was config/sh/stub.c.
1951 start-sanitize-gdbtk
1954 * gdbtk.tcl (gdb_prompt): Set this early on.
1955 (create_command_window): Use gdb_prompt rather than "(gdb) ".
1956 (gdbtk_tcl_preloop): Proc executed just prior to Tk main loop.
1957 (tclsh): If an evaluation window already exists, just bring it
1958 to the front instead of trying to create another.
1959 * gdbtk.c (tk_command_loop): New function.
1960 (gdbtk_init): Call tk_command_loop rather than Tk_MainLoop.
1964 * gdbtk.tcl (evaluate_tcl_command, tclsh): New functions that
1965 implement a tcl evaluation window for gdbtk maintainers to use.
1969 * gdbtk.tcl (files_command): Correctly insert list of files into
1972 * gdbtk.tcl (files_command): listbox command no longer accepts
1977 * gdbtk.tcl (create_command_window): If command window's buffer
1978 is disabled, don't execute any of the key bindings.
1983 * top.c (read_next_line): Fix thinkos. From Donn Seeley.
1985 * coffread.c (coff_symtab_read): Handle C_LABEL symbols like
1987 * h8300-tdep.c (h8300_pop_frame): Reset $sp and $pc correctly.
1988 Flush cached frames just before exiting.
1989 * remote-sim.c (gdbsim_resume): Complain if the program isn't
1991 * config/h8300/tm-h8300.h (BELIEVE_PCC_PROMOTION): Define.
1995 * procfs.c (procfs_thread_alive procfs_stop): Make static.
1996 (procfs_pid_to_str): New routine to print out thread id's in an
1997 intelligible manner.
1998 * sol-thread.c (sol_thread_fetch_registers): Re-order manner in
1999 which supply_register is called to fix bug with writing
2001 * config/sparc/tm-sun4sol2.h: Define default for
2002 target_pid_to_str in case host lacks libthread_db.
2006 * Makefile.in config.in configure configure.in
2007 config/sparc/nm-sun4sol2.h config/sparc/sun4sol2.mh
2008 config/sparc/tm-sun4sol2.h: Use autoconf to config Solaris thread
2009 and pthread support, since pre-2.5 systems don't come with
2012 * procfs.c (info_proc): Use int instead of id_t. Old versions of
2013 Irix don't seem to define this.
2015 start-sanitize-gdbtk
2018 * gdbtk.c (tk_command): Catch case where no argument is given
2019 since this will cause the tcl interpreter to dump core.
2024 * top.c (execute_control_command, case while_control): Allow
2025 a while command to be interrupted.
2029 * sol-thread.c: More cleanup, add comments.
2030 (sol_thread_resume): Prevent people from trying to step
2032 (sol_thread_wait sol_thread_fetch_registers
2033 sol_thread_store_registers): Remove unnecessary check for
2034 sol_thread_active. These routines won't get called unless threads
2040 * sh-tdep.c (sh_reg_names, sh3_reg_names): Add empty names for
2042 (sh3e_reg_names): New register name array.
2043 (sh_processor_type_table): Add sh3e processor type.
2044 * config/sh/tm-sh.h (REGISTER_VIRTUAL_TYPE): Fix test.
2045 (REGISTER_NAMES, NUM_REGS, NUM_REALREGS, etc): Adjust for
2046 full set of registers.
2047 * remote-e7000.c (want_sh3, want_sh3_nopc): New globals.
2048 (e7000_fetch_registers, e7000_wait): Use them.
2049 * sh3-rom.c (sh3_regnames): Add float registers.
2050 (sh3e_cmds, sh3e_ops): New globals.
2051 (sh3e_open): New function.
2052 (_initialize_sh3_rom): Rename from _initialize_sh3, set up
2057 * sol-thread.c: Cleanup. gcc -Wall fixes. Add prototypes.
2058 Print out messages instead of codes for thread_db errors. Make
2059 access macros for thread and lwp manipulation. Make cleanups to
2060 fixup inferior_pid in case of errors.
2064 * aclocal.m4: Remove unused definition of AC_C_CROSS.
2065 * configure.in: Add powerpcle-*-solaris* host and target config
2066 so April 30th change does not get lost next time configure is
2071 * Makefile.in, breakpoint.c, corelow.c, fork-child.c, inflow.c,
2072 infrun.c, mac-nat.c, procfs.c, remote.c, sol-thread.c, thread.c,
2073 win32-nat.c, config/nm-lynx.h: Rename thread.h to gdbthread.h to
2074 avoid conflict with Solaris /usr/include/thread.h.
2078 * abug-rom.c: Config file for the older style ABug monitor that
2079 runs on the mvme13x boards.
2080 * config/m68k/monitor.mt: Add abug support for m68k cross
2085 * infcmd.c (do_registers_info): Always print the raw floating
2086 point value's bytes in big endian order, so the the leftmost bit
2087 is the most significant.
2088 * breakpoint.c (clear_momentary_breakpoints): Remove dead code
2089 that is referenced nowhere else.
2090 (set_breakpoint): Ditto.
2091 (do_enable_breakpoint): Created from enable_once_breakpoint
2092 with a couple of changes.
2093 (enable_breakpoint): Call do_enable_breakpoint with an appropriate
2094 bpdisp enum value to set disposition of breakpoint.
2095 (enable_once_breakpoint): Ditto.
2096 (enable_delete_breakpoint): Ditto.
2097 * breakpoint.h (clear_momentary_breakpoints): Remove prototype.
2098 * symtab.c (find_pc_line): Improve comments.
2099 start-sanitize-gdbtk
2100 * gdbtk.c: Fix a couple of misspellings.
2102 * xcoffread.c: Ditto.
2106 * target.c (debug_to_xfer_memory): Insert line breaks when
2107 dumping the memory block.
2111 * fork-child.c (fork_inferior), inferior.h: init_trace_fun now
2112 returns a possibly modified pid.
2113 * inftarg.c (ptrace_him): Now returns pid;
2114 * m3-nat.c (m3_trace_him): Now returns pid;
2115 * infcmd.c (run_command): Minor cleanup.
2116 * infrun.c (wait_for_inferior): Add another check for one_stepped
2117 near where we read the pc to avoid erroneously setting
2118 random_signal for multi-threaded support.
2119 * procfs.c: Add support for Solaris LWPs. Remove def of
2120 LOSING_POLL. Many cleanups... Several workarounds for Solaris
2121 lossage. System call entry and exit are now handled by
2122 dynamically registered handlers.
2123 * (syscallname): Don't barf when handed an unknown syscall
2125 * (info_proc_syscalls): Ditto.
2126 * sol-thread.c: New file. Implements Solaris thread support.
2127 * symfile.c (symbol_file_add): Add call to target_new_objfile to
2128 notify target-dependent code about new symbol tables.
2129 * (clear_symtab_users): Call target_new_objfile to notify it of
2130 the removal of all symbol tables.
2131 * target.c (push_target): Make sure that to_close is non-zero
2133 * target.h (target_new_objfile): Provide default.
2134 * config/alpha/nm-osf2.h: Define LOSING_POLL because this version
2135 of OSF can't hack using poll with /proc.
2136 * config/sparc/nm-sun4sol2.h (target_new_objfile): Define to be
2137 sol-thread-new-objfile.
2138 * config/sparc/sun4sol2.mh: Add sol-thread.o to NATDEFFILES, and
2139 add libthread_db.so.1 to NAT_CLIBS.
2140 * config/sparc/tm-sun4sol2.h: Define PIDGET, TIDGET, and
2145 * procfs.c (remove_fd): Fix copy of fds to fill hole left after
2146 removal of the requested fd.
2150 * rs6000-tdep.c (_initialize_rs6000_tdep): Don't do XCOFF specific
2153 * config/powerpc/tm-ppc-eabi.h: Define ELF_OBJECT_FORMAT.
2155 start-sanitize-gdbtk
2158 * gdbtk.tcl (debug_interface): New global, use to aid debugging.
2159 (insert_breakpoint_tag, delete_breakpoint_tag): Fix range.
2160 (file_popup_menu): Delete, never used.
2161 (listing_window_popup): Rename from listing_window_button_1,
2162 remove breakpoint toggling code.
2163 (toggle_breakpoint): New procedure.
2164 (create_file_win): Bind popup menu to button 2, toggle breakpoints
2165 with button 1 in breakpoint area, add display of tagged areas if
2172 * breakpoint.h (enum bpdisp): Add del_at_next_stop.
2173 * breakpoint.c (insert_breakpoints, watchpoint_check,
2174 bpstat_stop_status): Avoid bad references to memory freed via
2175 delete_breakpoint on watchpoints going out of scope.
2176 Do not delete these watchpoints, disable them and change their
2177 disposition to del_at_next_stop instead.
2178 (breakpoint_auto_delete): Delete all breakpoints whose disposition
2179 is del_at_next_stop.
2180 (breakpoint_init_inferior): Use switch to avoid reference to
2181 already deleted breakpoint.
2185 * Makefile.in (rs6000-nat.o): Depend on xcoffsolib.h.
2186 * config/rs6000/rs6000.mh (NATDEPFILES): Move xcoffread.o ...
2187 * config/rs6000/rs6000.mt (TDEPFILES): ... to here.
2188 * xcoffsolib.c (xcoff_relocate_symtab_hook): Define and initialize.
2189 (solib_info): Call xcoff_relocate_symtab via the hook.
2190 (sharedlibrary_command): Ditto.
2191 * xcoffread.c: Remove all FAKING_RS6000 comments and defines.
2192 (xcoff_add_toc_to_loadinfo_hook): Define and initialize here.
2193 (xcoff_init_loadinfo_hook): Define and initialize here.
2194 (scan_xcoff_symtab): Call xcoff_add_toc_to_loadinfo via the hook.
2195 (xcoff_initial_scan): Call xcoff_init_loadinfo via the hook.
2196 * xcoffsolib.h (xcoff_relocate_symtab_hook): Declare extern func.
2197 * rs6000-tdep.c (_initialize_rs6000_tdep): Add initializations
2198 of xcoff_add_toc_to_loadinfo_hook and xcoff_init_loadinfo_hook.
2199 * rs6000-nat.c (_initialize_core_rs6000): Add initialization
2200 of xcoff_relocate_symtab_hook.
2204 * configure (powerpcle-*-solaris*): Add Solaris support.
2206 * config/powerpc/{solaris.m[ht],tm-solaris.h}: New files for
2211 * c-valprint.c (c_val_print): Fix printing for arrays defined
2216 Support for bi-endian remote breakpoints.
2217 * remote.c (big_break_insn, little_break_insn): New globals.
2218 (break_insn): Remove.
2219 (remote_insert_breakpoint, remote_remove_breakpoint): Use own
2220 code if REMOTE_BREAKPOINT defined, otherwise call memory
2221 breakpoint functions.
2222 * config/sh/tm-sh.h (REMOTE_BREAKPOINT): Remove.
2223 (BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT): Define.
2225 * mon960-rom.c (mon960_cmds): Remove forward decl.
2226 (mon960_load): Use current_monitor instead of mon960_cmds.
2227 (mon960_regnames): Remove backslashes from line ends.
2228 (_initialize_mon960): Fix documentation string.
2232 * symfile.h (psymbol_allocation_list): Expand comments which
2233 describe the psymbol allocation list and how each field is
2238 * breakpoint.c (delete_breakpoint): Fix bpt->val, bpt->exp
2240 (breakpoint_re_set_one): Fix b->exp, b->val, b->cond storage leaks.
2242 * infcmd.c (run_command), solib.c (locate_base): Check for
2243 target_has_execution in addition to inferior_pid, a core file
2244 from a threaded program is yielding a non-zero inferior_pid.
2246 * sparc-tdep.c (get_saved_register): Handle window registers
2247 in a dummy frame correctly.
2251 * Makefile.in (CLIBS): Move $(MMALLOC) past all other libs,
2252 so that anything that wants an allocation function not yet pulled
2253 in, will get it from mmalloc rather than a system library.
2254 * Makefile.in (INSTALLED_LIBS): Reorder to match order of CLIBS,
2255 to avoid surprising results when used.
2259 * stabsread.c: Changes and bug fixes for cfront support.
2260 Fix bug for class data members.
2261 Fix parsing bug when no base classes exist.
2262 Fix memory bug - allocate space for cplusplus specific info.
2263 Add support for static data.
2264 Add prototypes for static functions.
2265 Enhance comments to show what each function expects to parse.
2267 * stabsread.c(resolve_cont),dbxread.c(resolve_cont): Rename
2268 function to resolve_cfront_continuation.
2272 * infrun.c (wait_for_inferior): Call registers_changed when
2273 restarting the inferior to get over a nullified instruction.
2277 * dbxread.c,stabsread.c,gdbtypes.c,partial-stab.h,valops.c:
2278 Add new support for parsing cfront stabs.
2282 * infrun.c (wait_for_inferior): Move "have_waited" label
2283 outside of #ifdef conditionals. Don't trash the wait status
2284 if we get a signal and the current instruction is nullified.
2288 * Makefile.in (VERSION): Bump version number to 4.16.1.
2289 * NEWS: Update for 4.16 release.
2293 * monitor.h: Clean up comment formatting.
2294 (current_monitor): Remove decl.
2295 (LOADTYPES, LOADPROTOS, INIT_CMD, etc): Remove definitions.
2296 (push_monitor, SREC_SIZE): Remove.
2297 * monitor.c: Expand old macro into current_monitor derefs
2299 * remote-os9k.c (current_monitor): Remove definition.
2303 * corefile.c (specify_exec_file_hook): Allow arbitrary number of
2305 (call_extra_exec_file_hooks): New function.
2306 * h8300-tdep.c: Lint; add .h files to provide missing declarations,
2307 remove unused variables.
2308 (set_machine_hook): New function.
2309 (_initialize_h8300m): Initialize it.
2313 * remote-mips.c (encoding): Don't specify size, to avoid bug in
2314 SunOS native compiler.
2318 * monitor.c: Use int rather than LONGEST for values, since
2319 the formatting strings are not prepared to accept long longs.
2323 * arm-tdep.c (initialize_arm_tdep): Make apcs32 a `zinteger'.
2327 * corelow.c (add_to_thread_list): Make sure reg_sect is non-null
2328 before de-referencing it. Prevents deref of NULL pointer if core
2329 file lacks .reg section.
2330 * defs.h: Rename floatformat_{to from}_long_double to
2331 floatformat_{to from}_doublest. Get rid of FLOATFORMAT_{TO
2333 * findvar.c (extract_floating store_floating): Change all refs to
2334 FLOATFORMAT_{FROM TO}... to floatformat_{from to}_doublest.
2335 * utils.c: Change floatformat_{to from}_long_double to
2336 floatformat_{to from}_doublest cuz the new routines will use
2337 whatever size (double or long double) is appropriate.
2338 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
2339 REGISTER_CONVERT_TO_RAW): Change FLOATFORMAT... macros to
2340 floatformat... routine calls.
2344 * stabsread.c (read_type): Move handling of '@' from type
2345 number handling to handling of types proper (as emitted by gcc!).
2346 For typedefs, allocate the typedef type before reading its
2347 definition, to properly handling recursive types.
2351 * ch-exp.c (calculate_array_length): Fix prototype.
2355 * remote-nindy.c (nindy_open): Acquire more target state so that
2356 user can attach to a previously running program.
2357 * (nindy_fetch_registers nindy_store_registers): Get rid of fp
2358 conversion code. That's all handled in {extract store}_floating
2360 * utils.c (floatformat_to_double): Don't bias exponent when
2361 handling zero's, denorms or NaNs.
2362 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
2363 REGISTER_CONVERT_TO_RAW): Change to using DOUBLST and
2364 FLOATFORMAT_TO/FROM_DOUBLEST macros.
2365 * config/i960/tm-nindy960.h: Undefine
2366 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW, and
2367 REGISTER_CONVERTIBLE. These are no longer necessary now that all
2368 the magic happens in extract/store_floating.
2372 * eval.c (evaluate_subexp_standard): Report error when attempting to
2373 evaluate subscripts for types which cannot be subscripted.
2375 * valarith.c (value_x_binop, value_x_unop): Add noside parameter.
2376 Return a zero value with the return type of the member function
2377 if noside is EVAL_AVOID_SIDE_EFFECTS instead of calling the member
2379 * values.h (value_x_binop, value_x_unop): Update prototypes
2381 * eval.c (evaluate_subexp_standard): Update all callers of
2382 value_x_binop, value_x_unop accordingly.
2384 * valarith.c (value_neg, value_complement): Perform ANSI C/C++
2385 integral promotion on operands.
2389 * README: Update for 4.16 release.
2390 * configure.in (AC_CHECK_FUNCS): Also check for sbrk.
2391 * configure: Regenerate with autoconf.
2392 * config.in: Regenerate with autoheader.
2393 * main.c (main): Only use sbrk() when HAVE_SBRK is defined.
2394 * top.c (command_loop): Ditto.
2398 * defs.h: Define TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
2399 defaults for bi-endian targets. Replace function pointers for
2400 floatformat routines with macros. No need for these to be runtime
2402 * findvar.c: Get rid of floatformat function pointers. Use
2403 macros in extract_floating and store_floating.
2404 * remote-nindy.c (nindy_fetch_registers nindy_store_registers):
2405 Use floatformat macros.
2410 * configure.in (AC_CHECK_HEADERS): check for endian.h.
2411 Use AC_CHECK_TOOL to find AR & RANLIB. Add AC_PROG_AWK.
2412 Add host & target cases for i[345]86-*-gnu*.
2413 * config.in: Regenerate with autoheader.
2414 * configure: Regenerate with autoconf.
2415 * Makefile.in (AR, AWK): Set from corresponding autoconf substs.
2416 (init.c): Don't scan mig-generated files.
2417 * defs.h (endian.h): Include if HAVE_ENDIAN_H defined.
2418 * config/nm-m3.h (ATTACH_NO_WAIT): Define.
2419 * infcmd.c (attach_command): Use "#ifndef ATTACH_NO_WAIT"
2420 rather than "#ifndef MACH".
2424 * remote.c (remotewritesize): New GDB variable, controls size
2425 of memory packets sent to the target.
2429 * dcache.c: Add prototypes. Make many functions static.
2430 * (dcache_peek dcache_fetch dcache_poke): Make dcache_fetch and
2431 dcache_poke call dcache_xfer_memory directly in order to fix
2432 problems with turning off dcache. dcache_peek is now unnecessary,
2435 * defs.h: Define new macros HOST_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
2436 and TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT to specify a pointer
2437 to a struct floatformat. This allows for better handling of
2438 targets whose floating point formats differ from the host by more
2439 than just byte order.
2440 * (floatformat_to_long_double floatformat_from_long_double):
2441 Prototypes for new functions in utils.c.
2442 * (floatformat_to_doublest floatformat_from_doublest): Prototypes
2443 for pointers to floating point conversion functions. The actual
2444 function uses either double or long double if the host supports it.
2445 * findvar.c (floatformat_to_doublest floatformat_from_doublest):
2446 Initialize to point at correct function depending on HAVE_LONG_DOUBLE.
2447 * (extract_floating store_floating): Rewrite. Now, if host fp
2448 format is the same as the target, we just do a copy. Otherwise,
2449 we call floatformat_{to from}_doublest.
2450 * remote-nindy.c (nindy_xfer_inferior_memory): Change param
2451 `write' to `should_write'.
2452 * utils.c (floatformat_to_long_double
2453 floatformat_from_long_double): New routines that implement long
2454 double versions of functions in libiberty/floatformat.c.
2455 * config/i960/tm-i960.h (TARGET_LONG_DOUBLE_FORMAT): Define this for
2456 i960 extended real (80 bit) numbers.
2457 * nindy-share/nindy.c (ninMemGet ninMemPut): Return number of bytes
2458 actually read or written.
2462 * ch-valprint.c (chill_val_print): Remove call to calculate_array_length.
2463 (calculate_array_length): Move function from here ...
2465 * ch-exp.c (calculate_array_length): ... to here.
2466 (parse_primval): If we have a symbol with an array type
2467 and the length is 0, call calculate_array_length.
2471 * eval.c (evaluate_subexp_standard): In case of TYPE_CODE_SET:
2472 Add some checks for powerset compatibility.
2474 * valops.c (value_slice): Use lowbound instead of lowerbound for
2475 call to slice_range_type to get correct bounds.
2479 * Makefile.in (scm-exp.o, scm-lang.o, scm-valprint.o): Add targets and
2481 * scm-lang.c (gdb_string.h): Include.
2482 * objfiles.c (add_to_objfile_sections): Cast second arg of obstack_grow
2483 call to correct type (char *).
2484 * cp-valprint.c (cp_print_static_field): Ditto.
2485 * somsolib.c (som_solib_create_inferior_hook): Add a declaration
2486 for external find_unwind_entry function (from hppa-tdep.c).
2487 * remote-pa.c (remote_write_bytes, remote_read_bytes): Change
2488 type of second arg to "char *" to be type compatible with
2490 (remote_wait): Cast second arg to strtol to correct type.
2491 * hppa-tdep.c (compare_unwind_entries): Change argument types to
2492 "const void *" to be type compatible with qsort, and then
2493 assign to local args prior to use.
2497 * infptrace.c (kill_inferior): Remove call to "kill"; update
2502 * remote-e7000.c: don't append :23 to target port if __WIN32__
2503 is defined (it's WinGDB).
2508 * gnu-nat.c, gnu-nat.h, msg.defs, exc_request.defs, i386gnu-nat.c,
2509 msg_reply.defs, notify.defs, process_reply.defs, reply_mig_hack.awk,
2510 config/nm-gnu.h, config/i386/{i386gnu.mh, i386gnu.mt, nm-gnu.h,
2511 m-i386gnu.h, xm-i386gnu.h}: New files for GNU hurd.
2515 * configure.in (case host): Add i386sco5 host.
2516 * configure: Regenerate.
2519 Add support for SCO OpenServer 5 (a.k.a. 3.2v5*) This
2520 target is an SVR3.2 with COFF, ELF, and shared libes, but
2522 * config/i386/i386sco5.mh: New file.
2523 * config/i386/nm-i386sco5.h: New file.
2527 * bcache.c (bcache): When size of chunk to cache is exactly equal to
2528 BCACHE_MAXLENGTH, stash chunk as unique copy.
2532 * symfile.c (INLINE_ADD_PSYMBOL): Remove ifdef.
2533 (add_psymbol_to_list): Add an arg for passing CORE_ADDR values and
2534 use it, rather than calling add_psymbol_addr_to_list.
2535 (add_psymbol_addr_to_list): Delete.
2536 (add_psymbol_to_list): Make psymbol static to avoid random data in
2537 gaps due to alignment of structure members.
2538 * symfile.h (INLINE_ADD_PSYMBOL, ADD_PSYMBOL_TO_LIST,
2539 ADD_PSYMBOL_ADDR_TO_LIST): Remove. Real world tests show no
2540 performance improvements by inlining via complicated macros and
2541 they just make gdb larger and harder to maintain.
2542 * dwarfread.c (add_enum_psymbol): Replace ADD_PSYMBOL_TO_LIST
2543 and/or ADD_PSYMBOL_ADDR_TO_LIST macro(s) with call to
2544 add_psymbol_to_list with appropriate long or CORE_ADDR args.
2545 (add_partial_symbol): Ditto.
2546 * partial-stab.h: Ditto.
2547 * os9kread.c (read_os9k_psymtab): Ditto
2548 * mdebugread.c (parse_partial_symbols): Ditto.
2549 (handle_psymbol_enumerators): Ditto.
2550 (demangle.h): Include.
2551 * hpread.c (hpread_build_psymtabs): Ditto.
2552 (hpread_build_psymtabs): Ditto.
2553 (demangle.h): Include
2555 start-sanitize-gdbtk
2558 * gdbtk.c (running_now): New global variable.
2559 (gdb_cmd): Test it before executing any command.
2560 (gdbtk_call_command): Set it when inferior is running.
2561 * gdbtk.tcl (gdbtk_tcl_busy, gdbtk_tcl_idle): Enable and
2562 disable interaction with command window's text appropriately.
2566 * gdbtk.c (SIOCSPGRP, linux): If on Linux, undef SIOCSPGRP, since
2567 some versions of the kernel don't support it.
2572 * configure.in: Check for setpgid function.
2573 * config.in: Regenerate with autoheader.
2574 * configure: Regenerate with autoconf.
2575 * inflow.c (_initialize_inflow): Only try to use _SC_JOB_CONTROL
2576 if it is actually defined.
2577 (gdb_setpgid): Use HAVE_SETPGID.
2578 * ch-exp.c: Change include of <string.h> to "gdb_string.h".
2579 * c-exp.y, f-exp.y, m2-exp.y: Ditto.
2580 * c-exp.y, serial.c: Include <ctype.h>.
2581 * config/m68k/nm-news.h: Add typedef for pid_t which is
2582 apparently missing from <sys/types.h>. Enclose entire
2583 file in NM_NEWS_H ifndef and define when included.
2584 * config/mips/nm-news-mips.h: Ditto.
2585 * config/m68k/tm-m68k.h (REGISTER_CONVERT_TO_VIRTUAL,
2586 REGISTER_CONVERT_TO_RAW): Change name of temporary variable.
2590 * arm-xdep.c: Move native-specific code to here from arm-tdep.c.
2591 * arm-tdep.c (arm_apcs_32): New global.
2592 (arm_addr_bits_remove, arm_saved_pc_after_call,
2593 arm_push_dummy_frame, arm_pop_frame): New functions.
2594 (arm_skip_prologue): Updated version from Richard Earnshaw.
2595 (_initialize_arm_tdep): Add set/show "apcs32".
2596 * config/arm/tm-arm.h (ADDR_BITS_REMOVE): Call
2597 arm_addr_bits_remove.
2598 (SAVED_PC_AFTER_CALL): Call arm_saved_pc_after_call.
2599 (frame_find_saved_regs): Declare properly.
2600 (PUSH_DUMMY_FRAME): Call arm_push_dummy_frame.
2601 (POP_FRAME): Call arm_pop_frame, use ADDR_BITS_REMOVE instead of
2603 * config/arm/nm-arm.h: New file.
2604 * config/arm/xm-arm.h (KERNEL_U_ADDR, FETCH_INFERIOR_REGISTERS):
2605 Move definitions to nm-arm.h.
2606 * config/arm/arm.mh (NAT_FILE): Define.
2608 * symfile.c (generic_load): Initialize data_count properly.
2612 * symmisc.c (print_objfile_statistics): Print memory used by
2613 psymbol cache obstack.
2617 * symfile.c (report_transfer_performance): New function.
2618 (generic_load): Call it to report transfer rate.
2619 * remote-e7000.c (e7000_load): Ditto.
2623 * mpw-make.sed: Change references to config.h to be in objdir,
2624 edit out rules to rebuild config.h.
2628 * hppa-tdep.c (hppa_pop_frame): Call clear_proceed_status before
2633 * hppah-nat.c (store_inferior_registers, store_inferior_registers,
2634 fetch_register, child_xfer_memory): Use call_ptrace function supplied
2635 by infptrace.c rather than calling ptrace directly.
2639 * mon960-rom.c: Cleanups and elimination of unused code,
2640 clarify documentation string.
2641 (mon960_serial, mon960_ttyname): Remove.
2642 * config/i960/tm-mon960.h (ADDITIONAL_OPTIONS,
2643 ADDITIONAL_OPTION_CASES, ADDITIONAL_OPTION_HELP): Remove.
2647 * configure.in: Check whether printf family supports printing
2648 long doubles or not and define PRINTF_HAS_LONG_DOUBLE if so.
2649 * acconfig.h: Provide default undef for PRINTF_HAS_LONG_DOUBLE.
2650 * configure: Regenerate.
2651 * valprint.c (print_floating): Use PRINTF_HAS_LONG_DOUBLE.
2652 * c-exp.y (parse_number): Use PRINTF_HAS_LONG_DOUBLE.
2653 * configure.in: Fix have_gregset and have_fpregset autoconf
2654 variable names so that they match the pattern required to
2659 * core-aout.c (fetch_core_registers): Cast core_reg_size to int
2660 before testing against reg_ptr.
2661 * eval.c (evaluate_subexp_standard): Cast type of
2662 TYPE_FN_FIELD_VOFFSET to int.
2663 * findvar.c (extract_signed_integer, extract_unsigned_integer,
2664 extract_long_unsigned_integer): Cast type of sizeof to int.
2665 * values.c (unpack_field_as_long, modify_field): Ditto.
2666 * valops.c (value_assign, call_function_by_hand): Ditto.
2667 * infcmd.c (do_registers_info): Ditto.
2668 * ser-tcp.c (tcp_open): Ditto.
2669 * remote.c (putpkt): Ditto.
2670 * dcache.c (dcache_peek): Ditto.
2671 * dcache.c (dcache_poke): Ditto.
2672 * m2-exp.y (yylex): Ditto.
2673 * gnu-regex.c (re_match_2): Ditto.
2674 * f-lang.c (ADD_BF_SYMNUM, saved_bf_list_end, tmp_bf_ptr): Ifdef
2675 out unused macro definition and variables.
2676 * inftarg.c (proc_wait): Move from main.c to here, and make static.
2677 * valprint.c (val_print_string): Change bufsize from int to unsigned.
2678 * main.c (wait.h): Include.
2679 * top.c (command_line_input): Remove unused variable "c".
2680 * f-typeprint.c (f_type_print_varspec_prefix): Add missing enum
2681 value TYPE_CODE_TYPEDEF to switch statement.
2682 (f_type_print_varspec_suffix): Add missing enum value
2683 TYPE_CODE_TYPEDEF to switch statement.
2684 * ch-exp.c (parse_primval): Add remaining enumeration values to
2685 switch statement, with no specific action.
2686 (ch_lex): Add LOC_UNRESOLVED in switch statement.
2687 (pushback_token): Ifdef out, since code using it is ifdef'd out.
2688 * stabsread.c (cleanup_undefined_types): Remove unused label
2690 * objfiles.h (print_symbol_bcache_statistics): Add prototype.
2691 * maint.c (objfiles.h): Include.
2692 (maintenance_print_statistics): Remove unused variable "temp".
2693 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
2694 unused variable "found_file_symbol".
2695 * m2-exp.y (yylex): Add LOC_UNRESOLVED case to switch.
2696 * language.c (lang_bool_type): Use existing function local type
2697 variable rather than create block local variables.
2698 * solib.c (disable_break): Enclose in ifndef SVR4_SHARED_LIBS.
2699 * infptrace.c (wait.h, command.h): Include.
2700 * ser-tcp.c (gdb_string.h): Include
2701 * i386-tdep.c (codestream_seek): Change "place" to CORE_ADDR.
2702 (i386_get_frame_setup): Change "pc" from int to CORE_ADDR.
2703 * command.c (complete_on_enum): Make assignment used as truth value
2704 explictly check against NULL.
2706 * infrun.c (wait_for_inferior): Ifdef out prologue_pc since code
2707 that uses it is ifdef'd out.
2708 * parser-defs.h: Add prototype for write_dollar_variable.
2709 * infrun.c: Add prototype for write_pc_pid.
2710 * breakpoint.h: Add prototype for re_enable_breakpoints_in_shlibs.
2711 * symmisc.c (bcache.h): Include.
2712 * bcache.h: Add prototype for print_bcache_statistics.
2713 * symfile.c: Include <time.h>.
2714 * printcmd.c (print_scalar_formatted): Change len to unsigned int.
2715 * valarith.c (value_equal): Cast result of TYPE_LENGTH to int.
2716 * valarith.c (value_binop): Change result_len, promoted_len1,
2717 and promoted_len2 to unsigned int.
2718 * valarith.c (value_subscripted_rvalue): Change elt_offs and
2719 elt_size to unsigned int.
2720 * valops.c (value_array): Change typelength to unsigned int.
2721 (destructor_name_p): Change len to unsigned int.
2722 * scm-lang.h (scm_parse): Add prototype for scm_unpack.
2723 * symfile.c (decrement_reading_symtab): Change return type to void.
2724 * valarith.c (value_subscript): Remove unused variable "word".
2725 (value_subscript): Remove unused variable "tint".
2726 * valops.c (auto_abandon): Ifdef out, since code using it is also
2728 * eval.c (init_array_element): Remove unused variable "val".
2729 * Makefile.in (values.o): Depends on scm-lang.h.
2730 (command.o): Depends upon wait_h.
2731 (ser-tcp.o): Depends upon gdb_string.h.
2732 (infptrace.o): Depends upon wait_h and command_h.
2733 (maint.o): Depends on objfiles.h and symfile.h.
2734 * values.c (allocate_repeat_value): Remove unused variable
2736 (scm-lang.h): Include.
2737 * breakpoint.c (create_longjmp_breakpoint): Enclose in
2738 GET_LONGJMP_TARGET define, unused otherwise.
2739 * config/i386/nm-linux.h: Add prototypes for i386_insert_watchpoint,
2740 i386_remove_watchpoint and i386_stopped_by_watchpoint.
2744 * configure.in (sparc64-*-solaris2*): Delete.
2745 Stick with sparc-*-solaris2*.
2746 * configure: Regenerated.
2750 * valops.c (value_assign): Make copy of internal variable value
2751 before returning it as a new value, since it is owned by the
2752 internal variable and will be freed along with it.
2756 * From Peter Schauer.
2757 * breakpoint.c (breakpoint_re_set_one): Keep temporary
2758 breakpoints bp_until, bp_finish, bp_watchpoint_cope, bp_call_dummy
2759 and bp_step_resume in case breakpoint_re_set_one is called due
2760 to a step over a dlopen call.
2761 * infrun.c (wait_for_inferior): Always remove breakpoints from
2762 inferior in BPSTAT_WHAT_CHECK_SHLIBS case.
2766 * config/mips/tm-mips.h (COERCE_FLOAT_TO_DOUBLE): Only prefer
2767 non-prototyped case over prototyped case for C.
2768 * config/pa/tm-hppa.h (COERCE_FLOAT_TO_DOUBLE): Ditto.
2772 * os9kread.c (os9k_process_one_symbol): Note nonportable
2773 assumption that an int can hold a char *.
2775 * bcache.h (struct hashlink): Wrap data[] inside union with
2776 double to force longest alignment.
2777 (BCACHE_DATA): New macro to access data[].
2778 (BCACHE_ALIGNMENT): New macro to get offset to data[].
2779 * bcache.c (lookup_cache, bcache): Use BCACHE_DATA to get
2780 address of cached data. Use BCACHE_ALIGNMENT to compute
2781 amount of space to allocate for each hashlink struct.
2785 * ch-lang.c (evaluate_subexp_chill): Fix typo.
2789 * Makefile.in (VERSION): Bump version to 4.15.3
2793 * config.in: Rename from config.h.in.
2794 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
2795 Change CONFIG_HEADERS test in AC_OUTPUT accordingly.
2796 * configure: Rebuild.
2797 * Makefile.in (stamp-h): Depend upon config.in, not config.h.in.
2798 Set CONFIG_HEADERS to config.h:config.in.
2802 * partial-stab.h (case N_ENDM): Finish current partial symbol
2803 table for Solaris 2 cc.
2807 * rs6000-nat.c (exec_one_dummy_insn): Don't clobber the
2808 PC in the registers array. From Peter Schauer.
2812 * symfile.c (reread_symbols): Reinitialize bcache struct
2813 members to zero using memset. Also use memset to reinit
2814 global_psymbols and static_psymbols, rather than explicitly
2815 resetting each structure member.
2819 * configure.in: Add fragment to create stamp-h.
2822 * configure.in (AC_CHECK_HEADERS): Check for link.h.
2823 * configure: Regenerate with autoconf.
2824 * config.h.in: Regenerate with autoheader.
2825 * config/i386/nm-linux.h: Include solib.h only if HAVE_LINK_H
2827 * solib.c: Exclude most of the code if HAVE_LINK_H is not defined.
2828 * config/i386/linux.mh: Reinstate XM_CLIBS, it is needed for
2829 older a.out based systems.
2833 * config.h.in: New file.
2834 * acconfig.h: New file, for autoheader.
2835 * configure.in (AC_CONFIG_HEADER): Add, generate config.h.
2836 * configure: Regenerate.
2837 * Makefile.in (defs_h): Add config.h
2838 (distclean): Remove config.h and stamp-h during distclean.
2839 (config.h, stamp-h): New targets to remake config.h when necessary.
2840 * defs.h (config.h): Include before any other includes or defines.
2841 * i386-tdep.c (gdb_string.h): Move include after include of defs.h.
2842 * i386v4-nat.c (defs.h): Include before testing HAVE_SYS_PROCFS_H.
2847 * Makefile.in (INSTALLED_LIBS): Make sure that @LIBS@ will not
2848 result in an empty line, to work around a bug in native Ultrix 4.4
2849 and OSF/1-3.2C make.
2853 * configure.in: Add gdbserver to configdirs under linux.
2854 * configure: Regenerate.
2858 * config/i386/nm-nbsd.h (FLOAT_INFO): Comment out.
2859 * config/i386/tm-nbsd.h (NUM_REGS): Define.
2863 * solib.c (solib_break_names): Add _r_debug_state for
2864 vanilla SVR4 implementations. From Peter Schauer.
2868 * mon960-rom.c: New file; support mon960 rom monitor on i960.
2869 * monitor.c (monitor_debug): Change remotedebug to buffer strings.
2870 * monitor.c (monitor_open): Add test for flag MO_NO_ECHO_ON_OPEN before
2871 epecting prompt and echo during open.
2872 * monitor.c (monitor_stop): Add test for flag MO_SEND_BREAK_ON_OPEN to
2873 determine if break should be sent as stop command.
2874 * monitor.h: Add flags MO_NO_ECHO_ON_OPEN and MO_SEND_BREAK_ON_OPEN.
2875 * i960-tdep.c (mon960_frame_chain_valid): New function for getting
2876 stack frame on mon960.
2877 * Makefile.in: Add mon960 files.
2878 * configure.in: Changed i960-*-coff* and i960-*-elf* to target mon960;
2879 added i960-nindy-coff* and i960-nindy-elf* for target nindy.
2880 * configure: Regenerated.
2881 * config/i960/mon960.mt, config/i960/tm-mon960.h: New files;
2882 support mon960 rom monitor on i960.
2886 With Michael Snyder:
2887 * i386-tdep.c (skip_trampoline_code): Fix strncmp length.
2888 * win32-nat.c (CHECK, DEBUG*, debug_*): New.
2889 (handle_load_dll): Don't reload symbols.
2890 (handle_exception): Use the DEBUG_* names.
2891 (child_wait): Add DEBUG_* code.
2892 (_initialize_inftarg): Add new commands to set debug_ names.
2896 * From Peter Schauer:
2897 * breakpoint.c (insert_breakpoints): Use ALL_BREAKPOINTS_SAFE.
2898 (bpstat_stop_status): Likewise.
2899 (remove_solib_event_breakpoints): Likewise.
2900 (clear_momentary_breakpoints): Likewise.
2901 (re_enable_breakpoints_in_shlibs): Don't reenable a breakpoint
2902 if we still can't read the memory for that breakpoint.
2903 (mention): Add bp_shlib_event case to keep gcc quiet.
2907 * breakpoint.h (enum enable): New enum shlib_disabled for
2908 shared library breakpoints that have been temporarily disabled.
2909 * breakpoint.c: Handle temporarily disabled shared library
2910 breakpoints like disabled breakpoints in most places.
2911 (insert_breakpoints): Use shlib_disabled to indicate
2912 that an unsettable breakpoint is only temporarily disabled.
2913 (re_enable_breakpoints_in_shlibs): New function.
2914 * corelow.c (solib_add_stub): After adding shared libraries,
2915 try to reenable any temporarily disabled breakpoints.
2916 * infcmd.c (attach_command): Likewise.
2917 * infrun.c (wait_for_inferior): Likewise.
2921 * defs.h (extract_long_unsigned_integer): Declare.
2922 * findvar.c (extract_long_unsigned_integer): New function.
2923 * printcmd.c (print_scalar_formatted): Use it.
2924 * valprint.c (val_print_type_code_int): Likewise.
2928 * infcmd.c (do_registers_info): Ignore anonymous registers.
2929 * sh-tdep.c (set processor): New command to set specific
2931 (sh_reg_names, sh3_reg_names): Arrays of register names for
2932 SH and SH3 processors.
2933 (sh_set_processor_type): New function.
2934 * sh3-rom.c (sh3_open): Call it.
2935 (sh3_regname): Add names of all the bank registers.
2936 (sh3_supply_register): Clean up formatting.
2937 * config/sh/tm-sh.h (NUM_REGS, NUM_REALREGS): Increase to include
2939 (REGISTER_NAMES): Add names of bank registers.
2940 (FP15_REGNUM): Define.
2941 (REGISTER_VIRTUAL_TYPE): Use it.
2942 * monitor.c: Clean up some comments.
2946 * i386b-nat.c: Revert part of Mar 5 change. FreeBSD collapsed the
2947 s* and t* symbols too.
2951 * symfile.c (generic_load): Avoid division by zero.
2955 * breakpoint.c (bfd_lookup_symbol): Provide for all SVR4 systems,
2956 not just those with HANDLE_SVR4_EXEC_EMULATORS.
2959 * breakpoint.c (internal_breakpoint_number): Move to file scope.
2960 (create_solib_event_breakpoint): Use an internal breakpoint number.
2964 * valarith.c (value_in): Change builtin_type_chill_bool to
2969 * ch-exp.c (parse_primval): Handle CARD, MAX, MIN.
2970 (match_string_literal): Handle control sequence.
2971 (match_character_literal): Deto.
2973 * ch-lang.c (chill_printchar): Change formating of nonprintable
2974 characters from C'xx' to ^(num).
2975 (chill_printstr): Deto.
2976 (value_chill_card, value_chill_max_min): New functions to process
2977 Chill's CARD, MAX, MIN.
2978 (evaluate_subexp_chill): Process UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN.
2980 * expression.h (exp_opcode): Add UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN
2981 for Chill's CARD, MAX, MIN.
2983 * valarith.c (value_in): Add processing of TYPE_CODE_RANGE
2984 and change return type from builtin_type_int to
2985 builtin_type_chill_bool.
2989 * config/nm-nbsd.h (link_object, lo_name, etc): Move to here
2990 from config/nm-nbsd.h.
2991 * config/sparc/nm-nbsd.h (regs, fp_status, etc): Move to here
2992 from config/sparc/tm-nbsd.h.
2994 * config/m68k/nm-hp300hpux.h (FIVE_ARG_PTRACE): Define here
2995 instead of in config/m68k/xm-hp300hpux.h.
2999 * i386b-nat.c, m68knbsd-nat.c (fetch_core_registers): Provide
3000 implementation for NetBSD systems.
3004 * valarith.c (binop_user_defined_p): Return 0 for BINOP_CONCAT.
3005 (value_concat): Handle varying strings (add COERCE_VARYING_ARRAY).
3007 * ch-lang.c (evaluate_subexp_chill case MULTI_SUBSCRIPT): Error
3008 if "function" is pointer to non-function.
3012 * top.c (print_gdb_version): Update copyright year.
3017 * infrun.c (wait_for_inferior): Remove breakpoints and
3018 switch terminal settings before calling SOLIB_ADD.
3019 * solib.c (enable_break, SVR4 variant): Don't map in symbols
3020 for the dynamic linker, the namespace pollution causes real
3025 * remote-mips.c (common_breakpoint): Explicitly terminate the
3031 * remote.c (remote_detach): Send a command 'D' to the target
3032 when detaching, update the function's comments.
3036 * gnu-nat.c (thread_cmd_list): New declaration.
3037 (parse_int_arg): New function.
3041 * gnu-nat.h (struct proc): Add DETACH_SC field.
3042 * gnu-nat.c (make_proc): Set DETACH_SC.
3043 (struct inf): Add DETACH_SC & DEFAULT_THREAD_DETACH_SC fields.
3044 (make_inf): Set DETACH_SC & DEFAULT_THREAD_DETACH_SC fields.
3045 (add_thread_commands): Add set/show for detach-suspend-count.
3046 Add takeover-suspend-count cmd.
3047 (inf_detach): Set suspend counts to the detach SC, not 0.
3048 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd,
3049 set_task_detach_sc_cmd, show_task_detach_sc_cmd,
3050 set_thread_default_thread_detach_sc_cmd,
3051 show_thread_default_thread_detach_sc_cmd): New functions.
3052 (show_task_cmd): Also show detach-suspend-count values.
3053 (thread_takeover_sc_cmd): New function.
3057 * gnu-nat.c (show_thread_run_cmd): Actually print state.
3061 * gnu-nat.c (inf_signal): Make unforwardable exceptions an error.
3065 * gnu-nat.c (inf_validate_stopped): proc_getprocinfo takes a
3066 pointer to the flags now, not the flags themselves.
3070 * gnu-nat.c (gnu_wait): Print debugging msgs for pending execs.
3071 (gnu_create_inferior): Check return from ptrace.
3075 * gnu-nat.h (struct proc): Add DEAD field.
3076 * gnu-nat.c (make_proc): Initialize DEAD.
3077 (inf_set_traced, inf_validate_task_sc, inf_validate_procs: Frob it.
3078 (gnu_wait): Only abort for 0 threads if the task isn't dead.
3082 * gnu-nat.c (inf_signal): Pass SIGCODE when posting a signal.
3086 * gnu-nat.c (S_proc_wait_reply): Add SIGCODE argument.
3087 (inf_set_traced): Only give no-signal-thread error message if
3088 turning *on* tracing.
3092 * gnu-nat.c (inf_validate_procs): If INF has no threads, always
3093 set inf->threads_up_to_date to 0.
3094 (inf_signal): Pass in new SIGCODE argument to msg_sig_post_untraced.
3095 (gnu_wait): Pass in new TIMEOUT arg to interrupt_operation.
3096 (proc_update_sc): Cast thread state arg to thread_set_state.
3097 (proc_get_state): Cast thread state arg to thread_get_state.
3098 (inf_validate_task_sc): Cast task_basic_info arg to task_info.
3099 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Call
3100 inf_update_procs before we lookup the thread.
3101 * config/i386/i386gnu.mh (MH_CFLAGS): New variable.
3105 * gnu-nat.c (gnu_kill_inferior): Use inf_set_task to clear the task.
3109 * gnu-nat.c (inf_set_traced): Use msg_set_init_int with
3110 INIT_TRACEMASK instead of setting the exec flags.
3114 * gnu-nat.c (inf_validate_procs): Don't clear INF->task if we find
3115 the task's died, so others have a chance at it.
3116 (gnu_resume): When single-stepping a single thread, given an error
3117 if there is no such thread. When single-stepping one but running
3118 the others, just given a warning and still run all the threads.
3119 (gnu_wait): If there seem to be no threads, look harder, and
3120 signal an error if there really aren't any.
3121 (gnu_attach): Reset thread numbering to 0.
3123 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Give
3124 thread name in warning messages.
3126 * gnu-nat.c (active_inf): New function.
3127 (show_sig_thread_cmd, show_stopped_cmd): Use it.
3128 (info_port_rights, info_send_rights_cmd, info_port_sets_cmd,
3129 info_recv_rights_cmd, info_port_rights_cmd, info_port_rights_cmd):
3131 (add_task_commands): Add new port-right info commands.
3135 * gnu-nat.c (gnu_wait): Instead of _hurd_intr_rpc_mach_msg, just
3136 use mach_msg with MACH_RCV_INTERRUPT.
3137 (set_noninvasive_cmd): New function.
3138 (add_task_commands): Add command entry for `set noninvasive'.
3142 * gnu-nat.c (gnu_read_inferior): Use hurd_safe_memmove, not safe_bcopy.
3143 (safe_bcopy): Function removed.
3147 * gnu-nat.c (proc_update_sc): Assert only threads can have state.
3148 (make_proc): Initialize state_valid & state_changed fields.
3152 * reply_mig_hack.awk: New file.
3156 * breakpoint.c (breakpoint_1): Print breakpoint thread field.
3158 * lynx-nat.c (child_wait): Return TARGET_WAITKIND_SPURIOUS for new
3163 * target.c (debug_to_check_threads): New function.
3165 * inflow.c (terminal_init_inferior_with_pgrp): New function.
3166 (terminal_init_inferior): Call terminal_init_inferior_with_pgrp.
3167 * inferior.h (terminal_init_inferior_with_pgrp): New declaration,
3168 but only if PROCESS_GROUP_TYPE is defined.
3172 * target.c (debug_to_thread_alive): Pass through the return value.
3176 * target.c (signals, target_signal_from_host, target_signal_to_host):
3177 Add mach exceptions.
3178 * target.h (enum target_signal): Add mach exceptions.
3182 * gnu-nat.c: New file: gnu native backend.
3183 * i386gnu-nat.c: New file: i386-specific part of gnu native backend.
3184 * gnu-nat.h: New file.
3185 * config/nm-gnu.h: New file.
3186 * config/tm-i386gnu.h: New file.
3187 * config/xm-i386gnu.h: New file.
3188 * config/i386/i386gnu.mh: New file.
3189 * config/i386/i386gnu.mt: New file.
3193 * Makefile.in (VERSION): Bump version to 4.15.2 to establish
3194 baseline for gdb 4.16 rerelease testing.
3198 * somsolib.c (som_solib_create_inferior_hook): Before returning
3199 call clear_symtab_users.
3203 * remote-e7000.c (e7000_open): Delete all breakpoints when
3204 connecting to e7000. Change connect message to allow use of
3205 monitor.exp in test suite.
3206 * (e7000_load): Print transfer rate of download.
3207 * symfile.c (generic_load): Print transfer rate of download.
3211 * configure.in (mips*-*-vxworks*): New config.
3212 * configure: Regenerated.
3214 * config/mips/vxmips.mt, config/mips/tm-vxmips.h: New files.
3215 * remote-vxmips.c (vx_convert_to_virtual, vx_convert_from_virtual):
3220 * partial-stab.h (case N_FUN): Function symbols generated
3221 by SPARCworks cc have a meaningless zero value, do not update
3222 pst->textlow if the function symbol value is zero.
3224 * stabsread.c (define_symbol): Initialize SYMBOL_TYPE field
3225 for function prototype declaration symbols.
3229 * remote-e7000.c (e7000_load): New routine to download via the
3231 * (e7000_wait): Don't backup PC when we hit a breakpoint.
3232 Apparantly new sh2 pods get this right...
3233 * (e7000_ops): Add call to e7000_load.
3237 * config/m68k/{nbsd.mh,nbsd.mt,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h},
3238 m68knbsd-nat.c: New files, support for NetBSD/m68k.
3240 * configure.in (m68k-*-netbsd*): New config.
3241 * configure: Regenerated.
3245 * standalone.c (open, _initialize_standalone): Fix obvious typos
3250 * solib.c (solib_create_inferior_hook): Fix thinko.
3254 * solib.c (solib_break_names): Define for Solaris and Linux.
3255 (enable_break): For SVR4 systems, first try to use the debugger
3256 interfaces in the dynamic linker to track shared library events
3257 as they happen, then fall back to BKPT_AT_SYMBOL code. Convert
3258 BKPT_AT_SYMBOL code to use shared library event breakpoints.
3259 (solib_create_inferior_hook): Simplify BKPT_AT_SYMBOL code,
3260 it no longer needs to restart/wait on the inferior.
3261 * symfile.c (find_lowest_section): No longer static.
3262 * symfile.h (find_lowest_section): Corresponding changes.
3266 * valops.c (COERCE_FLOAT_TO_DOUBLE): Define default value.
3267 (value_arg_coerce): Use COERCE_FLOAT_TO_DOUBLE.
3268 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Define to 1.
3269 * config/mips/tm-mips.h: Ditto.
3270 * config/pa/tm-hppa.h: Ditto.
3271 * config/rs6000/tm-rs6000.h: Ditto.
3272 * config/sparc/tm-sparc.h: Ditto.
3276 * config/{i386,ns32k}/nbsd.mh (NATDEPFILES): Remove core-aout.o.
3278 * config/nm-nbsd.h (FETCH_INFERIOR_REGISTERS): Defined.
3279 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
3280 #ifdef'd out definitions --- Causes serious gdb failures on
3281 the i386. Need to investigate further before enabling.
3283 * i386b-nat.c (fetch_inferior_registers, store_inferior_registers,
3284 fetch_core_registers): New functions. These functions are defined
3285 if FETCH_INFERIOR_REGISTERS is set. Registers are fetched/stored
3286 with ptrace PT_GETREGS/PT_SETREGS.
3290 * findvar.c (extract_floating store_floating): Replace `long
3291 double' with `DOUBLEST'.
3295 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
3300 * symtab.h (looup_minimal_symbol_solib_trampoline): Declare.
3302 * breakpoint.h (remove_solib_event_breakpoints): Declare.
3303 * breakpoint.c (remove_solib_event_breakpoints): New function.
3304 * somsolib.c (solib_create_inferior_hook): Remove all solib event
3305 breakpoints before inserting any new ones. Use a solib event
3306 breakpoint for the breakpoint at "_start".
3307 Remove extraneous "\n" from calls to warning.
3309 * breakpoint.c (breakpoint_1): Add missing "sigtramp" to bptypes
3314 * dwarfread.c (add_partial_symbol): Use ADD_PSYMBOL_ADDR_TO_LIST
3315 for CORE_ADDR values.
3316 (new_symbol): Use SYMBOL_VALUE_ADDRESS for CORE_ADDR values.
3317 * symfile.h (add_psymbol_{,addr}to_list): Add prototypes.
3321 * mipsread.c (mipscoff_symfile_read): Unconditionally add
3322 alpha coff dynamic symbols for all symbol files. Makes skipping
3323 over the trampoline code work when stepping from a function in a
3324 shared library into a function in a different shared library.
3328 * config/sparc/tm-sparc.h: Define PS_FLAG_CARRY. Define
3329 RETURN_VALUE_ON_STACK to return long doubles on the stack.
3333 * Makefile.in (ch-exp.o): Add dependencies.
3334 (various): Add gdb_string.h to dependencies that need it.
3338 * symmisc.c (print_symbol_bcache_statistics): Update description for
3339 printing byte cache statistics.
3343 * Add native support for long double data type.
3344 * c-exp.y (%union): Change dval to typed_val_float. Use DOUBLEST
3345 to store actual data. Change types of INT and FLOAT tokens to
3346 typed_val_int and typed_val_float respectively. Create new token
3347 DOUBLE_KEYWORD to specify the string `double'. Make production
3348 for FLOAT use type determined by parse_number. Add production for
3349 "long double" data type.
3350 * (parse_number): Use sscanf to parse numbers as float, double or
3351 long double depending upon the type of typed_val_float.dval. Also
3352 allow user to specify `f' or `l' suffix to explicitly specify
3353 float or long double constants. Change typed_val to
3355 * (yylex): Change typed_val to typed_val_int. Also, scan for
3357 * coffread.c (decode_base_type): Add support for T_LNGDBL basic
3359 * configure, configure.in: Add check for long double support in
3361 * defs.h: Define DOUBLEST appropriatly depending on whether
3362 HAVE_LONG_DOUBLE (from autoconf) is defined. Also, fix prototypes
3363 for functions that handle this type.
3364 * expression.h (union exp_element): doubleconst is now type
3366 * m2-exp.y f-exp.y (%union): dval becomes type DOUBLEST.
3367 * findvar.c (extract_floating): Make return value be DOUBLEST.
3368 Also, add support for numbers with size of long double.
3369 * (store_floating): Arg `val' is now type DOUBLEST. Handle all
3371 * parser-defs.h parse.c (write_exp_elt_dblcst): Arg expelt is now
3373 * valarith.c (value_binop): Change temp variables v1, v2 and v to
3374 type DOUBLEST. Coerce type of result to long double if either op
3376 * valops.c (value_arg_coerce): If argument type is bigger than
3377 double, coerce to long double.
3378 * (call_function_by_hand): If REG_STRUCT_HAS_ADDR is defined, and
3379 arg type is float and > 8 bytes, then use pointer-to-object
3380 calling conventions.
3381 * valprint.c (print_floating): Arg doub is now type DOUBLEST.
3382 Use appropriate format and precision to print out floating point
3384 * value.h: Fixup prototypes for value_as_double,
3385 value_from_double, and unpack_double to use DOUBLEST.
3386 * values.c (record_latest_value): Remove check for invalid
3387 floats. Allow history to store them so that people may examine
3388 them in hex if they want.
3389 * (value_as_double unpack_double): Change return value to DOUBLEST.
3390 * (value_from_double): Arg `num' is now DOUBLEST.
3391 * (using_struct_return): Use RETURN_VALUE_ON_STACK macro (target
3392 specific) to expect certain types to always be returned on the stack.
3396 * bcache.c, bcache.h: New files to implement a byte cache.
3397 * Makefile.in (SFILES): Add bcache.c.
3398 (symtab_h): Add bcache.h.
3399 (HFILES_NO_SRCDIR): add bcache.h
3400 (COMMON_OBJS): Add bcache.o
3401 (bcache.o): New target.
3402 * dbxread.c (start_psymtab): Make global_syms & static_syms
3403 type "partial_symbol **".
3404 * hpread.c (hpread_start_symtab): Ditto.
3405 * os9kread.c (os9k_start_psymtab): Ditto.
3406 * stabsread.h (start_psymtab): Ditto.
3407 * {symfile.c, symfile.h} (start_psymtab_common): Ditto.
3408 * maint.c (maintenance_print_statistics): Call
3409 print_symbol_bcache_statistics.
3410 * objfiles.c (allocate_objfile): Initialize psymbol bcache malloc
3412 * solib.c (allocate_rt_common_objfile): Ditto.
3413 * symfile.c (reread_symbols): Ditto.
3414 (free_objfile): Free psymbol bcache when objfile is freed.
3415 (objfile_relocate): Use new indirect psymbol pointers.
3416 * objfiles.h (struct objfile): Add psymbol cache.
3417 * symfile.c (compare_psymbols): Now passed pointers to pointers to
3419 (reread_symbols): Free psymbol bcache when freeing other objfile
3421 (add_psymbol_to_list, add_psymbol_addr_to_list): Initialize new
3422 psymbol using the psymbol bcache.
3423 (init_psymbol_list): Psymbol lists now contain pointers rather than
3424 the actual psymbols.
3425 * symfile.h (psymbol_allocation_list): Psymbol lists now dynamically
3426 grown arrays of pointers.
3427 (ADD_PSYMBOL_VT_TO_LIST): Initialize new symbol using the psymbol
3429 * symmisc.c (print_partial_symbols): Now takes pointer to pointer
3431 (print_symbol_bcache_statistics): New function to print per objfile
3433 (print_partial_symbol, print_partial_symbols,
3434 maintenance_check_symtabs, extend_psymbol_list):
3435 Account for change to pointer to pointer to partial symbol.
3436 * symtab.c (find_pc_psymbol, lookup_partial_symbol, decode_line_2,
3437 make_symbol_completion_list):
3438 Account for change to pointer to pointer to partial symbol.
3439 * symtab.h (bcache.h): Include.
3440 * xcoffread.c (xcoff_start_psymtab): Make global_syms & static_syms
3441 type "partial_symbol **".
3445 * dwarfread.c (free_utypes): New function.
3446 (read_file_scope): Call free_utypes as cleanup, rather than just
3447 freeing the utypes pointer.
3451 * demangle.c (is_cplus_marker): New function, checks if a
3452 character is one of the commonly used C++ marker characters.
3453 * defs.h (is_cplus_marker): Add prototype.
3454 * c-typeprint.c (c_type_print_base), ch-lang.c (chill_demangle),
3455 cp-valprint.c (cp_print_class_method), mdebugread.c (parse_symbol),
3456 stabsread.c (define_symbol, read_member_functions, read_struct_fields),
3457 symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P),
3458 values.c (vb_match): Use is_cplus_marker instead of comparison
3463 * symfile.h (INLINE_ADD_PSYMBOL): Default this to 0 and possibly
3464 delete entirely someday.
3468 * mpw-make.sed: Edit out makefile rebuild rule.
3469 (host_alias, target_alias): Comment out instead of deleting.
3470 (@LIBS@): Edit out references.
3474 * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
3475 Use n_psyms in OBJSTAT, not psyms.
3479 * configure.in (sparclet-*-aout*): New config.
3480 * configure: Regenerated.
3484 * somsolib.c (som_solib_add): Use xmalloc rather than bare
3485 unchecked call to malloc.
3486 * remote-mips.c (pmon_load_fast): ditto.
3487 * remote-mm.c (mm_open): ditto.
3488 * hpread.c (hpread_lookup_type): ditto.
3489 * remote-adapt.c (adapt_open): ditto.
3493 * f-lang.c (allocate_saved_bf_node, allocate_saved_function_node,
3494 allocate_saved_f77_common_node, allocate_common_entry_node,
3495 add_common_block): Use xmalloc rather than malloc, some of which
3497 * gnu-regex.c: At same point as other gdb specific changes
3498 #undef malloc and then #define it to xmalloc.
3499 * ch-exp.c (growbuf_by_size): Use xmalloc/xrealloc rather than
3500 bare unchecked calls to malloc/realloc.
3501 * stabsread.c (dbx_lookup_type): Use xmalloc rather than bare
3502 unchecked call to malloc.
3506 * symtab.c (gdb_mangle_name): Change opname var to be const to
3507 match return val of cplus_mangle_name.
3508 * i960-tdep.c: Change arg types of next_insn to match callers.
3512 * config/i386/linux.mh (XM_CLIBS, GDBSERVER_LIBS): Remove. These
3513 apparently aren't needed in any reasonably recent version of
3518 * stabsread.c (read_range_type): If !self-subrange and language
3519 is Chill, assume a true range. If a true_range is a sub_subrange,
3520 use builtin_type_int for index_type.
3524 * nindy-share/nindy.c (say): Use stdarg.h macros when compiling
3525 with an ANSI compiler.
3527 start-sanitize-gdbtk
3530 * gdbtk.tcl (create_file_win): Eliminate text widget B1 binding so
3531 double-clicking will work again.
3532 (create_asm_win): Put "break" at end of all B1 bindings.
3533 (create_file_win): Lower "sel" tag, don't raise it.
3534 (ensure_line_visible): New proc.
3535 (update_listing, update_assembly): Use it.
3536 (create_copyright_window): Destroy window on Leave event.
3537 (create_command_window): Put "break" at end of all B2 bindings.
3543 * valops.c (value_arg_coerce): Coerce float to double, unless the
3544 function prototype specifies float.
3548 * language.c (set_language_command): Use languages table when
3549 printing available languages.
3554 * command.c (add_cmd): Add missing initialization for enums member.
3555 Reorder members to match structure declaration to make it easier to
3556 tell when one is missing.
3557 * exec.c (exec_file_command): Fix problem where filename in malloc'd
3558 memory is referenced after being freed.
3562 * dwarfread.c (read_func_scope): Avoid GDB core dumps if
3563 AT_name tag is missing.
3565 * procfs.c (procfs_stopped_by_watchpoint): Fix logic when
3566 FLTWATCH and FLTKWATCH are defined.
3568 * remote.c (remote_read_bytes): Advance memaddr for transfers,
3569 return number of bytes transferred for partial reads.
3571 * top.c (init_signals): Reset SIGTRAP to SIG_DFL.
3575 * win32-nat.c (mappings): Add ppc registers.
3576 (child_resume): Turn off step for ppc.
3580 * config/powerpc/(cygwin32.mh, cygwin32.mt, tm-cygwin32.h,
3581 xm-cygwin32.h): New.
3582 * config/i386/(*win32*): Becomes *cygwin32*.
3583 * configure.in (i[3456]86-*-win32*): Becomes i[3456]86-*-cygwin32.
3584 (powerpcle-*-cygwin32): New.
3585 * configure: Regenerate.
3586 * win32-nat.c (child_create_inferior): Call CreateProcess
3587 with the right program arg.
3591 * config/pa/tm-hppa.h (SOFT_FLOAT): Provide a default definition.
3595 * serial.c: Change fputc/fputs/fprintf to _unfiltered forms.
3599 * config/sparc/xm-sun4os4.h (HAVE_TERMIOS): Remove.
3601 * config/sparc/xm-sparc.h (HAVE_WAIT_STRUCT): Remove, never used.
3603 * config/i386/nm-i386mach.h (CHILD_PREPARE_TO_STORE): Move to
3604 here from config/i386/xm-i386mach.h, fix name.
3605 * config/i386/nm-sun386.h: Ditto, from config/i386/xm-sun386.h.
3606 * config/i386/nm-ptx4.h (CHILD_PREPARE_TO_STORE): Move to
3607 here from config/i386/xm-ptx4.h.
3608 * config/i386/nm-ptx4.h: Ditto, from config/i386/xm-ptx.h.
3609 * config/i386/nm-symmetry.h: Ditto, from config/i386/xm-symmetry.h.
3610 * config/m68k/nm-sun3.h: Ditto, from config/m68k/xm-sun3.h.
3611 * config/sparc/nm-nbsd.h: Ditto, from config/sparc/xm-nbsd.h.
3612 * config/sparc/nm-sun4os4: Ditto, from config/sparc/xm-sparc.h.
3614 * config/sparc/nm-sun4sol2.h: New file, renamed from nm-sysv4.h.
3615 (PRSVADDR_BROKEN): Move here from xm-sun4sol2.h.
3616 * config/sparc/sun4sol2.mh (NAT_FILE): Update.
3620 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Handle software
3621 floating point correctly.
3622 (STORE_RETURN_VALUE): Likewise.
3623 * config/pa/tm-pro.h (SOFT_FLOAT): define.
3627 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
3628 Define to what should be reasonable values. However, apparently
3629 a bug in linux mmap prevents mapped symbol tables from working.
3633 * defs.h (errno.h>: Move #include closer to head of file to solve
3634 obscure problem with systems that declare perror with const arg, in
3635 both errno.h and stdio.h, and const is defined away by intervening
3641 * i386-stub.c (getpacket): Change fprintf stream from "gdb" to stderr.
3642 (mem_fault_routine): Fix misplaced volatile type qualifier in decl.
3646 * Makefile.in (diststuff): Make all-doc; diststuff target does not
3647 exist in doc/Makefile.in.
3651 * config/m88k/xm-cxux.h (BP_HIT_COUNT): Remove, never used.
3655 * ch-valprint.c (calculate_array_length): New function to
3656 determine the length of an array type.
3657 (chill_val_print (case TYPE_CODE_ARRAY)): If the length of an
3658 array type is zero, call calculate_array_length.
3660 * gdbtypes.c (get_discrete_bounds (case TYPE_CODE_ENUM)): The
3661 values may not be sorted. Scan all entries and set the real lower
3666 * config/xm-linux.h: Move include of solib.h and #define of
3667 SVR4_SHARED_LIBS from here ...
3668 * config/nm-linux.h: ...to here.
3672 * configure.in (AC_CHECK_HEADERS): Check for sys/procfs.h.
3673 Also check for gregset_t and fpregset_t types.
3674 * configure: Regenerate.
3675 * core-regset.c (sys/procfs.h): Only include if HAVE_SYS_PROCFS_H
3677 (fetch_core_registers): Turn into stub unless both HAVE_GREGSET_T
3678 and HAVE_FPREGSET_T are defined. These changes allow systems
3679 like linux that are migrating to /proc support to use a single
3680 configuration for both new and old versions.
3682 * config/i386/linux.mt: Note that this is now for both a.out and
3684 * config/i386/linux.mh (NATDEPFILES): Add solib.o, core-regset.o,
3686 * config/i386/tm-linux.h (tm-sysv4.h): Include.
3687 * config/i386/xm-linux.h (solib.h): Include
3688 (SVR4_SHARED_LIBS): Define.
3689 * i386v4-nat.c: Only compile if HAVE_SYS_PROCFS_H is defined.
3690 (supply_gregset, fill_gregset): Compile if HAVE_GREGSET_T defined.
3691 (supply_fpregset, fill_fpregset): Compile if HAVE_FPREGSET_T
3696 * config/sparc/xm-sparc.h (NEW_SUN_CORE): Remove, never used.
3697 * config/i386/xm-sun386.h: Ditto.
3698 * config/m68k/xm-sun2.h, config/m68k/xm-sun3.h: Ditto.
3702 * Makefile.in (INSTALLED_LIBS, CLIBS): Include @LIBS@.
3707 * dcache.c (dcache_peek, dcache_poke): Advance addr for
3712 * infrun.c (normal_stop): Fix test for shared library event.
3716 * configure.in (sparc64-*-*): Add default host configuration.
3717 start-sanitize-gdbtk
3718 (sparc64-*-solaris2* host): Link statically if GCC used.
3720 (sparc64-*-solaris2*): Add target configuration.
3721 * configure: Regenerated.
3722 * sparc/sp64sol2.mt: New file.
3726 * Makefile.in (RUNTEST): srcdir renamed to rootsrc.
3730 * Makefile.in (lint): Close backquotes.
3732 start-sanitize-gdbtk
3735 * gdbtk.tcl, gdbtk.c: Updated copyrights.
3737 * configure.in: Look for -ldl or -ldld when using Tcl 7.5 or
3739 * configure: Rebuilt.
3744 * NEWS: Make note of new record and replay feature for
3745 remote debug sessions.
3746 * serial.c (gdbcmd.h): Include.
3747 (serial_logfile, serial_logfp, serial_reading, serial_writing):
3748 Define here, for remote debug session logging.
3749 (serial_log_command, serial_logchar, serial_write, serial_readchar):
3750 New functions for remote debug session logging.
3751 (serial_open): Open remote debug session log file when needed.
3752 (serial_close): Close remote debug session log file when needed.
3753 (_initialize_serial): Add set/show commands for name of remote
3754 debug session log file.
3755 * serial.h (serial_readchar): Declare
3756 (SERIAL_READCHAR): Call serial_readchar().
3757 (SERIAL_WRITE): Call serial_write().
3758 (serial_close): Declare as extern.
3759 (serial_logfile, serial_logfp): Declare.
3760 * top.c (execute_command): Declare serial_logfp. Log user command
3761 in remote debug session log if log file is open.
3762 * remote-array.c (array_wait): #ifdef out echo to gdb_stdout.
3763 (array_read_inferior_memory): Rewrite to fix memory overwrite bug.
3764 * remote-array.c (SREC_SIZE): Remove, duplicates define in
3766 * remote-array.c (hexchars, hex2mem): Remove, unused.
3767 * gdbserver/low-linux.c (store_inferior_registers): Remove
3768 unnecessary extern declaration of registers[].
3769 * gdbserver/Makefile.in (all): Add gdbreplay.
3770 * gdbserver/gdbreplay.c: New file.
3771 * gdbserver/README: Give example of recording a remote
3772 debug session with gdb and then replaying it with gdbreplay.
3776 * stabsread.c (rs6000_builtin_type): Make bool type unsigned.
3777 (read_one_struct_field): Support boolean bitfields.
3778 * c-valprint.c (c_val_print): Print booleans properly.
3782 * remote-vxsparc.c (vx_convert_to_virtual, vx_convert_from_virtual):
3784 * config/sparc/vxsparc.mt (TDEPFILES): Add remote-vxsparc.o.
3788 * ch-exp.c (parse_tuple): Error if invalid mode.
3790 * value.h (COERCE_ARRAY): Don't coerce enums.
3791 (COERCE_ENUM): Don't COERCE_REF.
3792 (COERCE_NUMBER): New macro (same as COERCE_ARRAY then COERCE_ENUM).
3793 * valops.c (value_assign): Only do COERCE_ARRAY if internalvar (let
3794 value_cast handle it otherwise); do *not* COERCE_ENUM either way.
3795 * valarith.c: Use COERCE_NUMBER instead od COEREC_ARRAY.
3796 Add COERCE_REF before COERCE_ENUM.
3797 * values.c (value_as_long): Simplify.
3799 * valops.c (value_array): Create internalvar if !c_style_arrays.
3801 * language.c (lang_bool_type): Add Fortran support.
3802 * eval.c (OP_BOOL): Use LA_BOOL_TYPE.
3806 * symfile.c (auto_solib_add): Renamed from auto_solib_add_at_startup.
3807 All references changed.
3808 * breakpoint.c (bpstat_what): Add shlib_event to the class types.
3809 Update state table. Reformat so that it's still readable.
3810 When we hit the shlib_event breakpoint, set the calss of shlib_event.
3811 (breakpoint_1): Add "shlib events" as a breakpoint type.
3812 Print the shlib_event breakpoint like other breakpoints.
3813 (create_solib_event_breakpoint): New function.
3814 (breakpoint_re_set_one): Handle solib_event breakpoints.
3815 * breakpoint.h (enum bytype): Add bp_shlib_event breakpoint type.
3816 (enum bpstat_what_main_action): Add BPSTAT_WHAT_CHECK_SHLIBS
3818 (create_solib_event_breakpoint): Declare.
3819 * infrun.c (wait_for_inferior): Handle CHECK_SHLIBS bpstat.
3820 (normal_stop): Inform the user when the inferior stoped due
3821 to a shared library event.
3822 (_initialize_infrun): Add new set/show variable "stop-on-solib-events"
3823 to control whether or not gdb continues the inferior or stops it when
3824 a shared library event occurs.
3825 * minsyms.c (lookup_minimal_symbol_solib_trampoline): New function.
3826 * somsolib.c (TODO list): Update.
3827 (som_solib_create_inferior_hook): Arrange for gdb to be notified
3828 when significant shared library events occur.
3829 * hppa-tdep.c (find_unwind_entry): No longer static.
3833 * printcmd.c (print_insn): Pass fprintf_unfiltered to
3834 INIT_DISASSEMBLE_INFO.
3835 start-sanitize-gdbtk
3836 * gdbtk.c (gdb_disassemble): Likewise.
3841 * remote.c (remotebreak): New GDB variable.
3842 (remote_break): New global.
3843 (remote_interrupt): Send a break instead of ^C if remote_break.
3844 * NEWS: Describe the new variable.
3848 * sparc-tdep.c (_initialize_sparc_tdep): Always use print_insn_sparc.
3852 * hp300ux-nat.c (getpagesize): Remove unused function
3853 fetch_core_registers.
3854 (hp300ux_core_fns): Remove, is unused.
3855 (_initialize_core_hp300ux): Remove, is unused.
3856 (gdbcore.h): Remove #include, no longer needed.
3860 * rs6000-nat.c (exec_one_dummy_insn): Rework to avoid
3861 ptrace bug in aix4.1.3 on the rs6000.
3865 * remote-hms.c (hms_ops): Add value for to_thread_alive.
3866 * remote-nindy.c (nindy_ops): Ditto.
3867 * remote-udi.c (udi_ops): Ditto.
3871 * remote-mips.c (pmon_opn, pmon_wait, pmon_makeb64, pmon_zeroset,
3872 pmon_checkset, pmon_make_fastrec, pmon_check_ack,
3873 pmon_load_fast): New functions. Support for the PMON monitor world.
3874 (common_open): New function to merge support for different monitors.
3875 (mips_open): Use common_open().
3876 (mips_send_command): New function.
3877 (mips_send_packet): Scan out-of-sequence packets.
3878 (mips_enter_debug, mips_exit_debug): New functions.
3879 (pmon_ops): New target definition structure.
3883 * Makefile.in (CLIBS): Add LIBS to allow libraries to be
3884 specified on the make command line (via make LIBS=xxx).
3886 * configure.in (enable-gm): magic.o -> gmagic.o.
3889 start-sanitize-gdbtk
3892 * gdbtk.tcl (create_expr_window): Many changes to update GUI.
3893 (add_expr): Changes from create_expr_window.
3894 (create_command_window): Set focus.
3895 (delete_expr): Rewrote.
3896 (expr_update_button): New proc.
3897 (add_expr): Put bindings on FocusIn, FocusOut.
3898 Don't allow .file_popup to be torn off.
3903 * symtab.c (find_pc_symtab): Don't lose if OBJF_REORDERED
3904 is set but there are no psymtabs.
3908 * dsrec.c (load_srec): Remove unused variable.
3909 * monitor.c (monitor_expect): Don't expect a ^C to echo.
3910 * serial.c (serial_open): Add parallel interface.
3911 * sh3-rom.c (parallel, parallel_in_use): New.
3912 (sh3_load): If parallel_in_use, download though the
3914 (sh3_open): Open parallel port if specified.
3915 (sh3_close): New function.
3916 (_inititalize_sh3): Add sh3_close hook and documentation.
3917 * monitor.c (monitor_close): Export.
3918 * monitor.h (monitor_close): Add prototype.
3923 * remote.c (remotetimeout): New GDB variable, use to set the
3924 remote timeout for reading.
3926 start-sanitize-gdbtk
3929 * gdbtk.tcl (gdbtk_tcl_query): Swap Yes and No buttons.
3930 (update_listing): Use lassign. Use "see" to scroll. Don't need
3931 screen_top, screen_bot, screen_height.
3932 (update_assembly): Use "see" to scroll.
3933 (textscrollproc): Removed.
3934 (create_file_win): Don't use textscrollproc.
3935 (asmscrollproc): Removed.
3936 (create_asm_window): Don't use asmscrollproc.
3937 (create_asm_win): Ditto.
3938 (screen_height, screen_top, screen_bot): Removed.
3939 (run_editor): New proc.
3940 (build_framework): Use it.
3941 (create_file_win, create_source_window): Don't use textscrollproc.
3942 (create_breakpoints_window): Set -xscrollcommand on canvas.
3943 (not_implemented_yet): Default button is 0.
3944 (delete_char): Don't use tk_textBackspace.
3945 (create_command_window): Allow Tk bindings to fire after deleting
3947 (create_command_window): Make Delete delete left, not right.
3952 * lynx-nat.c, irix4-nat.c, sparc-nat.c: Include gdbcore.h
3953 to get "struct core_fns" defined.
3954 * Makefile.in (lynx-nat.o, irix4-nat.o, sparc-nat.o):
3955 Are dependent upon gdbcore_h.
3959 * symfile.c (decrement_reading_symtab): New function.
3960 * symfile.c, symtab.h (currently_reading_symtab): New variable.
3961 * symfile.c (psymtab_to_symtab): Adjust currently_reading_symtab.
3962 * gdbtypes.c (check_typedef): Don't call lookup_symbol if
3963 currently_reading_symtab (since that could infinitely recurse).
3967 * stabsread.c (read_struct_type): Trivial simplification.
3969 * stabsread.c (define-symbol): Use invisible references
3970 for TYPE_CODE_SET and TYPE_CODE_BITSTRING too.
3971 * valops.c (call_function_by_hand): Likewise.
3972 * eval.c (evaluate_subexp_standard): When known, use the formal
3973 parameter type as the expected type when evaluating arg expressions.
3974 * ch-lang.c (evaluate_subexp_chill): Likewise (for MULTI_SUBSCRIPT).
3976 start-sanitize-gdbtk
3979 * main.c (main): Disable window interface if --help or --version
3982 * gdbtk.tcl (FSBox): Don't use tk_listboxSingleSelect.
3984 Changes in sync with expect:
3985 * configure.in (ENABLE_GDBTK): Use CY_AC_PATH_TCL and
3987 * aclocal.m4: Replaced with version from expect.
3988 * configure: Regenerated.
3993 * configure.in, configure: Recognize rs6000-*-aix4*.
3994 * config/powerpc/xm-aix.h: Reduce to include "xm-aix4.h".
3995 * config/rs6000/aix4.mh (XM_FILE): Point to xm-aix4.h.
3996 * config/rs6000/xm-aix4.h: New file.
3997 * config/xm-aix4.h: New file.
4002 * gdbserver/low-linux.c: New file.
4003 * remote.c (remote_read_bytes): Fix aborts on larger packets.
4005 * config/i386/linux.mh (GDBSERVER_DEPFILES, GDBSERVER_LIBS):
4007 * stabsread.c (define_symbol): If register value is too large,
4008 tell what it is and what max is.
4010 start-sanitize-gdbtk
4013 * gdbtk.tcl (gdbtk_tcl_fputs, gdbtk_tcl_fputs_error,
4014 gdbtk_tcl_flush): Use "see", not "yview".
4015 (gdbtk_tcl_query): Use questhead bitmap.
4016 various: Always wrap condition of 'if' in {...}.
4017 (add_breakpoint_frame): Set -value on radiobuttons.
4018 (lassign): New proc.
4019 (add_breakpoint_frame): Use lassign, not series of assignments.
4020 (decr): Made faster.
4021 (interactive_cmd): Use "see", not "yview".
4022 (not_implemented_yet): Use warning bitmap.
4023 (update_expr): Don't allow $expr to be evalled by Tcl.
4024 (create_expr_window): Don't use "focus".
4025 (delete_char, delete_line): Define globally.
4026 (delete_line, delete_char, create_command_window, update_autocmd,
4027 build_framework, create_asm_win, create_file_win): Use "see", not
4029 (create_copyright_window, center_window, bind_widget_after_class):
4031 (FSBox,create_command_window, create_autocmd_window): Binding
4033 (textscrollproc): Define globally.
4034 (build_framework): tk_menuBar no longer needed. Keys Prior, Next,
4035 Home, End, Up, and Down are all defined by Tk.
4036 (apply_filespec): Use error bitmap in dialog.
4037 (files_command): Don't use tk_listboxSingleSelect.
4038 (files_command): Don't use "uniq" to remove duplicates from a
4040 (update_assembly): Use lassign.
4041 (create_asm_win): Removed redundant bindings.
4042 (listing_window_button_1, file_popup_menu): Use tk_popup.
4043 (ButtonRelease-1 binding): Just remove tag from window; rest
4046 * gdbtk.c (gdbtk_query): Use Tcl_Merge to provide quoting.
4047 (call_wrapper): Use Tcl_Eval, not Tcl_VarEval.
4048 (gdbtk_call_command): Ditto.
4053 * hpread.c (hpread_build_psymtabs): Finish Jan 4th
4054 enum namespace -> enum_namespace change.
4058 * ch-exp.c (parse_primval): In case ARRAY, add missing
4063 * remote-mips.c (mips_receive_header): Recognize \012 instead
4064 of \n, but write \n when program sends a \012.
4065 * ser-mac.c (mac_input_buffer): Increase size of buffer.
4069 * infptrace.c (initialize_infptrace): Move function out of
4070 #ifdef conditional; put code within the function inside an
4073 * buildsym.c (end_symtab): Remove sort_pending and sort_linevec
4074 arguments. Sorting is now dependent on OBJF_REORDERED. All
4075 callers/references changed.
4076 * dbxread.c (read_ofile_symtab): Correctly determine value for
4077 last_source_start_addr for reordered executables.
4078 (process_one_symbol): Handle N_FUN with no name as an end of
4080 * partial-stab.h (case N_FN, N_TEXT): Don't assume CUR_SYMBOL_VALUE
4081 is the high text address for a psymtab.
4082 (case N_SO): Likewise.
4083 (case N_FUN): Handle N_FUN with no name as an end of function
4085 * minsyms.c (lookup_minimal_symbol_by_pc): Examine all symbols
4086 at the same address rather than a random subset of them.
4087 * coffread.c (coff_symfile_init): Set OBJF_REORDERED.
4088 * elfread.c (elf_symfile_init): Similarly.
4089 * somread.c (som_symfile_init): Similarly.
4090 * xcoffread.c (xcoff_symfile_init): Similarly.
4094 * stack.c (print_stack_frame print_frame_info) symmisc.c
4095 (dump_symtab): Change RETURN_MASK_ERROR to RETURN_MASK_ALL so
4096 that catch_errors doesn't get blindsided by QUIT and lose the
4097 cleanup chain. This fixes a problem where ^C while in a
4098 user-defined command sometimes leaves instream NULL and causes a
4099 segfault in command_loop.
4103 * configure.in, configure: Add `-ldl -lw' for Solaris linking.
4107 * config/sh/sh.mt, config/powerpc/*.mt, config/pa/hppapro.mt,
4108 config/m68k/monitor.mt, config/h8500/h8500.mt, config/h8300/h8300.mt:
4109 srec.o renamed to dsrec.o.
4113 * breakpoint.c (remove_breakpoint): Change error to warning so
4114 that hardware watchpoint removal problems won't leave breakpoint
4115 traps in the target.
4116 start-sanitize-gdbtk
4117 * configure configure.in: Make --enable-gdbtk be the default.
4119 * remote-e7000.c (e7000_insert_breakpoint,
4120 e7000_remove_breakpoint): Use e7000 based breakpoints, not memory
4122 * (e7000_wait): Adjust PC back by two when we see a breakpoint to
4123 compensate for e7000 maladjustment.
4124 * sparcl-tdep.c (sparclite_check_watch_resources): Fix logic bug
4125 which prevented hardware watchpoints from working.
4129 * infptrace.c (udot_info): New function.
4130 (PT_*): Define each individually if that one is not defined.
4131 * rs6000-nat.c (kernel_u_size): New function
4132 Include <sys/user.h> for "struct user"
4133 * alpha-nat.c (kernel_u_size): New function.
4134 Include <sys/user.h> for "struct user"
4135 * sparc-nat.c (kernel_u_size): New function.
4136 Include <sys/user.h> for "struct user"
4137 * i386b-nat.c (kernel_u_size): New function.
4138 * i386v-nat.c (kernel_u_size): New function.
4139 * config/i386/nm-fbsd.h (KERNEL_U_SIZE): Define.
4140 (kernel_u_size): Declare.
4141 * config/i386/nm-linux.h (KERNEL_U_SIZE): Define.
4142 (kernel_u_size): Declare.
4143 * config/sparc/nm-sun4os4.h (KERNEL_U_SIZE): Define.
4144 (kernel_u_size): Declare.
4145 * config/alpha/nm-osf2.h (KERNEL_U_SIZE): Define.
4146 (kernel_u_size): Declare.
4147 * config/rs6000/nm-rs6000.h (KERNEL_U_SIZE): Define.
4148 (kernel_u_size): Declare.
4152 * mdebugread.c (mylookup_symbol): enum namespace becomes
4153 enum_namespace type.
4154 * symfile.c (add_psymbol_to_list)
4155 (add_psymbol_addr_to_list): Ditto.
4156 * symtab.c (lookup_partial_symbol): Ditto.
4157 (lookup_symbol): Ditto.
4158 (lookup_block_symbol): Ditto.
4159 * win32-nat.c (handle_load_dll): Use incoming dll base.
4160 (child_wait): Catch DLL load errors.
4161 (create_child_inferior): Translated between paths correctly.
4165 * i386v4-nat.c (supply_gregset, fill_gregset): Subtract NUM_FREGS
4166 from NUM_REGS to get number of general registers that we care about.
4167 * config/i386/tm-i386.h (REGISTER_BYTES): Define in terms
4168 of number of general regs and number of floating point regs.
4172 * config/i386/tm-win32.h (IN_SOLIB_CALL_TRAMPOLINE): New.
4173 (SKIP_TRAMPOLINE_CODE): New.
4174 * config/i386/xm-win32.h (CANT_FORK): Deleted.
4175 (SLASH*) Changed to use unix style slash.
4176 * symtab.h (namespace enum): becomes typedef to avoid namespace
4178 * infcmd.c (path_command): Use empty string if PATH name not set.
4179 * i386-tdep.c (skip_trampoline_code): New function.
4180 * srec.c: Renamed dsrec.c to avoid filename collision.
4181 * Makefile.in: Cope with renaming.
4185 * symmisc.c (print_objfile_statistics): Print memory use statistics
4186 for objfile psymbol, symbol, and type obstacks.
4190 * config/mips/nm-irix5.h: Restore.
4191 (TARGET_HAS_HARDWARE_WATCHPOINTS, etc): Define as for Irix 4;
4193 * config/mips/irix5.mh (NAT_FILE): Use nm-irix5.h.
4194 * config/mips/irix[345].mh (MUNCH_DEFINE): Remove.
4196 For older changes see ChangeLog-95
4202 version-control: never