3 * utils.c (paddr,preg): Use a static variable initialized to 32
4 instead of doing addr>>32 to eliminate a warning produced by GCC
7 * config/d10v/tm-d10v.h (ULONGEST): Define.
11 * c-typeprint.c (cp_type_print_method_args): Pass -1 for show in
12 recursive call to type_print.
16 * defs.h (ULONGEST): New macro.
17 * alpha-tdep.c, breakpoint.c, c-exp.y, ch-exp.c, convex-xdep.c,
18 corefile.c, defs.h, f-exp.y, findvar.c, gdbcore.h, m2-exp.y,
19 m88k-tdep.c, printcmd.c, remote-hms.c, remote-mips.c, sparc-tdep.c,
20 valarith.c, valops.c, values.c, config/gould/tm-np1.h,
21 config/mips/tm-mips.h, mswin/prebuilt/gdb/cexptab.c,
22 mswin/prebuilt/gdb/fexptab.c, mswin/prebuilt/gdb/m2exptab.c:
23 Change all occurances of unsigned LONGEST to ULONGEST.
25 * configure.host (mips-sgi-irix6): Add.
29 * sh-tdep.c: Add functionality for target function calls.
30 * config/sh/tm-sh.h: Add support for target function calls.
35 * m32r-tdep.c: Add functionality for target function calls.
36 * valops.c: Small change to support target function calls.
37 * config/m32r/tm-m32r.h: Add support for target function calls.
42 * defs.h: modify Nov 11 12:59:00 change so _MSC_VER is checked
44 * win32-nat.c: fix Nov 11 12:59:00 change (windows.h should
45 be included instead of windefs.h for compilers other than
47 * mswin/windefs.h: remove ^Ms and change C++ style comments
52 * utils.c (get_cell): Fix off-by-one bug.
53 * mips-tdep.c (get_frame_pointer, fix_sign_extension):
54 New functions to consolidate common code.
55 (mips_frame_chain, init_extra_frame_info): Use new functions
56 to fix problems with backtrace and finish commands on ddb board.
60 * mips-tdep.c, remote-mips.c, values.c, mdebugread.c,
61 config/mips/tm-mips.h: Add/fix bugs for 64-bit mips support.
62 * defs.h: Cleanup; add prototypess
63 * corefile.c: Change FIXME #ifdef
64 * win32-nat.c: Include windefs instead of windows.h.
65 * utils.c: Add routines for printing addresses and registers
70 * alpha-tdep.c (heuristic_proc_desc): Stop examining the prologue
71 if we encounter a positive stack adjustment.
72 (find_proc_desc): If heuristic_fence_post is non-zero, use
73 heuristic_proc_start to determine the start of a function before
74 calling heuristic_proc_desc.
76 * coffread.c (coff_symtab_read): Change minimal symbol types
77 for C_LABEL symbols from mst_* to mst_file_*.
79 * config/m68k/sun3os4.mh (MMALLOC_CFLAGS): Define MMCHECK_FORCE to 1.
81 * configure.in: Handle error message from sun3 native ld when
83 * configure: Regenerated with autoconf.
85 * c-valprint.c (c_value_print): Adjust value address by VALUE_OFFSET.
86 * cp-valprint.c (cp_print_value): Prevent gdb crashes by making sure
87 that the virtual base pointer from an user object still points to
90 * dbxread.c (dbx_symfile_init): Initialize sym_stab_info to
91 clear the recently added header_files fields.
92 (dbx_symfile_finish): Free hfiles[i].vector to avoid storage leak.
96 * config/tm-sh.h: Added a missing comma in middle of REGISTER_NAMES list.
100 * monitor.c: Fix some formatting and comments.
102 * remote-sim.c (simulator_command): Set up callbacks before
103 entering the simulator.
108 * d10v-tdep.c: Fix some problems with inferior function calls.
109 * config/d10v/tm-d10v.h (EXTRA_FRAME_INFO): Change dummy to be
110 a pointer to the dummy's stack instead of just a flag.
116 * m32r-tdep.c: Improved frame_chain and fn prologue analysis.
117 * config/tm-m32r.h: Add framesize and register to extra_frame_info.
122 * mswin/gdbwin.h: Remove bogus definition of CORE_ADDR.
123 * mswin/srcwin.cpp (CSrcScroll1::CSrcScroll1): Initialize depth
124 to fix divide-by-zero problem with clicking on source window.
128 * mswin/recordit: Fix problem with absolute paths.
129 * mswin/recordit: Fix problem with relative paths.
133 * mswin/{Makefile.in configure configure.in}: New files for
134 configuring wingdb under Unix.
138 * irix5-nat.c, osfsolib.c, solib.c (symbol_add_stub): Handle
139 missing or zero-sized .text sections properly.
140 * mdebugread.c: Handle scRConst and scSUndefined storage classes.
141 * stabsread.c (scan_file_globals): Try to resolve symbols
142 for shared libraries from the minimal symbol table of the main
148 * d10v-tdep.c, config/d10v/tm-d10v.h: Major fixes to support
149 inferior function calls and proper stack backtracing on D10V-EVA
155 * config/powerpc/linux.mh (NATDEPFILES): Fix up things so that it
157 (GDBSERVER_DEPFILES,TERMCAP): Ditto.
159 * monitor.c (dev_name,targ_ops): Move static variables before
160 first use, to avoid compiler warnings.
165 * m32r-tdep.c: Improved frame_chain and fn prologue analysis.
166 * configure.tgt: Add entry for m32r target.
167 * monitor.h: Add a flag to tell monitor_store_register to use
168 (val, regno) instead of (regno, val).
169 * monitor.c: Make monitor_store_register honor the above flag.
170 Make monitor_exp ignore DC1/DC3 for m32r.
171 Increase buf size in monitor_dump_regs.
175 * m32r-tdep.c, m32r-rom.c: New files.
176 * config/m32r/m32r.mt: New file.
177 * config/m32r/tm-m32r.h: New file.
182 * config/i386/xm-cygwin32.h:
183 * config/powerpc/xm-cygwin32.h:
184 add #define LSEEK_NOT_LINEAR so source lines aren't unexpectedly
189 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE):
194 * TODO: Add item suggesting an "info bfd" command.
199 * d10v-tdep.c: Snapshot that supports D10V-EVA board.
201 * config/d10v/tm-d10v.h (REGISTER_NAMES): Add imap0,imap1,dmap.
202 (TARGET_READ_FP,TARGET_WRITE_FP): Define.
207 * mswin/genmakes mswin/recordit: New scripts to generate make
212 * config/mips/{tm-vr5000.h,tm-vr5000el.h,vr5000.mt,vr5000el.mt}:
214 * configure.tgt: Modify cases for vr5000 to use new files.
218 * config/alpha/alpha-osf3.mh (XM_CLIBS): Add -lm for OSF/1-4.0.
220 * procfs.c (proc_set_exec_trap): Under Alpha OSF/1-4.0, tracing
221 the entry to the exit system call to detect termination of the
222 inferior stopped working. Trace termination of the inferior via
223 PRFS_STOPTERM instead.
224 (procfs_init_inferior): Do not trace entry to exit system call
225 if PIOCSSPCACT is defined.
226 (procfs_wait): Handle PR_DEAD event, which signals the termination
227 of the inferior if PRFS_STOPTERM is set.
229 * mdebugread.c (parse_partial_symbols): Ignore stNil section
230 start address symbols.
232 * sparc-tdep.c (get_saved_register): Get saved PC from the
233 frame info if not in innermost frame.
237 * dbxread.c (process_one_symbol): Interpret end-of-function
238 markers correctly; this fixes problem on Vr5000 where all
239 functions in a module had the same address.
240 * configure.in, configure.tgt, configure.host, gdbserver/configure.in:
241 Correct for pc-linux-gnu problem in config.guess.
242 * configure: Regenerate.
246 * dbxread.c: Don't swap symbols in place, since internal and
247 external forms may have different sizes. Don't assume that an
248 internal_nlist has the same layout as an external_nlist. Create
249 symbol for n_strx element so to hide specifics of nlist from
251 * partial-stab.h: Don't reference dbxread symbols directly. Use
252 CUR_SYMBOL_STRX instead.
253 * config/i386/xm-windows.h: Define SIGQUIT and SIGTRAP.
256 * config/v850/tm-v850.h: Define PS_REGNUM and TARGET_V850 for
258 * mswin/gdbwin.c (reg_order): Define register order for V850.
259 * mswin/gui.cpp (CGuiApp::InitInstance): Define target name for
261 * mswin/regdoc.h: Define MAXREGS for V850.
266 * v850-tdep.c (scan_prologue): Changes to deal with scheduled
267 prologues correctly. First, prologue end is now defined by
268 presence of a branch, jump or call insn. Second, can no longer
269 fix frame offsets because we may not know the offset until after a
270 register has been saved.
271 * (v850_init_extra_frame_info): Fixup frame offsets here because
272 we have all the info at this time.
273 * (v850_frame_chain): Use new calling convention for scan_prologue.
279 * d10v-tdep.c, config/d10v/tm-d10v.h: Changes to allow stack
280 backtraces and inferior function calls.
285 * mpw-make.sed: Update init.c editing to work with Oct 8 change.
286 (@HLDFLAGS@): Always edit out.
290 * mdebugread.c (parse_partial_symbols): Fix 64-bit
291 sign-extension problems in calculating psymtab addresses.
292 * buildsym.c (end_symtab): Use macro to pop context.
297 * v850-tdep.c: Cleanup lots of things. Add many comments.
299 * v850-tdep.c (v850_init_extra_frame_info v850_frame_chain): Fix
300 sign bugs with scanning prologues. Get a little smarter about
301 calculating the length of uninteresting instructions.
306 * top.c: Add new commands "set annotate" and "show annotate".
310 * corelow.c (core_close): Clear inferior_pid only if there is
313 * cp-valprint.c (cp_print_value_fields): Pass correct address
317 * eval.c (evaluate_subexp_standard) [case BINOP_REPEAT]: Chase
318 typedefs before checking for integral type of right operand.
322 * mdebugread.c (parse_symbol): Fix crash when malloc has
323 no type info and void type has no associated pointer type.
327 * configure.host: New file, host configuration mapping.
328 * configure.tgt: New file, target configuration mapping.
329 * configure.in: Remove host and target mapping.
330 * configure: Rebuild.
334 * breakpoint.c (must_shift_inst_regs): New global.
335 (bpstat_stop_status): Change #if uses of DECR_PC_AFTER_BREAK into
336 equivalent expression uses.
337 * infrun.c (wait_for_inferior): Ditto.
342 * v850-tdep.c (v850_push_arguments): Use symbolic names for arg
344 * config/v850/tm-v850.h: Change FP to 29. Define arg regs.
349 * Makefile.in (init.c): Don't use -s option with grep. It means
350 something different under Digital Unix.
352 * buildsym.c (finish_block): Treat LOC_BASEREG_ARG and
353 LOC_LOCAL_ARG as arguments so that GDB will know about function
354 args declared this way. Mostly affects dwarf.
355 * dwarfread.c (decode_die_type): Change default type from int to
356 void. This allows GDB to recognize void functions.
357 * (new_symbol): If AT_PROTOTYPED is present, set a flag in the
359 * findvar.c (extract_floating store_floating): Clean up comments
361 * gdbtypes.h: Add TYPE_FLAG_PROTOTYPED so that we can tell if a
362 function has a prototype. Currently, only dwarf supports this.
363 * utils.c (floatformat_from_doublest): Fix logic error with
364 converting from double to float. (It wasn't shifting mant_long if
365 it had a hidden bit.)
368 * v850-tdep.c: Add support for function calling. Fix some
369 problems with debugging code w/o debug symbols.
370 * config/v850/tm-v850.h: Ditto.
375 * utils.c: Always ensure that size_t is defined. Check
376 HAVE_STDDEF_H rather than __STDC__
377 (xmalloc, xrealloc): Use size_t rather than long.
381 * config/powerpc/tm-ppc-eabi.h: Undefine NO_SINGLE_STEP so targets
382 can use single-step commands.
386 * stabsread.c (define_symbol): If REG_STRUCT_HAS_ADDR is non-zero,
387 follow typedefs before checking TYPE_CODE for structures and unions.
391 * frame.h: Move definition of struct frame_saved_regs to before
392 struct frame to make it possible to use frame_saved_regs in
393 EXTRA_FRAME_INFO macro.
396 * v850-tdep.c config/v850/tm-v850.h: Lotsa new functions and
397 macros to make frame operations (such as backtrace) work.
402 * dbxread.c (process_one_symbol): Check for null string directly
403 rather than using strcmp against "".
404 * partial-stab.h: Ditto.
408 * gdbserver/{gdbreplay.c,low-linux.c,remote-utils.c,utils.c}:
409 Make it compile on Linux and eliminate some warnings.
413 * Makefile.in (init.c): Fixup final sed script to work around
414 Linux bug with `p' operator.
418 * remote-mips.c: Use the correct name everywhere (DDB) for NEC's
420 (ddb_ops, pmon_ops): Fix the documentation strings.
424 * Makefile.in (init.c): Retro HPUX grep lacks -h option. Strip
425 filenames with sed instead.
429 * defs.h: Remove decls of xmalloc and xrealloc. There is a
430 conflicting definition in libiberty.h.
434 * dbxread.c (dbx_symfile_read): Call free_pending_blocks rather
435 than poking global variable (which is now static).
436 * hpread.c (hpread_build_psymtabs): Ditto.
437 * os9kread.c (os9k_symfile_read): Ditto.
438 * xcoffread.c (xcoff_initial_scan): Ditto.
440 * buildsym.h (free_pending_blocks): Declare here.
441 (pending_blocks): Remove declaration of global symbol.
442 (free_pendings): Remove declaration of global symbol.
443 (make_blockvector): Declare here.
444 (record_pending_block): Declare here.
446 * dstread.c (make_blockvector): Remove static copy that was old
447 clone of version in buildsym.c.
448 (process_dst_block): Call record_pending_block rather than doing
450 (read_dst_symtab): Ditto.
452 * buildsym.c (make_blockvector): Make global rather than static,
453 (record_pending_block): New function, code moved from finish_block.
454 (finish_block): Use record_pending_block.
455 (free_pending_blocks): New function.
456 (really_free_pendings): Call free_pending_blocks.
457 (pending_blocks): Make static instead of global.
458 (free_pendings): Make static instead of global.
462 * config/i386/windows.mh config/i386/xm-windows.h:: New config
463 files to support building Wingdb (built under Microsoft build
466 * Makefile.in: Add rule for hpux-thread.o (needs special header
468 * (SUBDIRS): Remove mswin.
469 * Change procedure for creating init.c. Speeds things up quite a
471 * config.in configure configure.in: Check for select, poll.
472 * Check for OSF header files before including hpux-thread.o.
473 * Don't configure doc or testsuite when building under MSVC.
474 * findvar.c value.h (read_register_pid write_register_pid): Make
475 global. Needed for hppa-tdep.c.
476 * (supply_register): Don't set pid to inferior_pid when supplying
478 * hppa-tdep.c (saved_pc_after_call): frame_saved_pc ->
480 * (frame_saved_pc): Change name to hppa_frame_saved_pc.
481 * (hppa_pop_frame): Don't use a pid of 0 with target_write_pc.
482 Use write_pc instead, which uses the correct pid.
483 * (target_read_pc target_write_pc): Use read/write_register_pid
484 instead of read/write_register to preserve the pid passed in.
485 * inftarg.c (child_can_run): Add flag child_suppress_run to allow
486 hpux-threads.c to override this as a runnable target.
487 * config/pa/nm-hppah.h: Define target_new_objfile and
489 * config/pa/tm-hppa.h (FRAME_SAVED_PC): Use hppa_frame_saved_pc
490 instead of frame_saved_pc.
491 * config/m68k/tm-m68k.h: Define TARGET_M68K for Wingdb.
492 * config/m68k/tm-monitor.h: Use FRAME_CHAIN_VALID_ALTERNATE, since
493 we can't easily determine the start file bounds with ELF.
494 * config/mips/tm-mips.h: Define TARGET_MIPS for Wingdb.
495 * hpux-thread.c: New file for HPUX/OSF thread support.
496 * osf-share/{README AT386/cma_thread_io.h HP800/cma_thread_io.h
497 RIOS/cma_thread_io.h cma_attr.h cma_deb_core.h cma_debug_client.h
498 cma_errors.h cma_handle.h cma_init.h cma_list.h cma_mutex.h
499 cma_sched.h cma_semaphore_defs.h cma_sequence.h cma_stack.h
500 cma_stack_int.h cma_tcb_defs.h cma_util.h}: New files for OSF
505 * buildsym.c (finish_block): Change innerblock_anon_complaint to
506 print the addresses as part of the complaint. Add a complaint for
507 cases where the block end address is smaller than the block start
508 address, in case any such conditions slip through our fixup mechanism.
509 * symmisc.c (dump_symtab): Only print blockvector for primary
510 symtabs, to avoid massive duplication of output due to secondary
511 symtabs that point to same blockvector. Also do some minor
516 Replace header_files global by per-objfile field.
517 * gdb-stabs.h (struct dbx_symfile_info): Add fields header_files,
518 n_header_files, n_allocated_header_files.
519 * stabsread.h (header_files, n_header_files, n_allocated_header_files):
520 Replace externs by macros HEADER_FILES, N_HEADER_FILES, and
521 N_ALLOCATED_HEADER_FILES.
522 * dbxread.c (dbx_symfile_finish): Free HEADER_FILES.
523 (free_header_files, init_header-files): Don't free/init headerfiles.
524 (various functions): Use macros instead of header_files globals.
525 * stabsread.c (various functions): Likewise.
529 * dwarf2read.c (read_tag_reference_type): New fn.
530 (read_type_die): Call it.
531 (dwarf_attr): Also look in the DIEs referred to by specification
532 or abstract_origin attributes.
536 * inferior.h (IN_SIGTRAMP): Pass pc to SIGTRAMP_START and
538 * config/i386/tm-i386os9k.h (SIGTRAMP_START, SIGTRAMP_END):
539 Define with dummy pc arg.
540 * config/m68k/tm-nbsd.h: Ditto.
541 * doc/gdbint.texinfo: Document that SIGTRAMP_START and
542 SIGTRAMP_END are macros that take an single argument.
546 * defs.h: Remove define of PRIVATE_XMALLOC.
551 * config/v850/tm-v850.h: Use distinct register for PC, not EIPC.
556 * top.c (execute_control_command): Free values from while_control
557 and if_control conditions after evaluation to avoid storage leaks.
563 * configure configure.in: Recognize v850 target.
564 * v850-tdep.c: New file, NEC V850 target support.
565 * config/v850/{v850.mt tm-v850.h}: New files for NEC V850 support.
570 * infrun.c (wait_for_inferior): Update current_line and
571 current_symtab when stepping continues in the middle of a new line.
575 * top.c (print_gdb_version): Rewrote to comply with new GNU coding
576 standards for the --version option.
577 (print_gnu_advertisement): Remove, now part of print_gdb_version.
578 (show_version): Remove call to print_gnu_advertisement.
579 * top.h (print_gnu_advertisement): Remove prototype.
580 * main.c (print_gdb_help): Move help to static function and
582 (main): Call print_gdb_help rather than inlining it.
583 (main): Remove call to print_gnu_advertisement.
585 * gdbtk.tcl (create_copyright_window): Increase timeout from
586 15 seconds to 30 seconds.
592 * config/d10v/tm-d10v.h (TARGET_{INT,PTR}_BIT): Define.
593 (TARGET_{,LONG_}DOUBLE_BIT): Ditto.
598 * configure.in, config/i386/tm-linux.h: Fix configure
599 problem on older Linux systems that prevented core files
600 from being recognized.
604 * dbug-rom.c: New file, support for Motorola's dBUG monitor.
605 * config/m68k/monitor.mt (TDEPFILES): Add it.
611 * config/d10v/tm-d10v.h (SAVED_PC_AFTER_CALL): Fixed.
612 Now single-steps correctly.
613 * d10v-tdep.c (d10v_pop_frame): Fixed.
618 * config/sh/tm-sh.h (REGISTER_NAMES): Move fp registers to
619 be consistent with GCC.
620 (FPUL_REGNUM, etc): Renumber to match list changes.
621 (ADDR_BITS_REMOVE): Delete.
622 * sh-tdep.c (sh_reg_names, sh3_reg_names, sh3e_reg_names):
623 Rearrange to match REGISTER_NAMES.
624 * sh3-rom.c (sh3_regnames, sh3e_regnames): Ditto.
629 * d10v-tdep.c: Stack chain should work now.
633 * d10v-tdep.c, config/d10v/tm-d10v.h: Snapshot.
638 * configure.in: Add cases for MIPS 5000 like MIPS 4300.
639 * configure: Rebuild.
643 * ser-e7kpc.c: Added wingdb support for target e7000pc.
647 * remote-mips.c (pmon_wait): DDB PMON does not require forced
648 re-entry back into debug mode.
652 * remote-mips.c (mips_load): Ensure that the PC is explicitly
653 loaded after a load to a DDB PMON system.
657 * Makefile.in (INTERNAL_LDFLAGS): Add @HLDFLAGS@ to list.
658 (HLDENV): Set to @HLDENV@.
659 (gdb): Prefix link command line with $(HLDENV).
660 * configure.in: Add support to test for --enable-shared and
661 generate appropriate values for HLDFLAGS and HLDENV.
662 * configure: Regenerated with autoconf.
666 * alpha-nat.c (fetch_core_registers): Match Sep 4 gdbcore.h prototype
667 change for core_read_registers in struct core_fns.
668 * core-regset.c (fetch_core_registers): Ditto & add prototype.
669 * core-sol2.c (fetch_core_registers): Ditto & add prototype.
670 * i386aix-nat.c (fetch_core_registers): Ditto & add prototype.
671 * i386b-nat.c (fetch_core_registers): Ditto.
672 * i386mach-nat.c (fetch_core_registers): Ditto & add prototype.
673 * irix4-nat.c (fetch_core_registers): Ditto.
674 * irix5-nat.c (fetch_core_registers): Ditto.
675 * lynx-nat.c (fetch_core_registers): Ditto & add prototype.
676 * m68knbsd-nat.c (fetch_core_registers): Ditto.
677 * mips-nat.c (fetch_core_registers): Ditto & add prototype.
678 * rs6000-nat.c (fetch_core_registers): Ditto.
679 * sparc-nat.c (fetch_core_registers): Ditto.
680 * sun3-nat.c (fetch_core_registers): Ditto & add prototype.
681 * ultra3-nat.c (fetch_core_registers): Ditto & add prototype.
683 * alpha-nat.c (register_addr): Match Sep 4 gdbcore.h prototype change.
684 * delta68-nat.c (register_addr): Ditto.
685 * gdbserver/low-linux.c (register_addr): Ditto.
686 * gdbserver/low-hppabsd.c (register_addr): Ditto.
687 * i386m3-nat.c (register_addr): Ditto.
688 * mips-nat.c (register_addr): Ditto.
689 * ultra3-nat.c (register_addr): Ditto.
693 * blockframe.c (inside_main_func): Cleanup slightly. Move
694 mainsym def into the block it's used in.
695 * configure.in configure: Allow NATDEPFILES to be recognized in
696 .mh files regardless of whitespace.
698 * cpu32bug-rom.c (cpu32bug_cmds): Change load_response string to
699 keep downloads from hanging.
701 * remote-wiggler.c: Add support for flash upgrades.
702 * (wiggler_error): Fix message format. Add new error code.
703 * (wiggler_write_byets): Error code is hex. Report errors with
705 * (wiggler_read_byets): Report errors with proper routine name.
706 * (get_packet): Add support for new flash commands.
707 * (wiggler_load): Call clear_symtab_users() to reset things
708 properly after download.
709 * (flash_xfer_memory bdm_update_flash_command): New funxtions to
710 support flash upgrades for Wiggler.
711 * (_initialize_remote_wiggler): Add `bdm update-flash' command.
715 * ser-tcp.c: don't include netinet/tcp.h if __CYGWIN32__
719 * config/i386/cygwin32.mh:
720 * config/powerpc/cygwin32.mh: build ser-tcp.o for both hosts
724 * value.h (COERCE_REF): Fix previous change.
725 (COERCE_ENUM): Add a check_typedef (this is the real fix).
729 * eval.c (evaluate_subexp_standard): In case of OP_ARRAY: make a
730 better check of array boundaries.
734 * configure: Update aclocal.m4 and re-run autoconf to get correct
736 * remote-wiggler.c (wiggler_error): Error codes are hex. Also,
737 fix default message generation.
741 * Makefile.in: Add mswin to SUBDIRS. Add rules for
742 mswin/libwingdb.a and remote-wiggler.o.
743 * breakpoint.c (breakpoint_here_p): Clean up bp enabled test.
744 * (breakpoint_inserted_here_p): New func, just like
745 breakpoint_here_p, except it's honest. Honestly.
746 * breakpoint.h: Proto for above.
748 * configure configure.in: Add host *windows* to list of hosts
749 that don't support GDBtk.
751 * configure configure.in: Add mswin to configdirs if host is
753 * core-aout.c (fetch_core_registers register_addr) gdbcore.h:
754 Change all vars that can contain addresses to type CORE_ADDR.
755 * findvar.c (supply_register): Allow val to be NULL. This means
756 that regno is unsupported.
757 * (read_pc read_pc_pid write_pc write_pc_pid): Make non-pid forms
758 just call pid forms with inferior_pid so that there's only once
759 place to hack PC's and such.
760 * infrun.c (proceed): Don't skip breakpoints if user changed PC.
761 * remote-wiggler.c: New file. Support for BDM interface from
763 * serial.c: Enhance serial logging capability. Add hex and octal
764 output modes (set remotelogbase {hex|octal|ascii}. Also log
765 breaks, timeouts, errors, and eofs.
766 * serial.h: Redefine SERIAL_SEND_BREAK to go through a wrapper
767 function so that we can log breaks. Don't export serial_logfile
769 * top.c (execute_command): Don't test for serial_logfp here.
770 Just call serial_log_comand, and let serial.c sort it out.
771 * valops.c (value_of_variable): Don't attempt to establish frames
772 for static and global variables. This makes things work a bit
773 better if the stack or frame pointer is trashed.
774 * config/m68k/monitor.mt (TDEPFILES): Add remote-wiggler.o.
775 * config/m68k/tm-m68k.h: Define STACK_ALIGN. CPU32 can't hack
776 misaligned stacks during function calls.
780 * terminal.h: Don't use #elif.
784 * ch-exp.c (parse_tuple_element): Allow (*): for array tuples
787 * eval.c (evaluate_subexp_standard): In case of OP_ARRAY:
788 check number of args against bounds of array to avoid
791 * value.h (COERCE_REF): Do a CHECK_TYPEDEF in case we get
796 * remote-mips.c: Provide support for DDBVR4300 target board.
797 (ddb_open, ddb_ops): Added.
798 (mips_monitor_type): MON_DDB Added.
799 (mips_enter_debug, mips_exit_debug, mips_initialize,
800 mips_fetch_registers, common_breakpoint, mips_load,
801 _initialize_remote_mips): Updated.
805 * nlm/configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
806 * nlm/configure: Regenerate.
808 * gdbserver/configure.in (i[345]86-*-*): Recognize i686 for
813 * configure.in: If CY_AC_PATH_TCLCONFIG can't find TCL, don't run
814 CY_AC_LOAD_TCLCONFIG.
815 * configure: Rebuild.
819 * infrun.c (wait_for_inferior): Initialize stop_func_end before calling
820 find_pc_partial_function.
824 * configure: Regenerate again.
828 * configure.in: work around host_alias configure bug.
829 AC_CANONICAL_HOST is called twice (first by AC_CHECK_TOOL
830 and second by AC_CANONICAL_SYSTEM). The second clobbers the
831 previous setting. Circumventing by moving the second check
833 * configure: regenerated
838 * config/d10v/d10v.mt: New file.
839 * config/d10v/tm-d10v.h: New file.
840 * configure.in: New target D10V.
841 * d10v-tdep.c: New file.
846 * rs6000-tdep.c: Fix typo in comment.
847 * valops.c (call_function_by_hand): Set using_gcc to 2
848 for code compiled without -g, per comment in code.
849 * config/a29k/tm-a29k.h (STACK_ALIGN): Add comment.
850 * config/sparc/tm-sparc.h (STACK_ALIGN): Add comment.
851 * config/sparc/tm-sp64.h (STACK_ALIGN): Add comment.
852 * config/pyr/tm-pyr.h (STACK_ALIGN): Add comment.
853 * config/m88k/tm-m88k.h (STACK_ALIGN): Add comment.
854 * config/pa/tm-hppa.h (PUSH_ARGUMENTS): Enclose args in ()'s.
855 (STACK_ALIGN): Add comment, move to be with other associated
856 macros, and document.
857 * config/mips/tm-mips.h (PUSH_ARGUMENTS): Enclose args in ()'s.
858 (STACK_ALIGN): Remove completely, handled by PUSH_ARGUMENTS.
859 * config/alpha/tm-alpha.h (PUSH_ARGUMENTS): Enclose args in ()'s.
860 * config/rs6000/tm-rs6000.h (STACK_ALIGN): Remove completely,
861 handled by PUSH_ARGUMENTS.
862 (PUSH_ARGUMENTS): Enclose args in ()'s.
866 * infrun.c (wait_for_inferior): Try to reenable shared library
867 breakpoints even if auto_solib_load is not set.
871 * gdbtk.c (gdbtk_init): Check for a DISPLAY env variable and
872 gracefully degrade to using command line interface if none is
877 * valprint.c (print_longest): Test for CC_HAS_LONG_LONG as well as
878 PRINTF_HAS_LONG_LONG.
879 * expprint.c (dump_expression): Ditto.
880 * configure.in: Fix check for long long support in compiler to
881 use a function body, not a nested function.
882 * configure: Rebuild with autoconf.
886 * aclocal.m4: Include ../bfd/aclocal.m4.
887 * configure.in: Add stdlib.h to AC_CHECK_HEADERS. Call
888 BFD_NEED_DECLARATION on malloc, realloc, and free.
889 * acconfig.h: Add NEED_DECLARATION_MALLOC,
890 NEED_DECLARATION_REALLOC, and NEED_DECLARATION_FREE.
891 * configure, config.in: Rebuild.
892 * defs.h: Include <stddef.h> and <stdlib.h> based on HAVE_*_H
893 rather than __STDC__. Only declare malloc, realloc, and free if
894 NEED_DECLARATION_* is defined.
898 * solib.c (_initialize_solib): Add missing '\' chars at ends of
899 strings that continue on next line.
900 (enable_break): Replace "return 0" with setting success to zero
901 and letting normal return handle the return.
905 * mips-tdep.c (mips_push_arguments): Make sure sp and struct_addr
906 are properly aligned.
910 * rs6000-tdep.c (rs6000_fix_call_dummy): Add full set of arguments.
911 * config/rs6000/tm-rs6000.h (FIX_CALL_DUMMY): Pass all arguments
912 to function, declare function correctly.
916 * symtab.h: changed namespace to _namespace for compiling under
921 * mpw-make.sed: Update for various recent changes, add some
924 * mpw-config.in: Fix name of Magic Cap-specific file.
929 * config/rs6000/tm-rs6000.h (FIX_CALL_DUMMY): Cast args to be an
930 integer for type correctness.
934 * config/mips/{vr4300.mt, vr4300el.mt} (SIM): Add -lm when
935 simulator is included.
939 * findvar.c (write_register_pid): Only needed when TARGET_WRITE_PC
941 (read_register_pid): Only needed when TARGET_READ_PC is not
943 * hppa-tdep.c (frame_saved_pc): Remove prototype.
944 * infptrace.c (udot_info): Prototype when CHILD_XFER_MEMORY is
946 * config/xm-aix4.h (aix_resizewindow): Convert old style decl
948 * xcoffsolib.c (command.h): Include for needed prototypes.
952 * config/i386/cygwin32.mh: Set NAT_FILE to nm-empty.h to make
958 * hppa-tdep.c (hppa_fix_call_dummy): Use MSYMBOL_TYPE rather
959 than SYMBOL_TYPE on msymbols.
960 * somsolib.c (som_solib_create_inferior_hook): Ditto.
962 * Makefile.in (init.c): Generate with prototypes.
964 * config/pa/tm-hppa.h (frame_saved_pc): Add prototype.
965 * config/rs6000/xm-rs6000.h (aix_resizewindow): Ditto.
966 * config/rs6000/tm-rs6000.h (frame_initial_stack_address): Ditto.
967 (pc_load_segment_name): Ditto.
969 (extract_return_value): Ditto.
970 (is_magic_function_pointer): Ditto.
971 (push_dummy_frame): Ditto.
972 (fix_call_dummy): Ditto.
973 (push_arguments): Ditto.
974 (skip_trampoline_code): Ditto.
975 (aix_process_linenos): Ditto.
977 * config/m68k/tm-cisco.h (get_longjmp_target): Add prototype.
978 * config/m68k/tm-es1800.h: Ditto.
979 * config/m68k/tm-vx68.h: Ditto.
980 * config/m68k/tm-sun3.h: Ditto.
981 * config/m68k/tm-m68kv4.h: Ditto.
985 * config/mips/nm-mips.h (get_longjmp_target): Add prototype.
986 * config/mips/nm-irix3.h (get_longjmp_target): Add prototype.
987 * remote-mips.c (mips_read_processor_type): Remove prototype.
988 * mips-tdep.c (gdb_print_insn_mips): Add prototype and make static.
989 * irix5-nat.c (fetch_core_registers): Add prototype.
993 * remote-pa.c (boot_board): Add dummy params to make type compatible
994 for passing to add_com.
995 * scm-exp.c (scm_lreadr): Ensure svalue is not used uninitialized.
996 * buildsym.c (compare_line_numbers): Change function to match
997 prototype and also what qsort expects.
1001 * remote.c: Make remote_write_size public.
1002 * sh-tdep.c (_initialize_sh_tdep): Set remote_write_size to 300
1003 to prevent packet errors with some versions of CMON.
1007 * defs.h: Define CONST_PTR as blank if compiling with Microsoft
1008 C, else it's `const'.
1009 * c-lang.c c-lang.h ch-lang.c f-lang.c language.c m2-lang.c
1010 scm-lang.c: Microsoft C can't hack const pointers. Use CONST_PTR
1012 * configure configure.in defs.h: Use AC_C_CONST to figure out if
1013 the compiler supports const. Gets rid of some cruft in defs.h.
1014 * dwarf2read.c: <string.h> -> "gdb_string.h"
1015 * remote-sim.c: Add prototypes. Fix call to gdbsim_kill.
1016 * sparcl-tdep.c (download): Add prototypes to write_routine and
1019 * mswin/gdbwin.c: Don't include both varargs.h AND stdarg.h. Get
1020 rid of varargs.h Include string.h.
1021 * (gdbwin_update gdbwin_fputs regs_changed_f bpt_changed_f
1022 update): Fix prototypes, fix calls.
1023 * (update): Return value for catch_errors.
1024 * (run_execute_command togdb_command_from_tty togdb_command):
1025 Cleanup catching of errors from calls to execute_command. Also,
1026 dup command string to avoid modifying const strings.
1027 * (togdb_breakinfo_i_init togdb_breakinfo_i_next): Use 0 instead
1028 of NULL when see if b->address isn't set.
1029 * (bi_disable_bpt bi_enable_bpt bi_delete_all
1030 bi_delete_breakpoint): Add arg to calls to update.
1031 * (gui_command): Add prototype.
1032 * (mswin_query): Fix prototype.
1033 * (_initialize_gdbwin): Dup string to avoid modifying const.
1034 * (info_path togdb_get_info_path): Remove const from decls cuz
1035 this can't be const (it points at malloc'ed memory).
1036 * (togdb_searchpath): Remove const from path. Dup string to
1037 avoid modifying const strings.
1038 * rindex -> strrchr.
1039 * (gdbwin_list_symbols): Regexp param is const.
1040 * Fix lots of refs to psymtabs to deref correct pointers.
1041 * (togdb_set_breakpoint_sal): Call set_breakpoint_sal with sal,
1043 * mswin/gdbwin.h (togdb_searchpath togdb_get_info_path
1044 toget_set_info_path): Fix prototypes to match reality.
1045 * mswin/gui.cpp: Define _beginthreadex and _endthreadex routines
1046 with proper prototypes.
1047 * mswin/iface.cpp (gdbwin_fputs): Define with correct number of args.
1048 * mswin/ser-win32s.c: Fix defs of min and max.
1049 * mswin/serdll32.c (OpenComm16): Make cbInQueue and cbOutQueue be
1051 * (WriteComm16): Change lpBug from LPVOID to LPCSTR.
1052 * mswin/serdll32.h: Fix prototypes for OpenComm16 and WriteComm16.
1056 * main.c (main): Make sure command loop is used with cygwin32.
1057 * terminal.h: Allow cygwin32 to use termios.h.
1059 start-sanitize-gdbtk
1062 * Makefile.in (LIB_INSTALL_DIR): New macro.
1063 (TCL): Include @TCL_LD_SEARCH_FLAGS@.
1068 * somread.c (som_symtab_read): Handle secondary definition
1069 symbols (aka weak symbols).
1071 * config/tm-hppa.h (EXTRACT_RETURN_VALUE): Fix thinko in
1076 * symfile.c (symfile_bfd_open): Change ifdef from __WIN32__ to
1079 * somread.c: Rearrange order of includes to fix warnings under
1080 hpux-10.10. Also don't include sys/file.h.
1084 * dbxread.c: Don't include param.h or sys/file.h.
1085 * (dbx_symfile_read): Determine symfile_relocatable from bfd
1086 flags instead of file extension. Also clean up a little bit.
1090 * dwarf2read.c dwarfread.c exec.c infcmd.c infrun.c main.c
1091 mdebugread.c os9kread.c source.c top.c utils.c: Don't
1092 include param.h or sys/file.h (or unistd.h in some cases).
1093 * defs.h exec.c inflow.c remote-array.c remote-e7000.c
1094 sparcl-tdep.c terminal.h utils.c: Replace all occurances of
1095 __WIN32__, WINGDB, WIN32, etc... with _WIN32.
1096 * main.c: Remove #ifndef WINGDB around option processing. Fix
1097 bug with passing argc==0 and argv==NULL to getopt.
1098 * (main) Remove calls to access() before source_command. Let
1099 soure_command handle access errors.
1100 * maint.c (maintenance_dump_me): #ifdef out for _WIN32.
1101 * symtab.c (operator_chars): Make this global for wingdb.
1102 * top.c (disconnect): #ifdef out for _WIN32.
1103 * (source_command): If got an error and from_tty, then call print
1104 error, else just return quietly.
1105 * utils.c (fatal_dump_core): Can't kill ourselves under windows.
1107 * (pollquit notice_quit): #ifdef out stuff that doesn't exist
1112 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Tweak for
1113 structures > 4 bytes in size.
1115 * valops.c (call_function_by_hand): Handle aligning stacks that
1117 * config/pa/tm-hppa.h (USE_STRUCT_CONVENTION): Define.
1118 (STACK_ALIGN): Define.
1119 * hppa-tdep.c (hppa_alignof): Don't demand a minumim two byte
1120 alignment on structs/unions.
1124 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Define to "int *",
1125 which is the documented type under at least AIX 3 and AIX 4.
1129 * config/alpha/alpha-osf3.mh (XM_FILE): Change from xm-alpha.h to
1131 (MMALLOC_CFLAGS): Define NO_MMCHECK to not install consistency
1134 start-sanitize-gdbtk
1137 * gdbtk.c (mainWindow): Deleted.
1138 (cleanup_init): Don't destroy main window.
1139 (gdbtk_init): Main window now created by Tk_Init.
1141 * configure.in: Most X checks now handled automatically by Tk.
1142 Use new macros to find Tcl/Tk.
1143 * aclocal.m4: New version for new Tcl/Tk; from Don Libes.
1144 * config.in, configure: Regenerated.
1146 * Makefile.in (TCL, TCL_CFLAGS, TK, TK_CFLAGS, X11_CFLAGS,
1147 X11_LDFLAGS, X11_LIBS): Changed for new Tcl and Tk.
1152 * config/mips/tm-mips.h (TM_MIPS_H): Enclose file contents in
1153 this, define when contents are included.
1154 (mips_read_processor_type): Add prototype.
1155 * config/mips/xm-mips.h: Remove strdup decl, now in gdb_string.h
1156 * mdebugread.c (ecoff_relocate_efi): Add prototype.
1157 (fixup_sigtramp): Only needed when TM_MIPS_H is defined.
1159 start-sanitize-gdbtk
1162 * Makefile.in (gdbtk.tcl): put in $(datadir), not $(libdir).
1167 * rs6000-nat.c (add_vmap): Return 0 to caller rather than random value.
1168 (vmap_ldinfo): Ensure got_exec_file is not used uninitialized.
1169 (fetch_core_registers): Add prototype.
1170 (vmap_symtab): Ditto.
1171 (objfile_symbol_add): Ditto.
1173 (vmap_ldinfo): Ditto.
1178 * stabsread.c (get_substring): Declare second arg as int.
1180 * remote-es.c: Include gdb_string.h after defs.h.
1184 * rs6000-tdep.c (push_arguments): Remove unused variable "pc".
1185 (branch_dest): Remove unused variable "offset".
1186 (pop_dummy_frame): Add prototype and make static.
1187 (push_arguments): Guard against using len uninitialized.
1188 (push_arguments): Guard against using arg uninitialized.
1189 (frame_saved_pc): Remove unused variable "frameless".
1190 (free_loadinfo): Ifdef out unused function.
1192 * xcoffread.c (compare_lte): Change prototype and function to
1193 be correct type for passing to qsort.
1194 (add_stab_to_list): Ifdef out unused function and prototype.
1195 (compare_lte): Add prototype
1196 (arrange_linetable): Ditto.
1197 (record_include_begin): Ditto.
1198 (record_include_end): Ditto.
1199 (process_linenos): Ditto.
1200 (xcoff_next_symbol_text): Ditto.
1201 (scan_xcoff_symtab): Ditto.
1202 (xcoff_initial_scan): Ditto.
1204 * mips-tdep.c (mips_read_processor_type): Add parens around
1205 bitwise-and operands in comparison; previous expression always
1206 evaluated to 0 because of equality comparison of two constants.
1208 * rs6000-tdep.c (skip_prologue): Add missing parens around
1209 operands of logical-or so that first operand does not bind
1210 to previous logical-and.
1212 * configure.in: Expand "long long" test to include code that triggers
1213 known problem on HPUX with native compiler.
1214 (configure): Regenerated.
1218 * somsolib.c (som_solib_create_inferior_hook): Don't
1219 warn if __d_pid can't be found.
1223 * config/mips/tm-mips.h (struct frame_info): Forward decl.
1224 (struct type): Ditto.
1225 (struct value): Ditto.
1227 * config/mips/tm-mips.h (sigtramp_address): Move extern decl
1228 from mips-tdep.c to here.
1229 (sigtramp_end): Ditto.
1230 (fixup_sigtramp): Ditto.
1232 * config/mips/tm-mips.h (init_extra_frame_info): Add prototype.
1233 (mips_frame_chain): Ditto.
1234 (mips_step_skips_delay): Ditto.
1235 (mips_frame_saved_pc): Ditto.
1236 (mips_find_saved_regs): Ditto.
1237 (mips_frame_num_args): Ditto.
1238 (mips_pop_frame): Ditto.
1239 (mips_extract_return_value): Ditto.
1240 (mips_store_return_value): Ditto.
1241 (mips_push_dummy_frame): Ditto.
1242 (mips_push_arguments): Ditto.
1243 (mips_do_registers_info): Ditto.
1244 (ecoff_relocate_efi): Ditto.
1245 (ecoff_relocate_efi): Ditto.
1246 * irix4-nat.c (fetch_core_registers): Add prototype.
1247 * mips-tdep.c (read_next_frame_reg): Add prototype
1248 (heuristic_proc_start): Ditto.
1249 (heuristic_proc_desc): Ditto.
1250 (mips_print_register): Ditto.
1251 * config/mips/nm-irix5.h (procfs_set_watchpoint): Add prototype.
1252 (procfs_stopped_by_watchpoint): Ditto.
1253 * config/mips/nm-irix4.h (procfs_set_watchpoint): Add prototype.
1254 (procfs_stopped_by_watchpoint): Ditto.
1255 * config/alpha/tm-alpha.h (ecoff_relocate_efi): Add prototype.
1256 (struct symbol): Add forward decl for prototype.
1258 * breakpoint.c (internal_breakpoint_number): Only needed if
1259 GET_LONGJMP_TARGET or SOLIB_ADD is defined.
1261 * objfiles.c (ecoff_relocate_efi): Remove prototype.
1265 * configure.in: Add test for "long long" support.
1266 * configure: Regenerate with autoconf.
1267 * acconfig.h: Add CC_HAS_LONG_LONG
1268 * config.in: Regenerate with autoheader.
1269 * config/mips/tm-mips64.h (FORCE_LONG_LONG): Remove
1270 * config/sparc/tm-sp64.h (CC_HAS_LONG_LONG): Remove.
1271 * config/mips/tm-vr4300el.h (CC_HAS_LONG_LONG): Remove.
1272 * config/mips/tm-vr4300.h (CC_HAS_LONG_LONG): Remove.
1273 * config/mips/xm-irix5.h (CC_HAS_LONG_LONG): Remove
1274 (PRINTF_HAS_LONG_LONG): Remove.
1275 (FORCE_LONG_LONG): Remove.
1276 * config/powerpc/xm-aix.h (UINT_MAX): Undef and use gdb's version.
1277 * config/convex/xm-convex.h (CC_HAS_LONG_LONG): Remove
1278 (PRINTF_HAS_LONG_LONG): Remove.
1279 * config/xm-nbsd.h (CC_HAS_LONG_LONG): Remove.
1280 (PRINTF_HAS_LONG_LONG): Remove.
1281 * config/pa/tm-hppa.h (GET_FIELD): Put parens around
1282 subtraction inside shift. Put parens around subtraction
1283 in operand of bitwise and.
1284 (struct frame_info): Forward declare
1285 if __STDC__ defined.
1286 (frame_saved_regs): Ditto.
1287 (struct value): Ditto.
1288 (struct type): Ditto.
1289 (struct inferior_status): Ditto.
1290 (init_extra_frame_info): Add prototype.
1291 (skip_prologue): Ditto.
1292 (frameless_function_invocation): Ditto.
1293 (frame_chain): Ditto.
1294 (frame_chain_valid): Ditto.
1295 (saved_pc_after_call): Ditto.
1296 (hppa_fix_call_dummy): Ditto.
1297 (hppa_push_arguments): Ditto.
1298 (pa_do_registers_info): Ditto.
1299 (in_solib_call_trampoline): Ditto.
1300 (in_solib_return_trampoline): Ditto.
1301 (push_dummy_frame): Ditto.
1302 * convex-tdep.c (decout): Use print_longest rather than
1304 * defs.h: Remove use of FORCE_LONG_LONG and __GNUC__ to set
1306 (INT_MIN): Fix so it works correctly when assigned to a long long.
1307 * valprint.c (longest_to_int): Rewrite to remove dependence
1308 on INT_MIN and INT_MAX.
1309 (print_longest): Rewrite the code that falls back to synthesized
1310 hex output when LONGEST value is not representable as in a long and
1311 printf doesn't support printing long longs.
1312 * ch-valprint.c (chill_val_print): Cast 2nd arg of
1313 chill_print_type_scalar to LONGEST.
1314 chill_print_type_scalar): Make static and add prototype.
1315 * hppa-tdep.c (get_field): Ifdef out unused function.
1318 (extract_5_store): Ditto.
1319 (extract_11): Ditto.
1320 (extract_12): Ditto.
1321 (deposit_17): Ditto.
1322 (extract_14): Convert to static and add prototype.
1323 (deposit_14): Ditto.
1324 (extract_21): Ditto.
1325 (deposit_21): Ditto.
1326 (extract_17): Ditto.
1327 (extract_5r_store): Ditto.
1328 (extract_5R_store): Ditto.
1329 (extract_5_load): Ditto.
1330 (find_proc_framesize): Ditto.
1331 (find_dummy_frame_regs): Ditto.
1332 (sign_extend): Ditto.
1333 (find_unwind_entry): Add prototype.
1334 (find_return_regnum): Ditto.
1335 (unwind_command): Ditto.
1336 (find_dummy_frame_regs): Add parens around subtraction in operand
1338 (skip_prologue): Add parens around operands of logical-and inside
1339 operand of logical-or.
1340 (sign_extend): Add parens around operands of subtraction inside
1342 (low_sign_extend): Ditto.
1343 * top.c (filename_completer): Convert old style decl of
1344 filename_completion_function into prototype.
1345 * f-lang.c (patch_common_entries): Ifdef out unused function.
1346 * stabsread.c (read_cfront_baseclasses): Remove unused local
1347 variable "msg_noterm".
1348 (resolve_cfront_continuation): Remove unused local variable "fip".
1349 (read_type): Remove unused variable xtypenums.
1350 (read_cfront_static_fields): Remove unused variable "i".
1351 (read_cfront_static_fields): Remove unused variable "nfields".
1352 (read_cfront_member_functions): Add missing comment terminator.
1353 (read_cfront_static_fields): Return 1 rather than random value.
1354 (read_cfront_baseclasses): Ditto.
1355 (read_cfront_baseclasses): Ditto.
1356 (read_cfront_baseclasses): Ditto.
1357 * somsolib.c (som_solib_create_inferior_hook): Remove unused
1359 (som_solib_create_inferior_hook): Remove unused variable
1361 (language.h): Add for needed prototypes.
1362 (som_solib_sharedlibrary_command): Add prototype.
1363 * hpread.c: (hpread_read_array_type): Add prototype.
1364 * somread.c (hpread_build_pysmtabs): Add prototype.
1365 (hpread_symfile_finish): Ditto.
1366 (hpread_symfile_init): Ditto.
1367 * hppah-nat.c (fetch_register): Convert old style decl
1369 (gdbcore.h): Include for needed prototypes.
1370 (fetch_register): Remove unused variable "mess".
1371 * remote-pa.c (get_offsets): Ifdef out unused function.
1372 (remote_start_remote): Remove unused variable "timeout".
1373 (boot_board): Add prototype.
1374 (reaad_frame): Add prototype.
1375 (getpkt): Remove unused variable "bp".
1376 (remote_kill): Add prototype.
1377 (remote_mourn): Add prototype.
1378 (remote_insert_breakpoint): Add prototype.
1379 (remote_remove_breakpoint): Add prototype.
1380 * valops.c (value_push): Only use if PUSH_ARGUMENTS is not defined.
1381 * infcmd.c (do_registers_info): Only need prototype if
1382 DO_REGISTERS_INFO is not defined.
1383 (breakpoint_auto_delete_contents): Only need if
1384 CALL_DUMMY_BREAKPOINT_OFFSET is defined.
1388 * xcoffread.c (xcoff_end_psymtab): Add textlow_not_set parameter.
1389 (END_PSYMTAB): Ditto.
1390 (scan_xcoff_symtab): Call xcoff_end_psymtab with textlow_not_set.
1394 * printcmd.c (_initialize_printcmd): Initialize
1395 tm_print_insn_info.flavour.
1396 start-sanitize-gdbtk
1397 * gdbtk.c (gdb_disassemble): Initialize di.flavour.
1402 * Makefile.in (scm-valprint.o): Depends upon gdbcore_h.
1403 (arm-tdep.o): Ditto.
1405 (i386ly-tdep.o): Ditto.
1406 (i960-tdep.o): Ditto.
1407 (m68k-tdep.o): Ditto.
1408 (nindy-tdep.o): Ditto.
1409 (scm-lang.o): Ditto.
1410 (w65-tdep.o): Ditto.
1411 (z8k-tdep.o): Ditto.
1412 (m68k-tdep.o): Depends upon value_h and gdb_string.h
1413 (m2-valprint.o): Depends upon m2-lang.h.
1414 (sparc-tdep.o): Depends upon gdb_string.h
1415 (valprint.o): Depends upon valprint.h
1417 * remote-e7000.c (notice_quit): Remove prototype.
1418 * top.c (initialize_targets): Remove prototype, now in target.h.
1419 * stabsread.c (resolve_cfront_continuation): Remove prototype.
1420 * dbxread.c (resolve_cfront_continuation): Remove prototype.
1421 * symfile.h (set_demangling_style): Remove prototype.
1422 * config/tm-sysv4.h (in_plt_section): Remove prototype, in objfiles.h.
1423 * config/sparc/tm-sparc.h (single_step): Remove extern decl, now in
1425 * config/arc/tm-arc.h (one_stepped, single_step): Remove extern decls,
1427 * ser-unix.c (hardwire_restore): Remove obsolete prototype.
1428 * sparc-tdep.c (single_step): Remove forward decl of isbranch.
1429 * scm-lang.c (find_function_in_inferior): Remove prototype.
1430 (value_allocate_space_in_inferior): Ditto.
1431 * infrun.c (write_pc_pid): Remove prototype, now in inferior.h.
1432 * defs.h (strchr): Remove declarations, they are declared in
1438 * f-valprint.c (f77_print_array_1): Remove extra arg that was being
1439 passed to f77_print_array_1.
1440 * gdbtypes.c (add_name): Remove unused variables lenstrlen and lenstr.
1441 * scm-exp.c (scm_istr2int): Remove unused variable "j".
1442 (scm_parse): Remove unused variable "str".
1443 * hp300ux-nat.c (store_inferior_register): Remove unused variable
1445 (store_inferior_registers): Remove unnecessary decl "registers".
1446 * m68k-tdep.c (m68k_pop_frame): Remove unused variable "fi".
1447 * scm-lang.c (scm_get_field): Remove unused variable "val".
1448 (scm_lookup_name): Remove unused variable "symval".
1449 * objfiles.c (map_to_file): Remove unused local variable "tempfd".
1450 * procfs.c (do_attach, do_detach): Remove unused variable "result".
1451 (last_resume_pid): Remove unused static variable.
1452 * alpha-tdep.c (alpha_linux_sigtramp_offset): Remove unused variable
1454 * objfiles.c (map_to_address): Remove unused function.
1455 * f-valprint.c (print_max): Remove extraneous extern decl,
1457 (calc_f77_array_dims): Remove extraneous prototype, in f-lang.h.
1458 * ch-exp.c (write_lower_upper_value): Remove prototype for
1461 * gdbtypes.c (cfront_mangle_name): #ifdef out unused function.
1462 * ch-exp.c (parse_mode_call): Ditto.
1463 * f-valprint.c (there_is_a_visible_common_named): Ditto.
1464 * f-lang.c (clear_function_list): Ditto.
1465 (get_bf_for_fcn): Ditto.
1466 (clear_bf_list): Ditto.
1467 (add_common_block): Ditto.
1468 (patch_all_commons_by_name): Ditto.
1469 (find_first_common_named): Ditto.
1470 (add_common_entry): Ditto.
1471 (allocate_saved_function_node): Ditto.
1472 (allocate_saved_bf_node): Ditto.
1473 (allocate_common_entry_node): Ditto.
1474 (allocate_saved_f77_common_node): Ditto.
1476 * arm-tdep.c (gdbcore.h): Include for necessary prototypes.
1477 * dcache.c (gdbcore.h): Ditto.
1478 * i386ly-tdep.c (gdbcore.h): Ditto.
1479 * i960-tdep.c (gdbcore.h): Ditto.
1480 * m2-valprint.c (m2-lang.h): Ditto.
1481 * m68k-tdep.c (gdbcore.h): Ditto.
1483 (gdb_string.h): Ditto.
1484 * nindy-tdep.c (gdbcore.h): Ditto.
1485 * scm-lang.c (gdbcore.h): Ditto.
1486 * scm-valprint.c (gdbcore.h): Ditto.
1487 * w65-tdep.c (gdbcore.h): Ditto.
1488 * z8k-tdep.c (gdbcore.h): Ditto.
1489 * sparc-tdep.c (gdb_string.h): Include.
1490 * valprint.c (valprint.h): Include.
1492 * config/xm-lynx.h: Remove part of comment about INT_MIN
1493 redefined warnings from defs.h, since INT_MIN define in
1494 defs.h is now protected by #ifndef INT_MIN.
1495 * config/i386/xm-i386bsd.h: Ditto.
1496 * config/m68k/xm-hp300bsd.h: Ditto.
1497 * config/m68k/xm-news.h: Ditto.
1499 * config/pa/xm-hppah.h (INT_MIN): Remove bogus INT_MIN
1500 definition as 0x80000000. The macro in defs.h is better.
1501 * config/i386/xm-i386m3.h (INT_MIN): Ditto.
1502 * config/i386/xm-i386mach.h (INT_MIN): Ditto.
1503 * config/ns32k/xm-ns32km3.h (INT_MIN): Ditto.
1504 * config/pa/xm-hppab.h: Ditto.
1506 * core-aout.c (fetch_core_registers): Add prototype.
1507 * hp300ux-nat.c (fetch_inferior_register): Ditto.
1508 (store_inferior_register_1): Ditto.
1509 (store_inferior_register): Ditto.
1510 * config/m68k/tm-m68k.h (find_saved_regs): Ditto.
1511 *scm-valprint.c (c_val_print): Ditto.
1512 * procfs.c (add_fd): Ditto.
1515 (sigcodename): Ditto.
1516 (sigcodedesc): Ditto.
1517 (procfs_kill_inferior): Ditto.
1518 (procfs_xfer_memory): Ditto.
1519 (procfs_store_registers): Ditto.
1520 (create_procinfo): Ditto.
1521 (procfs_init_inferior): Ditto.
1522 (proc_set_exec_trap): Ditto.
1523 (procfs_attach): Ditto.
1524 (procfs_detach): Ditto.
1525 (procfs_prepare_to_store): Ditto.
1526 (procfs_files_info): Ditto.
1527 (procfs_open): Ditto.
1528 (procfs_wait): Ditto.
1529 (procfs_fetch_registers): Ditto.
1530 (procfs_mourn_inferior): Ditto.
1531 (procfs_can_run): Ditto.
1532 (procfs_thread_alive): Ditto.
1533 (procfs_stop): Ditto.
1534 * alpha-nat.c (fetch_core_registers): Ditto.
1535 * config/alpha/tm-alpha.h (alpha_osf_skip_sigtramp_frame): Ditto.
1536 * objfiles.c (ecoff_relocate_efi): Ditto.
1537 * inflow.c (pass_signal): Ditto.
1538 (handle_sigio): Ditto.
1539 * annotate.c (breakpoint_changed): Ditto.
1540 * callback.c (wrap): Ditto.
1543 * utils.c (malloc_botch): Ditto.
1544 (fputs_maybe_filtered): Ditto.
1545 (vfprintf_maybe_filtered): Ditto.
1546 * defs.h (notice_quit): Ditto.
1547 * defs.h (xmalloc, xrealloc): Ditto.
1548 * top.c (stop_sig): Ditto.
1549 (init_signals): Ditto.
1550 (user_defined_command): Ditto.
1551 (source_cleanup_lines): Ditto.
1552 (dont_repeat_command): Ditto.
1553 (serial_log_command): Ditto.
1554 (disconnect): Ditto.
1555 * target.h (initialize_targets): Ditto.
1556 * os9kread.c (read_minimal_symbols): Ditto.
1557 * mdebugread.c (mdebug_psymtab_to_symtab): Ditto.
1559 (push_parse_stack): Ditto.
1560 (pop_parse_stack): Ditto.
1561 (is_pending_symbol): Ditto.
1562 (add_pending): Ditto.
1563 * serial.c (serial_logchar): Ditto.
1564 (serial_interface_lookup): Ditto.
1565 * serial.h (serial_log_command): Ditto.
1566 * f-valprint.c (info_common_command): Ditto.
1567 * gdbtypes.h (print_type_scalar): Ditto.
1568 * scm-valprint.c (scm_scmlist_print): Ditto.
1570 * scm-lang.c (scm_printstr): Ditto.
1572 (evaluate_subexp_scm): Ditto.
1573 * scm-exp.c (scm_read_token): Ditto.
1574 (scm_skip_ws): Ditto.
1575 (scm_lreadparen): Ditto.
1576 * m2-lang.c (emit_char): Ditto.
1577 (m2_printchar): Ditto.
1578 (m2_printstr): Ditto.
1579 (m2_create_fundamental_type): Ditto.
1580 * f-lang.c (emit_char): Ditto.
1581 (f_printchar): Ditto.
1582 (f_printstr): Ditto.
1583 (f_create_fundamental_type): Ditto.
1584 * ch-lang.c (chill_printchar): Ditto.
1585 (chill_printstr): Ditto.
1586 (chill_create_fundamental_type): Ditto.
1587 (value_chill_length): Ditto.
1588 (value_chill_card): Ditto.
1589 (value_chill_max_min): Ditto.
1590 (evaluate_subexp_chill): Ditto.
1591 * ch-exp.c (PEEK_TOKEN): Ditto.
1592 (peek_token_): Ditto.
1593 (forward_token_): Ditto.
1594 (parse_case_label): Ditto.
1595 (parse_opt_untyped_expr): Ditto.
1596 (parse_unary_call): Ditto.
1597 (parse_call): Ditto.
1598 (parse_named_record_element): Ditto.
1599 (parse_tuple_element): Ditto.
1600 (parse_opt_element_list): Ditto.
1601 (parse_tuple): Ditto.
1602 (parse_primval): Ditto.
1603 (parse_operand6): Ditto.
1604 (parse_operand5): Ditto.
1605 (parse_operand4): Ditto.
1606 (parse_operand3): Ditto.
1607 (parse_operand2): Ditto.
1608 (parse_operand1): Ditto.
1609 (parse_operand0): Ditto.
1610 (parse_expr): Ditto.
1611 (parse_then_alternative): Ditto.
1612 (parse_else_alternative): Ditto.
1613 (parse_if_expression): Ditto.
1614 (parse_untyped_expr): Ditto.
1615 (growbuf_by_size): Ditto.
1616 (match_simple_name_string): Ditto.
1617 (decode_integer_value): Ditto.
1618 (decode_integer_literal): Ditto.
1619 (match_float_literal): Ditto.
1620 (match_float_literal): Ditto.
1621 (match_string_literal): Ditto.
1622 (match_character_literal): Ditto.
1623 (match_integer_literal): Ditto.
1624 (match_bitstring_literal): Ditto.
1625 (write_lower_upper_value): Ditto.
1626 * ch-lang.h (type_lower_upper): Ditto.
1627 * c-lang.c (emit_char): Ditto.
1628 * dwarfread.c (free_utypes): Ditto.
1629 * stabsread.h (resolve_cfront_continuation): Ditto.
1630 * stabsread.c (get_substring): Ditto.
1631 (read_one_struct_field): Ditto.
1632 * stabsread.h (process_later): Ditto.
1633 * demangle.c (set_demangling_command): Ditto.
1634 * defs.h (set_demangling_style): Ditto.
1635 * maint.c (maintenance_info_command): Ditto.
1636 (print_section_table): Ditto.
1637 (maintenance_info_sections): Ditto.
1638 (maintenance_print_command): Ditto.
1639 * symtab.h (maintenance_print_statistics): Ditto.
1640 * objfiles.h (in_plt_section): Ditto.
1641 * objfiles.c (add_to_objfile_sections): Ditto.
1642 * bcache.c (hash): Ditto.
1643 (lookup_cache): Ditto.
1644 * exec.c (bfdsec_to_vmap): Ditto.
1646 * f-exp.y (growbuf_by_size, match_string_literal): Ditto.
1647 * language.c (unk_lang_printchar): Ditto.
1648 (unk_lang_printstr): Ditto.
1649 (unk_lang_create_fundamental_type): Ditto.
1650 (unk_lang_print_type): Ditto.
1651 (unk_lang_val_print): Ditto.
1652 (unk_lang_value_print): Ditto.
1653 * target.c (update_current_target): Ditto.
1654 (debug_to_open): Ditto.
1655 (debug_to_close): Ditto.
1656 (debug_to_attach): Ditto.
1657 (debug_to_detach): Ditto.
1658 (debug_to_resume): Ditto.
1659 (debug_to_wait): Ditto.
1660 (debug_to_fetch_registers): Ditto.
1661 (debug_to_store_registers): Ditto.
1662 (debug_to_prepare_to_store): Ditto.
1663 (debug_to_xfer_memory): Ditto.
1664 (debug_to_files_info): Ditto.
1665 (debug_to_insert_breakpoint): Ditto.
1666 (debug_to_remove_breakpoint): Ditto.
1667 (debug_to_terminal_init): Ditto.
1668 (debug_to_terminal_inferior): Ditto.
1669 (debug_to_terminal_ours_for_output): Ditto.
1670 (debug_to_terminal_ours): Ditto.
1671 (debug_to_terminal_info): Ditto.
1672 (debug_to_kill): Ditto.
1673 (debug_to_load): Ditto.
1674 (debug_to_lookup_symbol): Ditto.
1675 (debug_to_create_inferior): Ditto.
1676 (debug_to_mourn_inferior): Ditto.
1677 (debug_to_can_run): Ditto.
1678 (debug_to_notice_signals): Ditto.
1679 (debug_to_thread_alive): Ditto.
1680 (debug_to_stop): Ditto.
1681 start-sanitize-gdbtk
1682 * gdbtk.c (null_routine): Ditto.
1683 (gdbtk_flush): Ditto.
1684 (gdbtk_fputs): Ditto.
1685 (gdbtk_query): Ditto.
1686 (gdbtk_readline): Ditto.
1687 (gdbtk_readline_end): Ditto.
1688 (gdb_get_breakpoint_list): Ditto.
1689 (gdb_get_breakpoint_info): Ditto.
1690 (breakpoint_notify): Ditto.
1691 (gdbtk_create_breakpoint): Ditto.
1692 (gdbtk_delete_breakpoint): Ditto.
1693 (gdbtk_modify_breakpoint): Ditto.
1696 (gdb_sourcelines): Ditto.
1697 (map_arg_registers): Ditto.
1698 (get_register_name): Ditto.
1699 (gdb_regnames): Ditto.
1700 (get_register): Ditto.
1701 (gdb_fetch_registers): Ditto.
1702 (register_changed_p): Ditto.
1703 (gdb_changed_register_list): Ditto.
1705 (call_wrapper): Ditto.
1706 (gdb_listfiles): Ditto.
1708 (gdbtk_dis_asm_read_memory): Ditto.
1709 (compare_lines): Ditto.
1710 (gdb_disassemble): Ditto.
1711 (tk_command): Ditto.
1712 (cleanup_init): Ditto.
1713 (gdbtk_interactive): Ditto.
1715 (gdbtk_wait): Ditto.
1716 (gdbtk_call_command): Ditto.
1717 (tk_command_loop): Ditto.
1718 (gdbtk_init): Ditto.
1720 * breakpoint.h (set_breakpoint_sal): Ditto.
1721 * remote-utils.c (usage): Ditto.
1722 * remote.c (set_thread): Ditto.
1723 (remote_thread_alive): Ditto.
1724 (get_offsets): Ditto.
1725 (read_frame): Ditto.
1726 (remote_insert_breakpoint): Ditto.
1727 (remote_remove_breakpoint): Ditto.
1728 * sparc-nat.c (fetch_core_registers): Ditto.
1729 * corelow.c (add_to_thread_list): Ditto.
1731 * inftarg.c (proc_wait): Ditto.
1732 * infptrace.c (udot_info): Ditto.
1733 (fetch_register): Ditto.
1734 * ser-unix.c (hardwire_noflush_set_tty_state): Ditto.
1735 (hardwire_print_tty_state): Ditto.
1736 (hardwire_flush_output): Ditto.
1737 (hardwire_flush_input): Ditto.
1738 (hardwire_send_break): Ditto.
1739 (hardwire_setstopbits): Ditto.
1740 * ser-tcp.c (tcp_return_0): Ditto.
1741 (tcp_noflush_set_tty_state): Ditto.
1742 (tcp_print_tty_state): Ditto.
1743 * solib.c (match_main): Ditto.
1744 * gdbtypes.c (print_bit_vector): Ditto.
1745 (print_arg_types): Ditto.
1746 (dump_fn_fieldlists): Ditto.
1747 (print_cplus_stuff): Ditto.
1748 * symfile.h (entry_point_address): Ditto.
1749 * symfile.c (decrement_reading_symtab): Ditto.
1750 * valops.c (value_arg_coerce): Ditto.
1751 * value.h (find_function_in_inferior): Ditto.
1752 (value_allocate_space_in_inferior): Ditto.
1753 * values.c (vb_match): Ditto.
1754 * thread.c (info_thread_command): Ditto.
1755 (restore_current_thread): Ditto.
1756 (thread_apply_all_command): Ditto.
1757 (thread_apply_command): Ditto.
1758 * inferior.h (write_pc_pid): Ditto.
1759 * infrun.c (delete_breakpoint_current_contents): Ditto.
1760 * breakpoint.c (print_it_normal): Ditto.
1761 (watchpoint_check): Ditto.
1762 (print_it_done): Ditto.
1763 (print_it_noop): Ditto.
1764 (maintenance_info_breakpoints): Ditto.
1765 (create_longjmp_breakpoint): Ditto.
1766 (hbreak_command): Ditto.
1767 (thbreak_command): Ditto.
1768 (watch_commnd_1): Ditto.
1769 (rwatch_command): Ditto.
1770 (awatch_command): Ditto.
1771 (do_enable_breakpoint): Ditto.
1772 * ch-valprint.c (chill_val_print_array_elements): Ditto.
1773 * eval.c (evaluate_subexp): Ditto.
1775 (evaluate_struct_tuple): Ditto.
1776 * eval.c (init_array_element): Ditto.
1778 * alpha-tdep.c (push_sigtramp_desc): Add prototype and make static.
1779 * breakpoint.c (hw_breakpoint_used_count): Ditto.
1780 (hw_watchpoint_used_count): Ditto.
1781 * findvar.c (write_register_gen): Ditto.
1782 (read_register_pid): Ditto.
1783 * symtab.c (cplusplus_hint): Ditto.
1784 * infcmd.c (breakpoint_auto_delete_contents): Ditto.
1785 * ch-valprint.c (chill_print_type_scalar): Ditto.
1786 * gdbtypes.c (add_name): Ditto.
1787 (add_mangled_type): Ditto.
1788 (cfront_mangle_name): Ditto.
1789 * sparc-tdep.c (isbranch): Ditto.
1790 * inftarg.c (child_stop): Ditto.
1791 * win32-nat.c (child_stop): Ditto.
1792 * mac-nat.c (child_stop): Ditto.
1793 * remote-utils.c (sr_com): Ditto.
1794 * dbxread.c (process_now): Ditto.
1795 * ch-exp.c (require): Ditto.
1796 (check_token): Ditto.
1798 (parse_mode_call): Ditto.
1799 (parse_mode_or_normal_call): Ditto.
1800 * scm-lang.c (scm_lookup_name): Ditto
1801 * f-lang.c (allocate_saved_bf_node): Ditto.
1802 (allocate_saved_function_node): Ditto.
1803 (allocate_saved_f77_common_node): Ditto.
1804 (allocate_common_entry_node): Ditto.
1805 (add_common_block): Ditto.
1806 (add_common_entry): Ditto.
1807 (find_first_common_named): Ditto.
1808 (patch_common_entries): Ditto.
1809 (patch_all_commons_by_name): Ditto.
1810 (clear_bf_list): Ditto.
1811 (get_bf_for_fcn): Ditto.
1812 (clear_function_list): Ditto.
1813 * scm-exp.c (scm_istr2int): Ditto.
1814 (scm_istring2number): Ditto.
1815 * scm-valprint.c (scm_inferior_print): Ditto.
1816 * f-typeprint.c (print_equivalent_f77_float_type): Ditto.
1817 * f-valprint.c (f77_get_dynamic_length_of_aggregate): Ditto.
1818 (f77_create_arrayprint_offset_tbl): Ditto.
1819 (f77_print_array_1): Ditto.
1820 (f77_print_array): Ditto.
1821 (list_all_visible_commons): Ditto.
1822 (there_is_a_visible_common_named): Ditto.
1823 * mdebugread.c (ecoff_relocate_efi): Ditto.
1824 * callback.c (os_close): Ditto.
1825 (os_get_errno): Ditto.
1830 (os_read_stdin): Ditto.
1832 (os_write_stdout): Ditto.
1837 (os_shutdown): Ditto.
1839 (os_printf_filtered): Ditto.
1841 * scm-lang.h (scm_parse): Change old style decl to prototype.
1842 * config/alpha/tm-alphalinux.h (alpha_linux_sigtramp_offset): Ditto.
1843 * top.c (init_proc): Ditto.
1844 (query_hook): Ditto.
1845 (error_hook): Ditto.
1846 * f-lang.c (c_value_print): Ditto.
1847 * ch-exp.c (parse_expression): Ditto.
1848 (parse_primval): Ditto.
1849 (parse_untyped_expr): Ditto.
1850 (parse_opt_untyped_expr): Ditto.
1852 * config/sparc/tm-sparc.h (sparc_init_extra_frame_info): Ditto.
1853 (sparc_frame_saved_pc): Ditto.
1854 (sparc_push_dummy_frame): Ditto.
1855 (sparc_pop_frame): Ditto.
1856 * defs.h (fclose): Ditto.
1858 (error_hook): Ditto.
1860 * arc-tdep.c (single_step): Change arg to type "enum target_signal".
1861 * rs6000-tdep.c (single_step): Ditto.
1862 * sparc-tdep.c (single_step): Ditto.
1864 * breakpoint.c (cleanup_executing_breakpoints): Change unused arg type
1865 to PTR which is what make_cleanup expects.
1866 * utils.c (null_cleanup): Change arg type to PTR.
1867 * defs.h (null_cleanup): Change prototype to match actual function.
1868 * config/sparc/tm-sparc.h (struct frame_info): Move forward decl.
1869 * ch-valprint.c (chill_val_print): Cast 2nd arg of
1870 chill_print_type_scalar to LONGEST.
1871 * infrun.c (wait_for_inferior): Have empty switch case for
1872 BPSTAT_WHAT_CHECK_SHLIBS when SOLIB_ADD is not defined.
1873 (stop_on_solib_events): Only needed if SOLIB_ADD is defined.
1874 * infcmd.c (attach_command): Only need auto_solib_add if SOLIB_ADD
1876 * symfile.c (generic_load): Scan long int using a long int spec,
1878 * infptrace.c (udot_info): Only need local variables if KERNEL_U_SIZE
1880 (fetch_register): Only need function if FETCH_INFERIOR_REGISTERS is
1882 * inflow.c (handle_sigio): Only need prototype when the actual
1883 function is compiled in.
1884 * valprint.c (longest_to_int): Expand error message to be
1885 separate messages for args larger than largest signed int
1886 and args smaller than smallest signed int.
1887 * valprint.c (print_longest): Fix problems with support for case
1888 where compiler supports type "long long" but the runtime doesn't
1889 support printing them with "%ll".
1890 * scm-valprint.c (scm_scmlist_print, scm_scmval_print): Change
1891 return types to void since we don't actually return anything
1892 meaningful and callees ignore the values anyway.
1893 * procfs.c (modify_inherit_on_fork_flag): Enclose pr_flags in PIOCSET
1895 (modify_run_on_last_close_flag): Ditto.
1896 (wait_fd): Enclose local variables "num_fds" and "i" LOSING_POLL
1898 * alpha-tdep.c (push_sigtramp_desc): Return proc_desc rather than
1900 * infrun.c (wait_for_inferior): Ensure random_signal is not used
1902 * valops.c (call_function_by_hand): Ensure struct_addr is not used
1904 * breakpoint.c (watch_command_1): Ensure prev_frame is not used
1906 * utils.c (vfprintf_maybe_filtered): Change second arg from "char *"
1908 start-sanitize-gdbtk
1909 * gdbtk.c (gdb_fetch_registers): Cast fourth arg to map_arg_registers
1910 to proper pointer type, from int.
1911 (gdbtk_query): Change first arg to "const char *" from "char *".
1913 * infptrace.c (udot_info): Add two dummy args so that the type is
1914 correct for passing to add_info.
1915 * f-lang.c (saved_fcn): Move decl to head of file so it can be used
1917 (saved_bf_symnum): Ditto.
1918 (SAVED_FUNCTION): Ditto.
1919 (SAVED_FUNCTION_PTR): Ditto.
1921 (SAVED_BF_PTR): Ditto.
1922 * ch-exp.c (parse_named_record_element): Build error message in
1923 temporary buffer before passing it to expect, rather than passing
1924 wrong number of args to expect.
1925 * demangle.c (set_demangling_style): Call set_demangling_command with
1926 correct number of arguments.
1927 * inferior.h (terminal_init_inferior_with_pgrp): Change arg type to
1928 int to match actual function.
1929 (os_isatty): Call fdmap with right number of arguments, was missing
1930 the host_callback* arg.
1931 * target.c (cleanup_target): Prototype all functions casts.
1932 * target.h (one_stepped, single_step): Declare here and convert
1933 single_step to prototype.
1934 * infrun.c (one_stepped, single_step): Don't declare externs
1935 here, they have moved to target.h.
1936 * eval.c (init_array_element): Declare previously undeclared
1937 last two args as LONGEST.
1938 * dcache.c (dcache_xfer_memory): Change xfunc decls to prototype form.
1939 start-sanitize-gdbtk
1940 * gdbtk.c (register_changed_p): Remove unused local variable "buf".
1945 * dsrec.c (load_srec): Protect ANSI style function parms with PARAMS.
1949 * Makefile.in (os9kread.o): Remove dependency on partial-stab.h.
1950 * dbxread.c (read_dbx_symtab end_psymtab), partial-stab.h: Don't
1951 use partial_symtab->textlow==0 as a flag, as 0 is a legitimate
1952 text address. Use a seperate flag (textlow_not_set) instead.
1953 This makes stabs in ELF .o files work a lot better.
1954 * mdebugread.c xcoffread.c: Define textlow_not_set for
1956 * stabsread.h (end_psymtab): Add textlow_not_set arg to prototype.
1958 start-sanitize-gdbtk
1961 * gdbtk.tcl (files_command): Reorder the binding tags for
1962 the listbox widget to avoid referencing the listbox after
1963 the containing widget has been destroyed by the action of
1969 * dwarf2read.c (struct filenames): Change internal "struct file"
1970 to "struct fileinfo" to avoid conflict with "struct file" in
1971 <sys/file.h> on HPUX and Solaris.
1973 start-sanitize-gdbtk
1976 * gdbtk.tcl (delete_expr): Unset corresponding element of
1977 expr_update_list when destroying an expression.
1978 (create_expr_window): Initialize expr_num, delete_expr_num,
1979 and expr_update_list here when each new expression window
1980 is created, rather than once at startup.
1985 * dwarf2read.c: New file, DWARF 2 reader originally contributed by
1986 Brent Benson, with additions by Gary Funck and Jerry Kreuscher.
1987 * Makefile.in (COMMON_OBS): Add dwarf2read.o.
1988 (SFILES): Add dwarf2read.c.
1989 (dwarf2read.o): Add build rule.
1990 * symfile.h (dwarf2_has_info, dwarf2_build_psymtabs): Declare
1992 * elfread.c (elf_symfile_read): Call them.
1993 (elf_symtab_read) [HARRIS_TARGET]: Skip some special symbols.
1997 * symfile.c (symfile_bfd_open):
1998 * exec.c (exec_file_command): for __GO32__ and __WIN32__ systems,
1999 free the user from having to type the .exe extension.
2003 * mon960-rom.c: Shorten the mon960_inits string to a single
2004 carriage return; this prevents a hang on connecting immediately
2005 after powerup, when MON960 is attempting autobaud detection.
2009 * a29k-tdep.c (get_saved_register): Allow PC to be modified
2010 when innermost frame is selected, but not in outer frames.
2014 * command.c (do_setshow_command): Don't segfault when showing
2015 var_string and var_string_noescape vars that are NULL.
2019 * win32-nat.c (handle_load_dll): dos_path_to_unix_path renamed to
2020 cygwin32_conv_to_posix_path.
2021 (child_create_inferior): unix_path_to_dos_path renamed to
2022 cygwin32_conv_to_win32_path. Rewrite code to translate PATH.
2026 * defs.h printcmd.c: Create global disassemble_info structure
2028 start-sanitize-gdbtk
2029 * gdbtk.c (gdb_disassemble): Setup di.mach from
2030 tm_print_insn_info.mach, and set endian from TARGET_BYTE_ORDER.
2032 * i386-tdep.c (set_assembly_language_command): set
2033 tm_print_insn_info.mach to the appropriate value for 386 or 8086
2035 * printcmd.c (print_insn): Move init of disassembler_info to
2036 _initialize_printcmd. Set endian for disassembler here.
2037 * sparc-tdep.c: Set tm_print_insn_info.mach as appropriate to
2038 select sparc/sparclite.
2039 * config/sparc/{tm-sparc.h tm-sparclite.h}: Get rid of
2040 TM_PRINT_INSN. Set TM_PRINT_INSN_MACH to
2041 bfd_mach_sparc/bfd_mach_sparc_sparclite.
2045 * hpread.c (hpread_lookup_type): Use xmmalloc/xmrealloc rather
2046 than xmalloc/xrealloc.
2050 * objfiles.c (map_to_file): Error return from mmalloc_findbase is
2051 a NULL pointer, not a -1.
2055 * i386-tdep.c (set_assembly_language_command): New routine to
2056 select between i386 and i8086 instruction sets for disassembly.
2057 New command `set assembly-language {i386 i8086}'.
2061 * monitor.c (monitor_write_memory, monitor_read_memory_single):
2062 Disable use of "long long" memory read/write commands; can't
2063 use them because we hold the values to read/write in an int
2064 variable, and because strtoul fails on values that exceed the
2065 size of a long. This fixes breakpoint problems on MON960.
2069 * config/m68k/xm-hp300hpux.h (HAVE_MMAP): Remove definition.
2070 * config/pa/xm-hppah.h (HAVE_MMAP): Ditto.
2074 * Makefile.in (MMALLOC_CFLAGS): Eliminate intermediate MMALLOC_DISABLE
2075 and MMALLOC_CHECK macros, and add comment indicating how host dependent
2076 makefile fragment should modify MMALLOC_CFLAGS to not use mmalloc, or
2077 to use it but to not do heap corruption checking.
2078 * gdbserver/Makefile.in: Ditto.
2079 * utils.c (init_malloc): Replace warning() use with direct call of
2080 fprintf_unfiltered, since current_target has not yet been set and thus
2081 we cannot use warning(). If we try to use mmcheck and it fails,
2082 suggest that this configuration needs NO_MMCHECK or MMCHECK_FORCE
2083 defined. Other small mmalloc related cleanups.
2084 * config/sparc/sun4os4.mh (MMALLOC_CFLAGS): Define MMCHECK_FORCE to 1.
2085 * config/alpha/alpha-osf2.mh (MMALLOC_CFLAGS): Set to -DNO_MMCHECK.
2087 * config/sparc/xm-sun4os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
2088 * config/i386/xm-i386v4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
2089 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
2090 * config/m68k/xm-hp300hpux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
2091 * config/m68k/xm-m68kv4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT);
2092 * config/m68k/xm-sun3os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
2093 * config/pa/xm-hppah.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
2094 * config/sparc/xm-sun4sol2.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
2095 Remove obsolete defines.
2097 * config/alpha/alpha-linux.mh (MMALLOC_DISABLE):
2098 * config/alpha/alpha-osf1.mh (MMALLOC_DISABLE):
2099 * config/rs6000/rs6000.mh (MMALLOC_DISABLE):
2100 * config/rs6000/aix4.mh (MMALLOC_DISABLE):
2101 * config/powerpc/aix4.mh (MMALLOC_DISABLE):
2102 * config/powerpc/aix.mh (MMALLOC_DISABLE):
2103 * config/ns32k/ns32km3.mh (MMALLOC_DISABLE):
2104 * config/mips/mipsm3.mh (MMALLOC_DISABLE):
2105 * config/mips/decstation.mh (MMALLOC_DISABLE):
2106 * config/m88k/cxux.mh (MMALLOC_DISABLE):
2107 * config/i386/i386mk.mh (MMALLOC_DISABLE):
2108 * config/i386/i386m3.mh (MMALLOC_DISABLE):
2109 * config/i386/i386gnu.mh (MMALLOC_DISABLE):
2110 Use MMALLOC_CFLAGS instead.
2114 * h8300-tdep.c: Remove some outdated comments.
2115 (h8300_skip_prologue): Rework to be more correct for the H8/300H.
2116 Handle stm.l insns for the H8/S.
2117 (examine_prologue): Likewise.
2121 * ser-mac.c (mac_close): Change a typo SetSetBuf to SerSetBuf.
2125 * mon960-rom.c (mon960_open): Add floating point detection to
2126 prevent hang on non-FPU processors (PR 9775).
2127 (mon960_cmds): Swap setmem.cmdw and setmem.cmdl to fix problem
2128 setting breakpoints and improve loading speed.
2132 * coffread.c (record_minimal_symbol): Don't presave name string
2133 on symbol_obstack before passing to prim_record_minimal_symbol.
2134 It now handles saving the string itself.
2135 * dbxread.c (read_dbx_dynamic_symtab): Ditto.
2136 * mipsread.c (read_alphacoff_dynamic_symtab): Ditto.
2137 * os9kread.c (record_minimal_symbol): Ditto.
2138 * solib.c (solib_add_common_symbols): Ditto.
2140 * coffread.c (coff_symtab_read): Don't presave name string on
2141 symbol_obstack before passing to prim_record_minimal_symbol_and_info.
2142 It now handles saving the string itself.
2143 * dbxread.c (record_minimal_symbol): Ditto.
2144 * elfread.c (record_minimal_symbol_and_info): Ditto.
2146 * dstread.c (record_minimal_symbol): Remove static function that just
2147 called prim_record_minimal_symbol with the same args (after change to
2148 prim_record_minimal_symbol to do it's own name string saves).
2149 * nlmread.c (record_minimal_symbol): Ditto.
2150 * somread.c (record_minimal_symbol): Ditto.
2152 * hpread.c (hpread_read_enum_type): Save symbol name on symbol obstack.
2153 (hpread_read_function_type): Ditto.
2154 (hpread_process_one_debug_symbol): Ditto.
2155 * mdebugread.c (parse_symbol): Ditto.
2156 (new_symbol): Ditto.
2157 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
2159 * coffread.c (process_coff_symbol): Use obsavestring to save
2160 SYMBOL_NAME, rather than obstack_copy0.
2161 * dstread.c (create_new_symbol): Ditto
2162 * symfile.c (obconcat): Ditto.
2163 * stabsread.c (patch_block_stabs): Ditto.
2164 * xcoffread.c (SYMNAME_ALLOC): Ditto.
2166 * symfile.c (obsavestring): Update comments
2167 * solib.c (solib_add_common_symbols): Remove local var origname.
2171 * configure: Re-build with autoconf-2.10.
2173 * sparcl-tdep.c (_initialize_sparc_tdep) config/sparc/tm-sparc.h,
2174 config/sparc/tm-sparclite.h: Initialize tm_print_insn from
2175 TM_PRINT_INSN, which comes from the tm file.
2179 * coffread.c, dbxread.c, elfread.c, mipsread.c, nlmread.c,
2180 os9kread.c: Replace identical sym_offsets functions with
2181 default_symfile_offsets.
2182 * somread.c (som_symfile_offsets): Use new SIZEOF_SECTION_OFFSETS
2183 macro to allocate section_offsets.
2184 * symfile.c (default_symfile_offsets): New function.
2185 * symfile.h: Declare default_symfile_offsets.
2186 * symtab.h: Define SIZEOF_SECTION_OFFSETS macro to
2187 simplify allocation of section_offsets.
2191 * Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
2192 * configure configure.in: Only make sol-thread.o for native.
2193 Also, switch to dlopened libthread_db.so.1.
2194 * sol-thread.c: Switch to using dlopen to get the thread_db
2199 * configure, configure.in: Change test for libthread_db to only
2200 work for configs where build/host/target are the same.
2204 * config/powerpc/{linux.mh,xm-linux.h}: New files, for Linux on
2207 * configure.in (powerpc-*-linux): Add Linux, System V, and ELF
2209 * configure: Regenerate.
2214 * mpw-make.sed: Add lines to whack out autoconf hook
2219 * remote-e7000.c (e7000_stop): New function.
2223 * configure, configure.in: Add target sparclet.
2224 * monitor.h, monitor.c: Added monitor flags MO_NO_ECHO_ON_SETMEM
2225 (don't expect echo on setmem command), MO_RUN_FIRST_TIME (if
2226 command to start process running on target is different from one
2227 to continue execution), MO_HEX_PREFIX (if addresses from monitor
2228 have a "0x" prefix).
2229 * monitor.c, parse.c, sparc-tdep.c: Don't require strings in the
2230 registers array. This is to allow NULLs to be place holders in
2231 the tm-*.h file so that only minor changes are needed when a new
2232 processor is introduced (eg, one without floating point).
2233 * sparc-tdep.c: Conditionally remove dependancies on floating
2235 * sparclet-rom.c, config/sparc/sparclet.mt,
2236 config/sparc/tm-sparclet.h: New files for target sparclet.
2237 * symfile.c (load_command): Add option for 2nd parameter; a load
2238 offset added to the vma of each section.
2242 * main.c (main): Add option "l" for setting remote_timeout.
2246 * remote-e7000.c, remote.c, target.h, top.c: Add set option
2247 "remote_timeout" for setting remote_timeout. Add set option
2248 "use_hard_breakpoints" for setting hardware .vs. memory
2253 * remote-e7000.c (e7000_parse_device): New function.
2254 Add option "tcp_remote" to target command if using
2255 tcp to connect to a remote host which is then connected
2256 via serial port to the e7000 (for exampole, a port master).
2257 (e7000_open): Change to call e7000_parse_device.
2261 * monitor.c (monitor_debug): Fix remotedebug buffering.
2265 * config/i386/cygwin32.mh, config/powerpc/cygwin32.mh
2266 (NATDEPFILES): Add a space.
2270 * gdbtypes.c (create_array_type): If TYPE_LENGTH (result_type)
2271 is zero, set TYPE_FLAG_TARGET_STUB to force reevaluation of the type.
2273 * ch-exp.c (calculate_array_length): Function removed.
2277 * remote-e7000.c (e7000_read_inferior_memory_large): New function.
2278 (e7000_xfer_inferior_memory): Call it.
2282 * gdb/gdbserver/Makefile.in (docdir): Removed.
2286 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir):
2287 Use autoconf set values.
2289 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
2290 * nlm/Makefile.in (bindir, libdir, datadir, mandir, infodir,
2291 includedir): Use autoconf set values.
2293 * nlm/configure.in (AC_PREREQ): autoconf 2.5 or higher.
2294 * nlm/configure: Rebuilt.
2295 * gdb/gdbserver/Makefile.in (datadir): Set to $(prefix)/share.
2299 * stabsread.c (read_cfront_member_functions): add type
2303 * win32-nat.c: #include <unistd.h>.
2304 (unix_paths_to_dos_paths, dos_paths_to_unix_paths): Delete.
2305 (child_create_inferior): Convert only env var PATH to win32 style.
2306 (set_pathstyle_dos): Delete.
2307 (_initialize_inftarg): Delete dos-path-style command.
2309 start-sanitize-gdbtk
2312 * gdbtk.tcl (create_register_windows): Include missing '$'s.
2313 Add global declarations for various reg_format_* variables.
2314 * gdbtk.tcl (populate_register_window): Make initial window one
2315 line taller to account for new column header line.
2319 * gdbtk.c (get_register): Support for printing raw formats.
2320 * gdbtk.tcl: Add hint for using debug_interface.
2321 (center_window, add_breakpoint_frame, delete_breakpoint_frame):
2322 Enclose arg in braces for consistency.
2323 (create_registers_window, populate_reg_window, update_registers):
2324 Major rewrite to support displaying multiple formats in the register
2326 (init_reg_info): New function.
2327 (recompute_reg_display_list): Reset reg_display_list, start
2328 register display lines at line 2.
2333 * configure.in: Revise sol-thread.o test.
2334 * configure: Regenerated.
2336 * source.c (find_source_lines): Reassign size to result of read.
2338 start-sanitize-gdbtk
2341 * gdbtk.tcl (gdbtk_tcl_readline_begin): Handle backspace to
2342 avoid backing up over prompt. At every input, make sure insert
2343 point is at least after command start, handle control-u to delete
2345 (tclsh): Handle backspace to avoid backing up over prompt. Handle
2346 control-u to delete current input line.
2350 * configure.in: disable gdbtk for *cygwin32* hosted compiles
2351 * configure: regenerated with autoconf 2.8
2356 * h8300-dep.c (gdb_print_insn_h8300): Handle the H8/S.
2357 (h8300_command): Likewise.
2358 (set_machine): Likewise.
2359 (set_machine_hook): Likewise.
2360 (_initialize_h8300m): Likewise.
2362 * config/h8300/tm-h8300.h (h8300smode): Declare.
2366 * somsolib.c (som_solib_create_inferior_hook): Handle tracking
2367 of shl_load calls for hpux10.
2371 * config.in: Regenerated.
2372 * acconfig.h (HAVE_THREAD_DB_LIB): Added entry.
2374 * configure: Regenerated.
2375 * aclocal.m4 (CY_AC_PATH_TCLH, CY_AC_PATH_TKH): Use odd names to
2376 avoid name clashes with SunOS headers.
2381 * bcache.c (print_bcache_statistics): Avoid divide-by-zero
2382 exception if one or more objfile has no symbols, such as when
2383 a dynamic library has been stripped.
2387 * Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
2388 * configure configure.in: Only make sol-thread.o for native.
2389 Also, switch to dlopened libthread_db.so.1.
2390 * sol-thread.c: Switch to using dlopen to get the thread_db
2395 * config/sparc/{xm-sun4sol2.h,xm-sun4os4.h} (MMAP_BASE_ADDRESS):
2396 Change from 0xE0000000 to 0xC0000000.
2400 * config/powerpc/xm-solaris.h: Initial version of support for
2405 * configure.in (configdirs): Force 4100 builds to use 4300 GDB
2407 * configure: Rebuild.
2409 * config/mips/vr4300el.mt (SIM_OBS): Include simulator in
2410 little-endian builds.
2414 * inftarg.c (child_thread_alive): Protect declaration with
2415 #ifndef CHILD_THREAD_ALIVE.
2417 * source.c (find_source_lines): Check the time on the symtab's bfd if
2418 it exists, else check the time on the exec_bfd.
2422 * dsrec.c (make_srec): Fix calculation of address size
2423 to allow addresses less than 0x100.
2427 * ch-exp.c (ch_lex): In case of LOC_TYPEDEF call calculate_array_length.
2431 * remote-mips.c: cannot use EINVAL for breakpoint test since
2432 its value varies for different hosts (e.g. go32's is 19, while
2433 sunos is 22). Changed to hardcoded 22 since that is what the
2438 * configure: Regenerated.
2439 * aclocal.m4 (CY_AC_PATH_TCLH): Don't use AC_TRY_RUN.
2440 (CY_AC_PATH_TKH): Don't use AC_TRY_RUN.
2444 * solib.c (solib_absolute_prefix, solib_search_path): New variables.
2445 (_initialize_solib): Add set/show commands for those variables.
2446 (solib_map_sections): Implement searching using them.
2452 * NEWS: Add Alpha Linux as a new native configuration.
2454 * mdebugread.c (parse_symbol): When we find a malloc() symbol with
2455 return type VOID, assume no debugging info is available for that
2456 object file and patch the return value into VOID *. Otherwise,
2457 operations requiring an implicit call to malloc() will fail.
2459 * infrun.c (wait_for_inferior): The criterion to detect entering a
2460 sigtramp handler is now: (a) the current pc is inside a sigtramp
2461 handler, (b) the previous pc is not in a sigtramp handler, and (c)
2462 the current stack pointer is "inner" than the old one. Condition
2463 (c) is new to avoid mistaking a return from a signal handler into
2464 sigtramp as a new sigtramp invocation.
2466 * dcache.c (struct dcache_block): Declare addr as CORE_ADDR. An
2467 int may not be big enough to hold an address.
2468 (dcache_hit): Ditto.
2469 (dcache_peek_byte): Fix indentation.
2471 * configure.in (alpha-*-linux*): Add target.
2472 * configure: Rebuild
2474 * config/alpha/tm-alpha.h (PROC_DESC_IS_DYN_SIGTRAMP): New macro.
2475 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2476 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
2477 (SIGCONTEXT_ADDR): Ditto.
2478 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
2480 * config/alpha/alpha-linux.mh: New file.
2481 * config/alpha/alpha-linux.mt: Ditto.
2482 * config/alpha/nm-linux.h: Ditto.
2483 * config/alpha/tm-alphalinux.h: Ditto.
2484 * config/alpha/xm-alphalinux.h: Ditto.
2485 * config/alpha/xm-alphaosf.h: Renamed from xm-alpha.h.
2486 * config/alpha/alpha-osf1.mh (XM_FILE): Change from xm-alpha.h to
2488 * config/alpha/alpha-osf2.mh: Ditto.
2490 * blockframe.c (find_pc_partial_function): Pass PC to
2491 SIGTRAMP_START and SIGTRAMP_END macros for the benefit of systems
2492 that detect sigtramp code via designated code sequences (as is the
2493 case for Linux/Alpha, for example).
2495 * config/i386/tm-i386bsd.h: Change SIGTRAMP_START and SIGTRAMP_END
2496 to ignore new PC argument.
2497 * config/m68k/tm-hp300bsd.h: Ditto.
2498 * config/vax/tm-vax.h: Ditto.
2500 * alpha-tdep.c (alpha_linux_sigtramp_offset): New function.
2501 (alpha_osf_skip_sigtramp_frame): Ditto.
2502 (push_sigtramp_desc): Ditto.
2503 (alpha_find_saved_regs): Use SIGCONTEXT_ADDR macro to extract
2504 sigcontext address from frame.
2505 (alpha_saved_pc_after_call): When in sigtramp, use
2506 alpha_frame_saved_pc() instead of read-register().
2507 (after_prologue): When inside a dynamically generated sigtramp
2508 function, there is no prologue, so return address of first
2510 (alpha_in_prologue): Fix typo in comment.
2511 (find_proc_desc): Use macro DYNAMIC_SIGTRAMP_OFFSET to determine
2512 whether we're inside a dynamicaly generated sigtramp function. If
2513 so, create and push and appropriate procedure descriptor.
2514 (alpha_frame_chain): Use macro FRAME_PAST_SIGTRAMP_FRAME to obtain
2515 the frame past a sigtramp frame (if the current frame is indeed a
2517 (init_extra_frame_info): Don't read next frame register off of
2518 stack-pointer when inside a dynamiccaly generated sigtramp.
2519 (alpha_pop_frame): Also unlink and destroy procedure descriptors
2520 created for dynamically generated sigtramp functions.
2522 * alpha-nat.c: When compiling under Linux, include <asm/reg.h> and
2523 <alpha/ptrace.h> instead of <machine/reg.h>
2527 * gnu-nat.c (inf_validate_task_sc):
2528 Give terminal to gdb while asking question.
2529 (inf_resume): Don't validate the task suspend-count while execing.
2533 * gnu-nat.c (inf_validate_task_sc): Query user before clearing any
2534 additional suspend count.
2535 (S_proc_wait_reply, gnu_attach): Don't call inf_validate_task_sc.
2536 (inf_resume): Call inf_validate_task_sc here.
2537 (gnu_resume): Call inf_update_procs to ensure noticing new threads.
2541 * gnu-nat.c (gnu_create_inferior: attach_to_child): Return PID.
2545 * h8300-tdep.c (IS_PUSH): Refine.
2546 (IS_MOVE_FP, IS_MOV_SP_FP): Accept H8/300H varaints.
2547 (IS_SUB4_SP, IS_SUBL_SP): New macros.
2548 (h8300_skip_prologue): Handle H8/300H prologue code sequences.
2549 (examine_prologue): Handle addresses from 0x010000 to 0xffffff
2550 when in H8/300H mode. Get the return pointer's address correctly
2551 for the H8/300H. Handle H8/300H prolouge code sequences.
2553 * symfile.c (generic_load): Print the starting address
2554 of the file just loaded.
2558 * mpw-make.sed: Edit @THREAD_DB_OBS@ out of makefile.
2562 * breakpoint.c (bpstat_do_actions): Avoid endless recursion
2563 if a `source' command is contained in bs->commands.
2565 * infrun.c (wait_for_inferior): Update step_frame_address when
2566 stepping into a new line.
2569 * breakpoint.c (breakpoint_1): Add shlib_disabled case to
2574 * dsrec.c (load_srec): Add WAITACK parameter, for machines
2575 like EST visionICE that send back an ACK after each S-record.
2576 * monitor.c (monitor_wait_srec_ack): New function.
2577 (monitor_load): Pass monitor_wait_srec_ack to load_srec
2578 if the monitor's MO_SREC_ACK flag is set.
2579 * monitor.h: Define MO_SREC_ACK flag.
2580 * remote-est.c (est_cmds): Add MO_SREC_ACK flag.
2581 * sh3-rom.c (sh3_load): Accomodate change in load_srec prototype.
2582 * srec.h: Add WAITACK parameter to load_srec prototype.
2584 Sun May 19 21:22:00 1996 Rob Savoye <rob@chinadoll>
2586 * config/sparc/sparclite.mt: Add the sparc simulator.
2590 * defs.h (read_command_lines, query_hook): Update prototypes.
2591 (readline_begin_hook, readline_hook, readline_end_hook): Declare.
2592 * breakpoint.c (commands_command): Build message in temporary buffer
2593 and pass that, as well as tty control flag, to read_command_lines.
2594 * top.c (readline_begin_hook, readline_hook, readline_end_hook):
2596 (command_loop): Check for non-NULL instream before looping.
2597 (command_line_input): Use readline_hook when appropriate, to get
2598 user input from a GUI window.
2599 (read_next_line): Also build prompt if getting user input from a GUI.
2600 (recurse_read_control_structure): Fix typo in comment.
2601 (read_command_lines): Use passed in prompt and tty flag to decide how
2602 to build message. Use readline_begin_hook when appropriate, to set
2603 up a GUI interaction window. Just return head, whether NULL or not,
2604 after using readline_end_hook to complete GUI interaction.
2605 (define_command, document_command): Build message in a temporary
2606 buffer and pass it to read_command_lines, along with tty flag.
2608 start-sanitize-gdbtk
2609 * gdbtk.c (gdbtk_readline_begin, gdbtk_readline, gdbtk_readline_end):
2611 (tk_command_loop): Set instream to NULL to enable Tk user interaction.
2612 (gdbtk_init): Set readline_begin_hook, readline_hook,
2613 and readline_end_hook.
2614 * gdbtk.tcl (gdbtk_tcl_readline_begin, gdbtk_tcl_readline,
2615 gdbtk_tcl_readline_end): New functions.
2616 (tclsh): Pack scroll bar on right side of window, not left.
2621 * blockframe.c (frameless_look_for_prologue):
2622 Add FUNCTION_START_OFFSET only if func_start is non-zero.
2623 * minsyms.c (lookup_minimal_symbol_by_pc): Return NULL if
2624 pc is not in a known section.
2625 * stack.c (print_frame_info): Remove check for fi->pc in known
2626 section, now handled by lookup_minimal_symbol_by_pc.
2628 start-sanitize-gdbtk
2631 * gdbtk.tcl (create_command_window): Change a misspelled "get"
2632 to the intended "cget".
2633 (delete_line): Fix so it deletes the current line at the
2639 * sh-stub.c: New file, was config/sh/stub.c.
2641 start-sanitize-gdbtk
2644 * gdbtk.tcl (gdb_prompt): Set this early on.
2645 (create_command_window): Use gdb_prompt rather than "(gdb) ".
2646 (gdbtk_tcl_preloop): Proc executed just prior to Tk main loop.
2647 (tclsh): If an evaluation window already exists, just bring it
2648 to the front instead of trying to create another.
2649 * gdbtk.c (tk_command_loop): New function.
2650 (gdbtk_init): Call tk_command_loop rather than Tk_MainLoop.
2654 * gdbtk.tcl (evaluate_tcl_command, tclsh): New functions that
2655 implement a tcl evaluation window for gdbtk maintainers to use.
2659 * gdbtk.tcl (files_command): Correctly insert list of files into
2662 * gdbtk.tcl (files_command): listbox command no longer accepts
2667 * gdbtk.tcl (create_command_window): If command window's buffer
2668 is disabled, don't execute any of the key bindings.
2673 * top.c (read_next_line): Fix thinkos. From Donn Seeley.
2675 * coffread.c (coff_symtab_read): Handle C_LABEL symbols like
2677 * h8300-tdep.c (h8300_pop_frame): Reset $sp and $pc correctly.
2678 Flush cached frames just before exiting.
2679 * remote-sim.c (gdbsim_resume): Complain if the program isn't
2681 * config/h8300/tm-h8300.h (BELIEVE_PCC_PROMOTION): Define.
2685 * procfs.c (procfs_thread_alive procfs_stop): Make static.
2686 (procfs_pid_to_str): New routine to print out thread id's in an
2687 intelligible manner.
2688 * sol-thread.c (sol_thread_fetch_registers): Re-order manner in
2689 which supply_register is called to fix bug with writing
2691 * config/sparc/tm-sun4sol2.h: Define default for
2692 target_pid_to_str in case host lacks libthread_db.
2696 * Makefile.in config.in configure configure.in
2697 config/sparc/nm-sun4sol2.h config/sparc/sun4sol2.mh
2698 config/sparc/tm-sun4sol2.h: Use autoconf to config Solaris thread
2699 and pthread support, since pre-2.5 systems don't come with
2702 * procfs.c (info_proc): Use int instead of id_t. Old versions of
2703 Irix don't seem to define this.
2705 start-sanitize-gdbtk
2708 * gdbtk.c (tk_command): Catch case where no argument is given
2709 since this will cause the tcl interpreter to dump core.
2714 * top.c (execute_control_command, case while_control): Allow
2715 a while command to be interrupted.
2719 * sol-thread.c: More cleanup, add comments.
2720 (sol_thread_resume): Prevent people from trying to step
2722 (sol_thread_wait sol_thread_fetch_registers
2723 sol_thread_store_registers): Remove unnecessary check for
2724 sol_thread_active. These routines won't get called unless threads
2730 * sh-tdep.c (sh_reg_names, sh3_reg_names): Add empty names for
2732 (sh3e_reg_names): New register name array.
2733 (sh_processor_type_table): Add sh3e processor type.
2734 * config/sh/tm-sh.h (REGISTER_VIRTUAL_TYPE): Fix test.
2735 (REGISTER_NAMES, NUM_REGS, NUM_REALREGS, etc): Adjust for
2736 full set of registers.
2737 * remote-e7000.c (want_sh3, want_sh3_nopc): New globals.
2738 (e7000_fetch_registers, e7000_wait): Use them.
2739 * sh3-rom.c (sh3_regnames): Add float registers.
2740 (sh3e_cmds, sh3e_ops): New globals.
2741 (sh3e_open): New function.
2742 (_initialize_sh3_rom): Rename from _initialize_sh3, set up
2747 * sol-thread.c: Cleanup. gcc -Wall fixes. Add prototypes.
2748 Print out messages instead of codes for thread_db errors. Make
2749 access macros for thread and lwp manipulation. Make cleanups to
2750 fixup inferior_pid in case of errors.
2754 * aclocal.m4: Remove unused definition of AC_C_CROSS.
2755 * configure.in: Add powerpcle-*-solaris* host and target config
2756 so April 30th change does not get lost next time configure is
2761 * Makefile.in, breakpoint.c, corelow.c, fork-child.c, inflow.c,
2762 infrun.c, mac-nat.c, procfs.c, remote.c, sol-thread.c, thread.c,
2763 win32-nat.c, config/nm-lynx.h: Rename thread.h to gdbthread.h to
2764 avoid conflict with Solaris /usr/include/thread.h.
2768 * abug-rom.c: Config file for the older style ABug monitor that
2769 runs on the mvme13x boards.
2770 * config/m68k/monitor.mt: Add abug support for m68k cross
2775 * infcmd.c (do_registers_info): Always print the raw floating
2776 point value's bytes in big endian order, so the the leftmost bit
2777 is the most significant.
2778 * breakpoint.c (clear_momentary_breakpoints): Remove dead code
2779 that is referenced nowhere else.
2780 (set_breakpoint): Ditto.
2781 (do_enable_breakpoint): Created from enable_once_breakpoint
2782 with a couple of changes.
2783 (enable_breakpoint): Call do_enable_breakpoint with an appropriate
2784 bpdisp enum value to set disposition of breakpoint.
2785 (enable_once_breakpoint): Ditto.
2786 (enable_delete_breakpoint): Ditto.
2787 * breakpoint.h (clear_momentary_breakpoints): Remove prototype.
2788 * symtab.c (find_pc_line): Improve comments.
2789 start-sanitize-gdbtk
2790 * gdbtk.c: Fix a couple of misspellings.
2792 * xcoffread.c: Ditto.
2796 * target.c (debug_to_xfer_memory): Insert line breaks when
2797 dumping the memory block.
2801 * fork-child.c (fork_inferior), inferior.h: init_trace_fun now
2802 returns a possibly modified pid.
2803 * inftarg.c (ptrace_him): Now returns pid;
2804 * m3-nat.c (m3_trace_him): Now returns pid;
2805 * infcmd.c (run_command): Minor cleanup.
2806 * infrun.c (wait_for_inferior): Add another check for one_stepped
2807 near where we read the pc to avoid erroneously setting
2808 random_signal for multi-threaded support.
2809 * procfs.c: Add support for Solaris LWPs. Remove def of
2810 LOSING_POLL. Many cleanups... Several workarounds for Solaris
2811 lossage. System call entry and exit are now handled by
2812 dynamically registered handlers.
2813 * (syscallname): Don't barf when handed an unknown syscall
2815 * (info_proc_syscalls): Ditto.
2816 * sol-thread.c: New file. Implements Solaris thread support.
2817 * symfile.c (symbol_file_add): Add call to target_new_objfile to
2818 notify target-dependent code about new symbol tables.
2819 * (clear_symtab_users): Call target_new_objfile to notify it of
2820 the removal of all symbol tables.
2821 * target.c (push_target): Make sure that to_close is non-zero
2823 * target.h (target_new_objfile): Provide default.
2824 * config/alpha/nm-osf2.h: Define LOSING_POLL because this version
2825 of OSF can't hack using poll with /proc.
2826 * config/sparc/nm-sun4sol2.h (target_new_objfile): Define to be
2827 sol-thread-new-objfile.
2828 * config/sparc/sun4sol2.mh: Add sol-thread.o to NATDEFFILES, and
2829 add libthread_db.so.1 to NAT_CLIBS.
2830 * config/sparc/tm-sun4sol2.h: Define PIDGET, TIDGET, and
2835 * procfs.c (remove_fd): Fix copy of fds to fill hole left after
2836 removal of the requested fd.
2840 * rs6000-tdep.c (_initialize_rs6000_tdep): Don't do XCOFF specific
2843 * config/powerpc/tm-ppc-eabi.h: Define ELF_OBJECT_FORMAT.
2845 start-sanitize-gdbtk
2848 * gdbtk.tcl (debug_interface): New global, use to aid debugging.
2849 (insert_breakpoint_tag, delete_breakpoint_tag): Fix range.
2850 (file_popup_menu): Delete, never used.
2851 (listing_window_popup): Rename from listing_window_button_1,
2852 remove breakpoint toggling code.
2853 (toggle_breakpoint): New procedure.
2854 (create_file_win): Bind popup menu to button 2, toggle breakpoints
2855 with button 1 in breakpoint area, add display of tagged areas if
2862 * breakpoint.h (enum bpdisp): Add del_at_next_stop.
2863 * breakpoint.c (insert_breakpoints, watchpoint_check,
2864 bpstat_stop_status): Avoid bad references to memory freed via
2865 delete_breakpoint on watchpoints going out of scope.
2866 Do not delete these watchpoints, disable them and change their
2867 disposition to del_at_next_stop instead.
2868 (breakpoint_auto_delete): Delete all breakpoints whose disposition
2869 is del_at_next_stop.
2870 (breakpoint_init_inferior): Use switch to avoid reference to
2871 already deleted breakpoint.
2875 * Makefile.in (rs6000-nat.o): Depend on xcoffsolib.h.
2876 * config/rs6000/rs6000.mh (NATDEPFILES): Move xcoffread.o ...
2877 * config/rs6000/rs6000.mt (TDEPFILES): ... to here.
2878 * xcoffsolib.c (xcoff_relocate_symtab_hook): Define and initialize.
2879 (solib_info): Call xcoff_relocate_symtab via the hook.
2880 (sharedlibrary_command): Ditto.
2881 * xcoffread.c: Remove all FAKING_RS6000 comments and defines.
2882 (xcoff_add_toc_to_loadinfo_hook): Define and initialize here.
2883 (xcoff_init_loadinfo_hook): Define and initialize here.
2884 (scan_xcoff_symtab): Call xcoff_add_toc_to_loadinfo via the hook.
2885 (xcoff_initial_scan): Call xcoff_init_loadinfo via the hook.
2886 * xcoffsolib.h (xcoff_relocate_symtab_hook): Declare extern func.
2887 * rs6000-tdep.c (_initialize_rs6000_tdep): Add initializations
2888 of xcoff_add_toc_to_loadinfo_hook and xcoff_init_loadinfo_hook.
2889 * rs6000-nat.c (_initialize_core_rs6000): Add initialization
2890 of xcoff_relocate_symtab_hook.
2894 * configure (powerpcle-*-solaris*): Add Solaris support.
2896 * config/powerpc/{solaris.m[ht],tm-solaris.h}: New files for
2901 * c-valprint.c (c_val_print): Fix printing for arrays defined
2906 Support for bi-endian remote breakpoints.
2907 * remote.c (big_break_insn, little_break_insn): New globals.
2908 (break_insn): Remove.
2909 (remote_insert_breakpoint, remote_remove_breakpoint): Use own
2910 code if REMOTE_BREAKPOINT defined, otherwise call memory
2911 breakpoint functions.
2912 * config/sh/tm-sh.h (REMOTE_BREAKPOINT): Remove.
2913 (BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT): Define.
2915 * mon960-rom.c (mon960_cmds): Remove forward decl.
2916 (mon960_load): Use current_monitor instead of mon960_cmds.
2917 (mon960_regnames): Remove backslashes from line ends.
2918 (_initialize_mon960): Fix documentation string.
2922 * symfile.h (psymbol_allocation_list): Expand comments which
2923 describe the psymbol allocation list and how each field is
2928 * breakpoint.c (delete_breakpoint): Fix bpt->val, bpt->exp
2930 (breakpoint_re_set_one): Fix b->exp, b->val, b->cond storage leaks.
2932 * infcmd.c (run_command), solib.c (locate_base): Check for
2933 target_has_execution in addition to inferior_pid, a core file
2934 from a threaded program is yielding a non-zero inferior_pid.
2936 * sparc-tdep.c (get_saved_register): Handle window registers
2937 in a dummy frame correctly.
2941 * Makefile.in (CLIBS): Move $(MMALLOC) past all other libs,
2942 so that anything that wants an allocation function not yet pulled
2943 in, will get it from mmalloc rather than a system library.
2944 * Makefile.in (INSTALLED_LIBS): Reorder to match order of CLIBS,
2945 to avoid surprising results when used.
2949 * stabsread.c: Changes and bug fixes for cfront support.
2950 Fix bug for class data members.
2951 Fix parsing bug when no base classes exist.
2952 Fix memory bug - allocate space for cplusplus specific info.
2953 Add support for static data.
2954 Add prototypes for static functions.
2955 Enhance comments to show what each function expects to parse.
2957 * stabsread.c(resolve_cont),dbxread.c(resolve_cont): Rename
2958 function to resolve_cfront_continuation.
2962 * infrun.c (wait_for_inferior): Call registers_changed when
2963 restarting the inferior to get over a nullified instruction.
2967 * dbxread.c,stabsread.c,gdbtypes.c,partial-stab.h,valops.c:
2968 Add new support for parsing cfront stabs.
2972 * infrun.c (wait_for_inferior): Move "have_waited" label
2973 outside of #ifdef conditionals. Don't trash the wait status
2974 if we get a signal and the current instruction is nullified.
2978 * Makefile.in (VERSION): Bump version number to 4.16.1.
2979 * NEWS: Update for 4.16 release.
2983 * monitor.h: Clean up comment formatting.
2984 (current_monitor): Remove decl.
2985 (LOADTYPES, LOADPROTOS, INIT_CMD, etc): Remove definitions.
2986 (push_monitor, SREC_SIZE): Remove.
2987 * monitor.c: Expand old macro into current_monitor derefs
2989 * remote-os9k.c (current_monitor): Remove definition.
2993 * corefile.c (specify_exec_file_hook): Allow arbitrary number of
2995 (call_extra_exec_file_hooks): New function.
2996 * h8300-tdep.c: Lint; add .h files to provide missing declarations,
2997 remove unused variables.
2998 (set_machine_hook): New function.
2999 (_initialize_h8300m): Initialize it.
3003 * remote-mips.c (encoding): Don't specify size, to avoid bug in
3004 SunOS native compiler.
3008 * monitor.c: Use int rather than LONGEST for values, since
3009 the formatting strings are not prepared to accept long longs.
3013 * arm-tdep.c (initialize_arm_tdep): Make apcs32 a `zinteger'.
3017 * corelow.c (add_to_thread_list): Make sure reg_sect is non-null
3018 before de-referencing it. Prevents deref of NULL pointer if core
3019 file lacks .reg section.
3020 * defs.h: Rename floatformat_{to from}_long_double to
3021 floatformat_{to from}_doublest. Get rid of FLOATFORMAT_{TO
3023 * findvar.c (extract_floating store_floating): Change all refs to
3024 FLOATFORMAT_{FROM TO}... to floatformat_{from to}_doublest.
3025 * utils.c: Change floatformat_{to from}_long_double to
3026 floatformat_{to from}_doublest cuz the new routines will use
3027 whatever size (double or long double) is appropriate.
3028 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
3029 REGISTER_CONVERT_TO_RAW): Change FLOATFORMAT... macros to
3030 floatformat... routine calls.
3034 * stabsread.c (read_type): Move handling of '@' from type
3035 number handling to handling of types proper (as emitted by gcc!).
3036 For typedefs, allocate the typedef type before reading its
3037 definition, to properly handling recursive types.
3041 * ch-exp.c (calculate_array_length): Fix prototype.
3045 * remote-nindy.c (nindy_open): Acquire more target state so that
3046 user can attach to a previously running program.
3047 * (nindy_fetch_registers nindy_store_registers): Get rid of fp
3048 conversion code. That's all handled in {extract store}_floating
3050 * utils.c (floatformat_to_double): Don't bias exponent when
3051 handling zero's, denorms or NaNs.
3052 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
3053 REGISTER_CONVERT_TO_RAW): Change to using DOUBLST and
3054 FLOATFORMAT_TO/FROM_DOUBLEST macros.
3055 * config/i960/tm-nindy960.h: Undefine
3056 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW, and
3057 REGISTER_CONVERTIBLE. These are no longer necessary now that all
3058 the magic happens in extract/store_floating.
3062 * eval.c (evaluate_subexp_standard): Report error when attempting to
3063 evaluate subscripts for types which cannot be subscripted.
3065 * valarith.c (value_x_binop, value_x_unop): Add noside parameter.
3066 Return a zero value with the return type of the member function
3067 if noside is EVAL_AVOID_SIDE_EFFECTS instead of calling the member
3069 * values.h (value_x_binop, value_x_unop): Update prototypes
3071 * eval.c (evaluate_subexp_standard): Update all callers of
3072 value_x_binop, value_x_unop accordingly.
3074 * valarith.c (value_neg, value_complement): Perform ANSI C/C++
3075 integral promotion on operands.
3079 * README: Update for 4.16 release.
3080 * configure.in (AC_CHECK_FUNCS): Also check for sbrk.
3081 * configure: Regenerate with autoconf.
3082 * config.in: Regenerate with autoheader.
3083 * main.c (main): Only use sbrk() when HAVE_SBRK is defined.
3084 * top.c (command_loop): Ditto.
3088 * defs.h: Define TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
3089 defaults for bi-endian targets. Replace function pointers for
3090 floatformat routines with macros. No need for these to be runtime
3092 * findvar.c: Get rid of floatformat function pointers. Use
3093 macros in extract_floating and store_floating.
3094 * remote-nindy.c (nindy_fetch_registers nindy_store_registers):
3095 Use floatformat macros.
3100 * configure.in (AC_CHECK_HEADERS): check for endian.h.
3101 Use AC_CHECK_TOOL to find AR & RANLIB. Add AC_PROG_AWK.
3102 Add host & target cases for i[345]86-*-gnu*.
3103 * config.in: Regenerate with autoheader.
3104 * configure: Regenerate with autoconf.
3105 * Makefile.in (AR, AWK): Set from corresponding autoconf substs.
3106 (init.c): Don't scan mig-generated files.
3107 * defs.h (endian.h): Include if HAVE_ENDIAN_H defined.
3108 * config/nm-m3.h (ATTACH_NO_WAIT): Define.
3109 * infcmd.c (attach_command): Use "#ifndef ATTACH_NO_WAIT"
3110 rather than "#ifndef MACH".
3114 * remote.c (remotewritesize): New GDB variable, controls size
3115 of memory packets sent to the target.
3119 * dcache.c: Add prototypes. Make many functions static.
3120 * (dcache_peek dcache_fetch dcache_poke): Make dcache_fetch and
3121 dcache_poke call dcache_xfer_memory directly in order to fix
3122 problems with turning off dcache. dcache_peek is now unnecessary,
3125 * defs.h: Define new macros HOST_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
3126 and TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT to specify a pointer
3127 to a struct floatformat. This allows for better handling of
3128 targets whose floating point formats differ from the host by more
3129 than just byte order.
3130 * (floatformat_to_long_double floatformat_from_long_double):
3131 Prototypes for new functions in utils.c.
3132 * (floatformat_to_doublest floatformat_from_doublest): Prototypes
3133 for pointers to floating point conversion functions. The actual
3134 function uses either double or long double if the host supports it.
3135 * findvar.c (floatformat_to_doublest floatformat_from_doublest):
3136 Initialize to point at correct function depending on HAVE_LONG_DOUBLE.
3137 * (extract_floating store_floating): Rewrite. Now, if host fp
3138 format is the same as the target, we just do a copy. Otherwise,
3139 we call floatformat_{to from}_doublest.
3140 * remote-nindy.c (nindy_xfer_inferior_memory): Change param
3141 `write' to `should_write'.
3142 * utils.c (floatformat_to_long_double
3143 floatformat_from_long_double): New routines that implement long
3144 double versions of functions in libiberty/floatformat.c.
3145 * config/i960/tm-i960.h (TARGET_LONG_DOUBLE_FORMAT): Define this for
3146 i960 extended real (80 bit) numbers.
3147 * nindy-share/nindy.c (ninMemGet ninMemPut): Return number of bytes
3148 actually read or written.
3152 * ch-valprint.c (chill_val_print): Remove call to calculate_array_length.
3153 (calculate_array_length): Move function from here ...
3155 * ch-exp.c (calculate_array_length): ... to here.
3156 (parse_primval): If we have a symbol with an array type
3157 and the length is 0, call calculate_array_length.
3161 * eval.c (evaluate_subexp_standard): In case of TYPE_CODE_SET:
3162 Add some checks for powerset compatibility.
3164 * valops.c (value_slice): Use lowbound instead of lowerbound for
3165 call to slice_range_type to get correct bounds.
3169 * Makefile.in (scm-exp.o, scm-lang.o, scm-valprint.o): Add targets and
3171 * scm-lang.c (gdb_string.h): Include.
3172 * objfiles.c (add_to_objfile_sections): Cast second arg of obstack_grow
3173 call to correct type (char *).
3174 * cp-valprint.c (cp_print_static_field): Ditto.
3175 * somsolib.c (som_solib_create_inferior_hook): Add a declaration
3176 for external find_unwind_entry function (from hppa-tdep.c).
3177 * remote-pa.c (remote_write_bytes, remote_read_bytes): Change
3178 type of second arg to "char *" to be type compatible with
3180 (remote_wait): Cast second arg to strtol to correct type.
3181 * hppa-tdep.c (compare_unwind_entries): Change argument types to
3182 "const void *" to be type compatible with qsort, and then
3183 assign to local args prior to use.
3187 * infptrace.c (kill_inferior): Remove call to "kill"; update
3192 * remote-e7000.c: don't append :23 to target port if __WIN32__
3193 is defined (it's WinGDB).
3198 * gnu-nat.c, gnu-nat.h, msg.defs, exc_request.defs, i386gnu-nat.c,
3199 msg_reply.defs, notify.defs, process_reply.defs, reply_mig_hack.awk,
3200 config/nm-gnu.h, config/i386/{i386gnu.mh, i386gnu.mt, nm-gnu.h,
3201 m-i386gnu.h, xm-i386gnu.h}: New files for GNU hurd.
3205 * configure.in (case host): Add i386sco5 host.
3206 * configure: Regenerate.
3209 Add support for SCO OpenServer 5 (a.k.a. 3.2v5*) This
3210 target is an SVR3.2 with COFF, ELF, and shared libes, but
3212 * config/i386/i386sco5.mh: New file.
3213 * config/i386/nm-i386sco5.h: New file.
3217 * bcache.c (bcache): When size of chunk to cache is exactly equal to
3218 BCACHE_MAXLENGTH, stash chunk as unique copy.
3222 * symfile.c (INLINE_ADD_PSYMBOL): Remove ifdef.
3223 (add_psymbol_to_list): Add an arg for passing CORE_ADDR values and
3224 use it, rather than calling add_psymbol_addr_to_list.
3225 (add_psymbol_addr_to_list): Delete.
3226 (add_psymbol_to_list): Make psymbol static to avoid random data in
3227 gaps due to alignment of structure members.
3228 * symfile.h (INLINE_ADD_PSYMBOL, ADD_PSYMBOL_TO_LIST,
3229 ADD_PSYMBOL_ADDR_TO_LIST): Remove. Real world tests show no
3230 performance improvements by inlining via complicated macros and
3231 they just make gdb larger and harder to maintain.
3232 * dwarfread.c (add_enum_psymbol): Replace ADD_PSYMBOL_TO_LIST
3233 and/or ADD_PSYMBOL_ADDR_TO_LIST macro(s) with call to
3234 add_psymbol_to_list with appropriate long or CORE_ADDR args.
3235 (add_partial_symbol): Ditto.
3236 * partial-stab.h: Ditto.
3237 * os9kread.c (read_os9k_psymtab): Ditto
3238 * mdebugread.c (parse_partial_symbols): Ditto.
3239 (handle_psymbol_enumerators): Ditto.
3240 (demangle.h): Include.
3241 * hpread.c (hpread_build_psymtabs): Ditto.
3242 (hpread_build_psymtabs): Ditto.
3243 (demangle.h): Include
3245 start-sanitize-gdbtk
3248 * gdbtk.c (running_now): New global variable.
3249 (gdb_cmd): Test it before executing any command.
3250 (gdbtk_call_command): Set it when inferior is running.
3251 * gdbtk.tcl (gdbtk_tcl_busy, gdbtk_tcl_idle): Enable and
3252 disable interaction with command window's text appropriately.
3256 * gdbtk.c (SIOCSPGRP, linux): If on Linux, undef SIOCSPGRP, since
3257 some versions of the kernel don't support it.
3262 * configure.in: Check for setpgid function.
3263 * config.in: Regenerate with autoheader.
3264 * configure: Regenerate with autoconf.
3265 * inflow.c (_initialize_inflow): Only try to use _SC_JOB_CONTROL
3266 if it is actually defined.
3267 (gdb_setpgid): Use HAVE_SETPGID.
3268 * ch-exp.c: Change include of <string.h> to "gdb_string.h".
3269 * c-exp.y, f-exp.y, m2-exp.y: Ditto.
3270 * c-exp.y, serial.c: Include <ctype.h>.
3271 * config/m68k/nm-news.h: Add typedef for pid_t which is
3272 apparently missing from <sys/types.h>. Enclose entire
3273 file in NM_NEWS_H ifndef and define when included.
3274 * config/mips/nm-news-mips.h: Ditto.
3275 * config/m68k/tm-m68k.h (REGISTER_CONVERT_TO_VIRTUAL,
3276 REGISTER_CONVERT_TO_RAW): Change name of temporary variable.
3280 * arm-xdep.c: Move native-specific code to here from arm-tdep.c.
3281 * arm-tdep.c (arm_apcs_32): New global.
3282 (arm_addr_bits_remove, arm_saved_pc_after_call,
3283 arm_push_dummy_frame, arm_pop_frame): New functions.
3284 (arm_skip_prologue): Updated version from Richard Earnshaw.
3285 (_initialize_arm_tdep): Add set/show "apcs32".
3286 * config/arm/tm-arm.h (ADDR_BITS_REMOVE): Call
3287 arm_addr_bits_remove.
3288 (SAVED_PC_AFTER_CALL): Call arm_saved_pc_after_call.
3289 (frame_find_saved_regs): Declare properly.
3290 (PUSH_DUMMY_FRAME): Call arm_push_dummy_frame.
3291 (POP_FRAME): Call arm_pop_frame, use ADDR_BITS_REMOVE instead of
3293 * config/arm/nm-arm.h: New file.
3294 * config/arm/xm-arm.h (KERNEL_U_ADDR, FETCH_INFERIOR_REGISTERS):
3295 Move definitions to nm-arm.h.
3296 * config/arm/arm.mh (NAT_FILE): Define.
3298 * symfile.c (generic_load): Initialize data_count properly.
3302 * symmisc.c (print_objfile_statistics): Print memory used by
3303 psymbol cache obstack.
3307 * symfile.c (report_transfer_performance): New function.
3308 (generic_load): Call it to report transfer rate.
3309 * remote-e7000.c (e7000_load): Ditto.
3313 * mpw-make.sed: Change references to config.h to be in objdir,
3314 edit out rules to rebuild config.h.
3318 * hppa-tdep.c (hppa_pop_frame): Call clear_proceed_status before
3323 * hppah-nat.c (store_inferior_registers, store_inferior_registers,
3324 fetch_register, child_xfer_memory): Use call_ptrace function supplied
3325 by infptrace.c rather than calling ptrace directly.
3329 * mon960-rom.c: Cleanups and elimination of unused code,
3330 clarify documentation string.
3331 (mon960_serial, mon960_ttyname): Remove.
3332 * config/i960/tm-mon960.h (ADDITIONAL_OPTIONS,
3333 ADDITIONAL_OPTION_CASES, ADDITIONAL_OPTION_HELP): Remove.
3337 * configure.in: Check whether printf family supports printing
3338 long doubles or not and define PRINTF_HAS_LONG_DOUBLE if so.
3339 * acconfig.h: Provide default undef for PRINTF_HAS_LONG_DOUBLE.
3340 * configure: Regenerate.
3341 * valprint.c (print_floating): Use PRINTF_HAS_LONG_DOUBLE.
3342 * c-exp.y (parse_number): Use PRINTF_HAS_LONG_DOUBLE.
3343 * configure.in: Fix have_gregset and have_fpregset autoconf
3344 variable names so that they match the pattern required to
3349 * core-aout.c (fetch_core_registers): Cast core_reg_size to int
3350 before testing against reg_ptr.
3351 * eval.c (evaluate_subexp_standard): Cast type of
3352 TYPE_FN_FIELD_VOFFSET to int.
3353 * findvar.c (extract_signed_integer, extract_unsigned_integer,
3354 extract_long_unsigned_integer): Cast type of sizeof to int.
3355 * values.c (unpack_field_as_long, modify_field): Ditto.
3356 * valops.c (value_assign, call_function_by_hand): Ditto.
3357 * infcmd.c (do_registers_info): Ditto.
3358 * ser-tcp.c (tcp_open): Ditto.
3359 * remote.c (putpkt): Ditto.
3360 * dcache.c (dcache_peek): Ditto.
3361 * dcache.c (dcache_poke): Ditto.
3362 * m2-exp.y (yylex): Ditto.
3363 * gnu-regex.c (re_match_2): Ditto.
3364 * f-lang.c (ADD_BF_SYMNUM, saved_bf_list_end, tmp_bf_ptr): Ifdef
3365 out unused macro definition and variables.
3366 * inftarg.c (proc_wait): Move from main.c to here, and make static.
3367 * valprint.c (val_print_string): Change bufsize from int to unsigned.
3368 * main.c (wait.h): Include.
3369 * top.c (command_line_input): Remove unused variable "c".
3370 * f-typeprint.c (f_type_print_varspec_prefix): Add missing enum
3371 value TYPE_CODE_TYPEDEF to switch statement.
3372 (f_type_print_varspec_suffix): Add missing enum value
3373 TYPE_CODE_TYPEDEF to switch statement.
3374 * ch-exp.c (parse_primval): Add remaining enumeration values to
3375 switch statement, with no specific action.
3376 (ch_lex): Add LOC_UNRESOLVED in switch statement.
3377 (pushback_token): Ifdef out, since code using it is ifdef'd out.
3378 * stabsread.c (cleanup_undefined_types): Remove unused label
3380 * objfiles.h (print_symbol_bcache_statistics): Add prototype.
3381 * maint.c (objfiles.h): Include.
3382 (maintenance_print_statistics): Remove unused variable "temp".
3383 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
3384 unused variable "found_file_symbol".
3385 * m2-exp.y (yylex): Add LOC_UNRESOLVED case to switch.
3386 * language.c (lang_bool_type): Use existing function local type
3387 variable rather than create block local variables.
3388 * solib.c (disable_break): Enclose in ifndef SVR4_SHARED_LIBS.
3389 * infptrace.c (wait.h, command.h): Include.
3390 * ser-tcp.c (gdb_string.h): Include
3391 * i386-tdep.c (codestream_seek): Change "place" to CORE_ADDR.
3392 (i386_get_frame_setup): Change "pc" from int to CORE_ADDR.
3393 * command.c (complete_on_enum): Make assignment used as truth value
3394 explictly check against NULL.
3396 * infrun.c (wait_for_inferior): Ifdef out prologue_pc since code
3397 that uses it is ifdef'd out.
3398 * parser-defs.h: Add prototype for write_dollar_variable.
3399 * infrun.c: Add prototype for write_pc_pid.
3400 * breakpoint.h: Add prototype for re_enable_breakpoints_in_shlibs.
3401 * symmisc.c (bcache.h): Include.
3402 * bcache.h: Add prototype for print_bcache_statistics.
3403 * symfile.c: Include <time.h>.
3404 * printcmd.c (print_scalar_formatted): Change len to unsigned int.
3405 * valarith.c (value_equal): Cast result of TYPE_LENGTH to int.
3406 * valarith.c (value_binop): Change result_len, promoted_len1,
3407 and promoted_len2 to unsigned int.
3408 * valarith.c (value_subscripted_rvalue): Change elt_offs and
3409 elt_size to unsigned int.
3410 * valops.c (value_array): Change typelength to unsigned int.
3411 (destructor_name_p): Change len to unsigned int.
3412 * scm-lang.h (scm_parse): Add prototype for scm_unpack.
3413 * symfile.c (decrement_reading_symtab): Change return type to void.
3414 * valarith.c (value_subscript): Remove unused variable "word".
3415 (value_subscript): Remove unused variable "tint".
3416 * valops.c (auto_abandon): Ifdef out, since code using it is also
3418 * eval.c (init_array_element): Remove unused variable "val".
3419 * Makefile.in (values.o): Depends on scm-lang.h.
3420 (command.o): Depends upon wait_h.
3421 (ser-tcp.o): Depends upon gdb_string.h.
3422 (infptrace.o): Depends upon wait_h and command_h.
3423 (maint.o): Depends on objfiles.h and symfile.h.
3424 * values.c (allocate_repeat_value): Remove unused variable
3426 (scm-lang.h): Include.
3427 * breakpoint.c (create_longjmp_breakpoint): Enclose in
3428 GET_LONGJMP_TARGET define, unused otherwise.
3429 * config/i386/nm-linux.h: Add prototypes for i386_insert_watchpoint,
3430 i386_remove_watchpoint and i386_stopped_by_watchpoint.
3434 * configure.in (sparc64-*-solaris2*): Delete.
3435 Stick with sparc-*-solaris2*.
3436 * configure: Regenerated.
3440 * valops.c (value_assign): Make copy of internal variable value
3441 before returning it as a new value, since it is owned by the
3442 internal variable and will be freed along with it.
3446 * From Peter Schauer.
3447 * breakpoint.c (breakpoint_re_set_one): Keep temporary
3448 breakpoints bp_until, bp_finish, bp_watchpoint_cope, bp_call_dummy
3449 and bp_step_resume in case breakpoint_re_set_one is called due
3450 to a step over a dlopen call.
3451 * infrun.c (wait_for_inferior): Always remove breakpoints from
3452 inferior in BPSTAT_WHAT_CHECK_SHLIBS case.
3456 * config/mips/tm-mips.h (COERCE_FLOAT_TO_DOUBLE): Only prefer
3457 non-prototyped case over prototyped case for C.
3458 * config/pa/tm-hppa.h (COERCE_FLOAT_TO_DOUBLE): Ditto.
3462 * os9kread.c (os9k_process_one_symbol): Note nonportable
3463 assumption that an int can hold a char *.
3465 * bcache.h (struct hashlink): Wrap data[] inside union with
3466 double to force longest alignment.
3467 (BCACHE_DATA): New macro to access data[].
3468 (BCACHE_ALIGNMENT): New macro to get offset to data[].
3469 * bcache.c (lookup_cache, bcache): Use BCACHE_DATA to get
3470 address of cached data. Use BCACHE_ALIGNMENT to compute
3471 amount of space to allocate for each hashlink struct.
3475 * ch-lang.c (evaluate_subexp_chill): Fix typo.
3479 * Makefile.in (VERSION): Bump version to 4.15.3
3483 * config.in: Rename from config.h.in.
3484 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
3485 Change CONFIG_HEADERS test in AC_OUTPUT accordingly.
3486 * configure: Rebuild.
3487 * Makefile.in (stamp-h): Depend upon config.in, not config.h.in.
3488 Set CONFIG_HEADERS to config.h:config.in.
3492 * partial-stab.h (case N_ENDM): Finish current partial symbol
3493 table for Solaris 2 cc.
3497 * rs6000-nat.c (exec_one_dummy_insn): Don't clobber the
3498 PC in the registers array. From Peter Schauer.
3502 * symfile.c (reread_symbols): Reinitialize bcache struct
3503 members to zero using memset. Also use memset to reinit
3504 global_psymbols and static_psymbols, rather than explicitly
3505 resetting each structure member.
3509 * configure.in: Add fragment to create stamp-h.
3512 * configure.in (AC_CHECK_HEADERS): Check for link.h.
3513 * configure: Regenerate with autoconf.
3514 * config.h.in: Regenerate with autoheader.
3515 * config/i386/nm-linux.h: Include solib.h only if HAVE_LINK_H
3517 * solib.c: Exclude most of the code if HAVE_LINK_H is not defined.
3518 * config/i386/linux.mh: Reinstate XM_CLIBS, it is needed for
3519 older a.out based systems.
3523 * config.h.in: New file.
3524 * acconfig.h: New file, for autoheader.
3525 * configure.in (AC_CONFIG_HEADER): Add, generate config.h.
3526 * configure: Regenerate.
3527 * Makefile.in (defs_h): Add config.h
3528 (distclean): Remove config.h and stamp-h during distclean.
3529 (config.h, stamp-h): New targets to remake config.h when necessary.
3530 * defs.h (config.h): Include before any other includes or defines.
3531 * i386-tdep.c (gdb_string.h): Move include after include of defs.h.
3532 * i386v4-nat.c (defs.h): Include before testing HAVE_SYS_PROCFS_H.
3537 * Makefile.in (INSTALLED_LIBS): Make sure that @LIBS@ will not
3538 result in an empty line, to work around a bug in native Ultrix 4.4
3539 and OSF/1-3.2C make.
3543 * configure.in: Add gdbserver to configdirs under linux.
3544 * configure: Regenerate.
3548 * config/i386/nm-nbsd.h (FLOAT_INFO): Comment out.
3549 * config/i386/tm-nbsd.h (NUM_REGS): Define.
3553 * solib.c (solib_break_names): Add _r_debug_state for
3554 vanilla SVR4 implementations. From Peter Schauer.
3558 * mon960-rom.c: New file; support mon960 rom monitor on i960.
3559 * monitor.c (monitor_debug): Change remotedebug to buffer strings.
3560 * monitor.c (monitor_open): Add test for flag MO_NO_ECHO_ON_OPEN before
3561 epecting prompt and echo during open.
3562 * monitor.c (monitor_stop): Add test for flag MO_SEND_BREAK_ON_OPEN to
3563 determine if break should be sent as stop command.
3564 * monitor.h: Add flags MO_NO_ECHO_ON_OPEN and MO_SEND_BREAK_ON_OPEN.
3565 * i960-tdep.c (mon960_frame_chain_valid): New function for getting
3566 stack frame on mon960.
3567 * Makefile.in: Add mon960 files.
3568 * configure.in: Changed i960-*-coff* and i960-*-elf* to target mon960;
3569 added i960-nindy-coff* and i960-nindy-elf* for target nindy.
3570 * configure: Regenerated.
3571 * config/i960/mon960.mt, config/i960/tm-mon960.h: New files;
3572 support mon960 rom monitor on i960.
3576 With Michael Snyder:
3577 * i386-tdep.c (skip_trampoline_code): Fix strncmp length.
3578 * win32-nat.c (CHECK, DEBUG*, debug_*): New.
3579 (handle_load_dll): Don't reload symbols.
3580 (handle_exception): Use the DEBUG_* names.
3581 (child_wait): Add DEBUG_* code.
3582 (_initialize_inftarg): Add new commands to set debug_ names.
3586 * From Peter Schauer:
3587 * breakpoint.c (insert_breakpoints): Use ALL_BREAKPOINTS_SAFE.
3588 (bpstat_stop_status): Likewise.
3589 (remove_solib_event_breakpoints): Likewise.
3590 (clear_momentary_breakpoints): Likewise.
3591 (re_enable_breakpoints_in_shlibs): Don't reenable a breakpoint
3592 if we still can't read the memory for that breakpoint.
3593 (mention): Add bp_shlib_event case to keep gcc quiet.
3597 * breakpoint.h (enum enable): New enum shlib_disabled for
3598 shared library breakpoints that have been temporarily disabled.
3599 * breakpoint.c: Handle temporarily disabled shared library
3600 breakpoints like disabled breakpoints in most places.
3601 (insert_breakpoints): Use shlib_disabled to indicate
3602 that an unsettable breakpoint is only temporarily disabled.
3603 (re_enable_breakpoints_in_shlibs): New function.
3604 * corelow.c (solib_add_stub): After adding shared libraries,
3605 try to reenable any temporarily disabled breakpoints.
3606 * infcmd.c (attach_command): Likewise.
3607 * infrun.c (wait_for_inferior): Likewise.
3611 * defs.h (extract_long_unsigned_integer): Declare.
3612 * findvar.c (extract_long_unsigned_integer): New function.
3613 * printcmd.c (print_scalar_formatted): Use it.
3614 * valprint.c (val_print_type_code_int): Likewise.
3618 * infcmd.c (do_registers_info): Ignore anonymous registers.
3619 * sh-tdep.c (set processor): New command to set specific
3621 (sh_reg_names, sh3_reg_names): Arrays of register names for
3622 SH and SH3 processors.
3623 (sh_set_processor_type): New function.
3624 * sh3-rom.c (sh3_open): Call it.
3625 (sh3_regname): Add names of all the bank registers.
3626 (sh3_supply_register): Clean up formatting.
3627 * config/sh/tm-sh.h (NUM_REGS, NUM_REALREGS): Increase to include
3629 (REGISTER_NAMES): Add names of bank registers.
3630 (FP15_REGNUM): Define.
3631 (REGISTER_VIRTUAL_TYPE): Use it.
3632 * monitor.c: Clean up some comments.
3636 * i386b-nat.c: Revert part of Mar 5 change. FreeBSD collapsed the
3637 s* and t* symbols too.
3641 * symfile.c (generic_load): Avoid division by zero.
3645 * breakpoint.c (bfd_lookup_symbol): Provide for all SVR4 systems,
3646 not just those with HANDLE_SVR4_EXEC_EMULATORS.
3649 * breakpoint.c (internal_breakpoint_number): Move to file scope.
3650 (create_solib_event_breakpoint): Use an internal breakpoint number.
3654 * valarith.c (value_in): Change builtin_type_chill_bool to
3659 * ch-exp.c (parse_primval): Handle CARD, MAX, MIN.
3660 (match_string_literal): Handle control sequence.
3661 (match_character_literal): Deto.
3663 * ch-lang.c (chill_printchar): Change formating of nonprintable
3664 characters from C'xx' to ^(num).
3665 (chill_printstr): Deto.
3666 (value_chill_card, value_chill_max_min): New functions to process
3667 Chill's CARD, MAX, MIN.
3668 (evaluate_subexp_chill): Process UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN.
3670 * expression.h (exp_opcode): Add UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN
3671 for Chill's CARD, MAX, MIN.
3673 * valarith.c (value_in): Add processing of TYPE_CODE_RANGE
3674 and change return type from builtin_type_int to
3675 builtin_type_chill_bool.
3679 * config/nm-nbsd.h (link_object, lo_name, etc): Move to here
3680 from config/nm-nbsd.h.
3681 * config/sparc/nm-nbsd.h (regs, fp_status, etc): Move to here
3682 from config/sparc/tm-nbsd.h.
3684 * config/m68k/nm-hp300hpux.h (FIVE_ARG_PTRACE): Define here
3685 instead of in config/m68k/xm-hp300hpux.h.
3689 * i386b-nat.c, m68knbsd-nat.c (fetch_core_registers): Provide
3690 implementation for NetBSD systems.
3694 * valarith.c (binop_user_defined_p): Return 0 for BINOP_CONCAT.
3695 (value_concat): Handle varying strings (add COERCE_VARYING_ARRAY).
3697 * ch-lang.c (evaluate_subexp_chill case MULTI_SUBSCRIPT): Error
3698 if "function" is pointer to non-function.
3702 * top.c (print_gdb_version): Update copyright year.
3707 * infrun.c (wait_for_inferior): Remove breakpoints and
3708 switch terminal settings before calling SOLIB_ADD.
3709 * solib.c (enable_break, SVR4 variant): Don't map in symbols
3710 for the dynamic linker, the namespace pollution causes real
3715 * remote-mips.c (common_breakpoint): Explicitly terminate the
3721 * remote.c (remote_detach): Send a command 'D' to the target
3722 when detaching, update the function's comments.
3726 * gnu-nat.c (thread_cmd_list): New declaration.
3727 (parse_int_arg): New function.
3731 * gnu-nat.h (struct proc): Add DETACH_SC field.
3732 * gnu-nat.c (make_proc): Set DETACH_SC.
3733 (struct inf): Add DETACH_SC & DEFAULT_THREAD_DETACH_SC fields.
3734 (make_inf): Set DETACH_SC & DEFAULT_THREAD_DETACH_SC fields.
3735 (add_thread_commands): Add set/show for detach-suspend-count.
3736 Add takeover-suspend-count cmd.
3737 (inf_detach): Set suspend counts to the detach SC, not 0.
3738 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd,
3739 set_task_detach_sc_cmd, show_task_detach_sc_cmd,
3740 set_thread_default_thread_detach_sc_cmd,
3741 show_thread_default_thread_detach_sc_cmd): New functions.
3742 (show_task_cmd): Also show detach-suspend-count values.
3743 (thread_takeover_sc_cmd): New function.
3747 * gnu-nat.c (show_thread_run_cmd): Actually print state.
3751 * gnu-nat.c (inf_signal): Make unforwardable exceptions an error.
3755 * gnu-nat.c (inf_validate_stopped): proc_getprocinfo takes a
3756 pointer to the flags now, not the flags themselves.
3760 * gnu-nat.c (gnu_wait): Print debugging msgs for pending execs.
3761 (gnu_create_inferior): Check return from ptrace.
3765 * gnu-nat.h (struct proc): Add DEAD field.
3766 * gnu-nat.c (make_proc): Initialize DEAD.
3767 (inf_set_traced, inf_validate_task_sc, inf_validate_procs: Frob it.
3768 (gnu_wait): Only abort for 0 threads if the task isn't dead.
3772 * gnu-nat.c (inf_signal): Pass SIGCODE when posting a signal.
3776 * gnu-nat.c (S_proc_wait_reply): Add SIGCODE argument.
3777 (inf_set_traced): Only give no-signal-thread error message if
3778 turning *on* tracing.
3782 * gnu-nat.c (inf_validate_procs): If INF has no threads, always
3783 set inf->threads_up_to_date to 0.
3784 (inf_signal): Pass in new SIGCODE argument to msg_sig_post_untraced.
3785 (gnu_wait): Pass in new TIMEOUT arg to interrupt_operation.
3786 (proc_update_sc): Cast thread state arg to thread_set_state.
3787 (proc_get_state): Cast thread state arg to thread_get_state.
3788 (inf_validate_task_sc): Cast task_basic_info arg to task_info.
3789 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Call
3790 inf_update_procs before we lookup the thread.
3791 * config/i386/i386gnu.mh (MH_CFLAGS): New variable.
3795 * gnu-nat.c (gnu_kill_inferior): Use inf_set_task to clear the task.
3799 * gnu-nat.c (inf_set_traced): Use msg_set_init_int with
3800 INIT_TRACEMASK instead of setting the exec flags.
3804 * gnu-nat.c (inf_validate_procs): Don't clear INF->task if we find
3805 the task's died, so others have a chance at it.
3806 (gnu_resume): When single-stepping a single thread, given an error
3807 if there is no such thread. When single-stepping one but running
3808 the others, just given a warning and still run all the threads.
3809 (gnu_wait): If there seem to be no threads, look harder, and
3810 signal an error if there really aren't any.
3811 (gnu_attach): Reset thread numbering to 0.
3813 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Give
3814 thread name in warning messages.
3816 * gnu-nat.c (active_inf): New function.
3817 (show_sig_thread_cmd, show_stopped_cmd): Use it.
3818 (info_port_rights, info_send_rights_cmd, info_port_sets_cmd,
3819 info_recv_rights_cmd, info_port_rights_cmd, info_port_rights_cmd):
3821 (add_task_commands): Add new port-right info commands.
3825 * gnu-nat.c (gnu_wait): Instead of _hurd_intr_rpc_mach_msg, just
3826 use mach_msg with MACH_RCV_INTERRUPT.
3827 (set_noninvasive_cmd): New function.
3828 (add_task_commands): Add command entry for `set noninvasive'.
3832 * gnu-nat.c (gnu_read_inferior): Use hurd_safe_memmove, not safe_bcopy.
3833 (safe_bcopy): Function removed.
3837 * gnu-nat.c (proc_update_sc): Assert only threads can have state.
3838 (make_proc): Initialize state_valid & state_changed fields.
3842 * reply_mig_hack.awk: New file.
3846 * breakpoint.c (breakpoint_1): Print breakpoint thread field.
3848 * lynx-nat.c (child_wait): Return TARGET_WAITKIND_SPURIOUS for new
3853 * target.c (debug_to_check_threads): New function.
3855 * inflow.c (terminal_init_inferior_with_pgrp): New function.
3856 (terminal_init_inferior): Call terminal_init_inferior_with_pgrp.
3857 * inferior.h (terminal_init_inferior_with_pgrp): New declaration,
3858 but only if PROCESS_GROUP_TYPE is defined.
3862 * target.c (debug_to_thread_alive): Pass through the return value.
3866 * target.c (signals, target_signal_from_host, target_signal_to_host):
3867 Add mach exceptions.
3868 * target.h (enum target_signal): Add mach exceptions.
3872 * gnu-nat.c: New file: gnu native backend.
3873 * i386gnu-nat.c: New file: i386-specific part of gnu native backend.
3874 * gnu-nat.h: New file.
3875 * config/nm-gnu.h: New file.
3876 * config/tm-i386gnu.h: New file.
3877 * config/xm-i386gnu.h: New file.
3878 * config/i386/i386gnu.mh: New file.
3879 * config/i386/i386gnu.mt: New file.
3883 * Makefile.in (VERSION): Bump version to 4.15.2 to establish
3884 baseline for gdb 4.16 rerelease testing.
3888 * somsolib.c (som_solib_create_inferior_hook): Before returning
3889 call clear_symtab_users.
3893 * remote-e7000.c (e7000_open): Delete all breakpoints when
3894 connecting to e7000. Change connect message to allow use of
3895 monitor.exp in test suite.
3896 * (e7000_load): Print transfer rate of download.
3897 * symfile.c (generic_load): Print transfer rate of download.
3901 * configure.in (mips*-*-vxworks*): New config.
3902 * configure: Regenerated.
3904 * config/mips/vxmips.mt, config/mips/tm-vxmips.h: New files.
3905 * remote-vxmips.c (vx_convert_to_virtual, vx_convert_from_virtual):
3910 * partial-stab.h (case N_FUN): Function symbols generated
3911 by SPARCworks cc have a meaningless zero value, do not update
3912 pst->textlow if the function symbol value is zero.
3914 * stabsread.c (define_symbol): Initialize SYMBOL_TYPE field
3915 for function prototype declaration symbols.
3919 * remote-e7000.c (e7000_load): New routine to download via the
3921 * (e7000_wait): Don't backup PC when we hit a breakpoint.
3922 Apparantly new sh2 pods get this right...
3923 * (e7000_ops): Add call to e7000_load.
3927 * config/m68k/{nbsd.mh,nbsd.mt,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h},
3928 m68knbsd-nat.c: New files, support for NetBSD/m68k.
3930 * configure.in (m68k-*-netbsd*): New config.
3931 * configure: Regenerated.
3935 * standalone.c (open, _initialize_standalone): Fix obvious typos
3940 * solib.c (solib_create_inferior_hook): Fix thinko.
3944 * solib.c (solib_break_names): Define for Solaris and Linux.
3945 (enable_break): For SVR4 systems, first try to use the debugger
3946 interfaces in the dynamic linker to track shared library events
3947 as they happen, then fall back to BKPT_AT_SYMBOL code. Convert
3948 BKPT_AT_SYMBOL code to use shared library event breakpoints.
3949 (solib_create_inferior_hook): Simplify BKPT_AT_SYMBOL code,
3950 it no longer needs to restart/wait on the inferior.
3951 * symfile.c (find_lowest_section): No longer static.
3952 * symfile.h (find_lowest_section): Corresponding changes.
3956 * valops.c (COERCE_FLOAT_TO_DOUBLE): Define default value.
3957 (value_arg_coerce): Use COERCE_FLOAT_TO_DOUBLE.
3958 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Define to 1.
3959 * config/mips/tm-mips.h: Ditto.
3960 * config/pa/tm-hppa.h: Ditto.
3961 * config/rs6000/tm-rs6000.h: Ditto.
3962 * config/sparc/tm-sparc.h: Ditto.
3966 * config/{i386,ns32k}/nbsd.mh (NATDEPFILES): Remove core-aout.o.
3968 * config/nm-nbsd.h (FETCH_INFERIOR_REGISTERS): Defined.
3969 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
3970 #ifdef'd out definitions --- Causes serious gdb failures on
3971 the i386. Need to investigate further before enabling.
3973 * i386b-nat.c (fetch_inferior_registers, store_inferior_registers,
3974 fetch_core_registers): New functions. These functions are defined
3975 if FETCH_INFERIOR_REGISTERS is set. Registers are fetched/stored
3976 with ptrace PT_GETREGS/PT_SETREGS.
3980 * findvar.c (extract_floating store_floating): Replace `long
3981 double' with `DOUBLEST'.
3985 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
3990 * symtab.h (looup_minimal_symbol_solib_trampoline): Declare.
3992 * breakpoint.h (remove_solib_event_breakpoints): Declare.
3993 * breakpoint.c (remove_solib_event_breakpoints): New function.
3994 * somsolib.c (solib_create_inferior_hook): Remove all solib event
3995 breakpoints before inserting any new ones. Use a solib event
3996 breakpoint for the breakpoint at "_start".
3997 Remove extraneous "\n" from calls to warning.
3999 * breakpoint.c (breakpoint_1): Add missing "sigtramp" to bptypes
4004 * dwarfread.c (add_partial_symbol): Use ADD_PSYMBOL_ADDR_TO_LIST
4005 for CORE_ADDR values.
4006 (new_symbol): Use SYMBOL_VALUE_ADDRESS for CORE_ADDR values.
4007 * symfile.h (add_psymbol_{,addr}to_list): Add prototypes.
4011 * mipsread.c (mipscoff_symfile_read): Unconditionally add
4012 alpha coff dynamic symbols for all symbol files. Makes skipping
4013 over the trampoline code work when stepping from a function in a
4014 shared library into a function in a different shared library.
4018 * config/sparc/tm-sparc.h: Define PS_FLAG_CARRY. Define
4019 RETURN_VALUE_ON_STACK to return long doubles on the stack.
4023 * Makefile.in (ch-exp.o): Add dependencies.
4024 (various): Add gdb_string.h to dependencies that need it.
4028 * symmisc.c (print_symbol_bcache_statistics): Update description for
4029 printing byte cache statistics.
4033 * Add native support for long double data type.
4034 * c-exp.y (%union): Change dval to typed_val_float. Use DOUBLEST
4035 to store actual data. Change types of INT and FLOAT tokens to
4036 typed_val_int and typed_val_float respectively. Create new token
4037 DOUBLE_KEYWORD to specify the string `double'. Make production
4038 for FLOAT use type determined by parse_number. Add production for
4039 "long double" data type.
4040 * (parse_number): Use sscanf to parse numbers as float, double or
4041 long double depending upon the type of typed_val_float.dval. Also
4042 allow user to specify `f' or `l' suffix to explicitly specify
4043 float or long double constants. Change typed_val to
4045 * (yylex): Change typed_val to typed_val_int. Also, scan for
4047 * coffread.c (decode_base_type): Add support for T_LNGDBL basic
4049 * configure, configure.in: Add check for long double support in
4051 * defs.h: Define DOUBLEST appropriatly depending on whether
4052 HAVE_LONG_DOUBLE (from autoconf) is defined. Also, fix prototypes
4053 for functions that handle this type.
4054 * expression.h (union exp_element): doubleconst is now type
4056 * m2-exp.y f-exp.y (%union): dval becomes type DOUBLEST.
4057 * findvar.c (extract_floating): Make return value be DOUBLEST.
4058 Also, add support for numbers with size of long double.
4059 * (store_floating): Arg `val' is now type DOUBLEST. Handle all
4061 * parser-defs.h parse.c (write_exp_elt_dblcst): Arg expelt is now
4063 * valarith.c (value_binop): Change temp variables v1, v2 and v to
4064 type DOUBLEST. Coerce type of result to long double if either op
4066 * valops.c (value_arg_coerce): If argument type is bigger than
4067 double, coerce to long double.
4068 * (call_function_by_hand): If REG_STRUCT_HAS_ADDR is defined, and
4069 arg type is float and > 8 bytes, then use pointer-to-object
4070 calling conventions.
4071 * valprint.c (print_floating): Arg doub is now type DOUBLEST.
4072 Use appropriate format and precision to print out floating point
4074 * value.h: Fixup prototypes for value_as_double,
4075 value_from_double, and unpack_double to use DOUBLEST.
4076 * values.c (record_latest_value): Remove check for invalid
4077 floats. Allow history to store them so that people may examine
4078 them in hex if they want.
4079 * (value_as_double unpack_double): Change return value to DOUBLEST.
4080 * (value_from_double): Arg `num' is now DOUBLEST.
4081 * (using_struct_return): Use RETURN_VALUE_ON_STACK macro (target
4082 specific) to expect certain types to always be returned on the stack.
4086 * bcache.c, bcache.h: New files to implement a byte cache.
4087 * Makefile.in (SFILES): Add bcache.c.
4088 (symtab_h): Add bcache.h.
4089 (HFILES_NO_SRCDIR): add bcache.h
4090 (COMMON_OBJS): Add bcache.o
4091 (bcache.o): New target.
4092 * dbxread.c (start_psymtab): Make global_syms & static_syms
4093 type "partial_symbol **".
4094 * hpread.c (hpread_start_symtab): Ditto.
4095 * os9kread.c (os9k_start_psymtab): Ditto.
4096 * stabsread.h (start_psymtab): Ditto.
4097 * {symfile.c, symfile.h} (start_psymtab_common): Ditto.
4098 * maint.c (maintenance_print_statistics): Call
4099 print_symbol_bcache_statistics.
4100 * objfiles.c (allocate_objfile): Initialize psymbol bcache malloc
4102 * solib.c (allocate_rt_common_objfile): Ditto.
4103 * symfile.c (reread_symbols): Ditto.
4104 (free_objfile): Free psymbol bcache when objfile is freed.
4105 (objfile_relocate): Use new indirect psymbol pointers.
4106 * objfiles.h (struct objfile): Add psymbol cache.
4107 * symfile.c (compare_psymbols): Now passed pointers to pointers to
4109 (reread_symbols): Free psymbol bcache when freeing other objfile
4111 (add_psymbol_to_list, add_psymbol_addr_to_list): Initialize new
4112 psymbol using the psymbol bcache.
4113 (init_psymbol_list): Psymbol lists now contain pointers rather than
4114 the actual psymbols.
4115 * symfile.h (psymbol_allocation_list): Psymbol lists now dynamically
4116 grown arrays of pointers.
4117 (ADD_PSYMBOL_VT_TO_LIST): Initialize new symbol using the psymbol
4119 * symmisc.c (print_partial_symbols): Now takes pointer to pointer
4121 (print_symbol_bcache_statistics): New function to print per objfile
4123 (print_partial_symbol, print_partial_symbols,
4124 maintenance_check_symtabs, extend_psymbol_list):
4125 Account for change to pointer to pointer to partial symbol.
4126 * symtab.c (find_pc_psymbol, lookup_partial_symbol, decode_line_2,
4127 make_symbol_completion_list):
4128 Account for change to pointer to pointer to partial symbol.
4129 * symtab.h (bcache.h): Include.
4130 * xcoffread.c (xcoff_start_psymtab): Make global_syms & static_syms
4131 type "partial_symbol **".
4135 * dwarfread.c (free_utypes): New function.
4136 (read_file_scope): Call free_utypes as cleanup, rather than just
4137 freeing the utypes pointer.
4141 * demangle.c (is_cplus_marker): New function, checks if a
4142 character is one of the commonly used C++ marker characters.
4143 * defs.h (is_cplus_marker): Add prototype.
4144 * c-typeprint.c (c_type_print_base), ch-lang.c (chill_demangle),
4145 cp-valprint.c (cp_print_class_method), mdebugread.c (parse_symbol),
4146 stabsread.c (define_symbol, read_member_functions, read_struct_fields),
4147 symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P),
4148 values.c (vb_match): Use is_cplus_marker instead of comparison
4153 * symfile.h (INLINE_ADD_PSYMBOL): Default this to 0 and possibly
4154 delete entirely someday.
4158 * mpw-make.sed: Edit out makefile rebuild rule.
4159 (host_alias, target_alias): Comment out instead of deleting.
4160 (@LIBS@): Edit out references.
4164 * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
4165 Use n_psyms in OBJSTAT, not psyms.
4169 * configure.in (sparclet-*-aout*): New config.
4170 * configure: Regenerated.
4174 * somsolib.c (som_solib_add): Use xmalloc rather than bare
4175 unchecked call to malloc.
4176 * remote-mips.c (pmon_load_fast): ditto.
4177 * remote-mm.c (mm_open): ditto.
4178 * hpread.c (hpread_lookup_type): ditto.
4179 * remote-adapt.c (adapt_open): ditto.
4183 * f-lang.c (allocate_saved_bf_node, allocate_saved_function_node,
4184 allocate_saved_f77_common_node, allocate_common_entry_node,
4185 add_common_block): Use xmalloc rather than malloc, some of which
4187 * gnu-regex.c: At same point as other gdb specific changes
4188 #undef malloc and then #define it to xmalloc.
4189 * ch-exp.c (growbuf_by_size): Use xmalloc/xrealloc rather than
4190 bare unchecked calls to malloc/realloc.
4191 * stabsread.c (dbx_lookup_type): Use xmalloc rather than bare
4192 unchecked call to malloc.
4196 * symtab.c (gdb_mangle_name): Change opname var to be const to
4197 match return val of cplus_mangle_name.
4198 * i960-tdep.c: Change arg types of next_insn to match callers.
4202 * config/i386/linux.mh (XM_CLIBS, GDBSERVER_LIBS): Remove. These
4203 apparently aren't needed in any reasonably recent version of
4208 * stabsread.c (read_range_type): If !self-subrange and language
4209 is Chill, assume a true range. If a true_range is a sub_subrange,
4210 use builtin_type_int for index_type.
4214 * nindy-share/nindy.c (say): Use stdarg.h macros when compiling
4215 with an ANSI compiler.
4217 start-sanitize-gdbtk
4220 * gdbtk.tcl (create_file_win): Eliminate text widget B1 binding so
4221 double-clicking will work again.
4222 (create_asm_win): Put "break" at end of all B1 bindings.
4223 (create_file_win): Lower "sel" tag, don't raise it.
4224 (ensure_line_visible): New proc.
4225 (update_listing, update_assembly): Use it.
4226 (create_copyright_window): Destroy window on Leave event.
4227 (create_command_window): Put "break" at end of all B2 bindings.
4233 * valops.c (value_arg_coerce): Coerce float to double, unless the
4234 function prototype specifies float.
4238 * language.c (set_language_command): Use languages table when
4239 printing available languages.
4244 * command.c (add_cmd): Add missing initialization for enums member.
4245 Reorder members to match structure declaration to make it easier to
4246 tell when one is missing.
4247 * exec.c (exec_file_command): Fix problem where filename in malloc'd
4248 memory is referenced after being freed.
4252 * dwarfread.c (read_func_scope): Avoid GDB core dumps if
4253 AT_name tag is missing.
4255 * procfs.c (procfs_stopped_by_watchpoint): Fix logic when
4256 FLTWATCH and FLTKWATCH are defined.
4258 * remote.c (remote_read_bytes): Advance memaddr for transfers,
4259 return number of bytes transferred for partial reads.
4261 * top.c (init_signals): Reset SIGTRAP to SIG_DFL.
4265 * win32-nat.c (mappings): Add ppc registers.
4266 (child_resume): Turn off step for ppc.
4270 * config/powerpc/(cygwin32.mh, cygwin32.mt, tm-cygwin32.h,
4271 xm-cygwin32.h): New.
4272 * config/i386/(*win32*): Becomes *cygwin32*.
4273 * configure.in (i[3456]86-*-win32*): Becomes i[3456]86-*-cygwin32.
4274 (powerpcle-*-cygwin32): New.
4275 * configure: Regenerate.
4276 * win32-nat.c (child_create_inferior): Call CreateProcess
4277 with the right program arg.
4281 * config/pa/tm-hppa.h (SOFT_FLOAT): Provide a default definition.
4285 * serial.c: Change fputc/fputs/fprintf to _unfiltered forms.
4289 * config/sparc/xm-sun4os4.h (HAVE_TERMIOS): Remove.
4291 * config/sparc/xm-sparc.h (HAVE_WAIT_STRUCT): Remove, never used.
4293 * config/i386/nm-i386mach.h (CHILD_PREPARE_TO_STORE): Move to
4294 here from config/i386/xm-i386mach.h, fix name.
4295 * config/i386/nm-sun386.h: Ditto, from config/i386/xm-sun386.h.
4296 * config/i386/nm-ptx4.h (CHILD_PREPARE_TO_STORE): Move to
4297 here from config/i386/xm-ptx4.h.
4298 * config/i386/nm-ptx4.h: Ditto, from config/i386/xm-ptx.h.
4299 * config/i386/nm-symmetry.h: Ditto, from config/i386/xm-symmetry.h.
4300 * config/m68k/nm-sun3.h: Ditto, from config/m68k/xm-sun3.h.
4301 * config/sparc/nm-nbsd.h: Ditto, from config/sparc/xm-nbsd.h.
4302 * config/sparc/nm-sun4os4: Ditto, from config/sparc/xm-sparc.h.
4304 * config/sparc/nm-sun4sol2.h: New file, renamed from nm-sysv4.h.
4305 (PRSVADDR_BROKEN): Move here from xm-sun4sol2.h.
4306 * config/sparc/sun4sol2.mh (NAT_FILE): Update.
4310 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Handle software
4311 floating point correctly.
4312 (STORE_RETURN_VALUE): Likewise.
4313 * config/pa/tm-pro.h (SOFT_FLOAT): define.
4317 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
4318 Define to what should be reasonable values. However, apparently
4319 a bug in linux mmap prevents mapped symbol tables from working.
4323 * defs.h (errno.h>: Move #include closer to head of file to solve
4324 obscure problem with systems that declare perror with const arg, in
4325 both errno.h and stdio.h, and const is defined away by intervening
4331 * i386-stub.c (getpacket): Change fprintf stream from "gdb" to stderr.
4332 (mem_fault_routine): Fix misplaced volatile type qualifier in decl.
4336 * Makefile.in (diststuff): Make all-doc; diststuff target does not
4337 exist in doc/Makefile.in.
4341 * config/m88k/xm-cxux.h (BP_HIT_COUNT): Remove, never used.
4345 * ch-valprint.c (calculate_array_length): New function to
4346 determine the length of an array type.
4347 (chill_val_print (case TYPE_CODE_ARRAY)): If the length of an
4348 array type is zero, call calculate_array_length.
4350 * gdbtypes.c (get_discrete_bounds (case TYPE_CODE_ENUM)): The
4351 values may not be sorted. Scan all entries and set the real lower
4356 * config/xm-linux.h: Move include of solib.h and #define of
4357 SVR4_SHARED_LIBS from here ...
4358 * config/nm-linux.h: ...to here.
4362 * configure.in (AC_CHECK_HEADERS): Check for sys/procfs.h.
4363 Also check for gregset_t and fpregset_t types.
4364 * configure: Regenerate.
4365 * core-regset.c (sys/procfs.h): Only include if HAVE_SYS_PROCFS_H
4367 (fetch_core_registers): Turn into stub unless both HAVE_GREGSET_T
4368 and HAVE_FPREGSET_T are defined. These changes allow systems
4369 like linux that are migrating to /proc support to use a single
4370 configuration for both new and old versions.
4372 * config/i386/linux.mt: Note that this is now for both a.out and
4374 * config/i386/linux.mh (NATDEPFILES): Add solib.o, core-regset.o,
4376 * config/i386/tm-linux.h (tm-sysv4.h): Include.
4377 * config/i386/xm-linux.h (solib.h): Include
4378 (SVR4_SHARED_LIBS): Define.
4379 * i386v4-nat.c: Only compile if HAVE_SYS_PROCFS_H is defined.
4380 (supply_gregset, fill_gregset): Compile if HAVE_GREGSET_T defined.
4381 (supply_fpregset, fill_fpregset): Compile if HAVE_FPREGSET_T
4386 * config/sparc/xm-sparc.h (NEW_SUN_CORE): Remove, never used.
4387 * config/i386/xm-sun386.h: Ditto.
4388 * config/m68k/xm-sun2.h, config/m68k/xm-sun3.h: Ditto.
4392 * Makefile.in (INSTALLED_LIBS, CLIBS): Include @LIBS@.
4397 * dcache.c (dcache_peek, dcache_poke): Advance addr for
4402 * infrun.c (normal_stop): Fix test for shared library event.
4406 * configure.in (sparc64-*-*): Add default host configuration.
4407 start-sanitize-gdbtk
4408 (sparc64-*-solaris2* host): Link statically if GCC used.
4410 (sparc64-*-solaris2*): Add target configuration.
4411 * configure: Regenerated.
4412 * sparc/sp64sol2.mt: New file.
4416 * Makefile.in (RUNTEST): srcdir renamed to rootsrc.
4420 * Makefile.in (lint): Close backquotes.
4422 start-sanitize-gdbtk
4425 * gdbtk.tcl, gdbtk.c: Updated copyrights.
4427 * configure.in: Look for -ldl or -ldld when using Tcl 7.5 or
4429 * configure: Rebuilt.
4434 * NEWS: Make note of new record and replay feature for
4435 remote debug sessions.
4436 * serial.c (gdbcmd.h): Include.
4437 (serial_logfile, serial_logfp, serial_reading, serial_writing):
4438 Define here, for remote debug session logging.
4439 (serial_log_command, serial_logchar, serial_write, serial_readchar):
4440 New functions for remote debug session logging.
4441 (serial_open): Open remote debug session log file when needed.
4442 (serial_close): Close remote debug session log file when needed.
4443 (_initialize_serial): Add set/show commands for name of remote
4444 debug session log file.
4445 * serial.h (serial_readchar): Declare
4446 (SERIAL_READCHAR): Call serial_readchar().
4447 (SERIAL_WRITE): Call serial_write().
4448 (serial_close): Declare as extern.
4449 (serial_logfile, serial_logfp): Declare.
4450 * top.c (execute_command): Declare serial_logfp. Log user command
4451 in remote debug session log if log file is open.
4452 * remote-array.c (array_wait): #ifdef out echo to gdb_stdout.
4453 (array_read_inferior_memory): Rewrite to fix memory overwrite bug.
4454 * remote-array.c (SREC_SIZE): Remove, duplicates define in
4456 * remote-array.c (hexchars, hex2mem): Remove, unused.
4457 * gdbserver/low-linux.c (store_inferior_registers): Remove
4458 unnecessary extern declaration of registers[].
4459 * gdbserver/Makefile.in (all): Add gdbreplay.
4460 * gdbserver/gdbreplay.c: New file.
4461 * gdbserver/README: Give example of recording a remote
4462 debug session with gdb and then replaying it with gdbreplay.
4466 * stabsread.c (rs6000_builtin_type): Make bool type unsigned.
4467 (read_one_struct_field): Support boolean bitfields.
4468 * c-valprint.c (c_val_print): Print booleans properly.
4472 * remote-vxsparc.c (vx_convert_to_virtual, vx_convert_from_virtual):
4474 * config/sparc/vxsparc.mt (TDEPFILES): Add remote-vxsparc.o.
4478 * ch-exp.c (parse_tuple): Error if invalid mode.
4480 * value.h (COERCE_ARRAY): Don't coerce enums.
4481 (COERCE_ENUM): Don't COERCE_REF.
4482 (COERCE_NUMBER): New macro (same as COERCE_ARRAY then COERCE_ENUM).
4483 * valops.c (value_assign): Only do COERCE_ARRAY if internalvar (let
4484 value_cast handle it otherwise); do *not* COERCE_ENUM either way.
4485 * valarith.c: Use COERCE_NUMBER instead od COEREC_ARRAY.
4486 Add COERCE_REF before COERCE_ENUM.
4487 * values.c (value_as_long): Simplify.
4489 * valops.c (value_array): Create internalvar if !c_style_arrays.
4491 * language.c (lang_bool_type): Add Fortran support.
4492 * eval.c (OP_BOOL): Use LA_BOOL_TYPE.
4496 * symfile.c (auto_solib_add): Renamed from auto_solib_add_at_startup.
4497 All references changed.
4498 * breakpoint.c (bpstat_what): Add shlib_event to the class types.
4499 Update state table. Reformat so that it's still readable.
4500 When we hit the shlib_event breakpoint, set the calss of shlib_event.
4501 (breakpoint_1): Add "shlib events" as a breakpoint type.
4502 Print the shlib_event breakpoint like other breakpoints.
4503 (create_solib_event_breakpoint): New function.
4504 (breakpoint_re_set_one): Handle solib_event breakpoints.
4505 * breakpoint.h (enum bytype): Add bp_shlib_event breakpoint type.
4506 (enum bpstat_what_main_action): Add BPSTAT_WHAT_CHECK_SHLIBS
4508 (create_solib_event_breakpoint): Declare.
4509 * infrun.c (wait_for_inferior): Handle CHECK_SHLIBS bpstat.
4510 (normal_stop): Inform the user when the inferior stoped due
4511 to a shared library event.
4512 (_initialize_infrun): Add new set/show variable "stop-on-solib-events"
4513 to control whether or not gdb continues the inferior or stops it when
4514 a shared library event occurs.
4515 * minsyms.c (lookup_minimal_symbol_solib_trampoline): New function.
4516 * somsolib.c (TODO list): Update.
4517 (som_solib_create_inferior_hook): Arrange for gdb to be notified
4518 when significant shared library events occur.
4519 * hppa-tdep.c (find_unwind_entry): No longer static.
4523 * printcmd.c (print_insn): Pass fprintf_unfiltered to
4524 INIT_DISASSEMBLE_INFO.
4525 start-sanitize-gdbtk
4526 * gdbtk.c (gdb_disassemble): Likewise.
4531 * remote.c (remotebreak): New GDB variable.
4532 (remote_break): New global.
4533 (remote_interrupt): Send a break instead of ^C if remote_break.
4534 * NEWS: Describe the new variable.
4538 * sparc-tdep.c (_initialize_sparc_tdep): Always use print_insn_sparc.
4542 * hp300ux-nat.c (getpagesize): Remove unused function
4543 fetch_core_registers.
4544 (hp300ux_core_fns): Remove, is unused.
4545 (_initialize_core_hp300ux): Remove, is unused.
4546 (gdbcore.h): Remove #include, no longer needed.
4550 * rs6000-nat.c (exec_one_dummy_insn): Rework to avoid
4551 ptrace bug in aix4.1.3 on the rs6000.
4555 * remote-hms.c (hms_ops): Add value for to_thread_alive.
4556 * remote-nindy.c (nindy_ops): Ditto.
4557 * remote-udi.c (udi_ops): Ditto.
4561 * remote-mips.c (pmon_opn, pmon_wait, pmon_makeb64, pmon_zeroset,
4562 pmon_checkset, pmon_make_fastrec, pmon_check_ack,
4563 pmon_load_fast): New functions. Support for the PMON monitor world.
4564 (common_open): New function to merge support for different monitors.
4565 (mips_open): Use common_open().
4566 (mips_send_command): New function.
4567 (mips_send_packet): Scan out-of-sequence packets.
4568 (mips_enter_debug, mips_exit_debug): New functions.
4569 (pmon_ops): New target definition structure.
4573 * Makefile.in (CLIBS): Add LIBS to allow libraries to be
4574 specified on the make command line (via make LIBS=xxx).
4576 * configure.in (enable-gm): magic.o -> gmagic.o.
4579 start-sanitize-gdbtk
4582 * gdbtk.tcl (create_expr_window): Many changes to update GUI.
4583 (add_expr): Changes from create_expr_window.
4584 (create_command_window): Set focus.
4585 (delete_expr): Rewrote.
4586 (expr_update_button): New proc.
4587 (add_expr): Put bindings on FocusIn, FocusOut.
4588 Don't allow .file_popup to be torn off.
4593 * symtab.c (find_pc_symtab): Don't lose if OBJF_REORDERED
4594 is set but there are no psymtabs.
4598 * dsrec.c (load_srec): Remove unused variable.
4599 * monitor.c (monitor_expect): Don't expect a ^C to echo.
4600 * serial.c (serial_open): Add parallel interface.
4601 * sh3-rom.c (parallel, parallel_in_use): New.
4602 (sh3_load): If parallel_in_use, download though the
4604 (sh3_open): Open parallel port if specified.
4605 (sh3_close): New function.
4606 (_inititalize_sh3): Add sh3_close hook and documentation.
4607 * monitor.c (monitor_close): Export.
4608 * monitor.h (monitor_close): Add prototype.
4613 * remote.c (remotetimeout): New GDB variable, use to set the
4614 remote timeout for reading.
4616 start-sanitize-gdbtk
4619 * gdbtk.tcl (gdbtk_tcl_query): Swap Yes and No buttons.
4620 (update_listing): Use lassign. Use "see" to scroll. Don't need
4621 screen_top, screen_bot, screen_height.
4622 (update_assembly): Use "see" to scroll.
4623 (textscrollproc): Removed.
4624 (create_file_win): Don't use textscrollproc.
4625 (asmscrollproc): Removed.
4626 (create_asm_window): Don't use asmscrollproc.
4627 (create_asm_win): Ditto.
4628 (screen_height, screen_top, screen_bot): Removed.
4629 (run_editor): New proc.
4630 (build_framework): Use it.
4631 (create_file_win, create_source_window): Don't use textscrollproc.
4632 (create_breakpoints_window): Set -xscrollcommand on canvas.
4633 (not_implemented_yet): Default button is 0.
4634 (delete_char): Don't use tk_textBackspace.
4635 (create_command_window): Allow Tk bindings to fire after deleting
4637 (create_command_window): Make Delete delete left, not right.
4642 * lynx-nat.c, irix4-nat.c, sparc-nat.c: Include gdbcore.h
4643 to get "struct core_fns" defined.
4644 * Makefile.in (lynx-nat.o, irix4-nat.o, sparc-nat.o):
4645 Are dependent upon gdbcore_h.
4649 * symfile.c (decrement_reading_symtab): New function.
4650 * symfile.c, symtab.h (currently_reading_symtab): New variable.
4651 * symfile.c (psymtab_to_symtab): Adjust currently_reading_symtab.
4652 * gdbtypes.c (check_typedef): Don't call lookup_symbol if
4653 currently_reading_symtab (since that could infinitely recurse).
4657 * stabsread.c (read_struct_type): Trivial simplification.
4659 * stabsread.c (define-symbol): Use invisible references
4660 for TYPE_CODE_SET and TYPE_CODE_BITSTRING too.
4661 * valops.c (call_function_by_hand): Likewise.
4662 * eval.c (evaluate_subexp_standard): When known, use the formal
4663 parameter type as the expected type when evaluating arg expressions.
4664 * ch-lang.c (evaluate_subexp_chill): Likewise (for MULTI_SUBSCRIPT).
4666 start-sanitize-gdbtk
4669 * main.c (main): Disable window interface if --help or --version
4672 * gdbtk.tcl (FSBox): Don't use tk_listboxSingleSelect.
4674 Changes in sync with expect:
4675 * configure.in (ENABLE_GDBTK): Use CY_AC_PATH_TCL and
4677 * aclocal.m4: Replaced with version from expect.
4678 * configure: Regenerated.
4683 * configure.in, configure: Recognize rs6000-*-aix4*.
4684 * config/powerpc/xm-aix.h: Reduce to include "xm-aix4.h".
4685 * config/rs6000/aix4.mh (XM_FILE): Point to xm-aix4.h.
4686 * config/rs6000/xm-aix4.h: New file.
4687 * config/xm-aix4.h: New file.
4692 * gdbserver/low-linux.c: New file.
4693 * remote.c (remote_read_bytes): Fix aborts on larger packets.
4695 * config/i386/linux.mh (GDBSERVER_DEPFILES, GDBSERVER_LIBS):
4697 * stabsread.c (define_symbol): If register value is too large,
4698 tell what it is and what max is.
4700 start-sanitize-gdbtk
4703 * gdbtk.tcl (gdbtk_tcl_fputs, gdbtk_tcl_fputs_error,
4704 gdbtk_tcl_flush): Use "see", not "yview".
4705 (gdbtk_tcl_query): Use questhead bitmap.
4706 various: Always wrap condition of 'if' in {...}.
4707 (add_breakpoint_frame): Set -value on radiobuttons.
4708 (lassign): New proc.
4709 (add_breakpoint_frame): Use lassign, not series of assignments.
4710 (decr): Made faster.
4711 (interactive_cmd): Use "see", not "yview".
4712 (not_implemented_yet): Use warning bitmap.
4713 (update_expr): Don't allow $expr to be evalled by Tcl.
4714 (create_expr_window): Don't use "focus".
4715 (delete_char, delete_line): Define globally.
4716 (delete_line, delete_char, create_command_window, update_autocmd,
4717 build_framework, create_asm_win, create_file_win): Use "see", not
4719 (create_copyright_window, center_window, bind_widget_after_class):
4721 (FSBox,create_command_window, create_autocmd_window): Binding
4723 (textscrollproc): Define globally.
4724 (build_framework): tk_menuBar no longer needed. Keys Prior, Next,
4725 Home, End, Up, and Down are all defined by Tk.
4726 (apply_filespec): Use error bitmap in dialog.
4727 (files_command): Don't use tk_listboxSingleSelect.
4728 (files_command): Don't use "uniq" to remove duplicates from a
4730 (update_assembly): Use lassign.
4731 (create_asm_win): Removed redundant bindings.
4732 (listing_window_button_1, file_popup_menu): Use tk_popup.
4733 (ButtonRelease-1 binding): Just remove tag from window; rest
4736 * gdbtk.c (gdbtk_query): Use Tcl_Merge to provide quoting.
4737 (call_wrapper): Use Tcl_Eval, not Tcl_VarEval.
4738 (gdbtk_call_command): Ditto.
4743 * hpread.c (hpread_build_psymtabs): Finish Jan 4th
4744 enum namespace -> enum_namespace change.
4748 * ch-exp.c (parse_primval): In case ARRAY, add missing
4753 * remote-mips.c (mips_receive_header): Recognize \012 instead
4754 of \n, but write \n when program sends a \012.
4755 * ser-mac.c (mac_input_buffer): Increase size of buffer.
4759 * infptrace.c (initialize_infptrace): Move function out of
4760 #ifdef conditional; put code within the function inside an
4763 * buildsym.c (end_symtab): Remove sort_pending and sort_linevec
4764 arguments. Sorting is now dependent on OBJF_REORDERED. All
4765 callers/references changed.
4766 * dbxread.c (read_ofile_symtab): Correctly determine value for
4767 last_source_start_addr for reordered executables.
4768 (process_one_symbol): Handle N_FUN with no name as an end of
4770 * partial-stab.h (case N_FN, N_TEXT): Don't assume CUR_SYMBOL_VALUE
4771 is the high text address for a psymtab.
4772 (case N_SO): Likewise.
4773 (case N_FUN): Handle N_FUN with no name as an end of function
4775 * minsyms.c (lookup_minimal_symbol_by_pc): Examine all symbols
4776 at the same address rather than a random subset of them.
4777 * coffread.c (coff_symfile_init): Set OBJF_REORDERED.
4778 * elfread.c (elf_symfile_init): Similarly.
4779 * somread.c (som_symfile_init): Similarly.
4780 * xcoffread.c (xcoff_symfile_init): Similarly.
4784 * stack.c (print_stack_frame print_frame_info) symmisc.c
4785 (dump_symtab): Change RETURN_MASK_ERROR to RETURN_MASK_ALL so
4786 that catch_errors doesn't get blindsided by QUIT and lose the
4787 cleanup chain. This fixes a problem where ^C while in a
4788 user-defined command sometimes leaves instream NULL and causes a
4789 segfault in command_loop.
4793 * configure.in, configure: Add `-ldl -lw' for Solaris linking.
4797 * config/sh/sh.mt, config/powerpc/*.mt, config/pa/hppapro.mt,
4798 config/m68k/monitor.mt, config/h8500/h8500.mt, config/h8300/h8300.mt:
4799 srec.o renamed to dsrec.o.
4803 * breakpoint.c (remove_breakpoint): Change error to warning so
4804 that hardware watchpoint removal problems won't leave breakpoint
4805 traps in the target.
4806 start-sanitize-gdbtk
4807 * configure configure.in: Make --enable-gdbtk be the default.
4809 * remote-e7000.c (e7000_insert_breakpoint,
4810 e7000_remove_breakpoint): Use e7000 based breakpoints, not memory
4812 * (e7000_wait): Adjust PC back by two when we see a breakpoint to
4813 compensate for e7000 maladjustment.
4814 * sparcl-tdep.c (sparclite_check_watch_resources): Fix logic bug
4815 which prevented hardware watchpoints from working.
4819 * infptrace.c (udot_info): New function.
4820 (PT_*): Define each individually if that one is not defined.
4821 * rs6000-nat.c (kernel_u_size): New function
4822 Include <sys/user.h> for "struct user"
4823 * alpha-nat.c (kernel_u_size): New function.
4824 Include <sys/user.h> for "struct user"
4825 * sparc-nat.c (kernel_u_size): New function.
4826 Include <sys/user.h> for "struct user"
4827 * i386b-nat.c (kernel_u_size): New function.
4828 * i386v-nat.c (kernel_u_size): New function.
4829 * config/i386/nm-fbsd.h (KERNEL_U_SIZE): Define.
4830 (kernel_u_size): Declare.
4831 * config/i386/nm-linux.h (KERNEL_U_SIZE): Define.
4832 (kernel_u_size): Declare.
4833 * config/sparc/nm-sun4os4.h (KERNEL_U_SIZE): Define.
4834 (kernel_u_size): Declare.
4835 * config/alpha/nm-osf2.h (KERNEL_U_SIZE): Define.
4836 (kernel_u_size): Declare.
4837 * config/rs6000/nm-rs6000.h (KERNEL_U_SIZE): Define.
4838 (kernel_u_size): Declare.
4842 * mdebugread.c (mylookup_symbol): enum namespace becomes
4843 enum_namespace type.
4844 * symfile.c (add_psymbol_to_list)
4845 (add_psymbol_addr_to_list): Ditto.
4846 * symtab.c (lookup_partial_symbol): Ditto.
4847 (lookup_symbol): Ditto.
4848 (lookup_block_symbol): Ditto.
4849 * win32-nat.c (handle_load_dll): Use incoming dll base.
4850 (child_wait): Catch DLL load errors.
4851 (create_child_inferior): Translated between paths correctly.
4855 * i386v4-nat.c (supply_gregset, fill_gregset): Subtract NUM_FREGS
4856 from NUM_REGS to get number of general registers that we care about.
4857 * config/i386/tm-i386.h (REGISTER_BYTES): Define in terms
4858 of number of general regs and number of floating point regs.
4862 * config/i386/tm-win32.h (IN_SOLIB_CALL_TRAMPOLINE): New.
4863 (SKIP_TRAMPOLINE_CODE): New.
4864 * config/i386/xm-win32.h (CANT_FORK): Deleted.
4865 (SLASH*) Changed to use unix style slash.
4866 * symtab.h (namespace enum): becomes typedef to avoid namespace
4868 * infcmd.c (path_command): Use empty string if PATH name not set.
4869 * i386-tdep.c (skip_trampoline_code): New function.
4870 * srec.c: Renamed dsrec.c to avoid filename collision.
4871 * Makefile.in: Cope with renaming.
4875 * symmisc.c (print_objfile_statistics): Print memory use statistics
4876 for objfile psymbol, symbol, and type obstacks.
4880 * config/mips/nm-irix5.h: Restore.
4881 (TARGET_HAS_HARDWARE_WATCHPOINTS, etc): Define as for Irix 4;
4883 * config/mips/irix5.mh (NAT_FILE): Use nm-irix5.h.
4884 * config/mips/irix[345].mh (MUNCH_DEFINE): Remove.
4886 For older changes see ChangeLog-95
4892 version-control: never