4 * v850-tdep.c (scan_prologue): Changes to deal with scheduled
5 prologues correctly. First, prologue end is now defined by
6 presence of a branch, jump or call insn. Second, can no longer
7 fix frame offsets because we may not know the offset until after a
8 register has been saved.
9 * (v850_init_extra_frame_info): Fixup frame offsets here because
10 we have all the info at this time.
11 * (v850_frame_chain): Use new calling convention for scan_prologue.
17 * d10v-tdep.c, config/d10v/tm-d10v.h: Changes to allow stack
18 backtraces and inferior function calls.
23 * mpw-make.sed: Update init.c editing to work with Oct 8 change.
24 (@HLDFLAGS@): Always edit out.
28 * mdebugread.c (parse_partial_symbols): Fix 64-bit
29 sign-extension problems in calculating psymtab addresses.
30 * buildsym.c (end_symtab): Use macro to pop context.
35 * v850-tdep.c: Cleanup lots of things. Add many comments.
37 * v850-tdep.c (v850_init_extra_frame_info v850_frame_chain): Fix
38 sign bugs with scanning prologues. Get a little smarter about
39 calculating the length of uninteresting instructions.
44 * top.c: Add new commands "set annotate" and "show annotate".
48 * corelow.c (core_close): Clear inferior_pid only if there is
51 * cp-valprint.c (cp_print_value_fields): Pass correct address
55 * eval.c (evaluate_subexp_standard) [case BINOP_REPEAT]: Chase
56 typedefs before checking for integral type of right operand.
60 * mdebugread.c (parse_symbol): Fix crash when malloc has
61 no type info and void type has no associated pointer type.
65 * configure.host: New file, host configuration mapping.
66 * configure.tgt: New file, target configuration mapping.
67 * configure.in: Remove host and target mapping.
72 * breakpoint.c (must_shift_inst_regs): New global.
73 (bpstat_stop_status): Change #if uses of DECR_PC_AFTER_BREAK into
74 equivalent expression uses.
75 * infrun.c (wait_for_inferior): Ditto.
80 * v850-tdep.c (v850_push_arguments): Use symbolic names for arg
82 * config/v850/tm-v850.h: Change FP to 29. Define arg regs.
87 * Makefile.in (init.c): Don't use -s option with grep. It means
88 something different under Digital Unix.
90 * buildsym.c (finish_block): Treat LOC_BASEREG_ARG and
91 LOC_LOCAL_ARG as arguments so that GDB will know about function
92 args declared this way. Mostly affects dwarf.
93 * dwarfread.c (decode_die_type): Change default type from int to
94 void. This allows GDB to recognize void functions.
95 * (new_symbol): If AT_PROTOTYPED is present, set a flag in the
97 * findvar.c (extract_floating store_floating): Clean up comments
99 * gdbtypes.h: Add TYPE_FLAG_PROTOTYPED so that we can tell if a
100 function has a prototype. Currently, only dwarf supports this.
101 * utils.c (floatformat_from_doublest): Fix logic error with
102 converting from double to float. (It wasn't shifting mant_long if
103 it had a hidden bit.)
106 * v850-tdep.c: Add support for function calling. Fix some
107 problems with debugging code w/o debug symbols.
108 * config/v850/tm-v850.h: Ditto.
113 * utils.c: Always ensure that size_t is defined. Check
114 HAVE_STDDEF_H rather than __STDC__
115 (xmalloc, xrealloc): Use size_t rather than long.
119 * config/powerpc/tm-ppc-eabi.h: Undefine NO_SINGLE_STEP so targets
120 can use single-step commands.
124 * stabsread.c (define_symbol): If REG_STRUCT_HAS_ADDR is non-zero,
125 follow typedefs before checking TYPE_CODE for structures and unions.
129 * frame.h: Move definition of struct frame_saved_regs to before
130 struct frame to make it possible to use frame_saved_regs in
131 EXTRA_FRAME_INFO macro.
134 * v850-tdep.c config/v850/tm-v850.h: Lotsa new functions and
135 macros to make frame operations (such as backtrace) work.
140 * dbxread.c (process_one_symbol): Check for null string directly
141 rather than using strcmp against "".
142 * partial-stab.h: Ditto.
146 * gdbserver/{gdbreplay.c,low-linux.c,remote-utils.c,utils.c}:
147 Make it compile on Linux and eliminate some warnings.
151 * Makefile.in (init.c): Fixup final sed script to work around
152 Linux bug with `p' operator.
156 * remote-mips.c: Use the correct name everywhere (DDB) for NEC's
158 (ddb_ops, pmon_ops): Fix the documentation strings.
162 * Makefile.in (init.c): Retro HPUX grep lacks -h option. Strip
163 filenames with sed instead.
167 * defs.h: Remove decls of xmalloc and xrealloc. There is a
168 conflicting definition in libiberty.h.
172 * dbxread.c (dbx_symfile_read): Call free_pending_blocks rather
173 than poking global variable (which is now static).
174 * hpread.c (hpread_build_psymtabs): Ditto.
175 * os9kread.c (os9k_symfile_read): Ditto.
176 * xcoffread.c (xcoff_initial_scan): Ditto.
178 * buildsym.h (free_pending_blocks): Declare here.
179 (pending_blocks): Remove declaration of global symbol.
180 (free_pendings): Remove declaration of global symbol.
181 (make_blockvector): Declare here.
182 (record_pending_block): Declare here.
184 * dstread.c (make_blockvector): Remove static copy that was old
185 clone of version in buildsym.c.
186 (process_dst_block): Call record_pending_block rather than doing
188 (read_dst_symtab): Ditto.
190 * buildsym.c (make_blockvector): Make global rather than static,
191 (record_pending_block): New function, code moved from finish_block.
192 (finish_block): Use record_pending_block.
193 (free_pending_blocks): New function.
194 (really_free_pendings): Call free_pending_blocks.
195 (pending_blocks): Make static instead of global.
196 (free_pendings): Make static instead of global.
200 * config/i386/windows.mh config/i386/xm-windows.h:: New config
201 files to support building Wingdb (built under Microsoft build
204 * Makefile.in: Add rule for hpux-thread.o (needs special header
206 * (SUBDIRS): Remove mswin.
207 * Change procedure for creating init.c. Speeds things up quite a
209 * config.in configure configure.in: Check for select, poll.
210 * Check for OSF header files before including hpux-thread.o.
211 * Don't configure doc or testsuite when building under MSVC.
212 * findvar.c value.h (read_register_pid write_register_pid): Make
213 global. Needed for hppa-tdep.c.
214 * (supply_register): Don't set pid to inferior_pid when supplying
216 * hppa-tdep.c (saved_pc_after_call): frame_saved_pc ->
218 * (frame_saved_pc): Change name to hppa_frame_saved_pc.
219 * (hppa_pop_frame): Don't use a pid of 0 with target_write_pc.
220 Use write_pc instead, which uses the correct pid.
221 * (target_read_pc target_write_pc): Use read/write_register_pid
222 instead of read/write_register to preserve the pid passed in.
223 * inftarg.c (child_can_run): Add flag child_suppress_run to allow
224 hpux-threads.c to override this as a runnable target.
225 * config/pa/nm-hppah.h: Define target_new_objfile and
227 * config/pa/tm-hppa.h (FRAME_SAVED_PC): Use hppa_frame_saved_pc
228 instead of frame_saved_pc.
229 * config/m68k/tm-m68k.h: Define TARGET_M68K for Wingdb.
230 * config/m68k/tm-monitor.h: Use FRAME_CHAIN_VALID_ALTERNATE, since
231 we can't easily determine the start file bounds with ELF.
232 * config/mips/tm-mips.h: Define TARGET_MIPS for Wingdb.
233 * hpux-thread.c: New file for HPUX/OSF thread support.
234 * osf-share/{README AT386/cma_thread_io.h HP800/cma_thread_io.h
235 RIOS/cma_thread_io.h cma_attr.h cma_deb_core.h cma_debug_client.h
236 cma_errors.h cma_handle.h cma_init.h cma_list.h cma_mutex.h
237 cma_sched.h cma_semaphore_defs.h cma_sequence.h cma_stack.h
238 cma_stack_int.h cma_tcb_defs.h cma_util.h}: New files for OSF
243 * buildsym.c (finish_block): Change innerblock_anon_complaint to
244 print the addresses as part of the complaint. Add a complaint for
245 cases where the block end address is smaller than the block start
246 address, in case any such conditions slip through our fixup mechanism.
247 * symmisc.c (dump_symtab): Only print blockvector for primary
248 symtabs, to avoid massive duplication of output due to secondary
249 symtabs that point to same blockvector. Also do some minor
254 Replace header_files global by per-objfile field.
255 * gdb-stabs.h (struct dbx_symfile_info): Add fields header_files,
256 n_header_files, n_allocated_header_files.
257 * stabsread.h (header_files, n_header_files, n_allocated_header_files):
258 Replace externs by macros HEADER_FILES, N_HEADER_FILES, and
259 N_ALLOCATED_HEADER_FILES.
260 * dbxread.c (dbx_symfile_finish): Free HEADER_FILES.
261 (free_header_files, init_header-files): Don't free/init headerfiles.
262 (various functions): Use macros instead of header_files globals.
263 * stabsread.c (various functions): Likewise.
267 * dwarf2read.c (read_tag_reference_type): New fn.
268 (read_type_die): Call it.
269 (dwarf_attr): Also look in the DIEs referred to by specification
270 or abstract_origin attributes.
274 * inferior.h (IN_SIGTRAMP): Pass pc to SIGTRAMP_START and
276 * config/i386/tm-i386os9k.h (SIGTRAMP_START, SIGTRAMP_END):
277 Define with dummy pc arg.
278 * config/m68k/tm-nbsd.h: Ditto.
279 * doc/gdbint.texinfo: Document that SIGTRAMP_START and
280 SIGTRAMP_END are macros that take an single argument.
284 * defs.h: Remove define of PRIVATE_XMALLOC.
289 * config/v850/tm-v850.h: Use distinct register for PC, not EIPC.
294 * top.c (execute_control_command): Free values from while_control
295 and if_control conditions after evaluation to avoid storage leaks.
301 * configure configure.in: Recognize v850 target.
302 * v850-tdep.c: New file, NEC V850 target support.
303 * config/v850/{v850.mt tm-v850.h}: New files for NEC V850 support.
308 * infrun.c (wait_for_inferior): Update current_line and
309 current_symtab when stepping continues in the middle of a new line.
313 * top.c (print_gdb_version): Rewrote to comply with new GNU coding
314 standards for the --version option.
315 (print_gnu_advertisement): Remove, now part of print_gdb_version.
316 (show_version): Remove call to print_gnu_advertisement.
317 * top.h (print_gnu_advertisement): Remove prototype.
318 * main.c (print_gdb_help): Move help to static function and
320 (main): Call print_gdb_help rather than inlining it.
321 (main): Remove call to print_gnu_advertisement.
323 * gdbtk.tcl (create_copyright_window): Increase timeout from
324 15 seconds to 30 seconds.
330 * config/d10v/tm-d10v.h (TARGET_{INT,PTR}_BIT): Define.
331 (TARGET_{,LONG_}DOUBLE_BIT): Ditto.
336 * configure.in, config/i386/tm-linux.h: Fix configure
337 problem on older Linux systems that prevented core files
338 from being recognized.
342 * dbug-rom.c: New file, support for Motorola's dBUG monitor.
343 * config/m68k/monitor.mt (TDEPFILES): Add it.
349 * config/d10v/tm-d10v.h (SAVED_PC_AFTER_CALL): Fixed.
350 Now single-steps correctly.
351 * d10v-tdep.c (d10v_pop_frame): Fixed.
356 * config/sh/tm-sh.h (REGISTER_NAMES): Move fp registers to
357 be consistent with GCC.
358 (FPUL_REGNUM, etc): Renumber to match list changes.
359 (ADDR_BITS_REMOVE): Delete.
360 * sh-tdep.c (sh_reg_names, sh3_reg_names, sh3e_reg_names):
361 Rearrange to match REGISTER_NAMES.
362 * sh3-rom.c (sh3_regnames, sh3e_regnames): Ditto.
367 * d10v-tdep.c: Stack chain should work now.
371 * d10v-tdep.c, config/d10v/tm-d10v.h: Snapshot.
376 * configure.in: Add cases for MIPS 5000 like MIPS 4300.
377 * configure: Rebuild.
381 * ser-e7kpc.c: Added wingdb support for target e7000pc.
385 * remote-mips.c (pmon_wait): DDB PMON does not require forced
386 re-entry back into debug mode.
390 * remote-mips.c (mips_load): Ensure that the PC is explicitly
391 loaded after a load to a DDB PMON system.
395 * Makefile.in (INTERNAL_LDFLAGS): Add @HLDFLAGS@ to list.
396 (HLDENV): Set to @HLDENV@.
397 (gdb): Prefix link command line with $(HLDENV).
398 * configure.in: Add support to test for --enable-shared and
399 generate appropriate values for HLDFLAGS and HLDENV.
400 * configure: Regenerated with autoconf.
404 * alpha-nat.c (fetch_core_registers): Match Sep 4 gdbcore.h prototype
405 change for core_read_registers in struct core_fns.
406 * core-regset.c (fetch_core_registers): Ditto & add prototype.
407 * core-sol2.c (fetch_core_registers): Ditto & add prototype.
408 * i386aix-nat.c (fetch_core_registers): Ditto & add prototype.
409 * i386b-nat.c (fetch_core_registers): Ditto.
410 * i386mach-nat.c (fetch_core_registers): Ditto & add prototype.
411 * irix4-nat.c (fetch_core_registers): Ditto.
412 * irix5-nat.c (fetch_core_registers): Ditto.
413 * lynx-nat.c (fetch_core_registers): Ditto & add prototype.
414 * m68knbsd-nat.c (fetch_core_registers): Ditto.
415 * mips-nat.c (fetch_core_registers): Ditto & add prototype.
416 * rs6000-nat.c (fetch_core_registers): Ditto.
417 * sparc-nat.c (fetch_core_registers): Ditto.
418 * sun3-nat.c (fetch_core_registers): Ditto & add prototype.
419 * ultra3-nat.c (fetch_core_registers): Ditto & add prototype.
421 * alpha-nat.c (register_addr): Match Sep 4 gdbcore.h prototype change.
422 * delta68-nat.c (register_addr): Ditto.
423 * gdbserver/low-linux.c (register_addr): Ditto.
424 * gdbserver/low-hppabsd.c (register_addr): Ditto.
425 * i386m3-nat.c (register_addr): Ditto.
426 * mips-nat.c (register_addr): Ditto.
427 * ultra3-nat.c (register_addr): Ditto.
431 * blockframe.c (inside_main_func): Cleanup slightly. Move
432 mainsym def into the block it's used in.
433 * configure.in configure: Allow NATDEPFILES to be recognized in
434 .mh files regardless of whitespace.
436 * cpu32bug-rom.c (cpu32bug_cmds): Change load_response string to
437 keep downloads from hanging.
439 * remote-wiggler.c: Add support for flash upgrades.
440 * (wiggler_error): Fix message format. Add new error code.
441 * (wiggler_write_byets): Error code is hex. Report errors with
443 * (wiggler_read_byets): Report errors with proper routine name.
444 * (get_packet): Add support for new flash commands.
445 * (wiggler_load): Call clear_symtab_users() to reset things
446 properly after download.
447 * (flash_xfer_memory bdm_update_flash_command): New funxtions to
448 support flash upgrades for Wiggler.
449 * (_initialize_remote_wiggler): Add `bdm update-flash' command.
453 * ser-tcp.c: don't include netinet/tcp.h if __CYGWIN32__
457 * config/i386/cygwin32.mh:
458 * config/powerpc/cygwin32.mh: build ser-tcp.o for both hosts
462 * value.h (COERCE_REF): Fix previous change.
463 (COERCE_ENUM): Add a check_typedef (this is the real fix).
467 * eval.c (evaluate_subexp_standard): In case of OP_ARRAY: make a
468 better check of array boundaries.
472 * configure: Update aclocal.m4 and re-run autoconf to get correct
474 * remote-wiggler.c (wiggler_error): Error codes are hex. Also,
475 fix default message generation.
479 * Makefile.in: Add mswin to SUBDIRS. Add rules for
480 mswin/libwingdb.a and remote-wiggler.o.
481 * breakpoint.c (breakpoint_here_p): Clean up bp enabled test.
482 * (breakpoint_inserted_here_p): New func, just like
483 breakpoint_here_p, except it's honest. Honestly.
484 * breakpoint.h: Proto for above.
486 * configure configure.in: Add host *windows* to list of hosts
487 that don't support GDBtk.
489 * configure configure.in: Add mswin to configdirs if host is
491 * core-aout.c (fetch_core_registers register_addr) gdbcore.h:
492 Change all vars that can contain addresses to type CORE_ADDR.
493 * findvar.c (supply_register): Allow val to be NULL. This means
494 that regno is unsupported.
495 * (read_pc read_pc_pid write_pc write_pc_pid): Make non-pid forms
496 just call pid forms with inferior_pid so that there's only once
497 place to hack PC's and such.
498 * infrun.c (proceed): Don't skip breakpoints if user changed PC.
499 * remote-wiggler.c: New file. Support for BDM interface from
501 * serial.c: Enhance serial logging capability. Add hex and octal
502 output modes (set remotelogbase {hex|octal|ascii}. Also log
503 breaks, timeouts, errors, and eofs.
504 * serial.h: Redefine SERIAL_SEND_BREAK to go through a wrapper
505 function so that we can log breaks. Don't export serial_logfile
507 * top.c (execute_command): Don't test for serial_logfp here.
508 Just call serial_log_comand, and let serial.c sort it out.
509 * valops.c (value_of_variable): Don't attempt to establish frames
510 for static and global variables. This makes things work a bit
511 better if the stack or frame pointer is trashed.
512 * config/m68k/monitor.mt (TDEPFILES): Add remote-wiggler.o.
513 * config/m68k/tm-m68k.h: Define STACK_ALIGN. CPU32 can't hack
514 misaligned stacks during function calls.
518 * terminal.h: Don't use #elif.
522 * ch-exp.c (parse_tuple_element): Allow (*): for array tuples
525 * eval.c (evaluate_subexp_standard): In case of OP_ARRAY:
526 check number of args against bounds of array to avoid
529 * value.h (COERCE_REF): Do a CHECK_TYPEDEF in case we get
534 * remote-mips.c: Provide support for DDBVR4300 target board.
535 (ddb_open, ddb_ops): Added.
536 (mips_monitor_type): MON_DDB Added.
537 (mips_enter_debug, mips_exit_debug, mips_initialize,
538 mips_fetch_registers, common_breakpoint, mips_load,
539 _initialize_remote_mips): Updated.
543 * nlm/configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
544 * nlm/configure: Regenerate.
546 * gdbserver/configure.in (i[345]86-*-*): Recognize i686 for
551 * configure.in: If CY_AC_PATH_TCLCONFIG can't find TCL, don't run
552 CY_AC_LOAD_TCLCONFIG.
553 * configure: Rebuild.
557 * infrun.c (wait_for_inferior): Initialize stop_func_end before calling
558 find_pc_partial_function.
562 * configure: Regenerate again.
566 * configure.in: work around host_alias configure bug.
567 AC_CANONICAL_HOST is called twice (first by AC_CHECK_TOOL
568 and second by AC_CANONICAL_SYSTEM). The second clobbers the
569 previous setting. Circumventing by moving the second check
571 * configure: regenerated
576 * config/d10v/d10v.mt: New file.
577 * config/d10v/tm-d10v.h: New file.
578 * configure.in: New target D10V.
579 * d10v-tdep.c: New file.
584 * rs6000-tdep.c: Fix typo in comment.
585 * valops.c (call_function_by_hand): Set using_gcc to 2
586 for code compiled without -g, per comment in code.
587 * config/a29k/tm-a29k.h (STACK_ALIGN): Add comment.
588 * config/sparc/tm-sparc.h (STACK_ALIGN): Add comment.
589 * config/sparc/tm-sp64.h (STACK_ALIGN): Add comment.
590 * config/pyr/tm-pyr.h (STACK_ALIGN): Add comment.
591 * config/m88k/tm-m88k.h (STACK_ALIGN): Add comment.
592 * config/pa/tm-hppa.h (PUSH_ARGUMENTS): Enclose args in ()'s.
593 (STACK_ALIGN): Add comment, move to be with other associated
594 macros, and document.
595 * config/mips/tm-mips.h (PUSH_ARGUMENTS): Enclose args in ()'s.
596 (STACK_ALIGN): Remove completely, handled by PUSH_ARGUMENTS.
597 * config/alpha/tm-alpha.h (PUSH_ARGUMENTS): Enclose args in ()'s.
598 * config/rs6000/tm-rs6000.h (STACK_ALIGN): Remove completely,
599 handled by PUSH_ARGUMENTS.
600 (PUSH_ARGUMENTS): Enclose args in ()'s.
604 * infrun.c (wait_for_inferior): Try to reenable shared library
605 breakpoints even if auto_solib_load is not set.
609 * gdbtk.c (gdbtk_init): Check for a DISPLAY env variable and
610 gracefully degrade to using command line interface if none is
615 * valprint.c (print_longest): Test for CC_HAS_LONG_LONG as well as
616 PRINTF_HAS_LONG_LONG.
617 * expprint.c (dump_expression): Ditto.
618 * configure.in: Fix check for long long support in compiler to
619 use a function body, not a nested function.
620 * configure: Rebuild with autoconf.
624 * aclocal.m4: Include ../bfd/aclocal.m4.
625 * configure.in: Add stdlib.h to AC_CHECK_HEADERS. Call
626 BFD_NEED_DECLARATION on malloc, realloc, and free.
627 * acconfig.h: Add NEED_DECLARATION_MALLOC,
628 NEED_DECLARATION_REALLOC, and NEED_DECLARATION_FREE.
629 * configure, config.in: Rebuild.
630 * defs.h: Include <stddef.h> and <stdlib.h> based on HAVE_*_H
631 rather than __STDC__. Only declare malloc, realloc, and free if
632 NEED_DECLARATION_* is defined.
636 * solib.c (_initialize_solib): Add missing '\' chars at ends of
637 strings that continue on next line.
638 (enable_break): Replace "return 0" with setting success to zero
639 and letting normal return handle the return.
643 * mips-tdep.c (mips_push_arguments): Make sure sp and struct_addr
644 are properly aligned.
648 * rs6000-tdep.c (rs6000_fix_call_dummy): Add full set of arguments.
649 * config/rs6000/tm-rs6000.h (FIX_CALL_DUMMY): Pass all arguments
650 to function, declare function correctly.
654 * symtab.h: changed namespace to _namespace for compiling under
659 * mpw-make.sed: Update for various recent changes, add some
662 * mpw-config.in: Fix name of Magic Cap-specific file.
667 * config/rs6000/tm-rs6000.h (FIX_CALL_DUMMY): Cast args to be an
668 integer for type correctness.
672 * config/mips/{vr4300.mt, vr4300el.mt} (SIM): Add -lm when
673 simulator is included.
677 * findvar.c (write_register_pid): Only needed when TARGET_WRITE_PC
679 (read_register_pid): Only needed when TARGET_READ_PC is not
681 * hppa-tdep.c (frame_saved_pc): Remove prototype.
682 * infptrace.c (udot_info): Prototype when CHILD_XFER_MEMORY is
684 * config/xm-aix4.h (aix_resizewindow): Convert old style decl
686 * xcoffsolib.c (command.h): Include for needed prototypes.
690 * config/i386/cygwin32.mh: Set NAT_FILE to nm-empty.h to make
696 * hppa-tdep.c (hppa_fix_call_dummy): Use MSYMBOL_TYPE rather
697 than SYMBOL_TYPE on msymbols.
698 * somsolib.c (som_solib_create_inferior_hook): Ditto.
700 * Makefile.in (init.c): Generate with prototypes.
702 * config/pa/tm-hppa.h (frame_saved_pc): Add prototype.
703 * config/rs6000/xm-rs6000.h (aix_resizewindow): Ditto.
704 * config/rs6000/tm-rs6000.h (frame_initial_stack_address): Ditto.
705 (pc_load_segment_name): Ditto.
707 (extract_return_value): Ditto.
708 (is_magic_function_pointer): Ditto.
709 (push_dummy_frame): Ditto.
710 (fix_call_dummy): Ditto.
711 (push_arguments): Ditto.
712 (skip_trampoline_code): Ditto.
713 (aix_process_linenos): Ditto.
715 * config/m68k/tm-cisco.h (get_longjmp_target): Add prototype.
716 * config/m68k/tm-es1800.h: Ditto.
717 * config/m68k/tm-vx68.h: Ditto.
718 * config/m68k/tm-sun3.h: Ditto.
719 * config/m68k/tm-m68kv4.h: Ditto.
723 * config/mips/nm-mips.h (get_longjmp_target): Add prototype.
724 * config/mips/nm-irix3.h (get_longjmp_target): Add prototype.
725 * remote-mips.c (mips_read_processor_type): Remove prototype.
726 * mips-tdep.c (gdb_print_insn_mips): Add prototype and make static.
727 * irix5-nat.c (fetch_core_registers): Add prototype.
731 * remote-pa.c (boot_board): Add dummy params to make type compatible
732 for passing to add_com.
733 * scm-exp.c (scm_lreadr): Ensure svalue is not used uninitialized.
734 * buildsym.c (compare_line_numbers): Change function to match
735 prototype and also what qsort expects.
739 * remote.c: Make remote_write_size public.
740 * sh-tdep.c (_initialize_sh_tdep): Set remote_write_size to 300
741 to prevent packet errors with some versions of CMON.
745 * defs.h: Define CONST_PTR as blank if compiling with Microsoft
746 C, else it's `const'.
747 * c-lang.c c-lang.h ch-lang.c f-lang.c language.c m2-lang.c
748 scm-lang.c: Microsoft C can't hack const pointers. Use CONST_PTR
750 * configure configure.in defs.h: Use AC_C_CONST to figure out if
751 the compiler supports const. Gets rid of some cruft in defs.h.
752 * dwarf2read.c: <string.h> -> "gdb_string.h"
753 * remote-sim.c: Add prototypes. Fix call to gdbsim_kill.
754 * sparcl-tdep.c (download): Add prototypes to write_routine and
757 * mswin/gdbwin.c: Don't include both varargs.h AND stdarg.h. Get
758 rid of varargs.h Include string.h.
759 * (gdbwin_update gdbwin_fputs regs_changed_f bpt_changed_f
760 update): Fix prototypes, fix calls.
761 * (update): Return value for catch_errors.
762 * (run_execute_command togdb_command_from_tty togdb_command):
763 Cleanup catching of errors from calls to execute_command. Also,
764 dup command string to avoid modifying const strings.
765 * (togdb_breakinfo_i_init togdb_breakinfo_i_next): Use 0 instead
766 of NULL when see if b->address isn't set.
767 * (bi_disable_bpt bi_enable_bpt bi_delete_all
768 bi_delete_breakpoint): Add arg to calls to update.
769 * (gui_command): Add prototype.
770 * (mswin_query): Fix prototype.
771 * (_initialize_gdbwin): Dup string to avoid modifying const.
772 * (info_path togdb_get_info_path): Remove const from decls cuz
773 this can't be const (it points at malloc'ed memory).
774 * (togdb_searchpath): Remove const from path. Dup string to
775 avoid modifying const strings.
777 * (gdbwin_list_symbols): Regexp param is const.
778 * Fix lots of refs to psymtabs to deref correct pointers.
779 * (togdb_set_breakpoint_sal): Call set_breakpoint_sal with sal,
781 * mswin/gdbwin.h (togdb_searchpath togdb_get_info_path
782 toget_set_info_path): Fix prototypes to match reality.
783 * mswin/gui.cpp: Define _beginthreadex and _endthreadex routines
784 with proper prototypes.
785 * mswin/iface.cpp (gdbwin_fputs): Define with correct number of args.
786 * mswin/ser-win32s.c: Fix defs of min and max.
787 * mswin/serdll32.c (OpenComm16): Make cbInQueue and cbOutQueue be
789 * (WriteComm16): Change lpBug from LPVOID to LPCSTR.
790 * mswin/serdll32.h: Fix prototypes for OpenComm16 and WriteComm16.
794 * main.c (main): Make sure command loop is used with cygwin32.
795 * terminal.h: Allow cygwin32 to use termios.h.
800 * Makefile.in (LIB_INSTALL_DIR): New macro.
801 (TCL): Include @TCL_LD_SEARCH_FLAGS@.
806 * somread.c (som_symtab_read): Handle secondary definition
807 symbols (aka weak symbols).
809 * config/tm-hppa.h (EXTRACT_RETURN_VALUE): Fix thinko in
814 * symfile.c (symfile_bfd_open): Change ifdef from __WIN32__ to
817 * somread.c: Rearrange order of includes to fix warnings under
818 hpux-10.10. Also don't include sys/file.h.
822 * dbxread.c: Don't include param.h or sys/file.h.
823 * (dbx_symfile_read): Determine symfile_relocatable from bfd
824 flags instead of file extension. Also clean up a little bit.
828 * dwarf2read.c dwarfread.c exec.c infcmd.c infrun.c main.c
829 mdebugread.c os9kread.c source.c top.c utils.c: Don't
830 include param.h or sys/file.h (or unistd.h in some cases).
831 * defs.h exec.c inflow.c remote-array.c remote-e7000.c
832 sparcl-tdep.c terminal.h utils.c: Replace all occurances of
833 __WIN32__, WINGDB, WIN32, etc... with _WIN32.
834 * main.c: Remove #ifndef WINGDB around option processing. Fix
835 bug with passing argc==0 and argv==NULL to getopt.
836 * (main) Remove calls to access() before source_command. Let
837 soure_command handle access errors.
838 * maint.c (maintenance_dump_me): #ifdef out for _WIN32.
839 * symtab.c (operator_chars): Make this global for wingdb.
840 * top.c (disconnect): #ifdef out for _WIN32.
841 * (source_command): If got an error and from_tty, then call print
842 error, else just return quietly.
843 * utils.c (fatal_dump_core): Can't kill ourselves under windows.
845 * (pollquit notice_quit): #ifdef out stuff that doesn't exist
850 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Tweak for
851 structures > 4 bytes in size.
853 * valops.c (call_function_by_hand): Handle aligning stacks that
855 * config/pa/tm-hppa.h (USE_STRUCT_CONVENTION): Define.
856 (STACK_ALIGN): Define.
857 * hppa-tdep.c (hppa_alignof): Don't demand a minumim two byte
858 alignment on structs/unions.
862 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Define to "int *",
863 which is the documented type under at least AIX 3 and AIX 4.
867 * config/alpha/alpha-osf3.mh (XM_FILE): Change from xm-alpha.h to
869 (MMALLOC_CFLAGS): Define NO_MMCHECK to not install consistency
875 * gdbtk.c (mainWindow): Deleted.
876 (cleanup_init): Don't destroy main window.
877 (gdbtk_init): Main window now created by Tk_Init.
879 * configure.in: Most X checks now handled automatically by Tk.
880 Use new macros to find Tcl/Tk.
881 * aclocal.m4: New version for new Tcl/Tk; from Don Libes.
882 * config.in, configure: Regenerated.
884 * Makefile.in (TCL, TCL_CFLAGS, TK, TK_CFLAGS, X11_CFLAGS,
885 X11_LDFLAGS, X11_LIBS): Changed for new Tcl and Tk.
890 * config/mips/tm-mips.h (TM_MIPS_H): Enclose file contents in
891 this, define when contents are included.
892 (mips_read_processor_type): Add prototype.
893 * config/mips/xm-mips.h: Remove strdup decl, now in gdb_string.h
894 * mdebugread.c (ecoff_relocate_efi): Add prototype.
895 (fixup_sigtramp): Only needed when TM_MIPS_H is defined.
900 * Makefile.in (gdbtk.tcl): put in $(datadir), not $(libdir).
905 * rs6000-nat.c (add_vmap): Return 0 to caller rather than random value.
906 (vmap_ldinfo): Ensure got_exec_file is not used uninitialized.
907 (fetch_core_registers): Add prototype.
908 (vmap_symtab): Ditto.
909 (objfile_symbol_add): Ditto.
911 (vmap_ldinfo): Ditto.
916 * stabsread.c (get_substring): Declare second arg as int.
918 * remote-es.c: Include gdb_string.h after defs.h.
922 * rs6000-tdep.c (push_arguments): Remove unused variable "pc".
923 (branch_dest): Remove unused variable "offset".
924 (pop_dummy_frame): Add prototype and make static.
925 (push_arguments): Guard against using len uninitialized.
926 (push_arguments): Guard against using arg uninitialized.
927 (frame_saved_pc): Remove unused variable "frameless".
928 (free_loadinfo): Ifdef out unused function.
930 * xcoffread.c (compare_lte): Change prototype and function to
931 be correct type for passing to qsort.
932 (add_stab_to_list): Ifdef out unused function and prototype.
933 (compare_lte): Add prototype
934 (arrange_linetable): Ditto.
935 (record_include_begin): Ditto.
936 (record_include_end): Ditto.
937 (process_linenos): Ditto.
938 (xcoff_next_symbol_text): Ditto.
939 (scan_xcoff_symtab): Ditto.
940 (xcoff_initial_scan): Ditto.
942 * mips-tdep.c (mips_read_processor_type): Add parens around
943 bitwise-and operands in comparison; previous expression always
944 evaluated to 0 because of equality comparison of two constants.
946 * rs6000-tdep.c (skip_prologue): Add missing parens around
947 operands of logical-or so that first operand does not bind
948 to previous logical-and.
950 * configure.in: Expand "long long" test to include code that triggers
951 known problem on HPUX with native compiler.
952 (configure): Regenerated.
956 * somsolib.c (som_solib_create_inferior_hook): Don't
957 warn if __d_pid can't be found.
961 * config/mips/tm-mips.h (struct frame_info): Forward decl.
962 (struct type): Ditto.
963 (struct value): Ditto.
965 * config/mips/tm-mips.h (sigtramp_address): Move extern decl
966 from mips-tdep.c to here.
967 (sigtramp_end): Ditto.
968 (fixup_sigtramp): Ditto.
970 * config/mips/tm-mips.h (init_extra_frame_info): Add prototype.
971 (mips_frame_chain): Ditto.
972 (mips_step_skips_delay): Ditto.
973 (mips_frame_saved_pc): Ditto.
974 (mips_find_saved_regs): Ditto.
975 (mips_frame_num_args): Ditto.
976 (mips_pop_frame): Ditto.
977 (mips_extract_return_value): Ditto.
978 (mips_store_return_value): Ditto.
979 (mips_push_dummy_frame): Ditto.
980 (mips_push_arguments): Ditto.
981 (mips_do_registers_info): Ditto.
982 (ecoff_relocate_efi): Ditto.
983 (ecoff_relocate_efi): Ditto.
984 * irix4-nat.c (fetch_core_registers): Add prototype.
985 * mips-tdep.c (read_next_frame_reg): Add prototype
986 (heuristic_proc_start): Ditto.
987 (heuristic_proc_desc): Ditto.
988 (mips_print_register): Ditto.
989 * config/mips/nm-irix5.h (procfs_set_watchpoint): Add prototype.
990 (procfs_stopped_by_watchpoint): Ditto.
991 * config/mips/nm-irix4.h (procfs_set_watchpoint): Add prototype.
992 (procfs_stopped_by_watchpoint): Ditto.
993 * config/alpha/tm-alpha.h (ecoff_relocate_efi): Add prototype.
994 (struct symbol): Add forward decl for prototype.
996 * breakpoint.c (internal_breakpoint_number): Only needed if
997 GET_LONGJMP_TARGET or SOLIB_ADD is defined.
999 * objfiles.c (ecoff_relocate_efi): Remove prototype.
1003 * configure.in: Add test for "long long" support.
1004 * configure: Regenerate with autoconf.
1005 * acconfig.h: Add CC_HAS_LONG_LONG
1006 * config.in: Regenerate with autoheader.
1007 * config/mips/tm-mips64.h (FORCE_LONG_LONG): Remove
1008 * config/sparc/tm-sp64.h (CC_HAS_LONG_LONG): Remove.
1009 * config/mips/tm-vr4300el.h (CC_HAS_LONG_LONG): Remove.
1010 * config/mips/tm-vr4300.h (CC_HAS_LONG_LONG): Remove.
1011 * config/mips/xm-irix5.h (CC_HAS_LONG_LONG): Remove
1012 (PRINTF_HAS_LONG_LONG): Remove.
1013 (FORCE_LONG_LONG): Remove.
1014 * config/powerpc/xm-aix.h (UINT_MAX): Undef and use gdb's version.
1015 * config/convex/xm-convex.h (CC_HAS_LONG_LONG): Remove
1016 (PRINTF_HAS_LONG_LONG): Remove.
1017 * config/xm-nbsd.h (CC_HAS_LONG_LONG): Remove.
1018 (PRINTF_HAS_LONG_LONG): Remove.
1019 * config/pa/tm-hppa.h (GET_FIELD): Put parens around
1020 subtraction inside shift. Put parens around subtraction
1021 in operand of bitwise and.
1022 (struct frame_info): Forward declare
1023 if __STDC__ defined.
1024 (frame_saved_regs): Ditto.
1025 (struct value): Ditto.
1026 (struct type): Ditto.
1027 (struct inferior_status): Ditto.
1028 (init_extra_frame_info): Add prototype.
1029 (skip_prologue): Ditto.
1030 (frameless_function_invocation): Ditto.
1031 (frame_chain): Ditto.
1032 (frame_chain_valid): Ditto.
1033 (saved_pc_after_call): Ditto.
1034 (hppa_fix_call_dummy): Ditto.
1035 (hppa_push_arguments): Ditto.
1036 (pa_do_registers_info): Ditto.
1037 (in_solib_call_trampoline): Ditto.
1038 (in_solib_return_trampoline): Ditto.
1039 (push_dummy_frame): Ditto.
1040 * convex-tdep.c (decout): Use print_longest rather than
1042 * defs.h: Remove use of FORCE_LONG_LONG and __GNUC__ to set
1044 (INT_MIN): Fix so it works correctly when assigned to a long long.
1045 * valprint.c (longest_to_int): Rewrite to remove dependence
1046 on INT_MIN and INT_MAX.
1047 (print_longest): Rewrite the code that falls back to synthesized
1048 hex output when LONGEST value is not representable as in a long and
1049 printf doesn't support printing long longs.
1050 * ch-valprint.c (chill_val_print): Cast 2nd arg of
1051 chill_print_type_scalar to LONGEST.
1052 chill_print_type_scalar): Make static and add prototype.
1053 * hppa-tdep.c (get_field): Ifdef out unused function.
1056 (extract_5_store): Ditto.
1057 (extract_11): Ditto.
1058 (extract_12): Ditto.
1059 (deposit_17): Ditto.
1060 (extract_14): Convert to static and add prototype.
1061 (deposit_14): Ditto.
1062 (extract_21): Ditto.
1063 (deposit_21): Ditto.
1064 (extract_17): Ditto.
1065 (extract_5r_store): Ditto.
1066 (extract_5R_store): Ditto.
1067 (extract_5_load): Ditto.
1068 (find_proc_framesize): Ditto.
1069 (find_dummy_frame_regs): Ditto.
1070 (sign_extend): Ditto.
1071 (find_unwind_entry): Add prototype.
1072 (find_return_regnum): Ditto.
1073 (unwind_command): Ditto.
1074 (find_dummy_frame_regs): Add parens around subtraction in operand
1076 (skip_prologue): Add parens around operands of logical-and inside
1077 operand of logical-or.
1078 (sign_extend): Add parens around operands of subtraction inside
1080 (low_sign_extend): Ditto.
1081 * top.c (filename_completer): Convert old style decl of
1082 filename_completion_function into prototype.
1083 * f-lang.c (patch_common_entries): Ifdef out unused function.
1084 * stabsread.c (read_cfront_baseclasses): Remove unused local
1085 variable "msg_noterm".
1086 (resolve_cfront_continuation): Remove unused local variable "fip".
1087 (read_type): Remove unused variable xtypenums.
1088 (read_cfront_static_fields): Remove unused variable "i".
1089 (read_cfront_static_fields): Remove unused variable "nfields".
1090 (read_cfront_member_functions): Add missing comment terminator.
1091 (read_cfront_static_fields): Return 1 rather than random value.
1092 (read_cfront_baseclasses): Ditto.
1093 (read_cfront_baseclasses): Ditto.
1094 (read_cfront_baseclasses): Ditto.
1095 * somsolib.c (som_solib_create_inferior_hook): Remove unused
1097 (som_solib_create_inferior_hook): Remove unused variable
1099 (language.h): Add for needed prototypes.
1100 (som_solib_sharedlibrary_command): Add prototype.
1101 * hpread.c: (hpread_read_array_type): Add prototype.
1102 * somread.c (hpread_build_pysmtabs): Add prototype.
1103 (hpread_symfile_finish): Ditto.
1104 (hpread_symfile_init): Ditto.
1105 * hppah-nat.c (fetch_register): Convert old style decl
1107 (gdbcore.h): Include for needed prototypes.
1108 (fetch_register): Remove unused variable "mess".
1109 * remote-pa.c (get_offsets): Ifdef out unused function.
1110 (remote_start_remote): Remove unused variable "timeout".
1111 (boot_board): Add prototype.
1112 (reaad_frame): Add prototype.
1113 (getpkt): Remove unused variable "bp".
1114 (remote_kill): Add prototype.
1115 (remote_mourn): Add prototype.
1116 (remote_insert_breakpoint): Add prototype.
1117 (remote_remove_breakpoint): Add prototype.
1118 * valops.c (value_push): Only use if PUSH_ARGUMENTS is not defined.
1119 * infcmd.c (do_registers_info): Only need prototype if
1120 DO_REGISTERS_INFO is not defined.
1121 (breakpoint_auto_delete_contents): Only need if
1122 CALL_DUMMY_BREAKPOINT_OFFSET is defined.
1126 * xcoffread.c (xcoff_end_psymtab): Add textlow_not_set parameter.
1127 (END_PSYMTAB): Ditto.
1128 (scan_xcoff_symtab): Call xcoff_end_psymtab with textlow_not_set.
1132 * printcmd.c (_initialize_printcmd): Initialize
1133 tm_print_insn_info.flavour.
1134 start-sanitize-gdbtk
1135 * gdbtk.c (gdb_disassemble): Initialize di.flavour.
1140 * Makefile.in (scm-valprint.o): Depends upon gdbcore_h.
1141 (arm-tdep.o): Ditto.
1143 (i386ly-tdep.o): Ditto.
1144 (i960-tdep.o): Ditto.
1145 (m68k-tdep.o): Ditto.
1146 (nindy-tdep.o): Ditto.
1147 (scm-lang.o): Ditto.
1148 (w65-tdep.o): Ditto.
1149 (z8k-tdep.o): Ditto.
1150 (m68k-tdep.o): Depends upon value_h and gdb_string.h
1151 (m2-valprint.o): Depends upon m2-lang.h.
1152 (sparc-tdep.o): Depends upon gdb_string.h
1153 (valprint.o): Depends upon valprint.h
1155 * remote-e7000.c (notice_quit): Remove prototype.
1156 * top.c (initialize_targets): Remove prototype, now in target.h.
1157 * stabsread.c (resolve_cfront_continuation): Remove prototype.
1158 * dbxread.c (resolve_cfront_continuation): Remove prototype.
1159 * symfile.h (set_demangling_style): Remove prototype.
1160 * config/tm-sysv4.h (in_plt_section): Remove prototype, in objfiles.h.
1161 * config/sparc/tm-sparc.h (single_step): Remove extern decl, now in
1163 * config/arc/tm-arc.h (one_stepped, single_step): Remove extern decls,
1165 * ser-unix.c (hardwire_restore): Remove obsolete prototype.
1166 * sparc-tdep.c (single_step): Remove forward decl of isbranch.
1167 * scm-lang.c (find_function_in_inferior): Remove prototype.
1168 (value_allocate_space_in_inferior): Ditto.
1169 * infrun.c (write_pc_pid): Remove prototype, now in inferior.h.
1170 * defs.h (strchr): Remove declarations, they are declared in
1176 * f-valprint.c (f77_print_array_1): Remove extra arg that was being
1177 passed to f77_print_array_1.
1178 * gdbtypes.c (add_name): Remove unused variables lenstrlen and lenstr.
1179 * scm-exp.c (scm_istr2int): Remove unused variable "j".
1180 (scm_parse): Remove unused variable "str".
1181 * hp300ux-nat.c (store_inferior_register): Remove unused variable
1183 (store_inferior_registers): Remove unnecessary decl "registers".
1184 * m68k-tdep.c (m68k_pop_frame): Remove unused variable "fi".
1185 * scm-lang.c (scm_get_field): Remove unused variable "val".
1186 (scm_lookup_name): Remove unused variable "symval".
1187 * objfiles.c (map_to_file): Remove unused local variable "tempfd".
1188 * procfs.c (do_attach, do_detach): Remove unused variable "result".
1189 (last_resume_pid): Remove unused static variable.
1190 * alpha-tdep.c (alpha_linux_sigtramp_offset): Remove unused variable
1192 * objfiles.c (map_to_address): Remove unused function.
1193 * f-valprint.c (print_max): Remove extraneous extern decl,
1195 (calc_f77_array_dims): Remove extraneous prototype, in f-lang.h.
1196 * ch-exp.c (write_lower_upper_value): Remove prototype for
1199 * gdbtypes.c (cfront_mangle_name): #ifdef out unused function.
1200 * ch-exp.c (parse_mode_call): Ditto.
1201 * f-valprint.c (there_is_a_visible_common_named): Ditto.
1202 * f-lang.c (clear_function_list): Ditto.
1203 (get_bf_for_fcn): Ditto.
1204 (clear_bf_list): Ditto.
1205 (add_common_block): Ditto.
1206 (patch_all_commons_by_name): Ditto.
1207 (find_first_common_named): Ditto.
1208 (add_common_entry): Ditto.
1209 (allocate_saved_function_node): Ditto.
1210 (allocate_saved_bf_node): Ditto.
1211 (allocate_common_entry_node): Ditto.
1212 (allocate_saved_f77_common_node): Ditto.
1214 * arm-tdep.c (gdbcore.h): Include for necessary prototypes.
1215 * dcache.c (gdbcore.h): Ditto.
1216 * i386ly-tdep.c (gdbcore.h): Ditto.
1217 * i960-tdep.c (gdbcore.h): Ditto.
1218 * m2-valprint.c (m2-lang.h): Ditto.
1219 * m68k-tdep.c (gdbcore.h): Ditto.
1221 (gdb_string.h): Ditto.
1222 * nindy-tdep.c (gdbcore.h): Ditto.
1223 * scm-lang.c (gdbcore.h): Ditto.
1224 * scm-valprint.c (gdbcore.h): Ditto.
1225 * w65-tdep.c (gdbcore.h): Ditto.
1226 * z8k-tdep.c (gdbcore.h): Ditto.
1227 * sparc-tdep.c (gdb_string.h): Include.
1228 * valprint.c (valprint.h): Include.
1230 * config/xm-lynx.h: Remove part of comment about INT_MIN
1231 redefined warnings from defs.h, since INT_MIN define in
1232 defs.h is now protected by #ifndef INT_MIN.
1233 * config/i386/xm-i386bsd.h: Ditto.
1234 * config/m68k/xm-hp300bsd.h: Ditto.
1235 * config/m68k/xm-news.h: Ditto.
1237 * config/pa/xm-hppah.h (INT_MIN): Remove bogus INT_MIN
1238 definition as 0x80000000. The macro in defs.h is better.
1239 * config/i386/xm-i386m3.h (INT_MIN): Ditto.
1240 * config/i386/xm-i386mach.h (INT_MIN): Ditto.
1241 * config/ns32k/xm-ns32km3.h (INT_MIN): Ditto.
1242 * config/pa/xm-hppab.h: Ditto.
1244 * core-aout.c (fetch_core_registers): Add prototype.
1245 * hp300ux-nat.c (fetch_inferior_register): Ditto.
1246 (store_inferior_register_1): Ditto.
1247 (store_inferior_register): Ditto.
1248 * config/m68k/tm-m68k.h (find_saved_regs): Ditto.
1249 *scm-valprint.c (c_val_print): Ditto.
1250 * procfs.c (add_fd): Ditto.
1253 (sigcodename): Ditto.
1254 (sigcodedesc): Ditto.
1255 (procfs_kill_inferior): Ditto.
1256 (procfs_xfer_memory): Ditto.
1257 (procfs_store_registers): Ditto.
1258 (create_procinfo): Ditto.
1259 (procfs_init_inferior): Ditto.
1260 (proc_set_exec_trap): Ditto.
1261 (procfs_attach): Ditto.
1262 (procfs_detach): Ditto.
1263 (procfs_prepare_to_store): Ditto.
1264 (procfs_files_info): Ditto.
1265 (procfs_open): Ditto.
1266 (procfs_wait): Ditto.
1267 (procfs_fetch_registers): Ditto.
1268 (procfs_mourn_inferior): Ditto.
1269 (procfs_can_run): Ditto.
1270 (procfs_thread_alive): Ditto.
1271 (procfs_stop): Ditto.
1272 * alpha-nat.c (fetch_core_registers): Ditto.
1273 * config/alpha/tm-alpha.h (alpha_osf_skip_sigtramp_frame): Ditto.
1274 * objfiles.c (ecoff_relocate_efi): Ditto.
1275 * inflow.c (pass_signal): Ditto.
1276 (handle_sigio): Ditto.
1277 * annotate.c (breakpoint_changed): Ditto.
1278 * callback.c (wrap): Ditto.
1281 * utils.c (malloc_botch): Ditto.
1282 (fputs_maybe_filtered): Ditto.
1283 (vfprintf_maybe_filtered): Ditto.
1284 * defs.h (notice_quit): Ditto.
1285 * defs.h (xmalloc, xrealloc): Ditto.
1286 * top.c (stop_sig): Ditto.
1287 (init_signals): Ditto.
1288 (user_defined_command): Ditto.
1289 (source_cleanup_lines): Ditto.
1290 (dont_repeat_command): Ditto.
1291 (serial_log_command): Ditto.
1292 (disconnect): Ditto.
1293 * target.h (initialize_targets): Ditto.
1294 * os9kread.c (read_minimal_symbols): Ditto.
1295 * mdebugread.c (mdebug_psymtab_to_symtab): Ditto.
1297 (push_parse_stack): Ditto.
1298 (pop_parse_stack): Ditto.
1299 (is_pending_symbol): Ditto.
1300 (add_pending): Ditto.
1301 * serial.c (serial_logchar): Ditto.
1302 (serial_interface_lookup): Ditto.
1303 * serial.h (serial_log_command): Ditto.
1304 * f-valprint.c (info_common_command): Ditto.
1305 * gdbtypes.h (print_type_scalar): Ditto.
1306 * scm-valprint.c (scm_scmlist_print): Ditto.
1308 * scm-lang.c (scm_printstr): Ditto.
1310 (evaluate_subexp_scm): Ditto.
1311 * scm-exp.c (scm_read_token): Ditto.
1312 (scm_skip_ws): Ditto.
1313 (scm_lreadparen): Ditto.
1314 * m2-lang.c (emit_char): Ditto.
1315 (m2_printchar): Ditto.
1316 (m2_printstr): Ditto.
1317 (m2_create_fundamental_type): Ditto.
1318 * f-lang.c (emit_char): Ditto.
1319 (f_printchar): Ditto.
1320 (f_printstr): Ditto.
1321 (f_create_fundamental_type): Ditto.
1322 * ch-lang.c (chill_printchar): Ditto.
1323 (chill_printstr): Ditto.
1324 (chill_create_fundamental_type): Ditto.
1325 (value_chill_length): Ditto.
1326 (value_chill_card): Ditto.
1327 (value_chill_max_min): Ditto.
1328 (evaluate_subexp_chill): Ditto.
1329 * ch-exp.c (PEEK_TOKEN): Ditto.
1330 (peek_token_): Ditto.
1331 (forward_token_): Ditto.
1332 (parse_case_label): Ditto.
1333 (parse_opt_untyped_expr): Ditto.
1334 (parse_unary_call): Ditto.
1335 (parse_call): Ditto.
1336 (parse_named_record_element): Ditto.
1337 (parse_tuple_element): Ditto.
1338 (parse_opt_element_list): Ditto.
1339 (parse_tuple): Ditto.
1340 (parse_primval): Ditto.
1341 (parse_operand6): Ditto.
1342 (parse_operand5): Ditto.
1343 (parse_operand4): Ditto.
1344 (parse_operand3): Ditto.
1345 (parse_operand2): Ditto.
1346 (parse_operand1): Ditto.
1347 (parse_operand0): Ditto.
1348 (parse_expr): Ditto.
1349 (parse_then_alternative): Ditto.
1350 (parse_else_alternative): Ditto.
1351 (parse_if_expression): Ditto.
1352 (parse_untyped_expr): Ditto.
1353 (growbuf_by_size): Ditto.
1354 (match_simple_name_string): Ditto.
1355 (decode_integer_value): Ditto.
1356 (decode_integer_literal): Ditto.
1357 (match_float_literal): Ditto.
1358 (match_float_literal): Ditto.
1359 (match_string_literal): Ditto.
1360 (match_character_literal): Ditto.
1361 (match_integer_literal): Ditto.
1362 (match_bitstring_literal): Ditto.
1363 (write_lower_upper_value): Ditto.
1364 * ch-lang.h (type_lower_upper): Ditto.
1365 * c-lang.c (emit_char): Ditto.
1366 * dwarfread.c (free_utypes): Ditto.
1367 * stabsread.h (resolve_cfront_continuation): Ditto.
1368 * stabsread.c (get_substring): Ditto.
1369 (read_one_struct_field): Ditto.
1370 * stabsread.h (process_later): Ditto.
1371 * demangle.c (set_demangling_command): Ditto.
1372 * defs.h (set_demangling_style): Ditto.
1373 * maint.c (maintenance_info_command): Ditto.
1374 (print_section_table): Ditto.
1375 (maintenance_info_sections): Ditto.
1376 (maintenance_print_command): Ditto.
1377 * symtab.h (maintenance_print_statistics): Ditto.
1378 * objfiles.h (in_plt_section): Ditto.
1379 * objfiles.c (add_to_objfile_sections): Ditto.
1380 * bcache.c (hash): Ditto.
1381 (lookup_cache): Ditto.
1382 * exec.c (bfdsec_to_vmap): Ditto.
1384 * f-exp.y (growbuf_by_size, match_string_literal): Ditto.
1385 * language.c (unk_lang_printchar): Ditto.
1386 (unk_lang_printstr): Ditto.
1387 (unk_lang_create_fundamental_type): Ditto.
1388 (unk_lang_print_type): Ditto.
1389 (unk_lang_val_print): Ditto.
1390 (unk_lang_value_print): Ditto.
1391 * target.c (update_current_target): Ditto.
1392 (debug_to_open): Ditto.
1393 (debug_to_close): Ditto.
1394 (debug_to_attach): Ditto.
1395 (debug_to_detach): Ditto.
1396 (debug_to_resume): Ditto.
1397 (debug_to_wait): Ditto.
1398 (debug_to_fetch_registers): Ditto.
1399 (debug_to_store_registers): Ditto.
1400 (debug_to_prepare_to_store): Ditto.
1401 (debug_to_xfer_memory): Ditto.
1402 (debug_to_files_info): Ditto.
1403 (debug_to_insert_breakpoint): Ditto.
1404 (debug_to_remove_breakpoint): Ditto.
1405 (debug_to_terminal_init): Ditto.
1406 (debug_to_terminal_inferior): Ditto.
1407 (debug_to_terminal_ours_for_output): Ditto.
1408 (debug_to_terminal_ours): Ditto.
1409 (debug_to_terminal_info): Ditto.
1410 (debug_to_kill): Ditto.
1411 (debug_to_load): Ditto.
1412 (debug_to_lookup_symbol): Ditto.
1413 (debug_to_create_inferior): Ditto.
1414 (debug_to_mourn_inferior): Ditto.
1415 (debug_to_can_run): Ditto.
1416 (debug_to_notice_signals): Ditto.
1417 (debug_to_thread_alive): Ditto.
1418 (debug_to_stop): Ditto.
1419 start-sanitize-gdbtk
1420 * gdbtk.c (null_routine): Ditto.
1421 (gdbtk_flush): Ditto.
1422 (gdbtk_fputs): Ditto.
1423 (gdbtk_query): Ditto.
1424 (gdbtk_readline): Ditto.
1425 (gdbtk_readline_end): Ditto.
1426 (gdb_get_breakpoint_list): Ditto.
1427 (gdb_get_breakpoint_info): Ditto.
1428 (breakpoint_notify): Ditto.
1429 (gdbtk_create_breakpoint): Ditto.
1430 (gdbtk_delete_breakpoint): Ditto.
1431 (gdbtk_modify_breakpoint): Ditto.
1434 (gdb_sourcelines): Ditto.
1435 (map_arg_registers): Ditto.
1436 (get_register_name): Ditto.
1437 (gdb_regnames): Ditto.
1438 (get_register): Ditto.
1439 (gdb_fetch_registers): Ditto.
1440 (register_changed_p): Ditto.
1441 (gdb_changed_register_list): Ditto.
1443 (call_wrapper): Ditto.
1444 (gdb_listfiles): Ditto.
1446 (gdbtk_dis_asm_read_memory): Ditto.
1447 (compare_lines): Ditto.
1448 (gdb_disassemble): Ditto.
1449 (tk_command): Ditto.
1450 (cleanup_init): Ditto.
1451 (gdbtk_interactive): Ditto.
1453 (gdbtk_wait): Ditto.
1454 (gdbtk_call_command): Ditto.
1455 (tk_command_loop): Ditto.
1456 (gdbtk_init): Ditto.
1458 * breakpoint.h (set_breakpoint_sal): Ditto.
1459 * remote-utils.c (usage): Ditto.
1460 * remote.c (set_thread): Ditto.
1461 (remote_thread_alive): Ditto.
1462 (get_offsets): Ditto.
1463 (read_frame): Ditto.
1464 (remote_insert_breakpoint): Ditto.
1465 (remote_remove_breakpoint): Ditto.
1466 * sparc-nat.c (fetch_core_registers): Ditto.
1467 * corelow.c (add_to_thread_list): Ditto.
1469 * inftarg.c (proc_wait): Ditto.
1470 * infptrace.c (udot_info): Ditto.
1471 (fetch_register): Ditto.
1472 * ser-unix.c (hardwire_noflush_set_tty_state): Ditto.
1473 (hardwire_print_tty_state): Ditto.
1474 (hardwire_flush_output): Ditto.
1475 (hardwire_flush_input): Ditto.
1476 (hardwire_send_break): Ditto.
1477 (hardwire_setstopbits): Ditto.
1478 * ser-tcp.c (tcp_return_0): Ditto.
1479 (tcp_noflush_set_tty_state): Ditto.
1480 (tcp_print_tty_state): Ditto.
1481 * solib.c (match_main): Ditto.
1482 * gdbtypes.c (print_bit_vector): Ditto.
1483 (print_arg_types): Ditto.
1484 (dump_fn_fieldlists): Ditto.
1485 (print_cplus_stuff): Ditto.
1486 * symfile.h (entry_point_address): Ditto.
1487 * symfile.c (decrement_reading_symtab): Ditto.
1488 * valops.c (value_arg_coerce): Ditto.
1489 * value.h (find_function_in_inferior): Ditto.
1490 (value_allocate_space_in_inferior): Ditto.
1491 * values.c (vb_match): Ditto.
1492 * thread.c (info_thread_command): Ditto.
1493 (restore_current_thread): Ditto.
1494 (thread_apply_all_command): Ditto.
1495 (thread_apply_command): Ditto.
1496 * inferior.h (write_pc_pid): Ditto.
1497 * infrun.c (delete_breakpoint_current_contents): Ditto.
1498 * breakpoint.c (print_it_normal): Ditto.
1499 (watchpoint_check): Ditto.
1500 (print_it_done): Ditto.
1501 (print_it_noop): Ditto.
1502 (maintenance_info_breakpoints): Ditto.
1503 (create_longjmp_breakpoint): Ditto.
1504 (hbreak_command): Ditto.
1505 (thbreak_command): Ditto.
1506 (watch_commnd_1): Ditto.
1507 (rwatch_command): Ditto.
1508 (awatch_command): Ditto.
1509 (do_enable_breakpoint): Ditto.
1510 * ch-valprint.c (chill_val_print_array_elements): Ditto.
1511 * eval.c (evaluate_subexp): Ditto.
1513 (evaluate_struct_tuple): Ditto.
1514 * eval.c (init_array_element): Ditto.
1516 * alpha-tdep.c (push_sigtramp_desc): Add prototype and make static.
1517 * breakpoint.c (hw_breakpoint_used_count): Ditto.
1518 (hw_watchpoint_used_count): Ditto.
1519 * findvar.c (write_register_gen): Ditto.
1520 (read_register_pid): Ditto.
1521 * symtab.c (cplusplus_hint): Ditto.
1522 * infcmd.c (breakpoint_auto_delete_contents): Ditto.
1523 * ch-valprint.c (chill_print_type_scalar): Ditto.
1524 * gdbtypes.c (add_name): Ditto.
1525 (add_mangled_type): Ditto.
1526 (cfront_mangle_name): Ditto.
1527 * sparc-tdep.c (isbranch): Ditto.
1528 * inftarg.c (child_stop): Ditto.
1529 * win32-nat.c (child_stop): Ditto.
1530 * mac-nat.c (child_stop): Ditto.
1531 * remote-utils.c (sr_com): Ditto.
1532 * dbxread.c (process_now): Ditto.
1533 * ch-exp.c (require): Ditto.
1534 (check_token): Ditto.
1536 (parse_mode_call): Ditto.
1537 (parse_mode_or_normal_call): Ditto.
1538 * scm-lang.c (scm_lookup_name): Ditto
1539 * f-lang.c (allocate_saved_bf_node): Ditto.
1540 (allocate_saved_function_node): Ditto.
1541 (allocate_saved_f77_common_node): Ditto.
1542 (allocate_common_entry_node): Ditto.
1543 (add_common_block): Ditto.
1544 (add_common_entry): Ditto.
1545 (find_first_common_named): Ditto.
1546 (patch_common_entries): Ditto.
1547 (patch_all_commons_by_name): Ditto.
1548 (clear_bf_list): Ditto.
1549 (get_bf_for_fcn): Ditto.
1550 (clear_function_list): Ditto.
1551 * scm-exp.c (scm_istr2int): Ditto.
1552 (scm_istring2number): Ditto.
1553 * scm-valprint.c (scm_inferior_print): Ditto.
1554 * f-typeprint.c (print_equivalent_f77_float_type): Ditto.
1555 * f-valprint.c (f77_get_dynamic_length_of_aggregate): Ditto.
1556 (f77_create_arrayprint_offset_tbl): Ditto.
1557 (f77_print_array_1): Ditto.
1558 (f77_print_array): Ditto.
1559 (list_all_visible_commons): Ditto.
1560 (there_is_a_visible_common_named): Ditto.
1561 * mdebugread.c (ecoff_relocate_efi): Ditto.
1562 * callback.c (os_close): Ditto.
1563 (os_get_errno): Ditto.
1568 (os_read_stdin): Ditto.
1570 (os_write_stdout): Ditto.
1575 (os_shutdown): Ditto.
1577 (os_printf_filtered): Ditto.
1579 * scm-lang.h (scm_parse): Change old style decl to prototype.
1580 * config/alpha/tm-alphalinux.h (alpha_linux_sigtramp_offset): Ditto.
1581 * top.c (init_proc): Ditto.
1582 (query_hook): Ditto.
1583 (error_hook): Ditto.
1584 * f-lang.c (c_value_print): Ditto.
1585 * ch-exp.c (parse_expression): Ditto.
1586 (parse_primval): Ditto.
1587 (parse_untyped_expr): Ditto.
1588 (parse_opt_untyped_expr): Ditto.
1590 * config/sparc/tm-sparc.h (sparc_init_extra_frame_info): Ditto.
1591 (sparc_frame_saved_pc): Ditto.
1592 (sparc_push_dummy_frame): Ditto.
1593 (sparc_pop_frame): Ditto.
1594 * defs.h (fclose): Ditto.
1596 (error_hook): Ditto.
1598 * arc-tdep.c (single_step): Change arg to type "enum target_signal".
1599 * rs6000-tdep.c (single_step): Ditto.
1600 * sparc-tdep.c (single_step): Ditto.
1602 * breakpoint.c (cleanup_executing_breakpoints): Change unused arg type
1603 to PTR which is what make_cleanup expects.
1604 * utils.c (null_cleanup): Change arg type to PTR.
1605 * defs.h (null_cleanup): Change prototype to match actual function.
1606 * config/sparc/tm-sparc.h (struct frame_info): Move forward decl.
1607 * ch-valprint.c (chill_val_print): Cast 2nd arg of
1608 chill_print_type_scalar to LONGEST.
1609 * infrun.c (wait_for_inferior): Have empty switch case for
1610 BPSTAT_WHAT_CHECK_SHLIBS when SOLIB_ADD is not defined.
1611 (stop_on_solib_events): Only needed if SOLIB_ADD is defined.
1612 * infcmd.c (attach_command): Only need auto_solib_add if SOLIB_ADD
1614 * symfile.c (generic_load): Scan long int using a long int spec,
1616 * infptrace.c (udot_info): Only need local variables if KERNEL_U_SIZE
1618 (fetch_register): Only need function if FETCH_INFERIOR_REGISTERS is
1620 * inflow.c (handle_sigio): Only need prototype when the actual
1621 function is compiled in.
1622 * valprint.c (longest_to_int): Expand error message to be
1623 separate messages for args larger than largest signed int
1624 and args smaller than smallest signed int.
1625 * valprint.c (print_longest): Fix problems with support for case
1626 where compiler supports type "long long" but the runtime doesn't
1627 support printing them with "%ll".
1628 * scm-valprint.c (scm_scmlist_print, scm_scmval_print): Change
1629 return types to void since we don't actually return anything
1630 meaningful and callees ignore the values anyway.
1631 * procfs.c (modify_inherit_on_fork_flag): Enclose pr_flags in PIOCSET
1633 (modify_run_on_last_close_flag): Ditto.
1634 (wait_fd): Enclose local variables "num_fds" and "i" LOSING_POLL
1636 * alpha-tdep.c (push_sigtramp_desc): Return proc_desc rather than
1638 * infrun.c (wait_for_inferior): Ensure random_signal is not used
1640 * valops.c (call_function_by_hand): Ensure struct_addr is not used
1642 * breakpoint.c (watch_command_1): Ensure prev_frame is not used
1644 * utils.c (vfprintf_maybe_filtered): Change second arg from "char *"
1646 start-sanitize-gdbtk
1647 * gdbtk.c (gdb_fetch_registers): Cast fourth arg to map_arg_registers
1648 to proper pointer type, from int.
1649 (gdbtk_query): Change first arg to "const char *" from "char *".
1651 * infptrace.c (udot_info): Add two dummy args so that the type is
1652 correct for passing to add_info.
1653 * f-lang.c (saved_fcn): Move decl to head of file so it can be used
1655 (saved_bf_symnum): Ditto.
1656 (SAVED_FUNCTION): Ditto.
1657 (SAVED_FUNCTION_PTR): Ditto.
1659 (SAVED_BF_PTR): Ditto.
1660 * ch-exp.c (parse_named_record_element): Build error message in
1661 temporary buffer before passing it to expect, rather than passing
1662 wrong number of args to expect.
1663 * demangle.c (set_demangling_style): Call set_demangling_command with
1664 correct number of arguments.
1665 * inferior.h (terminal_init_inferior_with_pgrp): Change arg type to
1666 int to match actual function.
1667 (os_isatty): Call fdmap with right number of arguments, was missing
1668 the host_callback* arg.
1669 * target.c (cleanup_target): Prototype all functions casts.
1670 * target.h (one_stepped, single_step): Declare here and convert
1671 single_step to prototype.
1672 * infrun.c (one_stepped, single_step): Don't declare externs
1673 here, they have moved to target.h.
1674 * eval.c (init_array_element): Declare previously undeclared
1675 last two args as LONGEST.
1676 * dcache.c (dcache_xfer_memory): Change xfunc decls to prototype form.
1677 start-sanitize-gdbtk
1678 * gdbtk.c (register_changed_p): Remove unused local variable "buf".
1683 * dsrec.c (load_srec): Protect ANSI style function parms with PARAMS.
1687 * Makefile.in (os9kread.o): Remove dependency on partial-stab.h.
1688 * dbxread.c (read_dbx_symtab end_psymtab), partial-stab.h: Don't
1689 use partial_symtab->textlow==0 as a flag, as 0 is a legitimate
1690 text address. Use a seperate flag (textlow_not_set) instead.
1691 This makes stabs in ELF .o files work a lot better.
1692 * mdebugread.c xcoffread.c: Define textlow_not_set for
1694 * stabsread.h (end_psymtab): Add textlow_not_set arg to prototype.
1696 start-sanitize-gdbtk
1699 * gdbtk.tcl (files_command): Reorder the binding tags for
1700 the listbox widget to avoid referencing the listbox after
1701 the containing widget has been destroyed by the action of
1707 * dwarf2read.c (struct filenames): Change internal "struct file"
1708 to "struct fileinfo" to avoid conflict with "struct file" in
1709 <sys/file.h> on HPUX and Solaris.
1711 start-sanitize-gdbtk
1714 * gdbtk.tcl (delete_expr): Unset corresponding element of
1715 expr_update_list when destroying an expression.
1716 (create_expr_window): Initialize expr_num, delete_expr_num,
1717 and expr_update_list here when each new expression window
1718 is created, rather than once at startup.
1723 * dwarf2read.c: New file, DWARF 2 reader originally contributed by
1724 Brent Benson, with additions by Gary Funck and Jerry Kreuscher.
1725 * Makefile.in (COMMON_OBS): Add dwarf2read.o.
1726 (SFILES): Add dwarf2read.c.
1727 (dwarf2read.o): Add build rule.
1728 * symfile.h (dwarf2_has_info, dwarf2_build_psymtabs): Declare
1730 * elfread.c (elf_symfile_read): Call them.
1731 (elf_symtab_read) [HARRIS_TARGET]: Skip some special symbols.
1735 * symfile.c (symfile_bfd_open):
1736 * exec.c (exec_file_command): for __GO32__ and __WIN32__ systems,
1737 free the user from having to type the .exe extension.
1741 * mon960-rom.c: Shorten the mon960_inits string to a single
1742 carriage return; this prevents a hang on connecting immediately
1743 after powerup, when MON960 is attempting autobaud detection.
1747 * a29k-tdep.c (get_saved_register): Allow PC to be modified
1748 when innermost frame is selected, but not in outer frames.
1752 * command.c (do_setshow_command): Don't segfault when showing
1753 var_string and var_string_noescape vars that are NULL.
1757 * win32-nat.c (handle_load_dll): dos_path_to_unix_path renamed to
1758 cygwin32_conv_to_posix_path.
1759 (child_create_inferior): unix_path_to_dos_path renamed to
1760 cygwin32_conv_to_win32_path. Rewrite code to translate PATH.
1764 * defs.h printcmd.c: Create global disassemble_info structure
1766 start-sanitize-gdbtk
1767 * gdbtk.c (gdb_disassemble): Setup di.mach from
1768 tm_print_insn_info.mach, and set endian from TARGET_BYTE_ORDER.
1770 * i386-tdep.c (set_assembly_language_command): set
1771 tm_print_insn_info.mach to the appropriate value for 386 or 8086
1773 * printcmd.c (print_insn): Move init of disassembler_info to
1774 _initialize_printcmd. Set endian for disassembler here.
1775 * sparc-tdep.c: Set tm_print_insn_info.mach as appropriate to
1776 select sparc/sparclite.
1777 * config/sparc/{tm-sparc.h tm-sparclite.h}: Get rid of
1778 TM_PRINT_INSN. Set TM_PRINT_INSN_MACH to
1779 bfd_mach_sparc/bfd_mach_sparc_sparclite.
1783 * hpread.c (hpread_lookup_type): Use xmmalloc/xmrealloc rather
1784 than xmalloc/xrealloc.
1788 * objfiles.c (map_to_file): Error return from mmalloc_findbase is
1789 a NULL pointer, not a -1.
1793 * i386-tdep.c (set_assembly_language_command): New routine to
1794 select between i386 and i8086 instruction sets for disassembly.
1795 New command `set assembly-language {i386 i8086}'.
1799 * monitor.c (monitor_write_memory, monitor_read_memory_single):
1800 Disable use of "long long" memory read/write commands; can't
1801 use them because we hold the values to read/write in an int
1802 variable, and because strtoul fails on values that exceed the
1803 size of a long. This fixes breakpoint problems on MON960.
1807 * config/m68k/xm-hp300hpux.h (HAVE_MMAP): Remove definition.
1808 * config/pa/xm-hppah.h (HAVE_MMAP): Ditto.
1812 * Makefile.in (MMALLOC_CFLAGS): Eliminate intermediate MMALLOC_DISABLE
1813 and MMALLOC_CHECK macros, and add comment indicating how host dependent
1814 makefile fragment should modify MMALLOC_CFLAGS to not use mmalloc, or
1815 to use it but to not do heap corruption checking.
1816 * gdbserver/Makefile.in: Ditto.
1817 * utils.c (init_malloc): Replace warning() use with direct call of
1818 fprintf_unfiltered, since current_target has not yet been set and thus
1819 we cannot use warning(). If we try to use mmcheck and it fails,
1820 suggest that this configuration needs NO_MMCHECK or MMCHECK_FORCE
1821 defined. Other small mmalloc related cleanups.
1822 * config/sparc/sun4os4.mh (MMALLOC_CFLAGS): Define MMCHECK_FORCE to 1.
1823 * config/alpha/alpha-osf2.mh (MMALLOC_CFLAGS): Set to -DNO_MMCHECK.
1825 * config/sparc/xm-sun4os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1826 * config/i386/xm-i386v4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1827 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1828 * config/m68k/xm-hp300hpux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1829 * config/m68k/xm-m68kv4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT);
1830 * config/m68k/xm-sun3os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1831 * config/pa/xm-hppah.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1832 * config/sparc/xm-sun4sol2.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1833 Remove obsolete defines.
1835 * config/alpha/alpha-linux.mh (MMALLOC_DISABLE):
1836 * config/alpha/alpha-osf1.mh (MMALLOC_DISABLE):
1837 * config/rs6000/rs6000.mh (MMALLOC_DISABLE):
1838 * config/rs6000/aix4.mh (MMALLOC_DISABLE):
1839 * config/powerpc/aix4.mh (MMALLOC_DISABLE):
1840 * config/powerpc/aix.mh (MMALLOC_DISABLE):
1841 * config/ns32k/ns32km3.mh (MMALLOC_DISABLE):
1842 * config/mips/mipsm3.mh (MMALLOC_DISABLE):
1843 * config/mips/decstation.mh (MMALLOC_DISABLE):
1844 * config/m88k/cxux.mh (MMALLOC_DISABLE):
1845 * config/i386/i386mk.mh (MMALLOC_DISABLE):
1846 * config/i386/i386m3.mh (MMALLOC_DISABLE):
1847 * config/i386/i386gnu.mh (MMALLOC_DISABLE):
1848 Use MMALLOC_CFLAGS instead.
1852 * h8300-tdep.c: Remove some outdated comments.
1853 (h8300_skip_prologue): Rework to be more correct for the H8/300H.
1854 Handle stm.l insns for the H8/S.
1855 (examine_prologue): Likewise.
1859 * ser-mac.c (mac_close): Change a typo SetSetBuf to SerSetBuf.
1863 * mon960-rom.c (mon960_open): Add floating point detection to
1864 prevent hang on non-FPU processors (PR 9775).
1865 (mon960_cmds): Swap setmem.cmdw and setmem.cmdl to fix problem
1866 setting breakpoints and improve loading speed.
1870 * coffread.c (record_minimal_symbol): Don't presave name string
1871 on symbol_obstack before passing to prim_record_minimal_symbol.
1872 It now handles saving the string itself.
1873 * dbxread.c (read_dbx_dynamic_symtab): Ditto.
1874 * mipsread.c (read_alphacoff_dynamic_symtab): Ditto.
1875 * os9kread.c (record_minimal_symbol): Ditto.
1876 * solib.c (solib_add_common_symbols): Ditto.
1878 * coffread.c (coff_symtab_read): Don't presave name string on
1879 symbol_obstack before passing to prim_record_minimal_symbol_and_info.
1880 It now handles saving the string itself.
1881 * dbxread.c (record_minimal_symbol): Ditto.
1882 * elfread.c (record_minimal_symbol_and_info): Ditto.
1884 * dstread.c (record_minimal_symbol): Remove static function that just
1885 called prim_record_minimal_symbol with the same args (after change to
1886 prim_record_minimal_symbol to do it's own name string saves).
1887 * nlmread.c (record_minimal_symbol): Ditto.
1888 * somread.c (record_minimal_symbol): Ditto.
1890 * hpread.c (hpread_read_enum_type): Save symbol name on symbol obstack.
1891 (hpread_read_function_type): Ditto.
1892 (hpread_process_one_debug_symbol): Ditto.
1893 * mdebugread.c (parse_symbol): Ditto.
1894 (new_symbol): Ditto.
1895 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
1897 * coffread.c (process_coff_symbol): Use obsavestring to save
1898 SYMBOL_NAME, rather than obstack_copy0.
1899 * dstread.c (create_new_symbol): Ditto
1900 * symfile.c (obconcat): Ditto.
1901 * stabsread.c (patch_block_stabs): Ditto.
1902 * xcoffread.c (SYMNAME_ALLOC): Ditto.
1904 * symfile.c (obsavestring): Update comments
1905 * solib.c (solib_add_common_symbols): Remove local var origname.
1909 * configure: Re-build with autoconf-2.10.
1911 * sparcl-tdep.c (_initialize_sparc_tdep) config/sparc/tm-sparc.h,
1912 config/sparc/tm-sparclite.h: Initialize tm_print_insn from
1913 TM_PRINT_INSN, which comes from the tm file.
1917 * coffread.c, dbxread.c, elfread.c, mipsread.c, nlmread.c,
1918 os9kread.c: Replace identical sym_offsets functions with
1919 default_symfile_offsets.
1920 * somread.c (som_symfile_offsets): Use new SIZEOF_SECTION_OFFSETS
1921 macro to allocate section_offsets.
1922 * symfile.c (default_symfile_offsets): New function.
1923 * symfile.h: Declare default_symfile_offsets.
1924 * symtab.h: Define SIZEOF_SECTION_OFFSETS macro to
1925 simplify allocation of section_offsets.
1929 * Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
1930 * configure configure.in: Only make sol-thread.o for native.
1931 Also, switch to dlopened libthread_db.so.1.
1932 * sol-thread.c: Switch to using dlopen to get the thread_db
1937 * configure, configure.in: Change test for libthread_db to only
1938 work for configs where build/host/target are the same.
1942 * config/powerpc/{linux.mh,xm-linux.h}: New files, for Linux on
1945 * configure.in (powerpc-*-linux): Add Linux, System V, and ELF
1947 * configure: Regenerate.
1952 * mpw-make.sed: Add lines to whack out autoconf hook
1957 * remote-e7000.c (e7000_stop): New function.
1961 * configure, configure.in: Add target sparclet.
1962 * monitor.h, monitor.c: Added monitor flags MO_NO_ECHO_ON_SETMEM
1963 (don't expect echo on setmem command), MO_RUN_FIRST_TIME (if
1964 command to start process running on target is different from one
1965 to continue execution), MO_HEX_PREFIX (if addresses from monitor
1966 have a "0x" prefix).
1967 * monitor.c, parse.c, sparc-tdep.c: Don't require strings in the
1968 registers array. This is to allow NULLs to be place holders in
1969 the tm-*.h file so that only minor changes are needed when a new
1970 processor is introduced (eg, one without floating point).
1971 * sparc-tdep.c: Conditionally remove dependancies on floating
1973 * sparclet-rom.c, config/sparc/sparclet.mt,
1974 config/sparc/tm-sparclet.h: New files for target sparclet.
1975 * symfile.c (load_command): Add option for 2nd parameter; a load
1976 offset added to the vma of each section.
1980 * main.c (main): Add option "l" for setting remote_timeout.
1984 * remote-e7000.c, remote.c, target.h, top.c: Add set option
1985 "remote_timeout" for setting remote_timeout. Add set option
1986 "use_hard_breakpoints" for setting hardware .vs. memory
1991 * remote-e7000.c (e7000_parse_device): New function.
1992 Add option "tcp_remote" to target command if using
1993 tcp to connect to a remote host which is then connected
1994 via serial port to the e7000 (for exampole, a port master).
1995 (e7000_open): Change to call e7000_parse_device.
1999 * monitor.c (monitor_debug): Fix remotedebug buffering.
2003 * config/i386/cygwin32.mh, config/powerpc/cygwin32.mh
2004 (NATDEPFILES): Add a space.
2008 * gdbtypes.c (create_array_type): If TYPE_LENGTH (result_type)
2009 is zero, set TYPE_FLAG_TARGET_STUB to force reevaluation of the type.
2011 * ch-exp.c (calculate_array_length): Function removed.
2015 * remote-e7000.c (e7000_read_inferior_memory_large): New function.
2016 (e7000_xfer_inferior_memory): Call it.
2020 * gdb/gdbserver/Makefile.in (docdir): Removed.
2024 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir):
2025 Use autoconf set values.
2027 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
2028 * nlm/Makefile.in (bindir, libdir, datadir, mandir, infodir,
2029 includedir): Use autoconf set values.
2031 * nlm/configure.in (AC_PREREQ): autoconf 2.5 or higher.
2032 * nlm/configure: Rebuilt.
2033 * gdb/gdbserver/Makefile.in (datadir): Set to $(prefix)/share.
2037 * stabsread.c (read_cfront_member_functions): add type
2041 * win32-nat.c: #include <unistd.h>.
2042 (unix_paths_to_dos_paths, dos_paths_to_unix_paths): Delete.
2043 (child_create_inferior): Convert only env var PATH to win32 style.
2044 (set_pathstyle_dos): Delete.
2045 (_initialize_inftarg): Delete dos-path-style command.
2047 start-sanitize-gdbtk
2050 * gdbtk.tcl (create_register_windows): Include missing '$'s.
2051 Add global declarations for various reg_format_* variables.
2052 * gdbtk.tcl (populate_register_window): Make initial window one
2053 line taller to account for new column header line.
2057 * gdbtk.c (get_register): Support for printing raw formats.
2058 * gdbtk.tcl: Add hint for using debug_interface.
2059 (center_window, add_breakpoint_frame, delete_breakpoint_frame):
2060 Enclose arg in braces for consistency.
2061 (create_registers_window, populate_reg_window, update_registers):
2062 Major rewrite to support displaying multiple formats in the register
2064 (init_reg_info): New function.
2065 (recompute_reg_display_list): Reset reg_display_list, start
2066 register display lines at line 2.
2071 * configure.in: Revise sol-thread.o test.
2072 * configure: Regenerated.
2074 * source.c (find_source_lines): Reassign size to result of read.
2076 start-sanitize-gdbtk
2079 * gdbtk.tcl (gdbtk_tcl_readline_begin): Handle backspace to
2080 avoid backing up over prompt. At every input, make sure insert
2081 point is at least after command start, handle control-u to delete
2083 (tclsh): Handle backspace to avoid backing up over prompt. Handle
2084 control-u to delete current input line.
2088 * configure.in: disable gdbtk for *cygwin32* hosted compiles
2089 * configure: regenerated with autoconf 2.8
2094 * h8300-dep.c (gdb_print_insn_h8300): Handle the H8/S.
2095 (h8300_command): Likewise.
2096 (set_machine): Likewise.
2097 (set_machine_hook): Likewise.
2098 (_initialize_h8300m): Likewise.
2100 * config/h8300/tm-h8300.h (h8300smode): Declare.
2104 * somsolib.c (som_solib_create_inferior_hook): Handle tracking
2105 of shl_load calls for hpux10.
2109 * config.in: Regenerated.
2110 * acconfig.h (HAVE_THREAD_DB_LIB): Added entry.
2112 * configure: Regenerated.
2113 * aclocal.m4 (CY_AC_PATH_TCLH, CY_AC_PATH_TKH): Use odd names to
2114 avoid name clashes with SunOS headers.
2119 * bcache.c (print_bcache_statistics): Avoid divide-by-zero
2120 exception if one or more objfile has no symbols, such as when
2121 a dynamic library has been stripped.
2125 * Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
2126 * configure configure.in: Only make sol-thread.o for native.
2127 Also, switch to dlopened libthread_db.so.1.
2128 * sol-thread.c: Switch to using dlopen to get the thread_db
2133 * config/sparc/{xm-sun4sol2.h,xm-sun4os4.h} (MMAP_BASE_ADDRESS):
2134 Change from 0xE0000000 to 0xC0000000.
2138 * config/powerpc/xm-solaris.h: Initial version of support for
2143 * configure.in (configdirs): Force 4100 builds to use 4300 GDB
2145 * configure: Rebuild.
2147 * config/mips/vr4300el.mt (SIM_OBS): Include simulator in
2148 little-endian builds.
2152 * inftarg.c (child_thread_alive): Protect declaration with
2153 #ifndef CHILD_THREAD_ALIVE.
2155 * source.c (find_source_lines): Check the time on the symtab's bfd if
2156 it exists, else check the time on the exec_bfd.
2160 * dsrec.c (make_srec): Fix calculation of address size
2161 to allow addresses less than 0x100.
2165 * ch-exp.c (ch_lex): In case of LOC_TYPEDEF call calculate_array_length.
2169 * remote-mips.c: cannot use EINVAL for breakpoint test since
2170 its value varies for different hosts (e.g. go32's is 19, while
2171 sunos is 22). Changed to hardcoded 22 since that is what the
2176 * configure: Regenerated.
2177 * aclocal.m4 (CY_AC_PATH_TCLH): Don't use AC_TRY_RUN.
2178 (CY_AC_PATH_TKH): Don't use AC_TRY_RUN.
2182 * solib.c (solib_absolute_prefix, solib_search_path): New variables.
2183 (_initialize_solib): Add set/show commands for those variables.
2184 (solib_map_sections): Implement searching using them.
2190 * NEWS: Add Alpha Linux as a new native configuration.
2192 * mdebugread.c (parse_symbol): When we find a malloc() symbol with
2193 return type VOID, assume no debugging info is available for that
2194 object file and patch the return value into VOID *. Otherwise,
2195 operations requiring an implicit call to malloc() will fail.
2197 * infrun.c (wait_for_inferior): The criterion to detect entering a
2198 sigtramp handler is now: (a) the current pc is inside a sigtramp
2199 handler, (b) the previous pc is not in a sigtramp handler, and (c)
2200 the current stack pointer is "inner" than the old one. Condition
2201 (c) is new to avoid mistaking a return from a signal handler into
2202 sigtramp as a new sigtramp invocation.
2204 * dcache.c (struct dcache_block): Declare addr as CORE_ADDR. An
2205 int may not be big enough to hold an address.
2206 (dcache_hit): Ditto.
2207 (dcache_peek_byte): Fix indentation.
2209 * configure.in (alpha-*-linux*): Add target.
2210 * configure: Rebuild
2212 * config/alpha/tm-alpha.h (PROC_DESC_IS_DYN_SIGTRAMP): New macro.
2213 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2214 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
2215 (SIGCONTEXT_ADDR): Ditto.
2216 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
2218 * config/alpha/alpha-linux.mh: New file.
2219 * config/alpha/alpha-linux.mt: Ditto.
2220 * config/alpha/nm-linux.h: Ditto.
2221 * config/alpha/tm-alphalinux.h: Ditto.
2222 * config/alpha/xm-alphalinux.h: Ditto.
2223 * config/alpha/xm-alphaosf.h: Renamed from xm-alpha.h.
2224 * config/alpha/alpha-osf1.mh (XM_FILE): Change from xm-alpha.h to
2226 * config/alpha/alpha-osf2.mh: Ditto.
2228 * blockframe.c (find_pc_partial_function): Pass PC to
2229 SIGTRAMP_START and SIGTRAMP_END macros for the benefit of systems
2230 that detect sigtramp code via designated code sequences (as is the
2231 case for Linux/Alpha, for example).
2233 * config/i386/tm-i386bsd.h: Change SIGTRAMP_START and SIGTRAMP_END
2234 to ignore new PC argument.
2235 * config/m68k/tm-hp300bsd.h: Ditto.
2236 * config/vax/tm-vax.h: Ditto.
2238 * alpha-tdep.c (alpha_linux_sigtramp_offset): New function.
2239 (alpha_osf_skip_sigtramp_frame): Ditto.
2240 (push_sigtramp_desc): Ditto.
2241 (alpha_find_saved_regs): Use SIGCONTEXT_ADDR macro to extract
2242 sigcontext address from frame.
2243 (alpha_saved_pc_after_call): When in sigtramp, use
2244 alpha_frame_saved_pc() instead of read-register().
2245 (after_prologue): When inside a dynamically generated sigtramp
2246 function, there is no prologue, so return address of first
2248 (alpha_in_prologue): Fix typo in comment.
2249 (find_proc_desc): Use macro DYNAMIC_SIGTRAMP_OFFSET to determine
2250 whether we're inside a dynamicaly generated sigtramp function. If
2251 so, create and push and appropriate procedure descriptor.
2252 (alpha_frame_chain): Use macro FRAME_PAST_SIGTRAMP_FRAME to obtain
2253 the frame past a sigtramp frame (if the current frame is indeed a
2255 (init_extra_frame_info): Don't read next frame register off of
2256 stack-pointer when inside a dynamiccaly generated sigtramp.
2257 (alpha_pop_frame): Also unlink and destroy procedure descriptors
2258 created for dynamically generated sigtramp functions.
2260 * alpha-nat.c: When compiling under Linux, include <asm/reg.h> and
2261 <alpha/ptrace.h> instead of <machine/reg.h>
2265 * gnu-nat.c (inf_validate_task_sc):
2266 Give terminal to gdb while asking question.
2267 (inf_resume): Don't validate the task suspend-count while execing.
2271 * gnu-nat.c (inf_validate_task_sc): Query user before clearing any
2272 additional suspend count.
2273 (S_proc_wait_reply, gnu_attach): Don't call inf_validate_task_sc.
2274 (inf_resume): Call inf_validate_task_sc here.
2275 (gnu_resume): Call inf_update_procs to ensure noticing new threads.
2279 * gnu-nat.c (gnu_create_inferior: attach_to_child): Return PID.
2283 * h8300-tdep.c (IS_PUSH): Refine.
2284 (IS_MOVE_FP, IS_MOV_SP_FP): Accept H8/300H varaints.
2285 (IS_SUB4_SP, IS_SUBL_SP): New macros.
2286 (h8300_skip_prologue): Handle H8/300H prologue code sequences.
2287 (examine_prologue): Handle addresses from 0x010000 to 0xffffff
2288 when in H8/300H mode. Get the return pointer's address correctly
2289 for the H8/300H. Handle H8/300H prolouge code sequences.
2291 * symfile.c (generic_load): Print the starting address
2292 of the file just loaded.
2296 * mpw-make.sed: Edit @THREAD_DB_OBS@ out of makefile.
2300 * breakpoint.c (bpstat_do_actions): Avoid endless recursion
2301 if a `source' command is contained in bs->commands.
2303 * infrun.c (wait_for_inferior): Update step_frame_address when
2304 stepping into a new line.
2307 * breakpoint.c (breakpoint_1): Add shlib_disabled case to
2312 * dsrec.c (load_srec): Add WAITACK parameter, for machines
2313 like EST visionICE that send back an ACK after each S-record.
2314 * monitor.c (monitor_wait_srec_ack): New function.
2315 (monitor_load): Pass monitor_wait_srec_ack to load_srec
2316 if the monitor's MO_SREC_ACK flag is set.
2317 * monitor.h: Define MO_SREC_ACK flag.
2318 * remote-est.c (est_cmds): Add MO_SREC_ACK flag.
2319 * sh3-rom.c (sh3_load): Accomodate change in load_srec prototype.
2320 * srec.h: Add WAITACK parameter to load_srec prototype.
2322 Sun May 19 21:22:00 1996 Rob Savoye <rob@chinadoll>
2324 * config/sparc/sparclite.mt: Add the sparc simulator.
2328 * defs.h (read_command_lines, query_hook): Update prototypes.
2329 (readline_begin_hook, readline_hook, readline_end_hook): Declare.
2330 * breakpoint.c (commands_command): Build message in temporary buffer
2331 and pass that, as well as tty control flag, to read_command_lines.
2332 * top.c (readline_begin_hook, readline_hook, readline_end_hook):
2334 (command_loop): Check for non-NULL instream before looping.
2335 (command_line_input): Use readline_hook when appropriate, to get
2336 user input from a GUI window.
2337 (read_next_line): Also build prompt if getting user input from a GUI.
2338 (recurse_read_control_structure): Fix typo in comment.
2339 (read_command_lines): Use passed in prompt and tty flag to decide how
2340 to build message. Use readline_begin_hook when appropriate, to set
2341 up a GUI interaction window. Just return head, whether NULL or not,
2342 after using readline_end_hook to complete GUI interaction.
2343 (define_command, document_command): Build message in a temporary
2344 buffer and pass it to read_command_lines, along with tty flag.
2346 start-sanitize-gdbtk
2347 * gdbtk.c (gdbtk_readline_begin, gdbtk_readline, gdbtk_readline_end):
2349 (tk_command_loop): Set instream to NULL to enable Tk user interaction.
2350 (gdbtk_init): Set readline_begin_hook, readline_hook,
2351 and readline_end_hook.
2352 * gdbtk.tcl (gdbtk_tcl_readline_begin, gdbtk_tcl_readline,
2353 gdbtk_tcl_readline_end): New functions.
2354 (tclsh): Pack scroll bar on right side of window, not left.
2359 * blockframe.c (frameless_look_for_prologue):
2360 Add FUNCTION_START_OFFSET only if func_start is non-zero.
2361 * minsyms.c (lookup_minimal_symbol_by_pc): Return NULL if
2362 pc is not in a known section.
2363 * stack.c (print_frame_info): Remove check for fi->pc in known
2364 section, now handled by lookup_minimal_symbol_by_pc.
2366 start-sanitize-gdbtk
2369 * gdbtk.tcl (create_command_window): Change a misspelled "get"
2370 to the intended "cget".
2371 (delete_line): Fix so it deletes the current line at the
2377 * sh-stub.c: New file, was config/sh/stub.c.
2379 start-sanitize-gdbtk
2382 * gdbtk.tcl (gdb_prompt): Set this early on.
2383 (create_command_window): Use gdb_prompt rather than "(gdb) ".
2384 (gdbtk_tcl_preloop): Proc executed just prior to Tk main loop.
2385 (tclsh): If an evaluation window already exists, just bring it
2386 to the front instead of trying to create another.
2387 * gdbtk.c (tk_command_loop): New function.
2388 (gdbtk_init): Call tk_command_loop rather than Tk_MainLoop.
2392 * gdbtk.tcl (evaluate_tcl_command, tclsh): New functions that
2393 implement a tcl evaluation window for gdbtk maintainers to use.
2397 * gdbtk.tcl (files_command): Correctly insert list of files into
2400 * gdbtk.tcl (files_command): listbox command no longer accepts
2405 * gdbtk.tcl (create_command_window): If command window's buffer
2406 is disabled, don't execute any of the key bindings.
2411 * top.c (read_next_line): Fix thinkos. From Donn Seeley.
2413 * coffread.c (coff_symtab_read): Handle C_LABEL symbols like
2415 * h8300-tdep.c (h8300_pop_frame): Reset $sp and $pc correctly.
2416 Flush cached frames just before exiting.
2417 * remote-sim.c (gdbsim_resume): Complain if the program isn't
2419 * config/h8300/tm-h8300.h (BELIEVE_PCC_PROMOTION): Define.
2423 * procfs.c (procfs_thread_alive procfs_stop): Make static.
2424 (procfs_pid_to_str): New routine to print out thread id's in an
2425 intelligible manner.
2426 * sol-thread.c (sol_thread_fetch_registers): Re-order manner in
2427 which supply_register is called to fix bug with writing
2429 * config/sparc/tm-sun4sol2.h: Define default for
2430 target_pid_to_str in case host lacks libthread_db.
2434 * Makefile.in config.in configure configure.in
2435 config/sparc/nm-sun4sol2.h config/sparc/sun4sol2.mh
2436 config/sparc/tm-sun4sol2.h: Use autoconf to config Solaris thread
2437 and pthread support, since pre-2.5 systems don't come with
2440 * procfs.c (info_proc): Use int instead of id_t. Old versions of
2441 Irix don't seem to define this.
2443 start-sanitize-gdbtk
2446 * gdbtk.c (tk_command): Catch case where no argument is given
2447 since this will cause the tcl interpreter to dump core.
2452 * top.c (execute_control_command, case while_control): Allow
2453 a while command to be interrupted.
2457 * sol-thread.c: More cleanup, add comments.
2458 (sol_thread_resume): Prevent people from trying to step
2460 (sol_thread_wait sol_thread_fetch_registers
2461 sol_thread_store_registers): Remove unnecessary check for
2462 sol_thread_active. These routines won't get called unless threads
2468 * sh-tdep.c (sh_reg_names, sh3_reg_names): Add empty names for
2470 (sh3e_reg_names): New register name array.
2471 (sh_processor_type_table): Add sh3e processor type.
2472 * config/sh/tm-sh.h (REGISTER_VIRTUAL_TYPE): Fix test.
2473 (REGISTER_NAMES, NUM_REGS, NUM_REALREGS, etc): Adjust for
2474 full set of registers.
2475 * remote-e7000.c (want_sh3, want_sh3_nopc): New globals.
2476 (e7000_fetch_registers, e7000_wait): Use them.
2477 * sh3-rom.c (sh3_regnames): Add float registers.
2478 (sh3e_cmds, sh3e_ops): New globals.
2479 (sh3e_open): New function.
2480 (_initialize_sh3_rom): Rename from _initialize_sh3, set up
2485 * sol-thread.c: Cleanup. gcc -Wall fixes. Add prototypes.
2486 Print out messages instead of codes for thread_db errors. Make
2487 access macros for thread and lwp manipulation. Make cleanups to
2488 fixup inferior_pid in case of errors.
2492 * aclocal.m4: Remove unused definition of AC_C_CROSS.
2493 * configure.in: Add powerpcle-*-solaris* host and target config
2494 so April 30th change does not get lost next time configure is
2499 * Makefile.in, breakpoint.c, corelow.c, fork-child.c, inflow.c,
2500 infrun.c, mac-nat.c, procfs.c, remote.c, sol-thread.c, thread.c,
2501 win32-nat.c, config/nm-lynx.h: Rename thread.h to gdbthread.h to
2502 avoid conflict with Solaris /usr/include/thread.h.
2506 * abug-rom.c: Config file for the older style ABug monitor that
2507 runs on the mvme13x boards.
2508 * config/m68k/monitor.mt: Add abug support for m68k cross
2513 * infcmd.c (do_registers_info): Always print the raw floating
2514 point value's bytes in big endian order, so the the leftmost bit
2515 is the most significant.
2516 * breakpoint.c (clear_momentary_breakpoints): Remove dead code
2517 that is referenced nowhere else.
2518 (set_breakpoint): Ditto.
2519 (do_enable_breakpoint): Created from enable_once_breakpoint
2520 with a couple of changes.
2521 (enable_breakpoint): Call do_enable_breakpoint with an appropriate
2522 bpdisp enum value to set disposition of breakpoint.
2523 (enable_once_breakpoint): Ditto.
2524 (enable_delete_breakpoint): Ditto.
2525 * breakpoint.h (clear_momentary_breakpoints): Remove prototype.
2526 * symtab.c (find_pc_line): Improve comments.
2527 start-sanitize-gdbtk
2528 * gdbtk.c: Fix a couple of misspellings.
2530 * xcoffread.c: Ditto.
2534 * target.c (debug_to_xfer_memory): Insert line breaks when
2535 dumping the memory block.
2539 * fork-child.c (fork_inferior), inferior.h: init_trace_fun now
2540 returns a possibly modified pid.
2541 * inftarg.c (ptrace_him): Now returns pid;
2542 * m3-nat.c (m3_trace_him): Now returns pid;
2543 * infcmd.c (run_command): Minor cleanup.
2544 * infrun.c (wait_for_inferior): Add another check for one_stepped
2545 near where we read the pc to avoid erroneously setting
2546 random_signal for multi-threaded support.
2547 * procfs.c: Add support for Solaris LWPs. Remove def of
2548 LOSING_POLL. Many cleanups... Several workarounds for Solaris
2549 lossage. System call entry and exit are now handled by
2550 dynamically registered handlers.
2551 * (syscallname): Don't barf when handed an unknown syscall
2553 * (info_proc_syscalls): Ditto.
2554 * sol-thread.c: New file. Implements Solaris thread support.
2555 * symfile.c (symbol_file_add): Add call to target_new_objfile to
2556 notify target-dependent code about new symbol tables.
2557 * (clear_symtab_users): Call target_new_objfile to notify it of
2558 the removal of all symbol tables.
2559 * target.c (push_target): Make sure that to_close is non-zero
2561 * target.h (target_new_objfile): Provide default.
2562 * config/alpha/nm-osf2.h: Define LOSING_POLL because this version
2563 of OSF can't hack using poll with /proc.
2564 * config/sparc/nm-sun4sol2.h (target_new_objfile): Define to be
2565 sol-thread-new-objfile.
2566 * config/sparc/sun4sol2.mh: Add sol-thread.o to NATDEFFILES, and
2567 add libthread_db.so.1 to NAT_CLIBS.
2568 * config/sparc/tm-sun4sol2.h: Define PIDGET, TIDGET, and
2573 * procfs.c (remove_fd): Fix copy of fds to fill hole left after
2574 removal of the requested fd.
2578 * rs6000-tdep.c (_initialize_rs6000_tdep): Don't do XCOFF specific
2581 * config/powerpc/tm-ppc-eabi.h: Define ELF_OBJECT_FORMAT.
2583 start-sanitize-gdbtk
2586 * gdbtk.tcl (debug_interface): New global, use to aid debugging.
2587 (insert_breakpoint_tag, delete_breakpoint_tag): Fix range.
2588 (file_popup_menu): Delete, never used.
2589 (listing_window_popup): Rename from listing_window_button_1,
2590 remove breakpoint toggling code.
2591 (toggle_breakpoint): New procedure.
2592 (create_file_win): Bind popup menu to button 2, toggle breakpoints
2593 with button 1 in breakpoint area, add display of tagged areas if
2600 * breakpoint.h (enum bpdisp): Add del_at_next_stop.
2601 * breakpoint.c (insert_breakpoints, watchpoint_check,
2602 bpstat_stop_status): Avoid bad references to memory freed via
2603 delete_breakpoint on watchpoints going out of scope.
2604 Do not delete these watchpoints, disable them and change their
2605 disposition to del_at_next_stop instead.
2606 (breakpoint_auto_delete): Delete all breakpoints whose disposition
2607 is del_at_next_stop.
2608 (breakpoint_init_inferior): Use switch to avoid reference to
2609 already deleted breakpoint.
2613 * Makefile.in (rs6000-nat.o): Depend on xcoffsolib.h.
2614 * config/rs6000/rs6000.mh (NATDEPFILES): Move xcoffread.o ...
2615 * config/rs6000/rs6000.mt (TDEPFILES): ... to here.
2616 * xcoffsolib.c (xcoff_relocate_symtab_hook): Define and initialize.
2617 (solib_info): Call xcoff_relocate_symtab via the hook.
2618 (sharedlibrary_command): Ditto.
2619 * xcoffread.c: Remove all FAKING_RS6000 comments and defines.
2620 (xcoff_add_toc_to_loadinfo_hook): Define and initialize here.
2621 (xcoff_init_loadinfo_hook): Define and initialize here.
2622 (scan_xcoff_symtab): Call xcoff_add_toc_to_loadinfo via the hook.
2623 (xcoff_initial_scan): Call xcoff_init_loadinfo via the hook.
2624 * xcoffsolib.h (xcoff_relocate_symtab_hook): Declare extern func.
2625 * rs6000-tdep.c (_initialize_rs6000_tdep): Add initializations
2626 of xcoff_add_toc_to_loadinfo_hook and xcoff_init_loadinfo_hook.
2627 * rs6000-nat.c (_initialize_core_rs6000): Add initialization
2628 of xcoff_relocate_symtab_hook.
2632 * configure (powerpcle-*-solaris*): Add Solaris support.
2634 * config/powerpc/{solaris.m[ht],tm-solaris.h}: New files for
2639 * c-valprint.c (c_val_print): Fix printing for arrays defined
2644 Support for bi-endian remote breakpoints.
2645 * remote.c (big_break_insn, little_break_insn): New globals.
2646 (break_insn): Remove.
2647 (remote_insert_breakpoint, remote_remove_breakpoint): Use own
2648 code if REMOTE_BREAKPOINT defined, otherwise call memory
2649 breakpoint functions.
2650 * config/sh/tm-sh.h (REMOTE_BREAKPOINT): Remove.
2651 (BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT): Define.
2653 * mon960-rom.c (mon960_cmds): Remove forward decl.
2654 (mon960_load): Use current_monitor instead of mon960_cmds.
2655 (mon960_regnames): Remove backslashes from line ends.
2656 (_initialize_mon960): Fix documentation string.
2660 * symfile.h (psymbol_allocation_list): Expand comments which
2661 describe the psymbol allocation list and how each field is
2666 * breakpoint.c (delete_breakpoint): Fix bpt->val, bpt->exp
2668 (breakpoint_re_set_one): Fix b->exp, b->val, b->cond storage leaks.
2670 * infcmd.c (run_command), solib.c (locate_base): Check for
2671 target_has_execution in addition to inferior_pid, a core file
2672 from a threaded program is yielding a non-zero inferior_pid.
2674 * sparc-tdep.c (get_saved_register): Handle window registers
2675 in a dummy frame correctly.
2679 * Makefile.in (CLIBS): Move $(MMALLOC) past all other libs,
2680 so that anything that wants an allocation function not yet pulled
2681 in, will get it from mmalloc rather than a system library.
2682 * Makefile.in (INSTALLED_LIBS): Reorder to match order of CLIBS,
2683 to avoid surprising results when used.
2687 * stabsread.c: Changes and bug fixes for cfront support.
2688 Fix bug for class data members.
2689 Fix parsing bug when no base classes exist.
2690 Fix memory bug - allocate space for cplusplus specific info.
2691 Add support for static data.
2692 Add prototypes for static functions.
2693 Enhance comments to show what each function expects to parse.
2695 * stabsread.c(resolve_cont),dbxread.c(resolve_cont): Rename
2696 function to resolve_cfront_continuation.
2700 * infrun.c (wait_for_inferior): Call registers_changed when
2701 restarting the inferior to get over a nullified instruction.
2705 * dbxread.c,stabsread.c,gdbtypes.c,partial-stab.h,valops.c:
2706 Add new support for parsing cfront stabs.
2710 * infrun.c (wait_for_inferior): Move "have_waited" label
2711 outside of #ifdef conditionals. Don't trash the wait status
2712 if we get a signal and the current instruction is nullified.
2716 * Makefile.in (VERSION): Bump version number to 4.16.1.
2717 * NEWS: Update for 4.16 release.
2721 * monitor.h: Clean up comment formatting.
2722 (current_monitor): Remove decl.
2723 (LOADTYPES, LOADPROTOS, INIT_CMD, etc): Remove definitions.
2724 (push_monitor, SREC_SIZE): Remove.
2725 * monitor.c: Expand old macro into current_monitor derefs
2727 * remote-os9k.c (current_monitor): Remove definition.
2731 * corefile.c (specify_exec_file_hook): Allow arbitrary number of
2733 (call_extra_exec_file_hooks): New function.
2734 * h8300-tdep.c: Lint; add .h files to provide missing declarations,
2735 remove unused variables.
2736 (set_machine_hook): New function.
2737 (_initialize_h8300m): Initialize it.
2741 * remote-mips.c (encoding): Don't specify size, to avoid bug in
2742 SunOS native compiler.
2746 * monitor.c: Use int rather than LONGEST for values, since
2747 the formatting strings are not prepared to accept long longs.
2751 * arm-tdep.c (initialize_arm_tdep): Make apcs32 a `zinteger'.
2755 * corelow.c (add_to_thread_list): Make sure reg_sect is non-null
2756 before de-referencing it. Prevents deref of NULL pointer if core
2757 file lacks .reg section.
2758 * defs.h: Rename floatformat_{to from}_long_double to
2759 floatformat_{to from}_doublest. Get rid of FLOATFORMAT_{TO
2761 * findvar.c (extract_floating store_floating): Change all refs to
2762 FLOATFORMAT_{FROM TO}... to floatformat_{from to}_doublest.
2763 * utils.c: Change floatformat_{to from}_long_double to
2764 floatformat_{to from}_doublest cuz the new routines will use
2765 whatever size (double or long double) is appropriate.
2766 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
2767 REGISTER_CONVERT_TO_RAW): Change FLOATFORMAT... macros to
2768 floatformat... routine calls.
2772 * stabsread.c (read_type): Move handling of '@' from type
2773 number handling to handling of types proper (as emitted by gcc!).
2774 For typedefs, allocate the typedef type before reading its
2775 definition, to properly handling recursive types.
2779 * ch-exp.c (calculate_array_length): Fix prototype.
2783 * remote-nindy.c (nindy_open): Acquire more target state so that
2784 user can attach to a previously running program.
2785 * (nindy_fetch_registers nindy_store_registers): Get rid of fp
2786 conversion code. That's all handled in {extract store}_floating
2788 * utils.c (floatformat_to_double): Don't bias exponent when
2789 handling zero's, denorms or NaNs.
2790 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
2791 REGISTER_CONVERT_TO_RAW): Change to using DOUBLST and
2792 FLOATFORMAT_TO/FROM_DOUBLEST macros.
2793 * config/i960/tm-nindy960.h: Undefine
2794 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW, and
2795 REGISTER_CONVERTIBLE. These are no longer necessary now that all
2796 the magic happens in extract/store_floating.
2800 * eval.c (evaluate_subexp_standard): Report error when attempting to
2801 evaluate subscripts for types which cannot be subscripted.
2803 * valarith.c (value_x_binop, value_x_unop): Add noside parameter.
2804 Return a zero value with the return type of the member function
2805 if noside is EVAL_AVOID_SIDE_EFFECTS instead of calling the member
2807 * values.h (value_x_binop, value_x_unop): Update prototypes
2809 * eval.c (evaluate_subexp_standard): Update all callers of
2810 value_x_binop, value_x_unop accordingly.
2812 * valarith.c (value_neg, value_complement): Perform ANSI C/C++
2813 integral promotion on operands.
2817 * README: Update for 4.16 release.
2818 * configure.in (AC_CHECK_FUNCS): Also check for sbrk.
2819 * configure: Regenerate with autoconf.
2820 * config.in: Regenerate with autoheader.
2821 * main.c (main): Only use sbrk() when HAVE_SBRK is defined.
2822 * top.c (command_loop): Ditto.
2826 * defs.h: Define TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
2827 defaults for bi-endian targets. Replace function pointers for
2828 floatformat routines with macros. No need for these to be runtime
2830 * findvar.c: Get rid of floatformat function pointers. Use
2831 macros in extract_floating and store_floating.
2832 * remote-nindy.c (nindy_fetch_registers nindy_store_registers):
2833 Use floatformat macros.
2838 * configure.in (AC_CHECK_HEADERS): check for endian.h.
2839 Use AC_CHECK_TOOL to find AR & RANLIB. Add AC_PROG_AWK.
2840 Add host & target cases for i[345]86-*-gnu*.
2841 * config.in: Regenerate with autoheader.
2842 * configure: Regenerate with autoconf.
2843 * Makefile.in (AR, AWK): Set from corresponding autoconf substs.
2844 (init.c): Don't scan mig-generated files.
2845 * defs.h (endian.h): Include if HAVE_ENDIAN_H defined.
2846 * config/nm-m3.h (ATTACH_NO_WAIT): Define.
2847 * infcmd.c (attach_command): Use "#ifndef ATTACH_NO_WAIT"
2848 rather than "#ifndef MACH".
2852 * remote.c (remotewritesize): New GDB variable, controls size
2853 of memory packets sent to the target.
2857 * dcache.c: Add prototypes. Make many functions static.
2858 * (dcache_peek dcache_fetch dcache_poke): Make dcache_fetch and
2859 dcache_poke call dcache_xfer_memory directly in order to fix
2860 problems with turning off dcache. dcache_peek is now unnecessary,
2863 * defs.h: Define new macros HOST_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
2864 and TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT to specify a pointer
2865 to a struct floatformat. This allows for better handling of
2866 targets whose floating point formats differ from the host by more
2867 than just byte order.
2868 * (floatformat_to_long_double floatformat_from_long_double):
2869 Prototypes for new functions in utils.c.
2870 * (floatformat_to_doublest floatformat_from_doublest): Prototypes
2871 for pointers to floating point conversion functions. The actual
2872 function uses either double or long double if the host supports it.
2873 * findvar.c (floatformat_to_doublest floatformat_from_doublest):
2874 Initialize to point at correct function depending on HAVE_LONG_DOUBLE.
2875 * (extract_floating store_floating): Rewrite. Now, if host fp
2876 format is the same as the target, we just do a copy. Otherwise,
2877 we call floatformat_{to from}_doublest.
2878 * remote-nindy.c (nindy_xfer_inferior_memory): Change param
2879 `write' to `should_write'.
2880 * utils.c (floatformat_to_long_double
2881 floatformat_from_long_double): New routines that implement long
2882 double versions of functions in libiberty/floatformat.c.
2883 * config/i960/tm-i960.h (TARGET_LONG_DOUBLE_FORMAT): Define this for
2884 i960 extended real (80 bit) numbers.
2885 * nindy-share/nindy.c (ninMemGet ninMemPut): Return number of bytes
2886 actually read or written.
2890 * ch-valprint.c (chill_val_print): Remove call to calculate_array_length.
2891 (calculate_array_length): Move function from here ...
2893 * ch-exp.c (calculate_array_length): ... to here.
2894 (parse_primval): If we have a symbol with an array type
2895 and the length is 0, call calculate_array_length.
2899 * eval.c (evaluate_subexp_standard): In case of TYPE_CODE_SET:
2900 Add some checks for powerset compatibility.
2902 * valops.c (value_slice): Use lowbound instead of lowerbound for
2903 call to slice_range_type to get correct bounds.
2907 * Makefile.in (scm-exp.o, scm-lang.o, scm-valprint.o): Add targets and
2909 * scm-lang.c (gdb_string.h): Include.
2910 * objfiles.c (add_to_objfile_sections): Cast second arg of obstack_grow
2911 call to correct type (char *).
2912 * cp-valprint.c (cp_print_static_field): Ditto.
2913 * somsolib.c (som_solib_create_inferior_hook): Add a declaration
2914 for external find_unwind_entry function (from hppa-tdep.c).
2915 * remote-pa.c (remote_write_bytes, remote_read_bytes): Change
2916 type of second arg to "char *" to be type compatible with
2918 (remote_wait): Cast second arg to strtol to correct type.
2919 * hppa-tdep.c (compare_unwind_entries): Change argument types to
2920 "const void *" to be type compatible with qsort, and then
2921 assign to local args prior to use.
2925 * infptrace.c (kill_inferior): Remove call to "kill"; update
2930 * remote-e7000.c: don't append :23 to target port if __WIN32__
2931 is defined (it's WinGDB).
2936 * gnu-nat.c, gnu-nat.h, msg.defs, exc_request.defs, i386gnu-nat.c,
2937 msg_reply.defs, notify.defs, process_reply.defs, reply_mig_hack.awk,
2938 config/nm-gnu.h, config/i386/{i386gnu.mh, i386gnu.mt, nm-gnu.h,
2939 m-i386gnu.h, xm-i386gnu.h}: New files for GNU hurd.
2943 * configure.in (case host): Add i386sco5 host.
2944 * configure: Regenerate.
2947 Add support for SCO OpenServer 5 (a.k.a. 3.2v5*) This
2948 target is an SVR3.2 with COFF, ELF, and shared libes, but
2950 * config/i386/i386sco5.mh: New file.
2951 * config/i386/nm-i386sco5.h: New file.
2955 * bcache.c (bcache): When size of chunk to cache is exactly equal to
2956 BCACHE_MAXLENGTH, stash chunk as unique copy.
2960 * symfile.c (INLINE_ADD_PSYMBOL): Remove ifdef.
2961 (add_psymbol_to_list): Add an arg for passing CORE_ADDR values and
2962 use it, rather than calling add_psymbol_addr_to_list.
2963 (add_psymbol_addr_to_list): Delete.
2964 (add_psymbol_to_list): Make psymbol static to avoid random data in
2965 gaps due to alignment of structure members.
2966 * symfile.h (INLINE_ADD_PSYMBOL, ADD_PSYMBOL_TO_LIST,
2967 ADD_PSYMBOL_ADDR_TO_LIST): Remove. Real world tests show no
2968 performance improvements by inlining via complicated macros and
2969 they just make gdb larger and harder to maintain.
2970 * dwarfread.c (add_enum_psymbol): Replace ADD_PSYMBOL_TO_LIST
2971 and/or ADD_PSYMBOL_ADDR_TO_LIST macro(s) with call to
2972 add_psymbol_to_list with appropriate long or CORE_ADDR args.
2973 (add_partial_symbol): Ditto.
2974 * partial-stab.h: Ditto.
2975 * os9kread.c (read_os9k_psymtab): Ditto
2976 * mdebugread.c (parse_partial_symbols): Ditto.
2977 (handle_psymbol_enumerators): Ditto.
2978 (demangle.h): Include.
2979 * hpread.c (hpread_build_psymtabs): Ditto.
2980 (hpread_build_psymtabs): Ditto.
2981 (demangle.h): Include
2983 start-sanitize-gdbtk
2986 * gdbtk.c (running_now): New global variable.
2987 (gdb_cmd): Test it before executing any command.
2988 (gdbtk_call_command): Set it when inferior is running.
2989 * gdbtk.tcl (gdbtk_tcl_busy, gdbtk_tcl_idle): Enable and
2990 disable interaction with command window's text appropriately.
2994 * gdbtk.c (SIOCSPGRP, linux): If on Linux, undef SIOCSPGRP, since
2995 some versions of the kernel don't support it.
3000 * configure.in: Check for setpgid function.
3001 * config.in: Regenerate with autoheader.
3002 * configure: Regenerate with autoconf.
3003 * inflow.c (_initialize_inflow): Only try to use _SC_JOB_CONTROL
3004 if it is actually defined.
3005 (gdb_setpgid): Use HAVE_SETPGID.
3006 * ch-exp.c: Change include of <string.h> to "gdb_string.h".
3007 * c-exp.y, f-exp.y, m2-exp.y: Ditto.
3008 * c-exp.y, serial.c: Include <ctype.h>.
3009 * config/m68k/nm-news.h: Add typedef for pid_t which is
3010 apparently missing from <sys/types.h>. Enclose entire
3011 file in NM_NEWS_H ifndef and define when included.
3012 * config/mips/nm-news-mips.h: Ditto.
3013 * config/m68k/tm-m68k.h (REGISTER_CONVERT_TO_VIRTUAL,
3014 REGISTER_CONVERT_TO_RAW): Change name of temporary variable.
3018 * arm-xdep.c: Move native-specific code to here from arm-tdep.c.
3019 * arm-tdep.c (arm_apcs_32): New global.
3020 (arm_addr_bits_remove, arm_saved_pc_after_call,
3021 arm_push_dummy_frame, arm_pop_frame): New functions.
3022 (arm_skip_prologue): Updated version from Richard Earnshaw.
3023 (_initialize_arm_tdep): Add set/show "apcs32".
3024 * config/arm/tm-arm.h (ADDR_BITS_REMOVE): Call
3025 arm_addr_bits_remove.
3026 (SAVED_PC_AFTER_CALL): Call arm_saved_pc_after_call.
3027 (frame_find_saved_regs): Declare properly.
3028 (PUSH_DUMMY_FRAME): Call arm_push_dummy_frame.
3029 (POP_FRAME): Call arm_pop_frame, use ADDR_BITS_REMOVE instead of
3031 * config/arm/nm-arm.h: New file.
3032 * config/arm/xm-arm.h (KERNEL_U_ADDR, FETCH_INFERIOR_REGISTERS):
3033 Move definitions to nm-arm.h.
3034 * config/arm/arm.mh (NAT_FILE): Define.
3036 * symfile.c (generic_load): Initialize data_count properly.
3040 * symmisc.c (print_objfile_statistics): Print memory used by
3041 psymbol cache obstack.
3045 * symfile.c (report_transfer_performance): New function.
3046 (generic_load): Call it to report transfer rate.
3047 * remote-e7000.c (e7000_load): Ditto.
3051 * mpw-make.sed: Change references to config.h to be in objdir,
3052 edit out rules to rebuild config.h.
3056 * hppa-tdep.c (hppa_pop_frame): Call clear_proceed_status before
3061 * hppah-nat.c (store_inferior_registers, store_inferior_registers,
3062 fetch_register, child_xfer_memory): Use call_ptrace function supplied
3063 by infptrace.c rather than calling ptrace directly.
3067 * mon960-rom.c: Cleanups and elimination of unused code,
3068 clarify documentation string.
3069 (mon960_serial, mon960_ttyname): Remove.
3070 * config/i960/tm-mon960.h (ADDITIONAL_OPTIONS,
3071 ADDITIONAL_OPTION_CASES, ADDITIONAL_OPTION_HELP): Remove.
3075 * configure.in: Check whether printf family supports printing
3076 long doubles or not and define PRINTF_HAS_LONG_DOUBLE if so.
3077 * acconfig.h: Provide default undef for PRINTF_HAS_LONG_DOUBLE.
3078 * configure: Regenerate.
3079 * valprint.c (print_floating): Use PRINTF_HAS_LONG_DOUBLE.
3080 * c-exp.y (parse_number): Use PRINTF_HAS_LONG_DOUBLE.
3081 * configure.in: Fix have_gregset and have_fpregset autoconf
3082 variable names so that they match the pattern required to
3087 * core-aout.c (fetch_core_registers): Cast core_reg_size to int
3088 before testing against reg_ptr.
3089 * eval.c (evaluate_subexp_standard): Cast type of
3090 TYPE_FN_FIELD_VOFFSET to int.
3091 * findvar.c (extract_signed_integer, extract_unsigned_integer,
3092 extract_long_unsigned_integer): Cast type of sizeof to int.
3093 * values.c (unpack_field_as_long, modify_field): Ditto.
3094 * valops.c (value_assign, call_function_by_hand): Ditto.
3095 * infcmd.c (do_registers_info): Ditto.
3096 * ser-tcp.c (tcp_open): Ditto.
3097 * remote.c (putpkt): Ditto.
3098 * dcache.c (dcache_peek): Ditto.
3099 * dcache.c (dcache_poke): Ditto.
3100 * m2-exp.y (yylex): Ditto.
3101 * gnu-regex.c (re_match_2): Ditto.
3102 * f-lang.c (ADD_BF_SYMNUM, saved_bf_list_end, tmp_bf_ptr): Ifdef
3103 out unused macro definition and variables.
3104 * inftarg.c (proc_wait): Move from main.c to here, and make static.
3105 * valprint.c (val_print_string): Change bufsize from int to unsigned.
3106 * main.c (wait.h): Include.
3107 * top.c (command_line_input): Remove unused variable "c".
3108 * f-typeprint.c (f_type_print_varspec_prefix): Add missing enum
3109 value TYPE_CODE_TYPEDEF to switch statement.
3110 (f_type_print_varspec_suffix): Add missing enum value
3111 TYPE_CODE_TYPEDEF to switch statement.
3112 * ch-exp.c (parse_primval): Add remaining enumeration values to
3113 switch statement, with no specific action.
3114 (ch_lex): Add LOC_UNRESOLVED in switch statement.
3115 (pushback_token): Ifdef out, since code using it is ifdef'd out.
3116 * stabsread.c (cleanup_undefined_types): Remove unused label
3118 * objfiles.h (print_symbol_bcache_statistics): Add prototype.
3119 * maint.c (objfiles.h): Include.
3120 (maintenance_print_statistics): Remove unused variable "temp".
3121 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
3122 unused variable "found_file_symbol".
3123 * m2-exp.y (yylex): Add LOC_UNRESOLVED case to switch.
3124 * language.c (lang_bool_type): Use existing function local type
3125 variable rather than create block local variables.
3126 * solib.c (disable_break): Enclose in ifndef SVR4_SHARED_LIBS.
3127 * infptrace.c (wait.h, command.h): Include.
3128 * ser-tcp.c (gdb_string.h): Include
3129 * i386-tdep.c (codestream_seek): Change "place" to CORE_ADDR.
3130 (i386_get_frame_setup): Change "pc" from int to CORE_ADDR.
3131 * command.c (complete_on_enum): Make assignment used as truth value
3132 explictly check against NULL.
3134 * infrun.c (wait_for_inferior): Ifdef out prologue_pc since code
3135 that uses it is ifdef'd out.
3136 * parser-defs.h: Add prototype for write_dollar_variable.
3137 * infrun.c: Add prototype for write_pc_pid.
3138 * breakpoint.h: Add prototype for re_enable_breakpoints_in_shlibs.
3139 * symmisc.c (bcache.h): Include.
3140 * bcache.h: Add prototype for print_bcache_statistics.
3141 * symfile.c: Include <time.h>.
3142 * printcmd.c (print_scalar_formatted): Change len to unsigned int.
3143 * valarith.c (value_equal): Cast result of TYPE_LENGTH to int.
3144 * valarith.c (value_binop): Change result_len, promoted_len1,
3145 and promoted_len2 to unsigned int.
3146 * valarith.c (value_subscripted_rvalue): Change elt_offs and
3147 elt_size to unsigned int.
3148 * valops.c (value_array): Change typelength to unsigned int.
3149 (destructor_name_p): Change len to unsigned int.
3150 * scm-lang.h (scm_parse): Add prototype for scm_unpack.
3151 * symfile.c (decrement_reading_symtab): Change return type to void.
3152 * valarith.c (value_subscript): Remove unused variable "word".
3153 (value_subscript): Remove unused variable "tint".
3154 * valops.c (auto_abandon): Ifdef out, since code using it is also
3156 * eval.c (init_array_element): Remove unused variable "val".
3157 * Makefile.in (values.o): Depends on scm-lang.h.
3158 (command.o): Depends upon wait_h.
3159 (ser-tcp.o): Depends upon gdb_string.h.
3160 (infptrace.o): Depends upon wait_h and command_h.
3161 (maint.o): Depends on objfiles.h and symfile.h.
3162 * values.c (allocate_repeat_value): Remove unused variable
3164 (scm-lang.h): Include.
3165 * breakpoint.c (create_longjmp_breakpoint): Enclose in
3166 GET_LONGJMP_TARGET define, unused otherwise.
3167 * config/i386/nm-linux.h: Add prototypes for i386_insert_watchpoint,
3168 i386_remove_watchpoint and i386_stopped_by_watchpoint.
3172 * configure.in (sparc64-*-solaris2*): Delete.
3173 Stick with sparc-*-solaris2*.
3174 * configure: Regenerated.
3178 * valops.c (value_assign): Make copy of internal variable value
3179 before returning it as a new value, since it is owned by the
3180 internal variable and will be freed along with it.
3184 * From Peter Schauer.
3185 * breakpoint.c (breakpoint_re_set_one): Keep temporary
3186 breakpoints bp_until, bp_finish, bp_watchpoint_cope, bp_call_dummy
3187 and bp_step_resume in case breakpoint_re_set_one is called due
3188 to a step over a dlopen call.
3189 * infrun.c (wait_for_inferior): Always remove breakpoints from
3190 inferior in BPSTAT_WHAT_CHECK_SHLIBS case.
3194 * config/mips/tm-mips.h (COERCE_FLOAT_TO_DOUBLE): Only prefer
3195 non-prototyped case over prototyped case for C.
3196 * config/pa/tm-hppa.h (COERCE_FLOAT_TO_DOUBLE): Ditto.
3200 * os9kread.c (os9k_process_one_symbol): Note nonportable
3201 assumption that an int can hold a char *.
3203 * bcache.h (struct hashlink): Wrap data[] inside union with
3204 double to force longest alignment.
3205 (BCACHE_DATA): New macro to access data[].
3206 (BCACHE_ALIGNMENT): New macro to get offset to data[].
3207 * bcache.c (lookup_cache, bcache): Use BCACHE_DATA to get
3208 address of cached data. Use BCACHE_ALIGNMENT to compute
3209 amount of space to allocate for each hashlink struct.
3213 * ch-lang.c (evaluate_subexp_chill): Fix typo.
3217 * Makefile.in (VERSION): Bump version to 4.15.3
3221 * config.in: Rename from config.h.in.
3222 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
3223 Change CONFIG_HEADERS test in AC_OUTPUT accordingly.
3224 * configure: Rebuild.
3225 * Makefile.in (stamp-h): Depend upon config.in, not config.h.in.
3226 Set CONFIG_HEADERS to config.h:config.in.
3230 * partial-stab.h (case N_ENDM): Finish current partial symbol
3231 table for Solaris 2 cc.
3235 * rs6000-nat.c (exec_one_dummy_insn): Don't clobber the
3236 PC in the registers array. From Peter Schauer.
3240 * symfile.c (reread_symbols): Reinitialize bcache struct
3241 members to zero using memset. Also use memset to reinit
3242 global_psymbols and static_psymbols, rather than explicitly
3243 resetting each structure member.
3247 * configure.in: Add fragment to create stamp-h.
3250 * configure.in (AC_CHECK_HEADERS): Check for link.h.
3251 * configure: Regenerate with autoconf.
3252 * config.h.in: Regenerate with autoheader.
3253 * config/i386/nm-linux.h: Include solib.h only if HAVE_LINK_H
3255 * solib.c: Exclude most of the code if HAVE_LINK_H is not defined.
3256 * config/i386/linux.mh: Reinstate XM_CLIBS, it is needed for
3257 older a.out based systems.
3261 * config.h.in: New file.
3262 * acconfig.h: New file, for autoheader.
3263 * configure.in (AC_CONFIG_HEADER): Add, generate config.h.
3264 * configure: Regenerate.
3265 * Makefile.in (defs_h): Add config.h
3266 (distclean): Remove config.h and stamp-h during distclean.
3267 (config.h, stamp-h): New targets to remake config.h when necessary.
3268 * defs.h (config.h): Include before any other includes or defines.
3269 * i386-tdep.c (gdb_string.h): Move include after include of defs.h.
3270 * i386v4-nat.c (defs.h): Include before testing HAVE_SYS_PROCFS_H.
3275 * Makefile.in (INSTALLED_LIBS): Make sure that @LIBS@ will not
3276 result in an empty line, to work around a bug in native Ultrix 4.4
3277 and OSF/1-3.2C make.
3281 * configure.in: Add gdbserver to configdirs under linux.
3282 * configure: Regenerate.
3286 * config/i386/nm-nbsd.h (FLOAT_INFO): Comment out.
3287 * config/i386/tm-nbsd.h (NUM_REGS): Define.
3291 * solib.c (solib_break_names): Add _r_debug_state for
3292 vanilla SVR4 implementations. From Peter Schauer.
3296 * mon960-rom.c: New file; support mon960 rom monitor on i960.
3297 * monitor.c (monitor_debug): Change remotedebug to buffer strings.
3298 * monitor.c (monitor_open): Add test for flag MO_NO_ECHO_ON_OPEN before
3299 epecting prompt and echo during open.
3300 * monitor.c (monitor_stop): Add test for flag MO_SEND_BREAK_ON_OPEN to
3301 determine if break should be sent as stop command.
3302 * monitor.h: Add flags MO_NO_ECHO_ON_OPEN and MO_SEND_BREAK_ON_OPEN.
3303 * i960-tdep.c (mon960_frame_chain_valid): New function for getting
3304 stack frame on mon960.
3305 * Makefile.in: Add mon960 files.
3306 * configure.in: Changed i960-*-coff* and i960-*-elf* to target mon960;
3307 added i960-nindy-coff* and i960-nindy-elf* for target nindy.
3308 * configure: Regenerated.
3309 * config/i960/mon960.mt, config/i960/tm-mon960.h: New files;
3310 support mon960 rom monitor on i960.
3314 With Michael Snyder:
3315 * i386-tdep.c (skip_trampoline_code): Fix strncmp length.
3316 * win32-nat.c (CHECK, DEBUG*, debug_*): New.
3317 (handle_load_dll): Don't reload symbols.
3318 (handle_exception): Use the DEBUG_* names.
3319 (child_wait): Add DEBUG_* code.
3320 (_initialize_inftarg): Add new commands to set debug_ names.
3324 * From Peter Schauer:
3325 * breakpoint.c (insert_breakpoints): Use ALL_BREAKPOINTS_SAFE.
3326 (bpstat_stop_status): Likewise.
3327 (remove_solib_event_breakpoints): Likewise.
3328 (clear_momentary_breakpoints): Likewise.
3329 (re_enable_breakpoints_in_shlibs): Don't reenable a breakpoint
3330 if we still can't read the memory for that breakpoint.
3331 (mention): Add bp_shlib_event case to keep gcc quiet.
3335 * breakpoint.h (enum enable): New enum shlib_disabled for
3336 shared library breakpoints that have been temporarily disabled.
3337 * breakpoint.c: Handle temporarily disabled shared library
3338 breakpoints like disabled breakpoints in most places.
3339 (insert_breakpoints): Use shlib_disabled to indicate
3340 that an unsettable breakpoint is only temporarily disabled.
3341 (re_enable_breakpoints_in_shlibs): New function.
3342 * corelow.c (solib_add_stub): After adding shared libraries,
3343 try to reenable any temporarily disabled breakpoints.
3344 * infcmd.c (attach_command): Likewise.
3345 * infrun.c (wait_for_inferior): Likewise.
3349 * defs.h (extract_long_unsigned_integer): Declare.
3350 * findvar.c (extract_long_unsigned_integer): New function.
3351 * printcmd.c (print_scalar_formatted): Use it.
3352 * valprint.c (val_print_type_code_int): Likewise.
3356 * infcmd.c (do_registers_info): Ignore anonymous registers.
3357 * sh-tdep.c (set processor): New command to set specific
3359 (sh_reg_names, sh3_reg_names): Arrays of register names for
3360 SH and SH3 processors.
3361 (sh_set_processor_type): New function.
3362 * sh3-rom.c (sh3_open): Call it.
3363 (sh3_regname): Add names of all the bank registers.
3364 (sh3_supply_register): Clean up formatting.
3365 * config/sh/tm-sh.h (NUM_REGS, NUM_REALREGS): Increase to include
3367 (REGISTER_NAMES): Add names of bank registers.
3368 (FP15_REGNUM): Define.
3369 (REGISTER_VIRTUAL_TYPE): Use it.
3370 * monitor.c: Clean up some comments.
3374 * i386b-nat.c: Revert part of Mar 5 change. FreeBSD collapsed the
3375 s* and t* symbols too.
3379 * symfile.c (generic_load): Avoid division by zero.
3383 * breakpoint.c (bfd_lookup_symbol): Provide for all SVR4 systems,
3384 not just those with HANDLE_SVR4_EXEC_EMULATORS.
3387 * breakpoint.c (internal_breakpoint_number): Move to file scope.
3388 (create_solib_event_breakpoint): Use an internal breakpoint number.
3392 * valarith.c (value_in): Change builtin_type_chill_bool to
3397 * ch-exp.c (parse_primval): Handle CARD, MAX, MIN.
3398 (match_string_literal): Handle control sequence.
3399 (match_character_literal): Deto.
3401 * ch-lang.c (chill_printchar): Change formating of nonprintable
3402 characters from C'xx' to ^(num).
3403 (chill_printstr): Deto.
3404 (value_chill_card, value_chill_max_min): New functions to process
3405 Chill's CARD, MAX, MIN.
3406 (evaluate_subexp_chill): Process UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN.
3408 * expression.h (exp_opcode): Add UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN
3409 for Chill's CARD, MAX, MIN.
3411 * valarith.c (value_in): Add processing of TYPE_CODE_RANGE
3412 and change return type from builtin_type_int to
3413 builtin_type_chill_bool.
3417 * config/nm-nbsd.h (link_object, lo_name, etc): Move to here
3418 from config/nm-nbsd.h.
3419 * config/sparc/nm-nbsd.h (regs, fp_status, etc): Move to here
3420 from config/sparc/tm-nbsd.h.
3422 * config/m68k/nm-hp300hpux.h (FIVE_ARG_PTRACE): Define here
3423 instead of in config/m68k/xm-hp300hpux.h.
3427 * i386b-nat.c, m68knbsd-nat.c (fetch_core_registers): Provide
3428 implementation for NetBSD systems.
3432 * valarith.c (binop_user_defined_p): Return 0 for BINOP_CONCAT.
3433 (value_concat): Handle varying strings (add COERCE_VARYING_ARRAY).
3435 * ch-lang.c (evaluate_subexp_chill case MULTI_SUBSCRIPT): Error
3436 if "function" is pointer to non-function.
3440 * top.c (print_gdb_version): Update copyright year.
3445 * infrun.c (wait_for_inferior): Remove breakpoints and
3446 switch terminal settings before calling SOLIB_ADD.
3447 * solib.c (enable_break, SVR4 variant): Don't map in symbols
3448 for the dynamic linker, the namespace pollution causes real
3453 * remote-mips.c (common_breakpoint): Explicitly terminate the
3459 * remote.c (remote_detach): Send a command 'D' to the target
3460 when detaching, update the function's comments.
3464 * gnu-nat.c (thread_cmd_list): New declaration.
3465 (parse_int_arg): New function.
3469 * gnu-nat.h (struct proc): Add DETACH_SC field.
3470 * gnu-nat.c (make_proc): Set DETACH_SC.
3471 (struct inf): Add DETACH_SC & DEFAULT_THREAD_DETACH_SC fields.
3472 (make_inf): Set DETACH_SC & DEFAULT_THREAD_DETACH_SC fields.
3473 (add_thread_commands): Add set/show for detach-suspend-count.
3474 Add takeover-suspend-count cmd.
3475 (inf_detach): Set suspend counts to the detach SC, not 0.
3476 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd,
3477 set_task_detach_sc_cmd, show_task_detach_sc_cmd,
3478 set_thread_default_thread_detach_sc_cmd,
3479 show_thread_default_thread_detach_sc_cmd): New functions.
3480 (show_task_cmd): Also show detach-suspend-count values.
3481 (thread_takeover_sc_cmd): New function.
3485 * gnu-nat.c (show_thread_run_cmd): Actually print state.
3489 * gnu-nat.c (inf_signal): Make unforwardable exceptions an error.
3493 * gnu-nat.c (inf_validate_stopped): proc_getprocinfo takes a
3494 pointer to the flags now, not the flags themselves.
3498 * gnu-nat.c (gnu_wait): Print debugging msgs for pending execs.
3499 (gnu_create_inferior): Check return from ptrace.
3503 * gnu-nat.h (struct proc): Add DEAD field.
3504 * gnu-nat.c (make_proc): Initialize DEAD.
3505 (inf_set_traced, inf_validate_task_sc, inf_validate_procs: Frob it.
3506 (gnu_wait): Only abort for 0 threads if the task isn't dead.
3510 * gnu-nat.c (inf_signal): Pass SIGCODE when posting a signal.
3514 * gnu-nat.c (S_proc_wait_reply): Add SIGCODE argument.
3515 (inf_set_traced): Only give no-signal-thread error message if
3516 turning *on* tracing.
3520 * gnu-nat.c (inf_validate_procs): If INF has no threads, always
3521 set inf->threads_up_to_date to 0.
3522 (inf_signal): Pass in new SIGCODE argument to msg_sig_post_untraced.
3523 (gnu_wait): Pass in new TIMEOUT arg to interrupt_operation.
3524 (proc_update_sc): Cast thread state arg to thread_set_state.
3525 (proc_get_state): Cast thread state arg to thread_get_state.
3526 (inf_validate_task_sc): Cast task_basic_info arg to task_info.
3527 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Call
3528 inf_update_procs before we lookup the thread.
3529 * config/i386/i386gnu.mh (MH_CFLAGS): New variable.
3533 * gnu-nat.c (gnu_kill_inferior): Use inf_set_task to clear the task.
3537 * gnu-nat.c (inf_set_traced): Use msg_set_init_int with
3538 INIT_TRACEMASK instead of setting the exec flags.
3542 * gnu-nat.c (inf_validate_procs): Don't clear INF->task if we find
3543 the task's died, so others have a chance at it.
3544 (gnu_resume): When single-stepping a single thread, given an error
3545 if there is no such thread. When single-stepping one but running
3546 the others, just given a warning and still run all the threads.
3547 (gnu_wait): If there seem to be no threads, look harder, and
3548 signal an error if there really aren't any.
3549 (gnu_attach): Reset thread numbering to 0.
3551 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Give
3552 thread name in warning messages.
3554 * gnu-nat.c (active_inf): New function.
3555 (show_sig_thread_cmd, show_stopped_cmd): Use it.
3556 (info_port_rights, info_send_rights_cmd, info_port_sets_cmd,
3557 info_recv_rights_cmd, info_port_rights_cmd, info_port_rights_cmd):
3559 (add_task_commands): Add new port-right info commands.
3563 * gnu-nat.c (gnu_wait): Instead of _hurd_intr_rpc_mach_msg, just
3564 use mach_msg with MACH_RCV_INTERRUPT.
3565 (set_noninvasive_cmd): New function.
3566 (add_task_commands): Add command entry for `set noninvasive'.
3570 * gnu-nat.c (gnu_read_inferior): Use hurd_safe_memmove, not safe_bcopy.
3571 (safe_bcopy): Function removed.
3575 * gnu-nat.c (proc_update_sc): Assert only threads can have state.
3576 (make_proc): Initialize state_valid & state_changed fields.
3580 * reply_mig_hack.awk: New file.
3584 * breakpoint.c (breakpoint_1): Print breakpoint thread field.
3586 * lynx-nat.c (child_wait): Return TARGET_WAITKIND_SPURIOUS for new
3591 * target.c (debug_to_check_threads): New function.
3593 * inflow.c (terminal_init_inferior_with_pgrp): New function.
3594 (terminal_init_inferior): Call terminal_init_inferior_with_pgrp.
3595 * inferior.h (terminal_init_inferior_with_pgrp): New declaration,
3596 but only if PROCESS_GROUP_TYPE is defined.
3600 * target.c (debug_to_thread_alive): Pass through the return value.
3604 * target.c (signals, target_signal_from_host, target_signal_to_host):
3605 Add mach exceptions.
3606 * target.h (enum target_signal): Add mach exceptions.
3610 * gnu-nat.c: New file: gnu native backend.
3611 * i386gnu-nat.c: New file: i386-specific part of gnu native backend.
3612 * gnu-nat.h: New file.
3613 * config/nm-gnu.h: New file.
3614 * config/tm-i386gnu.h: New file.
3615 * config/xm-i386gnu.h: New file.
3616 * config/i386/i386gnu.mh: New file.
3617 * config/i386/i386gnu.mt: New file.
3621 * Makefile.in (VERSION): Bump version to 4.15.2 to establish
3622 baseline for gdb 4.16 rerelease testing.
3626 * somsolib.c (som_solib_create_inferior_hook): Before returning
3627 call clear_symtab_users.
3631 * remote-e7000.c (e7000_open): Delete all breakpoints when
3632 connecting to e7000. Change connect message to allow use of
3633 monitor.exp in test suite.
3634 * (e7000_load): Print transfer rate of download.
3635 * symfile.c (generic_load): Print transfer rate of download.
3639 * configure.in (mips*-*-vxworks*): New config.
3640 * configure: Regenerated.
3642 * config/mips/vxmips.mt, config/mips/tm-vxmips.h: New files.
3643 * remote-vxmips.c (vx_convert_to_virtual, vx_convert_from_virtual):
3648 * partial-stab.h (case N_FUN): Function symbols generated
3649 by SPARCworks cc have a meaningless zero value, do not update
3650 pst->textlow if the function symbol value is zero.
3652 * stabsread.c (define_symbol): Initialize SYMBOL_TYPE field
3653 for function prototype declaration symbols.
3657 * remote-e7000.c (e7000_load): New routine to download via the
3659 * (e7000_wait): Don't backup PC when we hit a breakpoint.
3660 Apparantly new sh2 pods get this right...
3661 * (e7000_ops): Add call to e7000_load.
3665 * config/m68k/{nbsd.mh,nbsd.mt,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h},
3666 m68knbsd-nat.c: New files, support for NetBSD/m68k.
3668 * configure.in (m68k-*-netbsd*): New config.
3669 * configure: Regenerated.
3673 * standalone.c (open, _initialize_standalone): Fix obvious typos
3678 * solib.c (solib_create_inferior_hook): Fix thinko.
3682 * solib.c (solib_break_names): Define for Solaris and Linux.
3683 (enable_break): For SVR4 systems, first try to use the debugger
3684 interfaces in the dynamic linker to track shared library events
3685 as they happen, then fall back to BKPT_AT_SYMBOL code. Convert
3686 BKPT_AT_SYMBOL code to use shared library event breakpoints.
3687 (solib_create_inferior_hook): Simplify BKPT_AT_SYMBOL code,
3688 it no longer needs to restart/wait on the inferior.
3689 * symfile.c (find_lowest_section): No longer static.
3690 * symfile.h (find_lowest_section): Corresponding changes.
3694 * valops.c (COERCE_FLOAT_TO_DOUBLE): Define default value.
3695 (value_arg_coerce): Use COERCE_FLOAT_TO_DOUBLE.
3696 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Define to 1.
3697 * config/mips/tm-mips.h: Ditto.
3698 * config/pa/tm-hppa.h: Ditto.
3699 * config/rs6000/tm-rs6000.h: Ditto.
3700 * config/sparc/tm-sparc.h: Ditto.
3704 * config/{i386,ns32k}/nbsd.mh (NATDEPFILES): Remove core-aout.o.
3706 * config/nm-nbsd.h (FETCH_INFERIOR_REGISTERS): Defined.
3707 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
3708 #ifdef'd out definitions --- Causes serious gdb failures on
3709 the i386. Need to investigate further before enabling.
3711 * i386b-nat.c (fetch_inferior_registers, store_inferior_registers,
3712 fetch_core_registers): New functions. These functions are defined
3713 if FETCH_INFERIOR_REGISTERS is set. Registers are fetched/stored
3714 with ptrace PT_GETREGS/PT_SETREGS.
3718 * findvar.c (extract_floating store_floating): Replace `long
3719 double' with `DOUBLEST'.
3723 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
3728 * symtab.h (looup_minimal_symbol_solib_trampoline): Declare.
3730 * breakpoint.h (remove_solib_event_breakpoints): Declare.
3731 * breakpoint.c (remove_solib_event_breakpoints): New function.
3732 * somsolib.c (solib_create_inferior_hook): Remove all solib event
3733 breakpoints before inserting any new ones. Use a solib event
3734 breakpoint for the breakpoint at "_start".
3735 Remove extraneous "\n" from calls to warning.
3737 * breakpoint.c (breakpoint_1): Add missing "sigtramp" to bptypes
3742 * dwarfread.c (add_partial_symbol): Use ADD_PSYMBOL_ADDR_TO_LIST
3743 for CORE_ADDR values.
3744 (new_symbol): Use SYMBOL_VALUE_ADDRESS for CORE_ADDR values.
3745 * symfile.h (add_psymbol_{,addr}to_list): Add prototypes.
3749 * mipsread.c (mipscoff_symfile_read): Unconditionally add
3750 alpha coff dynamic symbols for all symbol files. Makes skipping
3751 over the trampoline code work when stepping from a function in a
3752 shared library into a function in a different shared library.
3756 * config/sparc/tm-sparc.h: Define PS_FLAG_CARRY. Define
3757 RETURN_VALUE_ON_STACK to return long doubles on the stack.
3761 * Makefile.in (ch-exp.o): Add dependencies.
3762 (various): Add gdb_string.h to dependencies that need it.
3766 * symmisc.c (print_symbol_bcache_statistics): Update description for
3767 printing byte cache statistics.
3771 * Add native support for long double data type.
3772 * c-exp.y (%union): Change dval to typed_val_float. Use DOUBLEST
3773 to store actual data. Change types of INT and FLOAT tokens to
3774 typed_val_int and typed_val_float respectively. Create new token
3775 DOUBLE_KEYWORD to specify the string `double'. Make production
3776 for FLOAT use type determined by parse_number. Add production for
3777 "long double" data type.
3778 * (parse_number): Use sscanf to parse numbers as float, double or
3779 long double depending upon the type of typed_val_float.dval. Also
3780 allow user to specify `f' or `l' suffix to explicitly specify
3781 float or long double constants. Change typed_val to
3783 * (yylex): Change typed_val to typed_val_int. Also, scan for
3785 * coffread.c (decode_base_type): Add support for T_LNGDBL basic
3787 * configure, configure.in: Add check for long double support in
3789 * defs.h: Define DOUBLEST appropriatly depending on whether
3790 HAVE_LONG_DOUBLE (from autoconf) is defined. Also, fix prototypes
3791 for functions that handle this type.
3792 * expression.h (union exp_element): doubleconst is now type
3794 * m2-exp.y f-exp.y (%union): dval becomes type DOUBLEST.
3795 * findvar.c (extract_floating): Make return value be DOUBLEST.
3796 Also, add support for numbers with size of long double.
3797 * (store_floating): Arg `val' is now type DOUBLEST. Handle all
3799 * parser-defs.h parse.c (write_exp_elt_dblcst): Arg expelt is now
3801 * valarith.c (value_binop): Change temp variables v1, v2 and v to
3802 type DOUBLEST. Coerce type of result to long double if either op
3804 * valops.c (value_arg_coerce): If argument type is bigger than
3805 double, coerce to long double.
3806 * (call_function_by_hand): If REG_STRUCT_HAS_ADDR is defined, and
3807 arg type is float and > 8 bytes, then use pointer-to-object
3808 calling conventions.
3809 * valprint.c (print_floating): Arg doub is now type DOUBLEST.
3810 Use appropriate format and precision to print out floating point
3812 * value.h: Fixup prototypes for value_as_double,
3813 value_from_double, and unpack_double to use DOUBLEST.
3814 * values.c (record_latest_value): Remove check for invalid
3815 floats. Allow history to store them so that people may examine
3816 them in hex if they want.
3817 * (value_as_double unpack_double): Change return value to DOUBLEST.
3818 * (value_from_double): Arg `num' is now DOUBLEST.
3819 * (using_struct_return): Use RETURN_VALUE_ON_STACK macro (target
3820 specific) to expect certain types to always be returned on the stack.
3824 * bcache.c, bcache.h: New files to implement a byte cache.
3825 * Makefile.in (SFILES): Add bcache.c.
3826 (symtab_h): Add bcache.h.
3827 (HFILES_NO_SRCDIR): add bcache.h
3828 (COMMON_OBJS): Add bcache.o
3829 (bcache.o): New target.
3830 * dbxread.c (start_psymtab): Make global_syms & static_syms
3831 type "partial_symbol **".
3832 * hpread.c (hpread_start_symtab): Ditto.
3833 * os9kread.c (os9k_start_psymtab): Ditto.
3834 * stabsread.h (start_psymtab): Ditto.
3835 * {symfile.c, symfile.h} (start_psymtab_common): Ditto.
3836 * maint.c (maintenance_print_statistics): Call
3837 print_symbol_bcache_statistics.
3838 * objfiles.c (allocate_objfile): Initialize psymbol bcache malloc
3840 * solib.c (allocate_rt_common_objfile): Ditto.
3841 * symfile.c (reread_symbols): Ditto.
3842 (free_objfile): Free psymbol bcache when objfile is freed.
3843 (objfile_relocate): Use new indirect psymbol pointers.
3844 * objfiles.h (struct objfile): Add psymbol cache.
3845 * symfile.c (compare_psymbols): Now passed pointers to pointers to
3847 (reread_symbols): Free psymbol bcache when freeing other objfile
3849 (add_psymbol_to_list, add_psymbol_addr_to_list): Initialize new
3850 psymbol using the psymbol bcache.
3851 (init_psymbol_list): Psymbol lists now contain pointers rather than
3852 the actual psymbols.
3853 * symfile.h (psymbol_allocation_list): Psymbol lists now dynamically
3854 grown arrays of pointers.
3855 (ADD_PSYMBOL_VT_TO_LIST): Initialize new symbol using the psymbol
3857 * symmisc.c (print_partial_symbols): Now takes pointer to pointer
3859 (print_symbol_bcache_statistics): New function to print per objfile
3861 (print_partial_symbol, print_partial_symbols,
3862 maintenance_check_symtabs, extend_psymbol_list):
3863 Account for change to pointer to pointer to partial symbol.
3864 * symtab.c (find_pc_psymbol, lookup_partial_symbol, decode_line_2,
3865 make_symbol_completion_list):
3866 Account for change to pointer to pointer to partial symbol.
3867 * symtab.h (bcache.h): Include.
3868 * xcoffread.c (xcoff_start_psymtab): Make global_syms & static_syms
3869 type "partial_symbol **".
3873 * dwarfread.c (free_utypes): New function.
3874 (read_file_scope): Call free_utypes as cleanup, rather than just
3875 freeing the utypes pointer.
3879 * demangle.c (is_cplus_marker): New function, checks if a
3880 character is one of the commonly used C++ marker characters.
3881 * defs.h (is_cplus_marker): Add prototype.
3882 * c-typeprint.c (c_type_print_base), ch-lang.c (chill_demangle),
3883 cp-valprint.c (cp_print_class_method), mdebugread.c (parse_symbol),
3884 stabsread.c (define_symbol, read_member_functions, read_struct_fields),
3885 symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P),
3886 values.c (vb_match): Use is_cplus_marker instead of comparison
3891 * symfile.h (INLINE_ADD_PSYMBOL): Default this to 0 and possibly
3892 delete entirely someday.
3896 * mpw-make.sed: Edit out makefile rebuild rule.
3897 (host_alias, target_alias): Comment out instead of deleting.
3898 (@LIBS@): Edit out references.
3902 * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
3903 Use n_psyms in OBJSTAT, not psyms.
3907 * configure.in (sparclet-*-aout*): New config.
3908 * configure: Regenerated.
3912 * somsolib.c (som_solib_add): Use xmalloc rather than bare
3913 unchecked call to malloc.
3914 * remote-mips.c (pmon_load_fast): ditto.
3915 * remote-mm.c (mm_open): ditto.
3916 * hpread.c (hpread_lookup_type): ditto.
3917 * remote-adapt.c (adapt_open): ditto.
3921 * f-lang.c (allocate_saved_bf_node, allocate_saved_function_node,
3922 allocate_saved_f77_common_node, allocate_common_entry_node,
3923 add_common_block): Use xmalloc rather than malloc, some of which
3925 * gnu-regex.c: At same point as other gdb specific changes
3926 #undef malloc and then #define it to xmalloc.
3927 * ch-exp.c (growbuf_by_size): Use xmalloc/xrealloc rather than
3928 bare unchecked calls to malloc/realloc.
3929 * stabsread.c (dbx_lookup_type): Use xmalloc rather than bare
3930 unchecked call to malloc.
3934 * symtab.c (gdb_mangle_name): Change opname var to be const to
3935 match return val of cplus_mangle_name.
3936 * i960-tdep.c: Change arg types of next_insn to match callers.
3940 * config/i386/linux.mh (XM_CLIBS, GDBSERVER_LIBS): Remove. These
3941 apparently aren't needed in any reasonably recent version of
3946 * stabsread.c (read_range_type): If !self-subrange and language
3947 is Chill, assume a true range. If a true_range is a sub_subrange,
3948 use builtin_type_int for index_type.
3952 * nindy-share/nindy.c (say): Use stdarg.h macros when compiling
3953 with an ANSI compiler.
3955 start-sanitize-gdbtk
3958 * gdbtk.tcl (create_file_win): Eliminate text widget B1 binding so
3959 double-clicking will work again.
3960 (create_asm_win): Put "break" at end of all B1 bindings.
3961 (create_file_win): Lower "sel" tag, don't raise it.
3962 (ensure_line_visible): New proc.
3963 (update_listing, update_assembly): Use it.
3964 (create_copyright_window): Destroy window on Leave event.
3965 (create_command_window): Put "break" at end of all B2 bindings.
3971 * valops.c (value_arg_coerce): Coerce float to double, unless the
3972 function prototype specifies float.
3976 * language.c (set_language_command): Use languages table when
3977 printing available languages.
3982 * command.c (add_cmd): Add missing initialization for enums member.
3983 Reorder members to match structure declaration to make it easier to
3984 tell when one is missing.
3985 * exec.c (exec_file_command): Fix problem where filename in malloc'd
3986 memory is referenced after being freed.
3990 * dwarfread.c (read_func_scope): Avoid GDB core dumps if
3991 AT_name tag is missing.
3993 * procfs.c (procfs_stopped_by_watchpoint): Fix logic when
3994 FLTWATCH and FLTKWATCH are defined.
3996 * remote.c (remote_read_bytes): Advance memaddr for transfers,
3997 return number of bytes transferred for partial reads.
3999 * top.c (init_signals): Reset SIGTRAP to SIG_DFL.
4003 * win32-nat.c (mappings): Add ppc registers.
4004 (child_resume): Turn off step for ppc.
4008 * config/powerpc/(cygwin32.mh, cygwin32.mt, tm-cygwin32.h,
4009 xm-cygwin32.h): New.
4010 * config/i386/(*win32*): Becomes *cygwin32*.
4011 * configure.in (i[3456]86-*-win32*): Becomes i[3456]86-*-cygwin32.
4012 (powerpcle-*-cygwin32): New.
4013 * configure: Regenerate.
4014 * win32-nat.c (child_create_inferior): Call CreateProcess
4015 with the right program arg.
4019 * config/pa/tm-hppa.h (SOFT_FLOAT): Provide a default definition.
4023 * serial.c: Change fputc/fputs/fprintf to _unfiltered forms.
4027 * config/sparc/xm-sun4os4.h (HAVE_TERMIOS): Remove.
4029 * config/sparc/xm-sparc.h (HAVE_WAIT_STRUCT): Remove, never used.
4031 * config/i386/nm-i386mach.h (CHILD_PREPARE_TO_STORE): Move to
4032 here from config/i386/xm-i386mach.h, fix name.
4033 * config/i386/nm-sun386.h: Ditto, from config/i386/xm-sun386.h.
4034 * config/i386/nm-ptx4.h (CHILD_PREPARE_TO_STORE): Move to
4035 here from config/i386/xm-ptx4.h.
4036 * config/i386/nm-ptx4.h: Ditto, from config/i386/xm-ptx.h.
4037 * config/i386/nm-symmetry.h: Ditto, from config/i386/xm-symmetry.h.
4038 * config/m68k/nm-sun3.h: Ditto, from config/m68k/xm-sun3.h.
4039 * config/sparc/nm-nbsd.h: Ditto, from config/sparc/xm-nbsd.h.
4040 * config/sparc/nm-sun4os4: Ditto, from config/sparc/xm-sparc.h.
4042 * config/sparc/nm-sun4sol2.h: New file, renamed from nm-sysv4.h.
4043 (PRSVADDR_BROKEN): Move here from xm-sun4sol2.h.
4044 * config/sparc/sun4sol2.mh (NAT_FILE): Update.
4048 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Handle software
4049 floating point correctly.
4050 (STORE_RETURN_VALUE): Likewise.
4051 * config/pa/tm-pro.h (SOFT_FLOAT): define.
4055 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
4056 Define to what should be reasonable values. However, apparently
4057 a bug in linux mmap prevents mapped symbol tables from working.
4061 * defs.h (errno.h>: Move #include closer to head of file to solve
4062 obscure problem with systems that declare perror with const arg, in
4063 both errno.h and stdio.h, and const is defined away by intervening
4069 * i386-stub.c (getpacket): Change fprintf stream from "gdb" to stderr.
4070 (mem_fault_routine): Fix misplaced volatile type qualifier in decl.
4074 * Makefile.in (diststuff): Make all-doc; diststuff target does not
4075 exist in doc/Makefile.in.
4079 * config/m88k/xm-cxux.h (BP_HIT_COUNT): Remove, never used.
4083 * ch-valprint.c (calculate_array_length): New function to
4084 determine the length of an array type.
4085 (chill_val_print (case TYPE_CODE_ARRAY)): If the length of an
4086 array type is zero, call calculate_array_length.
4088 * gdbtypes.c (get_discrete_bounds (case TYPE_CODE_ENUM)): The
4089 values may not be sorted. Scan all entries and set the real lower
4094 * config/xm-linux.h: Move include of solib.h and #define of
4095 SVR4_SHARED_LIBS from here ...
4096 * config/nm-linux.h: ...to here.
4100 * configure.in (AC_CHECK_HEADERS): Check for sys/procfs.h.
4101 Also check for gregset_t and fpregset_t types.
4102 * configure: Regenerate.
4103 * core-regset.c (sys/procfs.h): Only include if HAVE_SYS_PROCFS_H
4105 (fetch_core_registers): Turn into stub unless both HAVE_GREGSET_T
4106 and HAVE_FPREGSET_T are defined. These changes allow systems
4107 like linux that are migrating to /proc support to use a single
4108 configuration for both new and old versions.
4110 * config/i386/linux.mt: Note that this is now for both a.out and
4112 * config/i386/linux.mh (NATDEPFILES): Add solib.o, core-regset.o,
4114 * config/i386/tm-linux.h (tm-sysv4.h): Include.
4115 * config/i386/xm-linux.h (solib.h): Include
4116 (SVR4_SHARED_LIBS): Define.
4117 * i386v4-nat.c: Only compile if HAVE_SYS_PROCFS_H is defined.
4118 (supply_gregset, fill_gregset): Compile if HAVE_GREGSET_T defined.
4119 (supply_fpregset, fill_fpregset): Compile if HAVE_FPREGSET_T
4124 * config/sparc/xm-sparc.h (NEW_SUN_CORE): Remove, never used.
4125 * config/i386/xm-sun386.h: Ditto.
4126 * config/m68k/xm-sun2.h, config/m68k/xm-sun3.h: Ditto.
4130 * Makefile.in (INSTALLED_LIBS, CLIBS): Include @LIBS@.
4135 * dcache.c (dcache_peek, dcache_poke): Advance addr for
4140 * infrun.c (normal_stop): Fix test for shared library event.
4144 * configure.in (sparc64-*-*): Add default host configuration.
4145 start-sanitize-gdbtk
4146 (sparc64-*-solaris2* host): Link statically if GCC used.
4148 (sparc64-*-solaris2*): Add target configuration.
4149 * configure: Regenerated.
4150 * sparc/sp64sol2.mt: New file.
4154 * Makefile.in (RUNTEST): srcdir renamed to rootsrc.
4158 * Makefile.in (lint): Close backquotes.
4160 start-sanitize-gdbtk
4163 * gdbtk.tcl, gdbtk.c: Updated copyrights.
4165 * configure.in: Look for -ldl or -ldld when using Tcl 7.5 or
4167 * configure: Rebuilt.
4172 * NEWS: Make note of new record and replay feature for
4173 remote debug sessions.
4174 * serial.c (gdbcmd.h): Include.
4175 (serial_logfile, serial_logfp, serial_reading, serial_writing):
4176 Define here, for remote debug session logging.
4177 (serial_log_command, serial_logchar, serial_write, serial_readchar):
4178 New functions for remote debug session logging.
4179 (serial_open): Open remote debug session log file when needed.
4180 (serial_close): Close remote debug session log file when needed.
4181 (_initialize_serial): Add set/show commands for name of remote
4182 debug session log file.
4183 * serial.h (serial_readchar): Declare
4184 (SERIAL_READCHAR): Call serial_readchar().
4185 (SERIAL_WRITE): Call serial_write().
4186 (serial_close): Declare as extern.
4187 (serial_logfile, serial_logfp): Declare.
4188 * top.c (execute_command): Declare serial_logfp. Log user command
4189 in remote debug session log if log file is open.
4190 * remote-array.c (array_wait): #ifdef out echo to gdb_stdout.
4191 (array_read_inferior_memory): Rewrite to fix memory overwrite bug.
4192 * remote-array.c (SREC_SIZE): Remove, duplicates define in
4194 * remote-array.c (hexchars, hex2mem): Remove, unused.
4195 * gdbserver/low-linux.c (store_inferior_registers): Remove
4196 unnecessary extern declaration of registers[].
4197 * gdbserver/Makefile.in (all): Add gdbreplay.
4198 * gdbserver/gdbreplay.c: New file.
4199 * gdbserver/README: Give example of recording a remote
4200 debug session with gdb and then replaying it with gdbreplay.
4204 * stabsread.c (rs6000_builtin_type): Make bool type unsigned.
4205 (read_one_struct_field): Support boolean bitfields.
4206 * c-valprint.c (c_val_print): Print booleans properly.
4210 * remote-vxsparc.c (vx_convert_to_virtual, vx_convert_from_virtual):
4212 * config/sparc/vxsparc.mt (TDEPFILES): Add remote-vxsparc.o.
4216 * ch-exp.c (parse_tuple): Error if invalid mode.
4218 * value.h (COERCE_ARRAY): Don't coerce enums.
4219 (COERCE_ENUM): Don't COERCE_REF.
4220 (COERCE_NUMBER): New macro (same as COERCE_ARRAY then COERCE_ENUM).
4221 * valops.c (value_assign): Only do COERCE_ARRAY if internalvar (let
4222 value_cast handle it otherwise); do *not* COERCE_ENUM either way.
4223 * valarith.c: Use COERCE_NUMBER instead od COEREC_ARRAY.
4224 Add COERCE_REF before COERCE_ENUM.
4225 * values.c (value_as_long): Simplify.
4227 * valops.c (value_array): Create internalvar if !c_style_arrays.
4229 * language.c (lang_bool_type): Add Fortran support.
4230 * eval.c (OP_BOOL): Use LA_BOOL_TYPE.
4234 * symfile.c (auto_solib_add): Renamed from auto_solib_add_at_startup.
4235 All references changed.
4236 * breakpoint.c (bpstat_what): Add shlib_event to the class types.
4237 Update state table. Reformat so that it's still readable.
4238 When we hit the shlib_event breakpoint, set the calss of shlib_event.
4239 (breakpoint_1): Add "shlib events" as a breakpoint type.
4240 Print the shlib_event breakpoint like other breakpoints.
4241 (create_solib_event_breakpoint): New function.
4242 (breakpoint_re_set_one): Handle solib_event breakpoints.
4243 * breakpoint.h (enum bytype): Add bp_shlib_event breakpoint type.
4244 (enum bpstat_what_main_action): Add BPSTAT_WHAT_CHECK_SHLIBS
4246 (create_solib_event_breakpoint): Declare.
4247 * infrun.c (wait_for_inferior): Handle CHECK_SHLIBS bpstat.
4248 (normal_stop): Inform the user when the inferior stoped due
4249 to a shared library event.
4250 (_initialize_infrun): Add new set/show variable "stop-on-solib-events"
4251 to control whether or not gdb continues the inferior or stops it when
4252 a shared library event occurs.
4253 * minsyms.c (lookup_minimal_symbol_solib_trampoline): New function.
4254 * somsolib.c (TODO list): Update.
4255 (som_solib_create_inferior_hook): Arrange for gdb to be notified
4256 when significant shared library events occur.
4257 * hppa-tdep.c (find_unwind_entry): No longer static.
4261 * printcmd.c (print_insn): Pass fprintf_unfiltered to
4262 INIT_DISASSEMBLE_INFO.
4263 start-sanitize-gdbtk
4264 * gdbtk.c (gdb_disassemble): Likewise.
4269 * remote.c (remotebreak): New GDB variable.
4270 (remote_break): New global.
4271 (remote_interrupt): Send a break instead of ^C if remote_break.
4272 * NEWS: Describe the new variable.
4276 * sparc-tdep.c (_initialize_sparc_tdep): Always use print_insn_sparc.
4280 * hp300ux-nat.c (getpagesize): Remove unused function
4281 fetch_core_registers.
4282 (hp300ux_core_fns): Remove, is unused.
4283 (_initialize_core_hp300ux): Remove, is unused.
4284 (gdbcore.h): Remove #include, no longer needed.
4288 * rs6000-nat.c (exec_one_dummy_insn): Rework to avoid
4289 ptrace bug in aix4.1.3 on the rs6000.
4293 * remote-hms.c (hms_ops): Add value for to_thread_alive.
4294 * remote-nindy.c (nindy_ops): Ditto.
4295 * remote-udi.c (udi_ops): Ditto.
4299 * remote-mips.c (pmon_opn, pmon_wait, pmon_makeb64, pmon_zeroset,
4300 pmon_checkset, pmon_make_fastrec, pmon_check_ack,
4301 pmon_load_fast): New functions. Support for the PMON monitor world.
4302 (common_open): New function to merge support for different monitors.
4303 (mips_open): Use common_open().
4304 (mips_send_command): New function.
4305 (mips_send_packet): Scan out-of-sequence packets.
4306 (mips_enter_debug, mips_exit_debug): New functions.
4307 (pmon_ops): New target definition structure.
4311 * Makefile.in (CLIBS): Add LIBS to allow libraries to be
4312 specified on the make command line (via make LIBS=xxx).
4314 * configure.in (enable-gm): magic.o -> gmagic.o.
4317 start-sanitize-gdbtk
4320 * gdbtk.tcl (create_expr_window): Many changes to update GUI.
4321 (add_expr): Changes from create_expr_window.
4322 (create_command_window): Set focus.
4323 (delete_expr): Rewrote.
4324 (expr_update_button): New proc.
4325 (add_expr): Put bindings on FocusIn, FocusOut.
4326 Don't allow .file_popup to be torn off.
4331 * symtab.c (find_pc_symtab): Don't lose if OBJF_REORDERED
4332 is set but there are no psymtabs.
4336 * dsrec.c (load_srec): Remove unused variable.
4337 * monitor.c (monitor_expect): Don't expect a ^C to echo.
4338 * serial.c (serial_open): Add parallel interface.
4339 * sh3-rom.c (parallel, parallel_in_use): New.
4340 (sh3_load): If parallel_in_use, download though the
4342 (sh3_open): Open parallel port if specified.
4343 (sh3_close): New function.
4344 (_inititalize_sh3): Add sh3_close hook and documentation.
4345 * monitor.c (monitor_close): Export.
4346 * monitor.h (monitor_close): Add prototype.
4351 * remote.c (remotetimeout): New GDB variable, use to set the
4352 remote timeout for reading.
4354 start-sanitize-gdbtk
4357 * gdbtk.tcl (gdbtk_tcl_query): Swap Yes and No buttons.
4358 (update_listing): Use lassign. Use "see" to scroll. Don't need
4359 screen_top, screen_bot, screen_height.
4360 (update_assembly): Use "see" to scroll.
4361 (textscrollproc): Removed.
4362 (create_file_win): Don't use textscrollproc.
4363 (asmscrollproc): Removed.
4364 (create_asm_window): Don't use asmscrollproc.
4365 (create_asm_win): Ditto.
4366 (screen_height, screen_top, screen_bot): Removed.
4367 (run_editor): New proc.
4368 (build_framework): Use it.
4369 (create_file_win, create_source_window): Don't use textscrollproc.
4370 (create_breakpoints_window): Set -xscrollcommand on canvas.
4371 (not_implemented_yet): Default button is 0.
4372 (delete_char): Don't use tk_textBackspace.
4373 (create_command_window): Allow Tk bindings to fire after deleting
4375 (create_command_window): Make Delete delete left, not right.
4380 * lynx-nat.c, irix4-nat.c, sparc-nat.c: Include gdbcore.h
4381 to get "struct core_fns" defined.
4382 * Makefile.in (lynx-nat.o, irix4-nat.o, sparc-nat.o):
4383 Are dependent upon gdbcore_h.
4387 * symfile.c (decrement_reading_symtab): New function.
4388 * symfile.c, symtab.h (currently_reading_symtab): New variable.
4389 * symfile.c (psymtab_to_symtab): Adjust currently_reading_symtab.
4390 * gdbtypes.c (check_typedef): Don't call lookup_symbol if
4391 currently_reading_symtab (since that could infinitely recurse).
4395 * stabsread.c (read_struct_type): Trivial simplification.
4397 * stabsread.c (define-symbol): Use invisible references
4398 for TYPE_CODE_SET and TYPE_CODE_BITSTRING too.
4399 * valops.c (call_function_by_hand): Likewise.
4400 * eval.c (evaluate_subexp_standard): When known, use the formal
4401 parameter type as the expected type when evaluating arg expressions.
4402 * ch-lang.c (evaluate_subexp_chill): Likewise (for MULTI_SUBSCRIPT).
4404 start-sanitize-gdbtk
4407 * main.c (main): Disable window interface if --help or --version
4410 * gdbtk.tcl (FSBox): Don't use tk_listboxSingleSelect.
4412 Changes in sync with expect:
4413 * configure.in (ENABLE_GDBTK): Use CY_AC_PATH_TCL and
4415 * aclocal.m4: Replaced with version from expect.
4416 * configure: Regenerated.
4421 * configure.in, configure: Recognize rs6000-*-aix4*.
4422 * config/powerpc/xm-aix.h: Reduce to include "xm-aix4.h".
4423 * config/rs6000/aix4.mh (XM_FILE): Point to xm-aix4.h.
4424 * config/rs6000/xm-aix4.h: New file.
4425 * config/xm-aix4.h: New file.
4430 * gdbserver/low-linux.c: New file.
4431 * remote.c (remote_read_bytes): Fix aborts on larger packets.
4433 * config/i386/linux.mh (GDBSERVER_DEPFILES, GDBSERVER_LIBS):
4435 * stabsread.c (define_symbol): If register value is too large,
4436 tell what it is and what max is.
4438 start-sanitize-gdbtk
4441 * gdbtk.tcl (gdbtk_tcl_fputs, gdbtk_tcl_fputs_error,
4442 gdbtk_tcl_flush): Use "see", not "yview".
4443 (gdbtk_tcl_query): Use questhead bitmap.
4444 various: Always wrap condition of 'if' in {...}.
4445 (add_breakpoint_frame): Set -value on radiobuttons.
4446 (lassign): New proc.
4447 (add_breakpoint_frame): Use lassign, not series of assignments.
4448 (decr): Made faster.
4449 (interactive_cmd): Use "see", not "yview".
4450 (not_implemented_yet): Use warning bitmap.
4451 (update_expr): Don't allow $expr to be evalled by Tcl.
4452 (create_expr_window): Don't use "focus".
4453 (delete_char, delete_line): Define globally.
4454 (delete_line, delete_char, create_command_window, update_autocmd,
4455 build_framework, create_asm_win, create_file_win): Use "see", not
4457 (create_copyright_window, center_window, bind_widget_after_class):
4459 (FSBox,create_command_window, create_autocmd_window): Binding
4461 (textscrollproc): Define globally.
4462 (build_framework): tk_menuBar no longer needed. Keys Prior, Next,
4463 Home, End, Up, and Down are all defined by Tk.
4464 (apply_filespec): Use error bitmap in dialog.
4465 (files_command): Don't use tk_listboxSingleSelect.
4466 (files_command): Don't use "uniq" to remove duplicates from a
4468 (update_assembly): Use lassign.
4469 (create_asm_win): Removed redundant bindings.
4470 (listing_window_button_1, file_popup_menu): Use tk_popup.
4471 (ButtonRelease-1 binding): Just remove tag from window; rest
4474 * gdbtk.c (gdbtk_query): Use Tcl_Merge to provide quoting.
4475 (call_wrapper): Use Tcl_Eval, not Tcl_VarEval.
4476 (gdbtk_call_command): Ditto.
4481 * hpread.c (hpread_build_psymtabs): Finish Jan 4th
4482 enum namespace -> enum_namespace change.
4486 * ch-exp.c (parse_primval): In case ARRAY, add missing
4491 * remote-mips.c (mips_receive_header): Recognize \012 instead
4492 of \n, but write \n when program sends a \012.
4493 * ser-mac.c (mac_input_buffer): Increase size of buffer.
4497 * infptrace.c (initialize_infptrace): Move function out of
4498 #ifdef conditional; put code within the function inside an
4501 * buildsym.c (end_symtab): Remove sort_pending and sort_linevec
4502 arguments. Sorting is now dependent on OBJF_REORDERED. All
4503 callers/references changed.
4504 * dbxread.c (read_ofile_symtab): Correctly determine value for
4505 last_source_start_addr for reordered executables.
4506 (process_one_symbol): Handle N_FUN with no name as an end of
4508 * partial-stab.h (case N_FN, N_TEXT): Don't assume CUR_SYMBOL_VALUE
4509 is the high text address for a psymtab.
4510 (case N_SO): Likewise.
4511 (case N_FUN): Handle N_FUN with no name as an end of function
4513 * minsyms.c (lookup_minimal_symbol_by_pc): Examine all symbols
4514 at the same address rather than a random subset of them.
4515 * coffread.c (coff_symfile_init): Set OBJF_REORDERED.
4516 * elfread.c (elf_symfile_init): Similarly.
4517 * somread.c (som_symfile_init): Similarly.
4518 * xcoffread.c (xcoff_symfile_init): Similarly.
4522 * stack.c (print_stack_frame print_frame_info) symmisc.c
4523 (dump_symtab): Change RETURN_MASK_ERROR to RETURN_MASK_ALL so
4524 that catch_errors doesn't get blindsided by QUIT and lose the
4525 cleanup chain. This fixes a problem where ^C while in a
4526 user-defined command sometimes leaves instream NULL and causes a
4527 segfault in command_loop.
4531 * configure.in, configure: Add `-ldl -lw' for Solaris linking.
4535 * config/sh/sh.mt, config/powerpc/*.mt, config/pa/hppapro.mt,
4536 config/m68k/monitor.mt, config/h8500/h8500.mt, config/h8300/h8300.mt:
4537 srec.o renamed to dsrec.o.
4541 * breakpoint.c (remove_breakpoint): Change error to warning so
4542 that hardware watchpoint removal problems won't leave breakpoint
4543 traps in the target.
4544 start-sanitize-gdbtk
4545 * configure configure.in: Make --enable-gdbtk be the default.
4547 * remote-e7000.c (e7000_insert_breakpoint,
4548 e7000_remove_breakpoint): Use e7000 based breakpoints, not memory
4550 * (e7000_wait): Adjust PC back by two when we see a breakpoint to
4551 compensate for e7000 maladjustment.
4552 * sparcl-tdep.c (sparclite_check_watch_resources): Fix logic bug
4553 which prevented hardware watchpoints from working.
4557 * infptrace.c (udot_info): New function.
4558 (PT_*): Define each individually if that one is not defined.
4559 * rs6000-nat.c (kernel_u_size): New function
4560 Include <sys/user.h> for "struct user"
4561 * alpha-nat.c (kernel_u_size): New function.
4562 Include <sys/user.h> for "struct user"
4563 * sparc-nat.c (kernel_u_size): New function.
4564 Include <sys/user.h> for "struct user"
4565 * i386b-nat.c (kernel_u_size): New function.
4566 * i386v-nat.c (kernel_u_size): New function.
4567 * config/i386/nm-fbsd.h (KERNEL_U_SIZE): Define.
4568 (kernel_u_size): Declare.
4569 * config/i386/nm-linux.h (KERNEL_U_SIZE): Define.
4570 (kernel_u_size): Declare.
4571 * config/sparc/nm-sun4os4.h (KERNEL_U_SIZE): Define.
4572 (kernel_u_size): Declare.
4573 * config/alpha/nm-osf2.h (KERNEL_U_SIZE): Define.
4574 (kernel_u_size): Declare.
4575 * config/rs6000/nm-rs6000.h (KERNEL_U_SIZE): Define.
4576 (kernel_u_size): Declare.
4580 * mdebugread.c (mylookup_symbol): enum namespace becomes
4581 enum_namespace type.
4582 * symfile.c (add_psymbol_to_list)
4583 (add_psymbol_addr_to_list): Ditto.
4584 * symtab.c (lookup_partial_symbol): Ditto.
4585 (lookup_symbol): Ditto.
4586 (lookup_block_symbol): Ditto.
4587 * win32-nat.c (handle_load_dll): Use incoming dll base.
4588 (child_wait): Catch DLL load errors.
4589 (create_child_inferior): Translated between paths correctly.
4593 * i386v4-nat.c (supply_gregset, fill_gregset): Subtract NUM_FREGS
4594 from NUM_REGS to get number of general registers that we care about.
4595 * config/i386/tm-i386.h (REGISTER_BYTES): Define in terms
4596 of number of general regs and number of floating point regs.
4600 * config/i386/tm-win32.h (IN_SOLIB_CALL_TRAMPOLINE): New.
4601 (SKIP_TRAMPOLINE_CODE): New.
4602 * config/i386/xm-win32.h (CANT_FORK): Deleted.
4603 (SLASH*) Changed to use unix style slash.
4604 * symtab.h (namespace enum): becomes typedef to avoid namespace
4606 * infcmd.c (path_command): Use empty string if PATH name not set.
4607 * i386-tdep.c (skip_trampoline_code): New function.
4608 * srec.c: Renamed dsrec.c to avoid filename collision.
4609 * Makefile.in: Cope with renaming.
4613 * symmisc.c (print_objfile_statistics): Print memory use statistics
4614 for objfile psymbol, symbol, and type obstacks.
4618 * config/mips/nm-irix5.h: Restore.
4619 (TARGET_HAS_HARDWARE_WATCHPOINTS, etc): Define as for Irix 4;
4621 * config/mips/irix5.mh (NAT_FILE): Use nm-irix5.h.
4622 * config/mips/irix[345].mh (MUNCH_DEFINE): Remove.
4624 For older changes see ChangeLog-95
4630 version-control: never