3 * buildsym.c (finish_block): Treat LOC_BASEREG_ARG and
4 LOC_LOCAL_ARG as arguments so that GDB will know about function
5 args declared this way. Mostly affects dwarf.
6 * dwarfread.c (decode_die_type): Change default type from int to
7 void. This allows GDB to recognize void functions.
8 * (new_symbol): If AT_PROTOTYPED is present, set a flag in the
10 * findvar.c (extract_floating store_floating): Clean up comments
12 * gdbtypes.h: Add TYPE_FLAG_PROTOTYPED so that we can tell if a
13 function has a prototype. Currently, only dwarf supports this.
14 * utils.c (floatformat_from_doublest): Fix logic error with
15 converting from double to float. (It wasn't shifting mant_long if
19 * v850-tdep.c: Add support for function calling. Fix some
20 problems with debugging code w/o debug symbols.
21 * config/v850/tm-v850.h: Ditto.
25 * utils.c: Always ensure that size_t is defined. Check
26 HAVE_STDDEF_H rather than __STDC__
27 (xmalloc, xrealloc): Use size_t rather than long.
31 * config/powerpc/tm-ppc-eabi.h: Undefine NO_SINGLE_STEP so targets
32 can use single-step commands.
36 * stabsread.c (define_symbol): If REG_STRUCT_HAS_ADDR is non-zero,
37 follow typedefs before checking TYPE_CODE for structures and unions.
41 * frame.h: Move definition of struct frame_saved_regs to before
42 struct frame to make it possible to use frame_saved_regs in
43 EXTRA_FRAME_INFO macro.
46 * v850-tdep.c config/v850/tm-v850.h: Lotsa new functions and
47 macros to make frame operations (such as backtrace) work.
52 * dbxread.c (process_one_symbol): Check for null string directly
53 rather than using strcmp against "".
54 * partial-stab.h: Ditto.
58 * gdbserver/{gdbreplay.c,low-linux.c,remote-utils.c,utils.c}:
59 Make it compile on Linux and eliminate some warnings.
63 * Makefile.in (init.c): Fixup final sed script to work around
64 Linux bug with `p' operator.
68 * remote-mips.c: Use the correct name everywhere (DDB) for NEC's
70 (ddb_ops, pmon_ops): Fix the documentation strings.
74 * Makefile.in (init.c): Retro HPUX grep lacks -h option. Strip
75 filenames with sed instead.
79 * defs.h: Remove decls of xmalloc and xrealloc. There is a
80 conflicting definition in libiberty.h.
84 * dbxread.c (dbx_symfile_read): Call free_pending_blocks rather
85 than poking global variable (which is now static).
86 * hpread.c (hpread_build_psymtabs): Ditto.
87 * os9kread.c (os9k_symfile_read): Ditto.
88 * xcoffread.c (xcoff_initial_scan): Ditto.
90 * buildsym.h (free_pending_blocks): Declare here.
91 (pending_blocks): Remove declaration of global symbol.
92 (free_pendings): Remove declaration of global symbol.
93 (make_blockvector): Declare here.
94 (record_pending_block): Declare here.
96 * dstread.c (make_blockvector): Remove static copy that was old
97 clone of version in buildsym.c.
98 (process_dst_block): Call record_pending_block rather than doing
100 (read_dst_symtab): Ditto.
102 * buildsym.c (make_blockvector): Make global rather than static,
103 (record_pending_block): New function, code moved from finish_block.
104 (finish_block): Use record_pending_block.
105 (free_pending_blocks): New function.
106 (really_free_pendings): Call free_pending_blocks.
107 (pending_blocks): Make static instead of global.
108 (free_pendings): Make static instead of global.
112 * config/i386/windows.mh config/i386/xm-windows.h:: New config
113 files to support building Wingdb (built under Microsoft build
116 * Makefile.in: Add rule for hpux-thread.o (needs special header
118 * (SUBDIRS): Remove mswin.
119 * Change procedure for creating init.c. Speeds things up quite a
121 * config.in configure configure.in: Check for select, poll.
122 * Check for OSF header files before including hpux-thread.o.
123 * Don't configure doc or testsuite when building under MSVC.
124 * findvar.c value.h (read_register_pid write_register_pid): Make
125 global. Needed for hppa-tdep.c.
126 * (supply_register): Don't set pid to inferior_pid when supplying
128 * hppa-tdep.c (saved_pc_after_call): frame_saved_pc ->
130 * (frame_saved_pc): Change name to hppa_frame_saved_pc.
131 * (hppa_pop_frame): Don't use a pid of 0 with target_write_pc.
132 Use write_pc instead, which uses the correct pid.
133 * (target_read_pc target_write_pc): Use read/write_register_pid
134 instead of read/write_register to preserve the pid passed in.
135 * inftarg.c (child_can_run): Add flag child_suppress_run to allow
136 hpux-threads.c to override this as a runnable target.
137 * config/pa/nm-hppah.h: Define target_new_objfile and
139 * config/pa/tm-hppa.h (FRAME_SAVED_PC): Use hppa_frame_saved_pc
140 instead of frame_saved_pc.
141 * config/m68k/tm-m68k.h: Define TARGET_M68K for Wingdb.
142 * config/m68k/tm-monitor.h: Use FRAME_CHAIN_VALID_ALTERNATE, since
143 we can't easily determine the start file bounds with ELF.
144 * config/mips/tm-mips.h: Define TARGET_MIPS for Wingdb.
145 * hpux-thread.c: New file for HPUX/OSF thread support.
146 * osf-share/{README AT386/cma_thread_io.h HP800/cma_thread_io.h
147 RIOS/cma_thread_io.h cma_attr.h cma_deb_core.h cma_debug_client.h
148 cma_errors.h cma_handle.h cma_init.h cma_list.h cma_mutex.h
149 cma_sched.h cma_semaphore_defs.h cma_sequence.h cma_stack.h
150 cma_stack_int.h cma_tcb_defs.h cma_util.h}: New files for OSF
155 * buildsym.c (finish_block): Change innerblock_anon_complaint to
156 print the addresses as part of the complaint. Add a complaint for
157 cases where the block end address is smaller than the block start
158 address, in case any such conditions slip through our fixup mechanism.
159 * symmisc.c (dump_symtab): Only print blockvector for primary
160 symtabs, to avoid massive duplication of output due to secondary
161 symtabs that point to same blockvector. Also do some minor
166 Replace header_files global by per-objfile field.
167 * gdb-stabs.h (struct dbx_symfile_info): Add fields header_files,
168 n_header_files, n_allocated_header_files.
169 * stabsread.h (header_files, n_header_files, n_allocated_header_files):
170 Replace externs by macros HEADER_FILES, N_HEADER_FILES, and
171 N_ALLOCATED_HEADER_FILES.
172 * dbxread.c (dbx_symfile_finish): Free HEADER_FILES.
173 (free_header_files, init_header-files): Don't free/init headerfiles.
174 (various functions): Use macros instead of header_files globals.
175 * stabsread.c (various functions): Likewise.
179 * dwarf2read.c (read_tag_reference_type): New fn.
180 (read_type_die): Call it.
181 (dwarf_attr): Also look in the DIEs referred to by specification
182 or abstract_origin attributes.
186 * inferior.h (IN_SIGTRAMP): Pass pc to SIGTRAMP_START and
188 * config/i386/tm-i386os9k.h (SIGTRAMP_START, SIGTRAMP_END):
189 Define with dummy pc arg.
190 * config/m68k/tm-nbsd.h: Ditto.
191 * doc/gdbint.texinfo: Document that SIGTRAMP_START and
192 SIGTRAMP_END are macros that take an single argument.
196 * defs.h: Remove define of PRIVATE_XMALLOC.
201 * config/v850/tm-v850.h: Use distinct register for PC, not EIPC.
206 * top.c (execute_control_command): Free values from while_control
207 and if_control conditions after evaluation to avoid storage leaks.
213 * configure configure.in: Recognize v850 target.
214 * v850-tdep.c: New file, NEC V850 target support.
215 * config/v850/{v850.mt tm-v850.h}: New files for NEC V850 support.
220 * infrun.c (wait_for_inferior): Update current_line and
221 current_symtab when stepping continues in the middle of a new line.
225 * top.c (print_gdb_version): Rewrote to comply with new GNU coding
226 standards for the --version option.
227 (print_gnu_advertisement): Remove, now part of print_gdb_version.
228 (show_version): Remove call to print_gnu_advertisement.
229 * top.h (print_gnu_advertisement): Remove prototype.
230 * main.c (print_gdb_help): Move help to static function and
232 (main): Call print_gdb_help rather than inlining it.
233 (main): Remove call to print_gnu_advertisement.
235 * gdbtk.tcl (create_copyright_window): Increase timeout from
236 15 seconds to 30 seconds.
242 * config/d10v/tm-d10v.h (TARGET_{INT,PTR}_BIT): Define.
243 (TARGET_{,LONG_}DOUBLE_BIT): Ditto.
248 * configure.in, config/i386/tm-linux.h: Fix configure
249 problem on older Linux systems that prevented core files
250 from being recognized.
254 * dbug-rom.c: New file, support for Motorola's dBUG monitor.
255 * config/m68k/monitor.mt (TDEPFILES): Add it.
261 * config/d10v/tm-d10v.h (SAVED_PC_AFTER_CALL): Fixed.
262 Now single-steps correctly.
263 * d10v-tdep.c (d10v_pop_frame): Fixed.
268 * config/sh/tm-sh.h (REGISTER_NAMES): Move fp registers to
269 be consistent with GCC.
270 (FPUL_REGNUM, etc): Renumber to match list changes.
271 (ADDR_BITS_REMOVE): Delete.
272 * sh-tdep.c (sh_reg_names, sh3_reg_names, sh3e_reg_names):
273 Rearrange to match REGISTER_NAMES.
274 * sh3-rom.c (sh3_regnames, sh3e_regnames): Ditto.
279 * d10v-tdep.c: Stack chain should work now.
283 * d10v-tdep.c, config/d10v/tm-d10v.h: Snapshot.
288 * configure.in: Add cases for MIPS 5000 like MIPS 4300.
289 * configure: Rebuild.
293 * ser-e7kpc.c: Added wingdb support for target e7000pc.
297 * remote-mips.c (pmon_wait): DDB PMON does not require forced
298 re-entry back into debug mode.
302 * remote-mips.c (mips_load): Ensure that the PC is explicitly
303 loaded after a load to a DDB PMON system.
307 * Makefile.in (INTERNAL_LDFLAGS): Add @HLDFLAGS@ to list.
308 (HLDENV): Set to @HLDENV@.
309 (gdb): Prefix link command line with $(HLDENV).
310 * configure.in: Add support to test for --enable-shared and
311 generate appropriate values for HLDFLAGS and HLDENV.
312 * configure: Regenerated with autoconf.
316 * alpha-nat.c (fetch_core_registers): Match Sep 4 gdbcore.h prototype
317 change for core_read_registers in struct core_fns.
318 * core-regset.c (fetch_core_registers): Ditto & add prototype.
319 * core-sol2.c (fetch_core_registers): Ditto & add prototype.
320 * i386aix-nat.c (fetch_core_registers): Ditto & add prototype.
321 * i386b-nat.c (fetch_core_registers): Ditto.
322 * i386mach-nat.c (fetch_core_registers): Ditto & add prototype.
323 * irix4-nat.c (fetch_core_registers): Ditto.
324 * irix5-nat.c (fetch_core_registers): Ditto.
325 * lynx-nat.c (fetch_core_registers): Ditto & add prototype.
326 * m68knbsd-nat.c (fetch_core_registers): Ditto.
327 * mips-nat.c (fetch_core_registers): Ditto & add prototype.
328 * rs6000-nat.c (fetch_core_registers): Ditto.
329 * sparc-nat.c (fetch_core_registers): Ditto.
330 * sun3-nat.c (fetch_core_registers): Ditto & add prototype.
331 * ultra3-nat.c (fetch_core_registers): Ditto & add prototype.
333 * alpha-nat.c (register_addr): Match Sep 4 gdbcore.h prototype change.
334 * delta68-nat.c (register_addr): Ditto.
335 * gdbserver/low-linux.c (register_addr): Ditto.
336 * gdbserver/low-hppabsd.c (register_addr): Ditto.
337 * i386m3-nat.c (register_addr): Ditto.
338 * mips-nat.c (register_addr): Ditto.
339 * ultra3-nat.c (register_addr): Ditto.
343 * blockframe.c (inside_main_func): Cleanup slightly. Move
344 mainsym def into the block it's used in.
345 * configure.in configure: Allow NATDEPFILES to be recognized in
346 .mh files regardless of whitespace.
348 * cpu32bug-rom.c (cpu32bug_cmds): Change load_response string to
349 keep downloads from hanging.
351 * remote-wiggler.c: Add support for flash upgrades.
352 * (wiggler_error): Fix message format. Add new error code.
353 * (wiggler_write_byets): Error code is hex. Report errors with
355 * (wiggler_read_byets): Report errors with proper routine name.
356 * (get_packet): Add support for new flash commands.
357 * (wiggler_load): Call clear_symtab_users() to reset things
358 properly after download.
359 * (flash_xfer_memory bdm_update_flash_command): New funxtions to
360 support flash upgrades for Wiggler.
361 * (_initialize_remote_wiggler): Add `bdm update-flash' command.
365 * ser-tcp.c: don't include netinet/tcp.h if __CYGWIN32__
369 * config/i386/cygwin32.mh:
370 * config/powerpc/cygwin32.mh: build ser-tcp.o for both hosts
374 * value.h (COERCE_REF): Fix previous change.
375 (COERCE_ENUM): Add a check_typedef (this is the real fix).
379 * eval.c (evaluate_subexp_standard): In case of OP_ARRAY: make a
380 better check of array boundaries.
384 * configure: Update aclocal.m4 and re-run autoconf to get correct
386 * remote-wiggler.c (wiggler_error): Error codes are hex. Also,
387 fix default message generation.
391 * Makefile.in: Add mswin to SUBDIRS. Add rules for
392 mswin/libwingdb.a and remote-wiggler.o.
393 * breakpoint.c (breakpoint_here_p): Clean up bp enabled test.
394 * (breakpoint_inserted_here_p): New func, just like
395 breakpoint_here_p, except it's honest. Honestly.
396 * breakpoint.h: Proto for above.
398 * configure configure.in: Add host *windows* to list of hosts
399 that don't support GDBtk.
401 * configure configure.in: Add mswin to configdirs if host is
403 * core-aout.c (fetch_core_registers register_addr) gdbcore.h:
404 Change all vars that can contain addresses to type CORE_ADDR.
405 * findvar.c (supply_register): Allow val to be NULL. This means
406 that regno is unsupported.
407 * (read_pc read_pc_pid write_pc write_pc_pid): Make non-pid forms
408 just call pid forms with inferior_pid so that there's only once
409 place to hack PC's and such.
410 * infrun.c (proceed): Don't skip breakpoints if user changed PC.
411 * remote-wiggler.c: New file. Support for BDM interface from
413 * serial.c: Enhance serial logging capability. Add hex and octal
414 output modes (set remotelogbase {hex|octal|ascii}. Also log
415 breaks, timeouts, errors, and eofs.
416 * serial.h: Redefine SERIAL_SEND_BREAK to go through a wrapper
417 function so that we can log breaks. Don't export serial_logfile
419 * top.c (execute_command): Don't test for serial_logfp here.
420 Just call serial_log_comand, and let serial.c sort it out.
421 * valops.c (value_of_variable): Don't attempt to establish frames
422 for static and global variables. This makes things work a bit
423 better if the stack or frame pointer is trashed.
424 * config/m68k/monitor.mt (TDEPFILES): Add remote-wiggler.o.
425 * config/m68k/tm-m68k.h: Define STACK_ALIGN. CPU32 can't hack
426 misaligned stacks during function calls.
430 * terminal.h: Don't use #elif.
434 * ch-exp.c (parse_tuple_element): Allow (*): for array tuples
437 * eval.c (evaluate_subexp_standard): In case of OP_ARRAY:
438 check number of args against bounds of array to avoid
441 * value.h (COERCE_REF): Do a CHECK_TYPEDEF in case we get
446 * remote-mips.c: Provide support for DDBVR4300 target board.
447 (ddb_open, ddb_ops): Added.
448 (mips_monitor_type): MON_DDB Added.
449 (mips_enter_debug, mips_exit_debug, mips_initialize,
450 mips_fetch_registers, common_breakpoint, mips_load,
451 _initialize_remote_mips): Updated.
455 * nlm/configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
456 * nlm/configure: Regenerate.
458 * gdbserver/configure.in (i[345]86-*-*): Recognize i686 for
463 * configure.in: If CY_AC_PATH_TCLCONFIG can't find TCL, don't run
464 CY_AC_LOAD_TCLCONFIG.
465 * configure: Rebuild.
469 * infrun.c (wait_for_inferior): Initialize stop_func_end before calling
470 find_pc_partial_function.
474 * configure: Regenerate again.
478 * configure.in: work around host_alias configure bug.
479 AC_CANONICAL_HOST is called twice (first by AC_CHECK_TOOL
480 and second by AC_CANONICAL_SYSTEM). The second clobbers the
481 previous setting. Circumventing by moving the second check
483 * configure: regenerated
488 * config/d10v/d10v.mt: New file.
489 * config/d10v/tm-d10v.h: New file.
490 * configure.in: New target D10V.
491 * d10v-tdep.c: New file.
496 * rs6000-tdep.c: Fix typo in comment.
497 * valops.c (call_function_by_hand): Set using_gcc to 2
498 for code compiled without -g, per comment in code.
499 * config/a29k/tm-a29k.h (STACK_ALIGN): Add comment.
500 * config/sparc/tm-sparc.h (STACK_ALIGN): Add comment.
501 * config/sparc/tm-sp64.h (STACK_ALIGN): Add comment.
502 * config/pyr/tm-pyr.h (STACK_ALIGN): Add comment.
503 * config/m88k/tm-m88k.h (STACK_ALIGN): Add comment.
504 * config/pa/tm-hppa.h (PUSH_ARGUMENTS): Enclose args in ()'s.
505 (STACK_ALIGN): Add comment, move to be with other associated
506 macros, and document.
507 * config/mips/tm-mips.h (PUSH_ARGUMENTS): Enclose args in ()'s.
508 (STACK_ALIGN): Remove completely, handled by PUSH_ARGUMENTS.
509 * config/alpha/tm-alpha.h (PUSH_ARGUMENTS): Enclose args in ()'s.
510 * config/rs6000/tm-rs6000.h (STACK_ALIGN): Remove completely,
511 handled by PUSH_ARGUMENTS.
512 (PUSH_ARGUMENTS): Enclose args in ()'s.
516 * infrun.c (wait_for_inferior): Try to reenable shared library
517 breakpoints even if auto_solib_load is not set.
521 * gdbtk.c (gdbtk_init): Check for a DISPLAY env variable and
522 gracefully degrade to using command line interface if none is
527 * valprint.c (print_longest): Test for CC_HAS_LONG_LONG as well as
528 PRINTF_HAS_LONG_LONG.
529 * expprint.c (dump_expression): Ditto.
530 * configure.in: Fix check for long long support in compiler to
531 use a function body, not a nested function.
532 * configure: Rebuild with autoconf.
536 * aclocal.m4: Include ../bfd/aclocal.m4.
537 * configure.in: Add stdlib.h to AC_CHECK_HEADERS. Call
538 BFD_NEED_DECLARATION on malloc, realloc, and free.
539 * acconfig.h: Add NEED_DECLARATION_MALLOC,
540 NEED_DECLARATION_REALLOC, and NEED_DECLARATION_FREE.
541 * configure, config.in: Rebuild.
542 * defs.h: Include <stddef.h> and <stdlib.h> based on HAVE_*_H
543 rather than __STDC__. Only declare malloc, realloc, and free if
544 NEED_DECLARATION_* is defined.
548 * solib.c (_initialize_solib): Add missing '\' chars at ends of
549 strings that continue on next line.
550 (enable_break): Replace "return 0" with setting success to zero
551 and letting normal return handle the return.
555 * mips-tdep.c (mips_push_arguments): Make sure sp and struct_addr
556 are properly aligned.
560 * rs6000-tdep.c (rs6000_fix_call_dummy): Add full set of arguments.
561 * config/rs6000/tm-rs6000.h (FIX_CALL_DUMMY): Pass all arguments
562 to function, declare function correctly.
566 * symtab.h: changed namespace to _namespace for compiling under
571 * mpw-make.sed: Update for various recent changes, add some
574 * mpw-config.in: Fix name of Magic Cap-specific file.
579 * config/rs6000/tm-rs6000.h (FIX_CALL_DUMMY): Cast args to be an
580 integer for type correctness.
584 * config/mips/{vr4300.mt, vr4300el.mt} (SIM): Add -lm when
585 simulator is included.
589 * findvar.c (write_register_pid): Only needed when TARGET_WRITE_PC
591 (read_register_pid): Only needed when TARGET_READ_PC is not
593 * hppa-tdep.c (frame_saved_pc): Remove prototype.
594 * infptrace.c (udot_info): Prototype when CHILD_XFER_MEMORY is
596 * config/xm-aix4.h (aix_resizewindow): Convert old style decl
598 * xcoffsolib.c (command.h): Include for needed prototypes.
602 * config/i386/cygwin32.mh: Set NAT_FILE to nm-empty.h to make
608 * hppa-tdep.c (hppa_fix_call_dummy): Use MSYMBOL_TYPE rather
609 than SYMBOL_TYPE on msymbols.
610 * somsolib.c (som_solib_create_inferior_hook): Ditto.
612 * Makefile.in (init.c): Generate with prototypes.
614 * config/pa/tm-hppa.h (frame_saved_pc): Add prototype.
615 * config/rs6000/xm-rs6000.h (aix_resizewindow): Ditto.
616 * config/rs6000/tm-rs6000.h (frame_initial_stack_address): Ditto.
617 (pc_load_segment_name): Ditto.
619 (extract_return_value): Ditto.
620 (is_magic_function_pointer): Ditto.
621 (push_dummy_frame): Ditto.
622 (fix_call_dummy): Ditto.
623 (push_arguments): Ditto.
624 (skip_trampoline_code): Ditto.
625 (aix_process_linenos): Ditto.
627 * config/m68k/tm-cisco.h (get_longjmp_target): Add prototype.
628 * config/m68k/tm-es1800.h: Ditto.
629 * config/m68k/tm-vx68.h: Ditto.
630 * config/m68k/tm-sun3.h: Ditto.
631 * config/m68k/tm-m68kv4.h: Ditto.
635 * config/mips/nm-mips.h (get_longjmp_target): Add prototype.
636 * config/mips/nm-irix3.h (get_longjmp_target): Add prototype.
637 * remote-mips.c (mips_read_processor_type): Remove prototype.
638 * mips-tdep.c (gdb_print_insn_mips): Add prototype and make static.
639 * irix5-nat.c (fetch_core_registers): Add prototype.
643 * remote-pa.c (boot_board): Add dummy params to make type compatible
644 for passing to add_com.
645 * scm-exp.c (scm_lreadr): Ensure svalue is not used uninitialized.
646 * buildsym.c (compare_line_numbers): Change function to match
647 prototype and also what qsort expects.
651 * remote.c: Make remote_write_size public.
652 * sh-tdep.c (_initialize_sh_tdep): Set remote_write_size to 300
653 to prevent packet errors with some versions of CMON.
657 * defs.h: Define CONST_PTR as blank if compiling with Microsoft
658 C, else it's `const'.
659 * c-lang.c c-lang.h ch-lang.c f-lang.c language.c m2-lang.c
660 scm-lang.c: Microsoft C can't hack const pointers. Use CONST_PTR
662 * configure configure.in defs.h: Use AC_C_CONST to figure out if
663 the compiler supports const. Gets rid of some cruft in defs.h.
664 * dwarf2read.c: <string.h> -> "gdb_string.h"
665 * remote-sim.c: Add prototypes. Fix call to gdbsim_kill.
666 * sparcl-tdep.c (download): Add prototypes to write_routine and
669 * mswin/gdbwin.c: Don't include both varargs.h AND stdarg.h. Get
670 rid of varargs.h Include string.h.
671 * (gdbwin_update gdbwin_fputs regs_changed_f bpt_changed_f
672 update): Fix prototypes, fix calls.
673 * (update): Return value for catch_errors.
674 * (run_execute_command togdb_command_from_tty togdb_command):
675 Cleanup catching of errors from calls to execute_command. Also,
676 dup command string to avoid modifying const strings.
677 * (togdb_breakinfo_i_init togdb_breakinfo_i_next): Use 0 instead
678 of NULL when see if b->address isn't set.
679 * (bi_disable_bpt bi_enable_bpt bi_delete_all
680 bi_delete_breakpoint): Add arg to calls to update.
681 * (gui_command): Add prototype.
682 * (mswin_query): Fix prototype.
683 * (_initialize_gdbwin): Dup string to avoid modifying const.
684 * (info_path togdb_get_info_path): Remove const from decls cuz
685 this can't be const (it points at malloc'ed memory).
686 * (togdb_searchpath): Remove const from path. Dup string to
687 avoid modifying const strings.
689 * (gdbwin_list_symbols): Regexp param is const.
690 * Fix lots of refs to psymtabs to deref correct pointers.
691 * (togdb_set_breakpoint_sal): Call set_breakpoint_sal with sal,
693 * mswin/gdbwin.h (togdb_searchpath togdb_get_info_path
694 toget_set_info_path): Fix prototypes to match reality.
695 * mswin/gui.cpp: Define _beginthreadex and _endthreadex routines
696 with proper prototypes.
697 * mswin/iface.cpp (gdbwin_fputs): Define with correct number of args.
698 * mswin/ser-win32s.c: Fix defs of min and max.
699 * mswin/serdll32.c (OpenComm16): Make cbInQueue and cbOutQueue be
701 * (WriteComm16): Change lpBug from LPVOID to LPCSTR.
702 * mswin/serdll32.h: Fix prototypes for OpenComm16 and WriteComm16.
706 * main.c (main): Make sure command loop is used with cygwin32.
707 * terminal.h: Allow cygwin32 to use termios.h.
712 * Makefile.in (LIB_INSTALL_DIR): New macro.
713 (TCL): Include @TCL_LD_SEARCH_FLAGS@.
718 * somread.c (som_symtab_read): Handle secondary definition
719 symbols (aka weak symbols).
721 * config/tm-hppa.h (EXTRACT_RETURN_VALUE): Fix thinko in
726 * symfile.c (symfile_bfd_open): Change ifdef from __WIN32__ to
729 * somread.c: Rearrange order of includes to fix warnings under
730 hpux-10.10. Also don't include sys/file.h.
734 * dbxread.c: Don't include param.h or sys/file.h.
735 * (dbx_symfile_read): Determine symfile_relocatable from bfd
736 flags instead of file extension. Also clean up a little bit.
740 * dwarf2read.c dwarfread.c exec.c infcmd.c infrun.c main.c
741 mdebugread.c os9kread.c source.c top.c utils.c: Don't
742 include param.h or sys/file.h (or unistd.h in some cases).
743 * defs.h exec.c inflow.c remote-array.c remote-e7000.c
744 sparcl-tdep.c terminal.h utils.c: Replace all occurances of
745 __WIN32__, WINGDB, WIN32, etc... with _WIN32.
746 * main.c: Remove #ifndef WINGDB around option processing. Fix
747 bug with passing argc==0 and argv==NULL to getopt.
748 * (main) Remove calls to access() before source_command. Let
749 soure_command handle access errors.
750 * maint.c (maintenance_dump_me): #ifdef out for _WIN32.
751 * symtab.c (operator_chars): Make this global for wingdb.
752 * top.c (disconnect): #ifdef out for _WIN32.
753 * (source_command): If got an error and from_tty, then call print
754 error, else just return quietly.
755 * utils.c (fatal_dump_core): Can't kill ourselves under windows.
757 * (pollquit notice_quit): #ifdef out stuff that doesn't exist
762 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Tweak for
763 structures > 4 bytes in size.
765 * valops.c (call_function_by_hand): Handle aligning stacks that
767 * config/pa/tm-hppa.h (USE_STRUCT_CONVENTION): Define.
768 (STACK_ALIGN): Define.
769 * hppa-tdep.c (hppa_alignof): Don't demand a minumim two byte
770 alignment on structs/unions.
774 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Define to "int *",
775 which is the documented type under at least AIX 3 and AIX 4.
779 * config/alpha/alpha-osf3.mh (XM_FILE): Change from xm-alpha.h to
781 (MMALLOC_CFLAGS): Define NO_MMCHECK to not install consistency
787 * gdbtk.c (mainWindow): Deleted.
788 (cleanup_init): Don't destroy main window.
789 (gdbtk_init): Main window now created by Tk_Init.
791 * configure.in: Most X checks now handled automatically by Tk.
792 Use new macros to find Tcl/Tk.
793 * aclocal.m4: New version for new Tcl/Tk; from Don Libes.
794 * config.in, configure: Regenerated.
796 * Makefile.in (TCL, TCL_CFLAGS, TK, TK_CFLAGS, X11_CFLAGS,
797 X11_LDFLAGS, X11_LIBS): Changed for new Tcl and Tk.
802 * config/mips/tm-mips.h (TM_MIPS_H): Enclose file contents in
803 this, define when contents are included.
804 (mips_read_processor_type): Add prototype.
805 * config/mips/xm-mips.h: Remove strdup decl, now in gdb_string.h
806 * mdebugread.c (ecoff_relocate_efi): Add prototype.
807 (fixup_sigtramp): Only needed when TM_MIPS_H is defined.
812 * Makefile.in (gdbtk.tcl): put in $(datadir), not $(libdir).
817 * rs6000-nat.c (add_vmap): Return 0 to caller rather than random value.
818 (vmap_ldinfo): Ensure got_exec_file is not used uninitialized.
819 (fetch_core_registers): Add prototype.
820 (vmap_symtab): Ditto.
821 (objfile_symbol_add): Ditto.
823 (vmap_ldinfo): Ditto.
828 * stabsread.c (get_substring): Declare second arg as int.
830 * remote-es.c: Include gdb_string.h after defs.h.
834 * rs6000-tdep.c (push_arguments): Remove unused variable "pc".
835 (branch_dest): Remove unused variable "offset".
836 (pop_dummy_frame): Add prototype and make static.
837 (push_arguments): Guard against using len uninitialized.
838 (push_arguments): Guard against using arg uninitialized.
839 (frame_saved_pc): Remove unused variable "frameless".
840 (free_loadinfo): Ifdef out unused function.
842 * xcoffread.c (compare_lte): Change prototype and function to
843 be correct type for passing to qsort.
844 (add_stab_to_list): Ifdef out unused function and prototype.
845 (compare_lte): Add prototype
846 (arrange_linetable): Ditto.
847 (record_include_begin): Ditto.
848 (record_include_end): Ditto.
849 (process_linenos): Ditto.
850 (xcoff_next_symbol_text): Ditto.
851 (scan_xcoff_symtab): Ditto.
852 (xcoff_initial_scan): Ditto.
854 * mips-tdep.c (mips_read_processor_type): Add parens around
855 bitwise-and operands in comparison; previous expression always
856 evaluated to 0 because of equality comparison of two constants.
858 * rs6000-tdep.c (skip_prologue): Add missing parens around
859 operands of logical-or so that first operand does not bind
860 to previous logical-and.
862 * configure.in: Expand "long long" test to include code that triggers
863 known problem on HPUX with native compiler.
864 (configure): Regenerated.
868 * somsolib.c (som_solib_create_inferior_hook): Don't
869 warn if __d_pid can't be found.
873 * config/mips/tm-mips.h (struct frame_info): Forward decl.
874 (struct type): Ditto.
875 (struct value): Ditto.
877 * config/mips/tm-mips.h (sigtramp_address): Move extern decl
878 from mips-tdep.c to here.
879 (sigtramp_end): Ditto.
880 (fixup_sigtramp): Ditto.
882 * config/mips/tm-mips.h (init_extra_frame_info): Add prototype.
883 (mips_frame_chain): Ditto.
884 (mips_step_skips_delay): Ditto.
885 (mips_frame_saved_pc): Ditto.
886 (mips_find_saved_regs): Ditto.
887 (mips_frame_num_args): Ditto.
888 (mips_pop_frame): Ditto.
889 (mips_extract_return_value): Ditto.
890 (mips_store_return_value): Ditto.
891 (mips_push_dummy_frame): Ditto.
892 (mips_push_arguments): Ditto.
893 (mips_do_registers_info): Ditto.
894 (ecoff_relocate_efi): Ditto.
895 (ecoff_relocate_efi): Ditto.
896 * irix4-nat.c (fetch_core_registers): Add prototype.
897 * mips-tdep.c (read_next_frame_reg): Add prototype
898 (heuristic_proc_start): Ditto.
899 (heuristic_proc_desc): Ditto.
900 (mips_print_register): Ditto.
901 * config/mips/nm-irix5.h (procfs_set_watchpoint): Add prototype.
902 (procfs_stopped_by_watchpoint): Ditto.
903 * config/mips/nm-irix4.h (procfs_set_watchpoint): Add prototype.
904 (procfs_stopped_by_watchpoint): Ditto.
905 * config/alpha/tm-alpha.h (ecoff_relocate_efi): Add prototype.
906 (struct symbol): Add forward decl for prototype.
908 * breakpoint.c (internal_breakpoint_number): Only needed if
909 GET_LONGJMP_TARGET or SOLIB_ADD is defined.
911 * objfiles.c (ecoff_relocate_efi): Remove prototype.
915 * configure.in: Add test for "long long" support.
916 * configure: Regenerate with autoconf.
917 * acconfig.h: Add CC_HAS_LONG_LONG
918 * config.in: Regenerate with autoheader.
919 * config/mips/tm-mips64.h (FORCE_LONG_LONG): Remove
920 * config/sparc/tm-sp64.h (CC_HAS_LONG_LONG): Remove.
921 * config/mips/tm-vr4300el.h (CC_HAS_LONG_LONG): Remove.
922 * config/mips/tm-vr4300.h (CC_HAS_LONG_LONG): Remove.
923 * config/mips/xm-irix5.h (CC_HAS_LONG_LONG): Remove
924 (PRINTF_HAS_LONG_LONG): Remove.
925 (FORCE_LONG_LONG): Remove.
926 * config/powerpc/xm-aix.h (UINT_MAX): Undef and use gdb's version.
927 * config/convex/xm-convex.h (CC_HAS_LONG_LONG): Remove
928 (PRINTF_HAS_LONG_LONG): Remove.
929 * config/xm-nbsd.h (CC_HAS_LONG_LONG): Remove.
930 (PRINTF_HAS_LONG_LONG): Remove.
931 * config/pa/tm-hppa.h (GET_FIELD): Put parens around
932 subtraction inside shift. Put parens around subtraction
933 in operand of bitwise and.
934 (struct frame_info): Forward declare
936 (frame_saved_regs): Ditto.
937 (struct value): Ditto.
938 (struct type): Ditto.
939 (struct inferior_status): Ditto.
940 (init_extra_frame_info): Add prototype.
941 (skip_prologue): Ditto.
942 (frameless_function_invocation): Ditto.
943 (frame_chain): Ditto.
944 (frame_chain_valid): Ditto.
945 (saved_pc_after_call): Ditto.
946 (hppa_fix_call_dummy): Ditto.
947 (hppa_push_arguments): Ditto.
948 (pa_do_registers_info): Ditto.
949 (in_solib_call_trampoline): Ditto.
950 (in_solib_return_trampoline): Ditto.
951 (push_dummy_frame): Ditto.
952 * convex-tdep.c (decout): Use print_longest rather than
954 * defs.h: Remove use of FORCE_LONG_LONG and __GNUC__ to set
956 (INT_MIN): Fix so it works correctly when assigned to a long long.
957 * valprint.c (longest_to_int): Rewrite to remove dependence
958 on INT_MIN and INT_MAX.
959 (print_longest): Rewrite the code that falls back to synthesized
960 hex output when LONGEST value is not representable as in a long and
961 printf doesn't support printing long longs.
962 * ch-valprint.c (chill_val_print): Cast 2nd arg of
963 chill_print_type_scalar to LONGEST.
964 chill_print_type_scalar): Make static and add prototype.
965 * hppa-tdep.c (get_field): Ifdef out unused function.
968 (extract_5_store): Ditto.
972 (extract_14): Convert to static and add prototype.
977 (extract_5r_store): Ditto.
978 (extract_5R_store): Ditto.
979 (extract_5_load): Ditto.
980 (find_proc_framesize): Ditto.
981 (find_dummy_frame_regs): Ditto.
982 (sign_extend): Ditto.
983 (find_unwind_entry): Add prototype.
984 (find_return_regnum): Ditto.
985 (unwind_command): Ditto.
986 (find_dummy_frame_regs): Add parens around subtraction in operand
988 (skip_prologue): Add parens around operands of logical-and inside
989 operand of logical-or.
990 (sign_extend): Add parens around operands of subtraction inside
992 (low_sign_extend): Ditto.
993 * top.c (filename_completer): Convert old style decl of
994 filename_completion_function into prototype.
995 * f-lang.c (patch_common_entries): Ifdef out unused function.
996 * stabsread.c (read_cfront_baseclasses): Remove unused local
997 variable "msg_noterm".
998 (resolve_cfront_continuation): Remove unused local variable "fip".
999 (read_type): Remove unused variable xtypenums.
1000 (read_cfront_static_fields): Remove unused variable "i".
1001 (read_cfront_static_fields): Remove unused variable "nfields".
1002 (read_cfront_member_functions): Add missing comment terminator.
1003 (read_cfront_static_fields): Return 1 rather than random value.
1004 (read_cfront_baseclasses): Ditto.
1005 (read_cfront_baseclasses): Ditto.
1006 (read_cfront_baseclasses): Ditto.
1007 * somsolib.c (som_solib_create_inferior_hook): Remove unused
1009 (som_solib_create_inferior_hook): Remove unused variable
1011 (language.h): Add for needed prototypes.
1012 (som_solib_sharedlibrary_command): Add prototype.
1013 * hpread.c: (hpread_read_array_type): Add prototype.
1014 * somread.c (hpread_build_pysmtabs): Add prototype.
1015 (hpread_symfile_finish): Ditto.
1016 (hpread_symfile_init): Ditto.
1017 * hppah-nat.c (fetch_register): Convert old style decl
1019 (gdbcore.h): Include for needed prototypes.
1020 (fetch_register): Remove unused variable "mess".
1021 * remote-pa.c (get_offsets): Ifdef out unused function.
1022 (remote_start_remote): Remove unused variable "timeout".
1023 (boot_board): Add prototype.
1024 (reaad_frame): Add prototype.
1025 (getpkt): Remove unused variable "bp".
1026 (remote_kill): Add prototype.
1027 (remote_mourn): Add prototype.
1028 (remote_insert_breakpoint): Add prototype.
1029 (remote_remove_breakpoint): Add prototype.
1030 * valops.c (value_push): Only use if PUSH_ARGUMENTS is not defined.
1031 * infcmd.c (do_registers_info): Only need prototype if
1032 DO_REGISTERS_INFO is not defined.
1033 (breakpoint_auto_delete_contents): Only need if
1034 CALL_DUMMY_BREAKPOINT_OFFSET is defined.
1038 * xcoffread.c (xcoff_end_psymtab): Add textlow_not_set parameter.
1039 (END_PSYMTAB): Ditto.
1040 (scan_xcoff_symtab): Call xcoff_end_psymtab with textlow_not_set.
1044 * printcmd.c (_initialize_printcmd): Initialize
1045 tm_print_insn_info.flavour.
1046 start-sanitize-gdbtk
1047 * gdbtk.c (gdb_disassemble): Initialize di.flavour.
1052 * Makefile.in (scm-valprint.o): Depends upon gdbcore_h.
1053 (arm-tdep.o): Ditto.
1055 (i386ly-tdep.o): Ditto.
1056 (i960-tdep.o): Ditto.
1057 (m68k-tdep.o): Ditto.
1058 (nindy-tdep.o): Ditto.
1059 (scm-lang.o): Ditto.
1060 (w65-tdep.o): Ditto.
1061 (z8k-tdep.o): Ditto.
1062 (m68k-tdep.o): Depends upon value_h and gdb_string.h
1063 (m2-valprint.o): Depends upon m2-lang.h.
1064 (sparc-tdep.o): Depends upon gdb_string.h
1065 (valprint.o): Depends upon valprint.h
1067 * remote-e7000.c (notice_quit): Remove prototype.
1068 * top.c (initialize_targets): Remove prototype, now in target.h.
1069 * stabsread.c (resolve_cfront_continuation): Remove prototype.
1070 * dbxread.c (resolve_cfront_continuation): Remove prototype.
1071 * symfile.h (set_demangling_style): Remove prototype.
1072 * config/tm-sysv4.h (in_plt_section): Remove prototype, in objfiles.h.
1073 * config/sparc/tm-sparc.h (single_step): Remove extern decl, now in
1075 * config/arc/tm-arc.h (one_stepped, single_step): Remove extern decls,
1077 * ser-unix.c (hardwire_restore): Remove obsolete prototype.
1078 * sparc-tdep.c (single_step): Remove forward decl of isbranch.
1079 * scm-lang.c (find_function_in_inferior): Remove prototype.
1080 (value_allocate_space_in_inferior): Ditto.
1081 * infrun.c (write_pc_pid): Remove prototype, now in inferior.h.
1082 * defs.h (strchr): Remove declarations, they are declared in
1088 * f-valprint.c (f77_print_array_1): Remove extra arg that was being
1089 passed to f77_print_array_1.
1090 * gdbtypes.c (add_name): Remove unused variables lenstrlen and lenstr.
1091 * scm-exp.c (scm_istr2int): Remove unused variable "j".
1092 (scm_parse): Remove unused variable "str".
1093 * hp300ux-nat.c (store_inferior_register): Remove unused variable
1095 (store_inferior_registers): Remove unnecessary decl "registers".
1096 * m68k-tdep.c (m68k_pop_frame): Remove unused variable "fi".
1097 * scm-lang.c (scm_get_field): Remove unused variable "val".
1098 (scm_lookup_name): Remove unused variable "symval".
1099 * objfiles.c (map_to_file): Remove unused local variable "tempfd".
1100 * procfs.c (do_attach, do_detach): Remove unused variable "result".
1101 (last_resume_pid): Remove unused static variable.
1102 * alpha-tdep.c (alpha_linux_sigtramp_offset): Remove unused variable
1104 * objfiles.c (map_to_address): Remove unused function.
1105 * f-valprint.c (print_max): Remove extraneous extern decl,
1107 (calc_f77_array_dims): Remove extraneous prototype, in f-lang.h.
1108 * ch-exp.c (write_lower_upper_value): Remove prototype for
1111 * gdbtypes.c (cfront_mangle_name): #ifdef out unused function.
1112 * ch-exp.c (parse_mode_call): Ditto.
1113 * f-valprint.c (there_is_a_visible_common_named): Ditto.
1114 * f-lang.c (clear_function_list): Ditto.
1115 (get_bf_for_fcn): Ditto.
1116 (clear_bf_list): Ditto.
1117 (add_common_block): Ditto.
1118 (patch_all_commons_by_name): Ditto.
1119 (find_first_common_named): Ditto.
1120 (add_common_entry): Ditto.
1121 (allocate_saved_function_node): Ditto.
1122 (allocate_saved_bf_node): Ditto.
1123 (allocate_common_entry_node): Ditto.
1124 (allocate_saved_f77_common_node): Ditto.
1126 * arm-tdep.c (gdbcore.h): Include for necessary prototypes.
1127 * dcache.c (gdbcore.h): Ditto.
1128 * i386ly-tdep.c (gdbcore.h): Ditto.
1129 * i960-tdep.c (gdbcore.h): Ditto.
1130 * m2-valprint.c (m2-lang.h): Ditto.
1131 * m68k-tdep.c (gdbcore.h): Ditto.
1133 (gdb_string.h): Ditto.
1134 * nindy-tdep.c (gdbcore.h): Ditto.
1135 * scm-lang.c (gdbcore.h): Ditto.
1136 * scm-valprint.c (gdbcore.h): Ditto.
1137 * w65-tdep.c (gdbcore.h): Ditto.
1138 * z8k-tdep.c (gdbcore.h): Ditto.
1139 * sparc-tdep.c (gdb_string.h): Include.
1140 * valprint.c (valprint.h): Include.
1142 * config/xm-lynx.h: Remove part of comment about INT_MIN
1143 redefined warnings from defs.h, since INT_MIN define in
1144 defs.h is now protected by #ifndef INT_MIN.
1145 * config/i386/xm-i386bsd.h: Ditto.
1146 * config/m68k/xm-hp300bsd.h: Ditto.
1147 * config/m68k/xm-news.h: Ditto.
1149 * config/pa/xm-hppah.h (INT_MIN): Remove bogus INT_MIN
1150 definition as 0x80000000. The macro in defs.h is better.
1151 * config/i386/xm-i386m3.h (INT_MIN): Ditto.
1152 * config/i386/xm-i386mach.h (INT_MIN): Ditto.
1153 * config/ns32k/xm-ns32km3.h (INT_MIN): Ditto.
1154 * config/pa/xm-hppab.h: Ditto.
1156 * core-aout.c (fetch_core_registers): Add prototype.
1157 * hp300ux-nat.c (fetch_inferior_register): Ditto.
1158 (store_inferior_register_1): Ditto.
1159 (store_inferior_register): Ditto.
1160 * config/m68k/tm-m68k.h (find_saved_regs): Ditto.
1161 *scm-valprint.c (c_val_print): Ditto.
1162 * procfs.c (add_fd): Ditto.
1165 (sigcodename): Ditto.
1166 (sigcodedesc): Ditto.
1167 (procfs_kill_inferior): Ditto.
1168 (procfs_xfer_memory): Ditto.
1169 (procfs_store_registers): Ditto.
1170 (create_procinfo): Ditto.
1171 (procfs_init_inferior): Ditto.
1172 (proc_set_exec_trap): Ditto.
1173 (procfs_attach): Ditto.
1174 (procfs_detach): Ditto.
1175 (procfs_prepare_to_store): Ditto.
1176 (procfs_files_info): Ditto.
1177 (procfs_open): Ditto.
1178 (procfs_wait): Ditto.
1179 (procfs_fetch_registers): Ditto.
1180 (procfs_mourn_inferior): Ditto.
1181 (procfs_can_run): Ditto.
1182 (procfs_thread_alive): Ditto.
1183 (procfs_stop): Ditto.
1184 * alpha-nat.c (fetch_core_registers): Ditto.
1185 * config/alpha/tm-alpha.h (alpha_osf_skip_sigtramp_frame): Ditto.
1186 * objfiles.c (ecoff_relocate_efi): Ditto.
1187 * inflow.c (pass_signal): Ditto.
1188 (handle_sigio): Ditto.
1189 * annotate.c (breakpoint_changed): Ditto.
1190 * callback.c (wrap): Ditto.
1193 * utils.c (malloc_botch): Ditto.
1194 (fputs_maybe_filtered): Ditto.
1195 (vfprintf_maybe_filtered): Ditto.
1196 * defs.h (notice_quit): Ditto.
1197 * defs.h (xmalloc, xrealloc): Ditto.
1198 * top.c (stop_sig): Ditto.
1199 (init_signals): Ditto.
1200 (user_defined_command): Ditto.
1201 (source_cleanup_lines): Ditto.
1202 (dont_repeat_command): Ditto.
1203 (serial_log_command): Ditto.
1204 (disconnect): Ditto.
1205 * target.h (initialize_targets): Ditto.
1206 * os9kread.c (read_minimal_symbols): Ditto.
1207 * mdebugread.c (mdebug_psymtab_to_symtab): Ditto.
1209 (push_parse_stack): Ditto.
1210 (pop_parse_stack): Ditto.
1211 (is_pending_symbol): Ditto.
1212 (add_pending): Ditto.
1213 * serial.c (serial_logchar): Ditto.
1214 (serial_interface_lookup): Ditto.
1215 * serial.h (serial_log_command): Ditto.
1216 * f-valprint.c (info_common_command): Ditto.
1217 * gdbtypes.h (print_type_scalar): Ditto.
1218 * scm-valprint.c (scm_scmlist_print): Ditto.
1220 * scm-lang.c (scm_printstr): Ditto.
1222 (evaluate_subexp_scm): Ditto.
1223 * scm-exp.c (scm_read_token): Ditto.
1224 (scm_skip_ws): Ditto.
1225 (scm_lreadparen): Ditto.
1226 * m2-lang.c (emit_char): Ditto.
1227 (m2_printchar): Ditto.
1228 (m2_printstr): Ditto.
1229 (m2_create_fundamental_type): Ditto.
1230 * f-lang.c (emit_char): Ditto.
1231 (f_printchar): Ditto.
1232 (f_printstr): Ditto.
1233 (f_create_fundamental_type): Ditto.
1234 * ch-lang.c (chill_printchar): Ditto.
1235 (chill_printstr): Ditto.
1236 (chill_create_fundamental_type): Ditto.
1237 (value_chill_length): Ditto.
1238 (value_chill_card): Ditto.
1239 (value_chill_max_min): Ditto.
1240 (evaluate_subexp_chill): Ditto.
1241 * ch-exp.c (PEEK_TOKEN): Ditto.
1242 (peek_token_): Ditto.
1243 (forward_token_): Ditto.
1244 (parse_case_label): Ditto.
1245 (parse_opt_untyped_expr): Ditto.
1246 (parse_unary_call): Ditto.
1247 (parse_call): Ditto.
1248 (parse_named_record_element): Ditto.
1249 (parse_tuple_element): Ditto.
1250 (parse_opt_element_list): Ditto.
1251 (parse_tuple): Ditto.
1252 (parse_primval): Ditto.
1253 (parse_operand6): Ditto.
1254 (parse_operand5): Ditto.
1255 (parse_operand4): Ditto.
1256 (parse_operand3): Ditto.
1257 (parse_operand2): Ditto.
1258 (parse_operand1): Ditto.
1259 (parse_operand0): Ditto.
1260 (parse_expr): Ditto.
1261 (parse_then_alternative): Ditto.
1262 (parse_else_alternative): Ditto.
1263 (parse_if_expression): Ditto.
1264 (parse_untyped_expr): Ditto.
1265 (growbuf_by_size): Ditto.
1266 (match_simple_name_string): Ditto.
1267 (decode_integer_value): Ditto.
1268 (decode_integer_literal): Ditto.
1269 (match_float_literal): Ditto.
1270 (match_float_literal): Ditto.
1271 (match_string_literal): Ditto.
1272 (match_character_literal): Ditto.
1273 (match_integer_literal): Ditto.
1274 (match_bitstring_literal): Ditto.
1275 (write_lower_upper_value): Ditto.
1276 * ch-lang.h (type_lower_upper): Ditto.
1277 * c-lang.c (emit_char): Ditto.
1278 * dwarfread.c (free_utypes): Ditto.
1279 * stabsread.h (resolve_cfront_continuation): Ditto.
1280 * stabsread.c (get_substring): Ditto.
1281 (read_one_struct_field): Ditto.
1282 * stabsread.h (process_later): Ditto.
1283 * demangle.c (set_demangling_command): Ditto.
1284 * defs.h (set_demangling_style): Ditto.
1285 * maint.c (maintenance_info_command): Ditto.
1286 (print_section_table): Ditto.
1287 (maintenance_info_sections): Ditto.
1288 (maintenance_print_command): Ditto.
1289 * symtab.h (maintenance_print_statistics): Ditto.
1290 * objfiles.h (in_plt_section): Ditto.
1291 * objfiles.c (add_to_objfile_sections): Ditto.
1292 * bcache.c (hash): Ditto.
1293 (lookup_cache): Ditto.
1294 * exec.c (bfdsec_to_vmap): Ditto.
1296 * f-exp.y (growbuf_by_size, match_string_literal): Ditto.
1297 * language.c (unk_lang_printchar): Ditto.
1298 (unk_lang_printstr): Ditto.
1299 (unk_lang_create_fundamental_type): Ditto.
1300 (unk_lang_print_type): Ditto.
1301 (unk_lang_val_print): Ditto.
1302 (unk_lang_value_print): Ditto.
1303 * target.c (update_current_target): Ditto.
1304 (debug_to_open): Ditto.
1305 (debug_to_close): Ditto.
1306 (debug_to_attach): Ditto.
1307 (debug_to_detach): Ditto.
1308 (debug_to_resume): Ditto.
1309 (debug_to_wait): Ditto.
1310 (debug_to_fetch_registers): Ditto.
1311 (debug_to_store_registers): Ditto.
1312 (debug_to_prepare_to_store): Ditto.
1313 (debug_to_xfer_memory): Ditto.
1314 (debug_to_files_info): Ditto.
1315 (debug_to_insert_breakpoint): Ditto.
1316 (debug_to_remove_breakpoint): Ditto.
1317 (debug_to_terminal_init): Ditto.
1318 (debug_to_terminal_inferior): Ditto.
1319 (debug_to_terminal_ours_for_output): Ditto.
1320 (debug_to_terminal_ours): Ditto.
1321 (debug_to_terminal_info): Ditto.
1322 (debug_to_kill): Ditto.
1323 (debug_to_load): Ditto.
1324 (debug_to_lookup_symbol): Ditto.
1325 (debug_to_create_inferior): Ditto.
1326 (debug_to_mourn_inferior): Ditto.
1327 (debug_to_can_run): Ditto.
1328 (debug_to_notice_signals): Ditto.
1329 (debug_to_thread_alive): Ditto.
1330 (debug_to_stop): Ditto.
1331 start-sanitize-gdbtk
1332 * gdbtk.c (null_routine): Ditto.
1333 (gdbtk_flush): Ditto.
1334 (gdbtk_fputs): Ditto.
1335 (gdbtk_query): Ditto.
1336 (gdbtk_readline): Ditto.
1337 (gdbtk_readline_end): Ditto.
1338 (gdb_get_breakpoint_list): Ditto.
1339 (gdb_get_breakpoint_info): Ditto.
1340 (breakpoint_notify): Ditto.
1341 (gdbtk_create_breakpoint): Ditto.
1342 (gdbtk_delete_breakpoint): Ditto.
1343 (gdbtk_modify_breakpoint): Ditto.
1346 (gdb_sourcelines): Ditto.
1347 (map_arg_registers): Ditto.
1348 (get_register_name): Ditto.
1349 (gdb_regnames): Ditto.
1350 (get_register): Ditto.
1351 (gdb_fetch_registers): Ditto.
1352 (register_changed_p): Ditto.
1353 (gdb_changed_register_list): Ditto.
1355 (call_wrapper): Ditto.
1356 (gdb_listfiles): Ditto.
1358 (gdbtk_dis_asm_read_memory): Ditto.
1359 (compare_lines): Ditto.
1360 (gdb_disassemble): Ditto.
1361 (tk_command): Ditto.
1362 (cleanup_init): Ditto.
1363 (gdbtk_interactive): Ditto.
1365 (gdbtk_wait): Ditto.
1366 (gdbtk_call_command): Ditto.
1367 (tk_command_loop): Ditto.
1368 (gdbtk_init): Ditto.
1370 * breakpoint.h (set_breakpoint_sal): Ditto.
1371 * remote-utils.c (usage): Ditto.
1372 * remote.c (set_thread): Ditto.
1373 (remote_thread_alive): Ditto.
1374 (get_offsets): Ditto.
1375 (read_frame): Ditto.
1376 (remote_insert_breakpoint): Ditto.
1377 (remote_remove_breakpoint): Ditto.
1378 * sparc-nat.c (fetch_core_registers): Ditto.
1379 * corelow.c (add_to_thread_list): Ditto.
1381 * inftarg.c (proc_wait): Ditto.
1382 * infptrace.c (udot_info): Ditto.
1383 (fetch_register): Ditto.
1384 * ser-unix.c (hardwire_noflush_set_tty_state): Ditto.
1385 (hardwire_print_tty_state): Ditto.
1386 (hardwire_flush_output): Ditto.
1387 (hardwire_flush_input): Ditto.
1388 (hardwire_send_break): Ditto.
1389 (hardwire_setstopbits): Ditto.
1390 * ser-tcp.c (tcp_return_0): Ditto.
1391 (tcp_noflush_set_tty_state): Ditto.
1392 (tcp_print_tty_state): Ditto.
1393 * solib.c (match_main): Ditto.
1394 * gdbtypes.c (print_bit_vector): Ditto.
1395 (print_arg_types): Ditto.
1396 (dump_fn_fieldlists): Ditto.
1397 (print_cplus_stuff): Ditto.
1398 * symfile.h (entry_point_address): Ditto.
1399 * symfile.c (decrement_reading_symtab): Ditto.
1400 * valops.c (value_arg_coerce): Ditto.
1401 * value.h (find_function_in_inferior): Ditto.
1402 (value_allocate_space_in_inferior): Ditto.
1403 * values.c (vb_match): Ditto.
1404 * thread.c (info_thread_command): Ditto.
1405 (restore_current_thread): Ditto.
1406 (thread_apply_all_command): Ditto.
1407 (thread_apply_command): Ditto.
1408 * inferior.h (write_pc_pid): Ditto.
1409 * infrun.c (delete_breakpoint_current_contents): Ditto.
1410 * breakpoint.c (print_it_normal): Ditto.
1411 (watchpoint_check): Ditto.
1412 (print_it_done): Ditto.
1413 (print_it_noop): Ditto.
1414 (maintenance_info_breakpoints): Ditto.
1415 (create_longjmp_breakpoint): Ditto.
1416 (hbreak_command): Ditto.
1417 (thbreak_command): Ditto.
1418 (watch_commnd_1): Ditto.
1419 (rwatch_command): Ditto.
1420 (awatch_command): Ditto.
1421 (do_enable_breakpoint): Ditto.
1422 * ch-valprint.c (chill_val_print_array_elements): Ditto.
1423 * eval.c (evaluate_subexp): Ditto.
1425 (evaluate_struct_tuple): Ditto.
1426 * eval.c (init_array_element): Ditto.
1428 * alpha-tdep.c (push_sigtramp_desc): Add prototype and make static.
1429 * breakpoint.c (hw_breakpoint_used_count): Ditto.
1430 (hw_watchpoint_used_count): Ditto.
1431 * findvar.c (write_register_gen): Ditto.
1432 (read_register_pid): Ditto.
1433 * symtab.c (cplusplus_hint): Ditto.
1434 * infcmd.c (breakpoint_auto_delete_contents): Ditto.
1435 * ch-valprint.c (chill_print_type_scalar): Ditto.
1436 * gdbtypes.c (add_name): Ditto.
1437 (add_mangled_type): Ditto.
1438 (cfront_mangle_name): Ditto.
1439 * sparc-tdep.c (isbranch): Ditto.
1440 * inftarg.c (child_stop): Ditto.
1441 * win32-nat.c (child_stop): Ditto.
1442 * mac-nat.c (child_stop): Ditto.
1443 * remote-utils.c (sr_com): Ditto.
1444 * dbxread.c (process_now): Ditto.
1445 * ch-exp.c (require): Ditto.
1446 (check_token): Ditto.
1448 (parse_mode_call): Ditto.
1449 (parse_mode_or_normal_call): Ditto.
1450 * scm-lang.c (scm_lookup_name): Ditto
1451 * f-lang.c (allocate_saved_bf_node): Ditto.
1452 (allocate_saved_function_node): Ditto.
1453 (allocate_saved_f77_common_node): Ditto.
1454 (allocate_common_entry_node): Ditto.
1455 (add_common_block): Ditto.
1456 (add_common_entry): Ditto.
1457 (find_first_common_named): Ditto.
1458 (patch_common_entries): Ditto.
1459 (patch_all_commons_by_name): Ditto.
1460 (clear_bf_list): Ditto.
1461 (get_bf_for_fcn): Ditto.
1462 (clear_function_list): Ditto.
1463 * scm-exp.c (scm_istr2int): Ditto.
1464 (scm_istring2number): Ditto.
1465 * scm-valprint.c (scm_inferior_print): Ditto.
1466 * f-typeprint.c (print_equivalent_f77_float_type): Ditto.
1467 * f-valprint.c (f77_get_dynamic_length_of_aggregate): Ditto.
1468 (f77_create_arrayprint_offset_tbl): Ditto.
1469 (f77_print_array_1): Ditto.
1470 (f77_print_array): Ditto.
1471 (list_all_visible_commons): Ditto.
1472 (there_is_a_visible_common_named): Ditto.
1473 * mdebugread.c (ecoff_relocate_efi): Ditto.
1474 * callback.c (os_close): Ditto.
1475 (os_get_errno): Ditto.
1480 (os_read_stdin): Ditto.
1482 (os_write_stdout): Ditto.
1487 (os_shutdown): Ditto.
1489 (os_printf_filtered): Ditto.
1491 * scm-lang.h (scm_parse): Change old style decl to prototype.
1492 * config/alpha/tm-alphalinux.h (alpha_linux_sigtramp_offset): Ditto.
1493 * top.c (init_proc): Ditto.
1494 (query_hook): Ditto.
1495 (error_hook): Ditto.
1496 * f-lang.c (c_value_print): Ditto.
1497 * ch-exp.c (parse_expression): Ditto.
1498 (parse_primval): Ditto.
1499 (parse_untyped_expr): Ditto.
1500 (parse_opt_untyped_expr): Ditto.
1502 * config/sparc/tm-sparc.h (sparc_init_extra_frame_info): Ditto.
1503 (sparc_frame_saved_pc): Ditto.
1504 (sparc_push_dummy_frame): Ditto.
1505 (sparc_pop_frame): Ditto.
1506 * defs.h (fclose): Ditto.
1508 (error_hook): Ditto.
1510 * arc-tdep.c (single_step): Change arg to type "enum target_signal".
1511 * rs6000-tdep.c (single_step): Ditto.
1512 * sparc-tdep.c (single_step): Ditto.
1514 * breakpoint.c (cleanup_executing_breakpoints): Change unused arg type
1515 to PTR which is what make_cleanup expects.
1516 * utils.c (null_cleanup): Change arg type to PTR.
1517 * defs.h (null_cleanup): Change prototype to match actual function.
1518 * config/sparc/tm-sparc.h (struct frame_info): Move forward decl.
1519 * ch-valprint.c (chill_val_print): Cast 2nd arg of
1520 chill_print_type_scalar to LONGEST.
1521 * infrun.c (wait_for_inferior): Have empty switch case for
1522 BPSTAT_WHAT_CHECK_SHLIBS when SOLIB_ADD is not defined.
1523 (stop_on_solib_events): Only needed if SOLIB_ADD is defined.
1524 * infcmd.c (attach_command): Only need auto_solib_add if SOLIB_ADD
1526 * symfile.c (generic_load): Scan long int using a long int spec,
1528 * infptrace.c (udot_info): Only need local variables if KERNEL_U_SIZE
1530 (fetch_register): Only need function if FETCH_INFERIOR_REGISTERS is
1532 * inflow.c (handle_sigio): Only need prototype when the actual
1533 function is compiled in.
1534 * valprint.c (longest_to_int): Expand error message to be
1535 separate messages for args larger than largest signed int
1536 and args smaller than smallest signed int.
1537 * valprint.c (print_longest): Fix problems with support for case
1538 where compiler supports type "long long" but the runtime doesn't
1539 support printing them with "%ll".
1540 * scm-valprint.c (scm_scmlist_print, scm_scmval_print): Change
1541 return types to void since we don't actually return anything
1542 meaningful and callees ignore the values anyway.
1543 * procfs.c (modify_inherit_on_fork_flag): Enclose pr_flags in PIOCSET
1545 (modify_run_on_last_close_flag): Ditto.
1546 (wait_fd): Enclose local variables "num_fds" and "i" LOSING_POLL
1548 * alpha-tdep.c (push_sigtramp_desc): Return proc_desc rather than
1550 * infrun.c (wait_for_inferior): Ensure random_signal is not used
1552 * valops.c (call_function_by_hand): Ensure struct_addr is not used
1554 * breakpoint.c (watch_command_1): Ensure prev_frame is not used
1556 * utils.c (vfprintf_maybe_filtered): Change second arg from "char *"
1558 start-sanitize-gdbtk
1559 * gdbtk.c (gdb_fetch_registers): Cast fourth arg to map_arg_registers
1560 to proper pointer type, from int.
1561 (gdbtk_query): Change first arg to "const char *" from "char *".
1563 * infptrace.c (udot_info): Add two dummy args so that the type is
1564 correct for passing to add_info.
1565 * f-lang.c (saved_fcn): Move decl to head of file so it can be used
1567 (saved_bf_symnum): Ditto.
1568 (SAVED_FUNCTION): Ditto.
1569 (SAVED_FUNCTION_PTR): Ditto.
1571 (SAVED_BF_PTR): Ditto.
1572 * ch-exp.c (parse_named_record_element): Build error message in
1573 temporary buffer before passing it to expect, rather than passing
1574 wrong number of args to expect.
1575 * demangle.c (set_demangling_style): Call set_demangling_command with
1576 correct number of arguments.
1577 * inferior.h (terminal_init_inferior_with_pgrp): Change arg type to
1578 int to match actual function.
1579 (os_isatty): Call fdmap with right number of arguments, was missing
1580 the host_callback* arg.
1581 * target.c (cleanup_target): Prototype all functions casts.
1582 * target.h (one_stepped, single_step): Declare here and convert
1583 single_step to prototype.
1584 * infrun.c (one_stepped, single_step): Don't declare externs
1585 here, they have moved to target.h.
1586 * eval.c (init_array_element): Declare previously undeclared
1587 last two args as LONGEST.
1588 * dcache.c (dcache_xfer_memory): Change xfunc decls to prototype form.
1589 start-sanitize-gdbtk
1590 * gdbtk.c (register_changed_p): Remove unused local variable "buf".
1595 * dsrec.c (load_srec): Protect ANSI style function parms with PARAMS.
1599 * Makefile.in (os9kread.o): Remove dependency on partial-stab.h.
1600 * dbxread.c (read_dbx_symtab end_psymtab), partial-stab.h: Don't
1601 use partial_symtab->textlow==0 as a flag, as 0 is a legitimate
1602 text address. Use a seperate flag (textlow_not_set) instead.
1603 This makes stabs in ELF .o files work a lot better.
1604 * mdebugread.c xcoffread.c: Define textlow_not_set for
1606 * stabsread.h (end_psymtab): Add textlow_not_set arg to prototype.
1608 start-sanitize-gdbtk
1611 * gdbtk.tcl (files_command): Reorder the binding tags for
1612 the listbox widget to avoid referencing the listbox after
1613 the containing widget has been destroyed by the action of
1619 * dwarf2read.c (struct filenames): Change internal "struct file"
1620 to "struct fileinfo" to avoid conflict with "struct file" in
1621 <sys/file.h> on HPUX and Solaris.
1623 start-sanitize-gdbtk
1626 * gdbtk.tcl (delete_expr): Unset corresponding element of
1627 expr_update_list when destroying an expression.
1628 (create_expr_window): Initialize expr_num, delete_expr_num,
1629 and expr_update_list here when each new expression window
1630 is created, rather than once at startup.
1635 * dwarf2read.c: New file, DWARF 2 reader originally contributed by
1636 Brent Benson, with additions by Gary Funck and Jerry Kreuscher.
1637 * Makefile.in (COMMON_OBS): Add dwarf2read.o.
1638 (SFILES): Add dwarf2read.c.
1639 (dwarf2read.o): Add build rule.
1640 * symfile.h (dwarf2_has_info, dwarf2_build_psymtabs): Declare
1642 * elfread.c (elf_symfile_read): Call them.
1643 (elf_symtab_read) [HARRIS_TARGET]: Skip some special symbols.
1647 * symfile.c (symfile_bfd_open):
1648 * exec.c (exec_file_command): for __GO32__ and __WIN32__ systems,
1649 free the user from having to type the .exe extension.
1653 * mon960-rom.c: Shorten the mon960_inits string to a single
1654 carriage return; this prevents a hang on connecting immediately
1655 after powerup, when MON960 is attempting autobaud detection.
1659 * a29k-tdep.c (get_saved_register): Allow PC to be modified
1660 when innermost frame is selected, but not in outer frames.
1664 * command.c (do_setshow_command): Don't segfault when showing
1665 var_string and var_string_noescape vars that are NULL.
1669 * win32-nat.c (handle_load_dll): dos_path_to_unix_path renamed to
1670 cygwin32_conv_to_posix_path.
1671 (child_create_inferior): unix_path_to_dos_path renamed to
1672 cygwin32_conv_to_win32_path. Rewrite code to translate PATH.
1676 * defs.h printcmd.c: Create global disassemble_info structure
1678 start-sanitize-gdbtk
1679 * gdbtk.c (gdb_disassemble): Setup di.mach from
1680 tm_print_insn_info.mach, and set endian from TARGET_BYTE_ORDER.
1682 * i386-tdep.c (set_assembly_language_command): set
1683 tm_print_insn_info.mach to the appropriate value for 386 or 8086
1685 * printcmd.c (print_insn): Move init of disassembler_info to
1686 _initialize_printcmd. Set endian for disassembler here.
1687 * sparc-tdep.c: Set tm_print_insn_info.mach as appropriate to
1688 select sparc/sparclite.
1689 * config/sparc/{tm-sparc.h tm-sparclite.h}: Get rid of
1690 TM_PRINT_INSN. Set TM_PRINT_INSN_MACH to
1691 bfd_mach_sparc/bfd_mach_sparc_sparclite.
1695 * hpread.c (hpread_lookup_type): Use xmmalloc/xmrealloc rather
1696 than xmalloc/xrealloc.
1700 * objfiles.c (map_to_file): Error return from mmalloc_findbase is
1701 a NULL pointer, not a -1.
1705 * i386-tdep.c (set_assembly_language_command): New routine to
1706 select between i386 and i8086 instruction sets for disassembly.
1707 New command `set assembly-language {i386 i8086}'.
1711 * monitor.c (monitor_write_memory, monitor_read_memory_single):
1712 Disable use of "long long" memory read/write commands; can't
1713 use them because we hold the values to read/write in an int
1714 variable, and because strtoul fails on values that exceed the
1715 size of a long. This fixes breakpoint problems on MON960.
1719 * config/m68k/xm-hp300hpux.h (HAVE_MMAP): Remove definition.
1720 * config/pa/xm-hppah.h (HAVE_MMAP): Ditto.
1724 * Makefile.in (MMALLOC_CFLAGS): Eliminate intermediate MMALLOC_DISABLE
1725 and MMALLOC_CHECK macros, and add comment indicating how host dependent
1726 makefile fragment should modify MMALLOC_CFLAGS to not use mmalloc, or
1727 to use it but to not do heap corruption checking.
1728 * gdbserver/Makefile.in: Ditto.
1729 * utils.c (init_malloc): Replace warning() use with direct call of
1730 fprintf_unfiltered, since current_target has not yet been set and thus
1731 we cannot use warning(). If we try to use mmcheck and it fails,
1732 suggest that this configuration needs NO_MMCHECK or MMCHECK_FORCE
1733 defined. Other small mmalloc related cleanups.
1734 * config/sparc/sun4os4.mh (MMALLOC_CFLAGS): Define MMCHECK_FORCE to 1.
1735 * config/alpha/alpha-osf2.mh (MMALLOC_CFLAGS): Set to -DNO_MMCHECK.
1737 * config/sparc/xm-sun4os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1738 * config/i386/xm-i386v4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1739 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1740 * config/m68k/xm-hp300hpux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1741 * config/m68k/xm-m68kv4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT);
1742 * config/m68k/xm-sun3os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1743 * config/pa/xm-hppah.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1744 * config/sparc/xm-sun4sol2.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1745 Remove obsolete defines.
1747 * config/alpha/alpha-linux.mh (MMALLOC_DISABLE):
1748 * config/alpha/alpha-osf1.mh (MMALLOC_DISABLE):
1749 * config/rs6000/rs6000.mh (MMALLOC_DISABLE):
1750 * config/rs6000/aix4.mh (MMALLOC_DISABLE):
1751 * config/powerpc/aix4.mh (MMALLOC_DISABLE):
1752 * config/powerpc/aix.mh (MMALLOC_DISABLE):
1753 * config/ns32k/ns32km3.mh (MMALLOC_DISABLE):
1754 * config/mips/mipsm3.mh (MMALLOC_DISABLE):
1755 * config/mips/decstation.mh (MMALLOC_DISABLE):
1756 * config/m88k/cxux.mh (MMALLOC_DISABLE):
1757 * config/i386/i386mk.mh (MMALLOC_DISABLE):
1758 * config/i386/i386m3.mh (MMALLOC_DISABLE):
1759 * config/i386/i386gnu.mh (MMALLOC_DISABLE):
1760 Use MMALLOC_CFLAGS instead.
1764 * h8300-tdep.c: Remove some outdated comments.
1765 (h8300_skip_prologue): Rework to be more correct for the H8/300H.
1766 Handle stm.l insns for the H8/S.
1767 (examine_prologue): Likewise.
1771 * ser-mac.c (mac_close): Change a typo SetSetBuf to SerSetBuf.
1775 * mon960-rom.c (mon960_open): Add floating point detection to
1776 prevent hang on non-FPU processors (PR 9775).
1777 (mon960_cmds): Swap setmem.cmdw and setmem.cmdl to fix problem
1778 setting breakpoints and improve loading speed.
1782 * coffread.c (record_minimal_symbol): Don't presave name string
1783 on symbol_obstack before passing to prim_record_minimal_symbol.
1784 It now handles saving the string itself.
1785 * dbxread.c (read_dbx_dynamic_symtab): Ditto.
1786 * mipsread.c (read_alphacoff_dynamic_symtab): Ditto.
1787 * os9kread.c (record_minimal_symbol): Ditto.
1788 * solib.c (solib_add_common_symbols): Ditto.
1790 * coffread.c (coff_symtab_read): Don't presave name string on
1791 symbol_obstack before passing to prim_record_minimal_symbol_and_info.
1792 It now handles saving the string itself.
1793 * dbxread.c (record_minimal_symbol): Ditto.
1794 * elfread.c (record_minimal_symbol_and_info): Ditto.
1796 * dstread.c (record_minimal_symbol): Remove static function that just
1797 called prim_record_minimal_symbol with the same args (after change to
1798 prim_record_minimal_symbol to do it's own name string saves).
1799 * nlmread.c (record_minimal_symbol): Ditto.
1800 * somread.c (record_minimal_symbol): Ditto.
1802 * hpread.c (hpread_read_enum_type): Save symbol name on symbol obstack.
1803 (hpread_read_function_type): Ditto.
1804 (hpread_process_one_debug_symbol): Ditto.
1805 * mdebugread.c (parse_symbol): Ditto.
1806 (new_symbol): Ditto.
1807 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
1809 * coffread.c (process_coff_symbol): Use obsavestring to save
1810 SYMBOL_NAME, rather than obstack_copy0.
1811 * dstread.c (create_new_symbol): Ditto
1812 * symfile.c (obconcat): Ditto.
1813 * stabsread.c (patch_block_stabs): Ditto.
1814 * xcoffread.c (SYMNAME_ALLOC): Ditto.
1816 * symfile.c (obsavestring): Update comments
1817 * solib.c (solib_add_common_symbols): Remove local var origname.
1821 * configure: Re-build with autoconf-2.10.
1823 * sparcl-tdep.c (_initialize_sparc_tdep) config/sparc/tm-sparc.h,
1824 config/sparc/tm-sparclite.h: Initialize tm_print_insn from
1825 TM_PRINT_INSN, which comes from the tm file.
1829 * coffread.c, dbxread.c, elfread.c, mipsread.c, nlmread.c,
1830 os9kread.c: Replace identical sym_offsets functions with
1831 default_symfile_offsets.
1832 * somread.c (som_symfile_offsets): Use new SIZEOF_SECTION_OFFSETS
1833 macro to allocate section_offsets.
1834 * symfile.c (default_symfile_offsets): New function.
1835 * symfile.h: Declare default_symfile_offsets.
1836 * symtab.h: Define SIZEOF_SECTION_OFFSETS macro to
1837 simplify allocation of section_offsets.
1841 * Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
1842 * configure configure.in: Only make sol-thread.o for native.
1843 Also, switch to dlopened libthread_db.so.1.
1844 * sol-thread.c: Switch to using dlopen to get the thread_db
1849 * configure, configure.in: Change test for libthread_db to only
1850 work for configs where build/host/target are the same.
1854 * config/powerpc/{linux.mh,xm-linux.h}: New files, for Linux on
1857 * configure.in (powerpc-*-linux): Add Linux, System V, and ELF
1859 * configure: Regenerate.
1864 * mpw-make.sed: Add lines to whack out autoconf hook
1869 * remote-e7000.c (e7000_stop): New function.
1873 * configure, configure.in: Add target sparclet.
1874 * monitor.h, monitor.c: Added monitor flags MO_NO_ECHO_ON_SETMEM
1875 (don't expect echo on setmem command), MO_RUN_FIRST_TIME (if
1876 command to start process running on target is different from one
1877 to continue execution), MO_HEX_PREFIX (if addresses from monitor
1878 have a "0x" prefix).
1879 * monitor.c, parse.c, sparc-tdep.c: Don't require strings in the
1880 registers array. This is to allow NULLs to be place holders in
1881 the tm-*.h file so that only minor changes are needed when a new
1882 processor is introduced (eg, one without floating point).
1883 * sparc-tdep.c: Conditionally remove dependancies on floating
1885 * sparclet-rom.c, config/sparc/sparclet.mt,
1886 config/sparc/tm-sparclet.h: New files for target sparclet.
1887 * symfile.c (load_command): Add option for 2nd parameter; a load
1888 offset added to the vma of each section.
1892 * main.c (main): Add option "l" for setting remote_timeout.
1896 * remote-e7000.c, remote.c, target.h, top.c: Add set option
1897 "remote_timeout" for setting remote_timeout. Add set option
1898 "use_hard_breakpoints" for setting hardware .vs. memory
1903 * remote-e7000.c (e7000_parse_device): New function.
1904 Add option "tcp_remote" to target command if using
1905 tcp to connect to a remote host which is then connected
1906 via serial port to the e7000 (for exampole, a port master).
1907 (e7000_open): Change to call e7000_parse_device.
1911 * monitor.c (monitor_debug): Fix remotedebug buffering.
1915 * config/i386/cygwin32.mh, config/powerpc/cygwin32.mh
1916 (NATDEPFILES): Add a space.
1920 * gdbtypes.c (create_array_type): If TYPE_LENGTH (result_type)
1921 is zero, set TYPE_FLAG_TARGET_STUB to force reevaluation of the type.
1923 * ch-exp.c (calculate_array_length): Function removed.
1927 * remote-e7000.c (e7000_read_inferior_memory_large): New function.
1928 (e7000_xfer_inferior_memory): Call it.
1932 * gdb/gdbserver/Makefile.in (docdir): Removed.
1936 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir):
1937 Use autoconf set values.
1939 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
1940 * nlm/Makefile.in (bindir, libdir, datadir, mandir, infodir,
1941 includedir): Use autoconf set values.
1943 * nlm/configure.in (AC_PREREQ): autoconf 2.5 or higher.
1944 * nlm/configure: Rebuilt.
1945 * gdb/gdbserver/Makefile.in (datadir): Set to $(prefix)/share.
1949 * stabsread.c (read_cfront_member_functions): add type
1953 * win32-nat.c: #include <unistd.h>.
1954 (unix_paths_to_dos_paths, dos_paths_to_unix_paths): Delete.
1955 (child_create_inferior): Convert only env var PATH to win32 style.
1956 (set_pathstyle_dos): Delete.
1957 (_initialize_inftarg): Delete dos-path-style command.
1959 start-sanitize-gdbtk
1962 * gdbtk.tcl (create_register_windows): Include missing '$'s.
1963 Add global declarations for various reg_format_* variables.
1964 * gdbtk.tcl (populate_register_window): Make initial window one
1965 line taller to account for new column header line.
1969 * gdbtk.c (get_register): Support for printing raw formats.
1970 * gdbtk.tcl: Add hint for using debug_interface.
1971 (center_window, add_breakpoint_frame, delete_breakpoint_frame):
1972 Enclose arg in braces for consistency.
1973 (create_registers_window, populate_reg_window, update_registers):
1974 Major rewrite to support displaying multiple formats in the register
1976 (init_reg_info): New function.
1977 (recompute_reg_display_list): Reset reg_display_list, start
1978 register display lines at line 2.
1983 * configure.in: Revise sol-thread.o test.
1984 * configure: Regenerated.
1986 * source.c (find_source_lines): Reassign size to result of read.
1988 start-sanitize-gdbtk
1991 * gdbtk.tcl (gdbtk_tcl_readline_begin): Handle backspace to
1992 avoid backing up over prompt. At every input, make sure insert
1993 point is at least after command start, handle control-u to delete
1995 (tclsh): Handle backspace to avoid backing up over prompt. Handle
1996 control-u to delete current input line.
2000 * configure.in: disable gdbtk for *cygwin32* hosted compiles
2001 * configure: regenerated with autoconf 2.8
2006 * h8300-dep.c (gdb_print_insn_h8300): Handle the H8/S.
2007 (h8300_command): Likewise.
2008 (set_machine): Likewise.
2009 (set_machine_hook): Likewise.
2010 (_initialize_h8300m): Likewise.
2012 * config/h8300/tm-h8300.h (h8300smode): Declare.
2016 * somsolib.c (som_solib_create_inferior_hook): Handle tracking
2017 of shl_load calls for hpux10.
2021 * config.in: Regenerated.
2022 * acconfig.h (HAVE_THREAD_DB_LIB): Added entry.
2024 * configure: Regenerated.
2025 * aclocal.m4 (CY_AC_PATH_TCLH, CY_AC_PATH_TKH): Use odd names to
2026 avoid name clashes with SunOS headers.
2031 * bcache.c (print_bcache_statistics): Avoid divide-by-zero
2032 exception if one or more objfile has no symbols, such as when
2033 a dynamic library has been stripped.
2037 * Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
2038 * configure configure.in: Only make sol-thread.o for native.
2039 Also, switch to dlopened libthread_db.so.1.
2040 * sol-thread.c: Switch to using dlopen to get the thread_db
2045 * config/sparc/{xm-sun4sol2.h,xm-sun4os4.h} (MMAP_BASE_ADDRESS):
2046 Change from 0xE0000000 to 0xC0000000.
2050 * config/powerpc/xm-solaris.h: Initial version of support for
2055 * configure.in (configdirs): Force 4100 builds to use 4300 GDB
2057 * configure: Rebuild.
2059 * config/mips/vr4300el.mt (SIM_OBS): Include simulator in
2060 little-endian builds.
2064 * inftarg.c (child_thread_alive): Protect declaration with
2065 #ifndef CHILD_THREAD_ALIVE.
2067 * source.c (find_source_lines): Check the time on the symtab's bfd if
2068 it exists, else check the time on the exec_bfd.
2072 * dsrec.c (make_srec): Fix calculation of address size
2073 to allow addresses less than 0x100.
2077 * ch-exp.c (ch_lex): In case of LOC_TYPEDEF call calculate_array_length.
2081 * remote-mips.c: cannot use EINVAL for breakpoint test since
2082 its value varies for different hosts (e.g. go32's is 19, while
2083 sunos is 22). Changed to hardcoded 22 since that is what the
2088 * configure: Regenerated.
2089 * aclocal.m4 (CY_AC_PATH_TCLH): Don't use AC_TRY_RUN.
2090 (CY_AC_PATH_TKH): Don't use AC_TRY_RUN.
2094 * solib.c (solib_absolute_prefix, solib_search_path): New variables.
2095 (_initialize_solib): Add set/show commands for those variables.
2096 (solib_map_sections): Implement searching using them.
2102 * NEWS: Add Alpha Linux as a new native configuration.
2104 * mdebugread.c (parse_symbol): When we find a malloc() symbol with
2105 return type VOID, assume no debugging info is available for that
2106 object file and patch the return value into VOID *. Otherwise,
2107 operations requiring an implicit call to malloc() will fail.
2109 * infrun.c (wait_for_inferior): The criterion to detect entering a
2110 sigtramp handler is now: (a) the current pc is inside a sigtramp
2111 handler, (b) the previous pc is not in a sigtramp handler, and (c)
2112 the current stack pointer is "inner" than the old one. Condition
2113 (c) is new to avoid mistaking a return from a signal handler into
2114 sigtramp as a new sigtramp invocation.
2116 * dcache.c (struct dcache_block): Declare addr as CORE_ADDR. An
2117 int may not be big enough to hold an address.
2118 (dcache_hit): Ditto.
2119 (dcache_peek_byte): Fix indentation.
2121 * configure.in (alpha-*-linux*): Add target.
2122 * configure: Rebuild
2124 * config/alpha/tm-alpha.h (PROC_DESC_IS_DYN_SIGTRAMP): New macro.
2125 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2126 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
2127 (SIGCONTEXT_ADDR): Ditto.
2128 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
2130 * config/alpha/alpha-linux.mh: New file.
2131 * config/alpha/alpha-linux.mt: Ditto.
2132 * config/alpha/nm-linux.h: Ditto.
2133 * config/alpha/tm-alphalinux.h: Ditto.
2134 * config/alpha/xm-alphalinux.h: Ditto.
2135 * config/alpha/xm-alphaosf.h: Renamed from xm-alpha.h.
2136 * config/alpha/alpha-osf1.mh (XM_FILE): Change from xm-alpha.h to
2138 * config/alpha/alpha-osf2.mh: Ditto.
2140 * blockframe.c (find_pc_partial_function): Pass PC to
2141 SIGTRAMP_START and SIGTRAMP_END macros for the benefit of systems
2142 that detect sigtramp code via designated code sequences (as is the
2143 case for Linux/Alpha, for example).
2145 * config/i386/tm-i386bsd.h: Change SIGTRAMP_START and SIGTRAMP_END
2146 to ignore new PC argument.
2147 * config/m68k/tm-hp300bsd.h: Ditto.
2148 * config/vax/tm-vax.h: Ditto.
2150 * alpha-tdep.c (alpha_linux_sigtramp_offset): New function.
2151 (alpha_osf_skip_sigtramp_frame): Ditto.
2152 (push_sigtramp_desc): Ditto.
2153 (alpha_find_saved_regs): Use SIGCONTEXT_ADDR macro to extract
2154 sigcontext address from frame.
2155 (alpha_saved_pc_after_call): When in sigtramp, use
2156 alpha_frame_saved_pc() instead of read-register().
2157 (after_prologue): When inside a dynamically generated sigtramp
2158 function, there is no prologue, so return address of first
2160 (alpha_in_prologue): Fix typo in comment.
2161 (find_proc_desc): Use macro DYNAMIC_SIGTRAMP_OFFSET to determine
2162 whether we're inside a dynamicaly generated sigtramp function. If
2163 so, create and push and appropriate procedure descriptor.
2164 (alpha_frame_chain): Use macro FRAME_PAST_SIGTRAMP_FRAME to obtain
2165 the frame past a sigtramp frame (if the current frame is indeed a
2167 (init_extra_frame_info): Don't read next frame register off of
2168 stack-pointer when inside a dynamiccaly generated sigtramp.
2169 (alpha_pop_frame): Also unlink and destroy procedure descriptors
2170 created for dynamically generated sigtramp functions.
2172 * alpha-nat.c: When compiling under Linux, include <asm/reg.h> and
2173 <alpha/ptrace.h> instead of <machine/reg.h>
2177 * gnu-nat.c (inf_validate_task_sc):
2178 Give terminal to gdb while asking question.
2179 (inf_resume): Don't validate the task suspend-count while execing.
2183 * gnu-nat.c (inf_validate_task_sc): Query user before clearing any
2184 additional suspend count.
2185 (S_proc_wait_reply, gnu_attach): Don't call inf_validate_task_sc.
2186 (inf_resume): Call inf_validate_task_sc here.
2187 (gnu_resume): Call inf_update_procs to ensure noticing new threads.
2191 * gnu-nat.c (gnu_create_inferior: attach_to_child): Return PID.
2195 * h8300-tdep.c (IS_PUSH): Refine.
2196 (IS_MOVE_FP, IS_MOV_SP_FP): Accept H8/300H varaints.
2197 (IS_SUB4_SP, IS_SUBL_SP): New macros.
2198 (h8300_skip_prologue): Handle H8/300H prologue code sequences.
2199 (examine_prologue): Handle addresses from 0x010000 to 0xffffff
2200 when in H8/300H mode. Get the return pointer's address correctly
2201 for the H8/300H. Handle H8/300H prolouge code sequences.
2203 * symfile.c (generic_load): Print the starting address
2204 of the file just loaded.
2208 * mpw-make.sed: Edit @THREAD_DB_OBS@ out of makefile.
2212 * breakpoint.c (bpstat_do_actions): Avoid endless recursion
2213 if a `source' command is contained in bs->commands.
2215 * infrun.c (wait_for_inferior): Update step_frame_address when
2216 stepping into a new line.
2219 * breakpoint.c (breakpoint_1): Add shlib_disabled case to
2224 * dsrec.c (load_srec): Add WAITACK parameter, for machines
2225 like EST visionICE that send back an ACK after each S-record.
2226 * monitor.c (monitor_wait_srec_ack): New function.
2227 (monitor_load): Pass monitor_wait_srec_ack to load_srec
2228 if the monitor's MO_SREC_ACK flag is set.
2229 * monitor.h: Define MO_SREC_ACK flag.
2230 * remote-est.c (est_cmds): Add MO_SREC_ACK flag.
2231 * sh3-rom.c (sh3_load): Accomodate change in load_srec prototype.
2232 * srec.h: Add WAITACK parameter to load_srec prototype.
2234 Sun May 19 21:22:00 1996 Rob Savoye <rob@chinadoll>
2236 * config/sparc/sparclite.mt: Add the sparc simulator.
2240 * defs.h (read_command_lines, query_hook): Update prototypes.
2241 (readline_begin_hook, readline_hook, readline_end_hook): Declare.
2242 * breakpoint.c (commands_command): Build message in temporary buffer
2243 and pass that, as well as tty control flag, to read_command_lines.
2244 * top.c (readline_begin_hook, readline_hook, readline_end_hook):
2246 (command_loop): Check for non-NULL instream before looping.
2247 (command_line_input): Use readline_hook when appropriate, to get
2248 user input from a GUI window.
2249 (read_next_line): Also build prompt if getting user input from a GUI.
2250 (recurse_read_control_structure): Fix typo in comment.
2251 (read_command_lines): Use passed in prompt and tty flag to decide how
2252 to build message. Use readline_begin_hook when appropriate, to set
2253 up a GUI interaction window. Just return head, whether NULL or not,
2254 after using readline_end_hook to complete GUI interaction.
2255 (define_command, document_command): Build message in a temporary
2256 buffer and pass it to read_command_lines, along with tty flag.
2258 start-sanitize-gdbtk
2259 * gdbtk.c (gdbtk_readline_begin, gdbtk_readline, gdbtk_readline_end):
2261 (tk_command_loop): Set instream to NULL to enable Tk user interaction.
2262 (gdbtk_init): Set readline_begin_hook, readline_hook,
2263 and readline_end_hook.
2264 * gdbtk.tcl (gdbtk_tcl_readline_begin, gdbtk_tcl_readline,
2265 gdbtk_tcl_readline_end): New functions.
2266 (tclsh): Pack scroll bar on right side of window, not left.
2271 * blockframe.c (frameless_look_for_prologue):
2272 Add FUNCTION_START_OFFSET only if func_start is non-zero.
2273 * minsyms.c (lookup_minimal_symbol_by_pc): Return NULL if
2274 pc is not in a known section.
2275 * stack.c (print_frame_info): Remove check for fi->pc in known
2276 section, now handled by lookup_minimal_symbol_by_pc.
2278 start-sanitize-gdbtk
2281 * gdbtk.tcl (create_command_window): Change a misspelled "get"
2282 to the intended "cget".
2283 (delete_line): Fix so it deletes the current line at the
2289 * sh-stub.c: New file, was config/sh/stub.c.
2291 start-sanitize-gdbtk
2294 * gdbtk.tcl (gdb_prompt): Set this early on.
2295 (create_command_window): Use gdb_prompt rather than "(gdb) ".
2296 (gdbtk_tcl_preloop): Proc executed just prior to Tk main loop.
2297 (tclsh): If an evaluation window already exists, just bring it
2298 to the front instead of trying to create another.
2299 * gdbtk.c (tk_command_loop): New function.
2300 (gdbtk_init): Call tk_command_loop rather than Tk_MainLoop.
2304 * gdbtk.tcl (evaluate_tcl_command, tclsh): New functions that
2305 implement a tcl evaluation window for gdbtk maintainers to use.
2309 * gdbtk.tcl (files_command): Correctly insert list of files into
2312 * gdbtk.tcl (files_command): listbox command no longer accepts
2317 * gdbtk.tcl (create_command_window): If command window's buffer
2318 is disabled, don't execute any of the key bindings.
2323 * top.c (read_next_line): Fix thinkos. From Donn Seeley.
2325 * coffread.c (coff_symtab_read): Handle C_LABEL symbols like
2327 * h8300-tdep.c (h8300_pop_frame): Reset $sp and $pc correctly.
2328 Flush cached frames just before exiting.
2329 * remote-sim.c (gdbsim_resume): Complain if the program isn't
2331 * config/h8300/tm-h8300.h (BELIEVE_PCC_PROMOTION): Define.
2335 * procfs.c (procfs_thread_alive procfs_stop): Make static.
2336 (procfs_pid_to_str): New routine to print out thread id's in an
2337 intelligible manner.
2338 * sol-thread.c (sol_thread_fetch_registers): Re-order manner in
2339 which supply_register is called to fix bug with writing
2341 * config/sparc/tm-sun4sol2.h: Define default for
2342 target_pid_to_str in case host lacks libthread_db.
2346 * Makefile.in config.in configure configure.in
2347 config/sparc/nm-sun4sol2.h config/sparc/sun4sol2.mh
2348 config/sparc/tm-sun4sol2.h: Use autoconf to config Solaris thread
2349 and pthread support, since pre-2.5 systems don't come with
2352 * procfs.c (info_proc): Use int instead of id_t. Old versions of
2353 Irix don't seem to define this.
2355 start-sanitize-gdbtk
2358 * gdbtk.c (tk_command): Catch case where no argument is given
2359 since this will cause the tcl interpreter to dump core.
2364 * top.c (execute_control_command, case while_control): Allow
2365 a while command to be interrupted.
2369 * sol-thread.c: More cleanup, add comments.
2370 (sol_thread_resume): Prevent people from trying to step
2372 (sol_thread_wait sol_thread_fetch_registers
2373 sol_thread_store_registers): Remove unnecessary check for
2374 sol_thread_active. These routines won't get called unless threads
2380 * sh-tdep.c (sh_reg_names, sh3_reg_names): Add empty names for
2382 (sh3e_reg_names): New register name array.
2383 (sh_processor_type_table): Add sh3e processor type.
2384 * config/sh/tm-sh.h (REGISTER_VIRTUAL_TYPE): Fix test.
2385 (REGISTER_NAMES, NUM_REGS, NUM_REALREGS, etc): Adjust for
2386 full set of registers.
2387 * remote-e7000.c (want_sh3, want_sh3_nopc): New globals.
2388 (e7000_fetch_registers, e7000_wait): Use them.
2389 * sh3-rom.c (sh3_regnames): Add float registers.
2390 (sh3e_cmds, sh3e_ops): New globals.
2391 (sh3e_open): New function.
2392 (_initialize_sh3_rom): Rename from _initialize_sh3, set up
2397 * sol-thread.c: Cleanup. gcc -Wall fixes. Add prototypes.
2398 Print out messages instead of codes for thread_db errors. Make
2399 access macros for thread and lwp manipulation. Make cleanups to
2400 fixup inferior_pid in case of errors.
2404 * aclocal.m4: Remove unused definition of AC_C_CROSS.
2405 * configure.in: Add powerpcle-*-solaris* host and target config
2406 so April 30th change does not get lost next time configure is
2411 * Makefile.in, breakpoint.c, corelow.c, fork-child.c, inflow.c,
2412 infrun.c, mac-nat.c, procfs.c, remote.c, sol-thread.c, thread.c,
2413 win32-nat.c, config/nm-lynx.h: Rename thread.h to gdbthread.h to
2414 avoid conflict with Solaris /usr/include/thread.h.
2418 * abug-rom.c: Config file for the older style ABug monitor that
2419 runs on the mvme13x boards.
2420 * config/m68k/monitor.mt: Add abug support for m68k cross
2425 * infcmd.c (do_registers_info): Always print the raw floating
2426 point value's bytes in big endian order, so the the leftmost bit
2427 is the most significant.
2428 * breakpoint.c (clear_momentary_breakpoints): Remove dead code
2429 that is referenced nowhere else.
2430 (set_breakpoint): Ditto.
2431 (do_enable_breakpoint): Created from enable_once_breakpoint
2432 with a couple of changes.
2433 (enable_breakpoint): Call do_enable_breakpoint with an appropriate
2434 bpdisp enum value to set disposition of breakpoint.
2435 (enable_once_breakpoint): Ditto.
2436 (enable_delete_breakpoint): Ditto.
2437 * breakpoint.h (clear_momentary_breakpoints): Remove prototype.
2438 * symtab.c (find_pc_line): Improve comments.
2439 start-sanitize-gdbtk
2440 * gdbtk.c: Fix a couple of misspellings.
2442 * xcoffread.c: Ditto.
2446 * target.c (debug_to_xfer_memory): Insert line breaks when
2447 dumping the memory block.
2451 * fork-child.c (fork_inferior), inferior.h: init_trace_fun now
2452 returns a possibly modified pid.
2453 * inftarg.c (ptrace_him): Now returns pid;
2454 * m3-nat.c (m3_trace_him): Now returns pid;
2455 * infcmd.c (run_command): Minor cleanup.
2456 * infrun.c (wait_for_inferior): Add another check for one_stepped
2457 near where we read the pc to avoid erroneously setting
2458 random_signal for multi-threaded support.
2459 * procfs.c: Add support for Solaris LWPs. Remove def of
2460 LOSING_POLL. Many cleanups... Several workarounds for Solaris
2461 lossage. System call entry and exit are now handled by
2462 dynamically registered handlers.
2463 * (syscallname): Don't barf when handed an unknown syscall
2465 * (info_proc_syscalls): Ditto.
2466 * sol-thread.c: New file. Implements Solaris thread support.
2467 * symfile.c (symbol_file_add): Add call to target_new_objfile to
2468 notify target-dependent code about new symbol tables.
2469 * (clear_symtab_users): Call target_new_objfile to notify it of
2470 the removal of all symbol tables.
2471 * target.c (push_target): Make sure that to_close is non-zero
2473 * target.h (target_new_objfile): Provide default.
2474 * config/alpha/nm-osf2.h: Define LOSING_POLL because this version
2475 of OSF can't hack using poll with /proc.
2476 * config/sparc/nm-sun4sol2.h (target_new_objfile): Define to be
2477 sol-thread-new-objfile.
2478 * config/sparc/sun4sol2.mh: Add sol-thread.o to NATDEFFILES, and
2479 add libthread_db.so.1 to NAT_CLIBS.
2480 * config/sparc/tm-sun4sol2.h: Define PIDGET, TIDGET, and
2485 * procfs.c (remove_fd): Fix copy of fds to fill hole left after
2486 removal of the requested fd.
2490 * rs6000-tdep.c (_initialize_rs6000_tdep): Don't do XCOFF specific
2493 * config/powerpc/tm-ppc-eabi.h: Define ELF_OBJECT_FORMAT.
2495 start-sanitize-gdbtk
2498 * gdbtk.tcl (debug_interface): New global, use to aid debugging.
2499 (insert_breakpoint_tag, delete_breakpoint_tag): Fix range.
2500 (file_popup_menu): Delete, never used.
2501 (listing_window_popup): Rename from listing_window_button_1,
2502 remove breakpoint toggling code.
2503 (toggle_breakpoint): New procedure.
2504 (create_file_win): Bind popup menu to button 2, toggle breakpoints
2505 with button 1 in breakpoint area, add display of tagged areas if
2512 * breakpoint.h (enum bpdisp): Add del_at_next_stop.
2513 * breakpoint.c (insert_breakpoints, watchpoint_check,
2514 bpstat_stop_status): Avoid bad references to memory freed via
2515 delete_breakpoint on watchpoints going out of scope.
2516 Do not delete these watchpoints, disable them and change their
2517 disposition to del_at_next_stop instead.
2518 (breakpoint_auto_delete): Delete all breakpoints whose disposition
2519 is del_at_next_stop.
2520 (breakpoint_init_inferior): Use switch to avoid reference to
2521 already deleted breakpoint.
2525 * Makefile.in (rs6000-nat.o): Depend on xcoffsolib.h.
2526 * config/rs6000/rs6000.mh (NATDEPFILES): Move xcoffread.o ...
2527 * config/rs6000/rs6000.mt (TDEPFILES): ... to here.
2528 * xcoffsolib.c (xcoff_relocate_symtab_hook): Define and initialize.
2529 (solib_info): Call xcoff_relocate_symtab via the hook.
2530 (sharedlibrary_command): Ditto.
2531 * xcoffread.c: Remove all FAKING_RS6000 comments and defines.
2532 (xcoff_add_toc_to_loadinfo_hook): Define and initialize here.
2533 (xcoff_init_loadinfo_hook): Define and initialize here.
2534 (scan_xcoff_symtab): Call xcoff_add_toc_to_loadinfo via the hook.
2535 (xcoff_initial_scan): Call xcoff_init_loadinfo via the hook.
2536 * xcoffsolib.h (xcoff_relocate_symtab_hook): Declare extern func.
2537 * rs6000-tdep.c (_initialize_rs6000_tdep): Add initializations
2538 of xcoff_add_toc_to_loadinfo_hook and xcoff_init_loadinfo_hook.
2539 * rs6000-nat.c (_initialize_core_rs6000): Add initialization
2540 of xcoff_relocate_symtab_hook.
2544 * configure (powerpcle-*-solaris*): Add Solaris support.
2546 * config/powerpc/{solaris.m[ht],tm-solaris.h}: New files for
2551 * c-valprint.c (c_val_print): Fix printing for arrays defined
2556 Support for bi-endian remote breakpoints.
2557 * remote.c (big_break_insn, little_break_insn): New globals.
2558 (break_insn): Remove.
2559 (remote_insert_breakpoint, remote_remove_breakpoint): Use own
2560 code if REMOTE_BREAKPOINT defined, otherwise call memory
2561 breakpoint functions.
2562 * config/sh/tm-sh.h (REMOTE_BREAKPOINT): Remove.
2563 (BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT): Define.
2565 * mon960-rom.c (mon960_cmds): Remove forward decl.
2566 (mon960_load): Use current_monitor instead of mon960_cmds.
2567 (mon960_regnames): Remove backslashes from line ends.
2568 (_initialize_mon960): Fix documentation string.
2572 * symfile.h (psymbol_allocation_list): Expand comments which
2573 describe the psymbol allocation list and how each field is
2578 * breakpoint.c (delete_breakpoint): Fix bpt->val, bpt->exp
2580 (breakpoint_re_set_one): Fix b->exp, b->val, b->cond storage leaks.
2582 * infcmd.c (run_command), solib.c (locate_base): Check for
2583 target_has_execution in addition to inferior_pid, a core file
2584 from a threaded program is yielding a non-zero inferior_pid.
2586 * sparc-tdep.c (get_saved_register): Handle window registers
2587 in a dummy frame correctly.
2591 * Makefile.in (CLIBS): Move $(MMALLOC) past all other libs,
2592 so that anything that wants an allocation function not yet pulled
2593 in, will get it from mmalloc rather than a system library.
2594 * Makefile.in (INSTALLED_LIBS): Reorder to match order of CLIBS,
2595 to avoid surprising results when used.
2599 * stabsread.c: Changes and bug fixes for cfront support.
2600 Fix bug for class data members.
2601 Fix parsing bug when no base classes exist.
2602 Fix memory bug - allocate space for cplusplus specific info.
2603 Add support for static data.
2604 Add prototypes for static functions.
2605 Enhance comments to show what each function expects to parse.
2607 * stabsread.c(resolve_cont),dbxread.c(resolve_cont): Rename
2608 function to resolve_cfront_continuation.
2612 * infrun.c (wait_for_inferior): Call registers_changed when
2613 restarting the inferior to get over a nullified instruction.
2617 * dbxread.c,stabsread.c,gdbtypes.c,partial-stab.h,valops.c:
2618 Add new support for parsing cfront stabs.
2622 * infrun.c (wait_for_inferior): Move "have_waited" label
2623 outside of #ifdef conditionals. Don't trash the wait status
2624 if we get a signal and the current instruction is nullified.
2628 * Makefile.in (VERSION): Bump version number to 4.16.1.
2629 * NEWS: Update for 4.16 release.
2633 * monitor.h: Clean up comment formatting.
2634 (current_monitor): Remove decl.
2635 (LOADTYPES, LOADPROTOS, INIT_CMD, etc): Remove definitions.
2636 (push_monitor, SREC_SIZE): Remove.
2637 * monitor.c: Expand old macro into current_monitor derefs
2639 * remote-os9k.c (current_monitor): Remove definition.
2643 * corefile.c (specify_exec_file_hook): Allow arbitrary number of
2645 (call_extra_exec_file_hooks): New function.
2646 * h8300-tdep.c: Lint; add .h files to provide missing declarations,
2647 remove unused variables.
2648 (set_machine_hook): New function.
2649 (_initialize_h8300m): Initialize it.
2653 * remote-mips.c (encoding): Don't specify size, to avoid bug in
2654 SunOS native compiler.
2658 * monitor.c: Use int rather than LONGEST for values, since
2659 the formatting strings are not prepared to accept long longs.
2663 * arm-tdep.c (initialize_arm_tdep): Make apcs32 a `zinteger'.
2667 * corelow.c (add_to_thread_list): Make sure reg_sect is non-null
2668 before de-referencing it. Prevents deref of NULL pointer if core
2669 file lacks .reg section.
2670 * defs.h: Rename floatformat_{to from}_long_double to
2671 floatformat_{to from}_doublest. Get rid of FLOATFORMAT_{TO
2673 * findvar.c (extract_floating store_floating): Change all refs to
2674 FLOATFORMAT_{FROM TO}... to floatformat_{from to}_doublest.
2675 * utils.c: Change floatformat_{to from}_long_double to
2676 floatformat_{to from}_doublest cuz the new routines will use
2677 whatever size (double or long double) is appropriate.
2678 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
2679 REGISTER_CONVERT_TO_RAW): Change FLOATFORMAT... macros to
2680 floatformat... routine calls.
2684 * stabsread.c (read_type): Move handling of '@' from type
2685 number handling to handling of types proper (as emitted by gcc!).
2686 For typedefs, allocate the typedef type before reading its
2687 definition, to properly handling recursive types.
2691 * ch-exp.c (calculate_array_length): Fix prototype.
2695 * remote-nindy.c (nindy_open): Acquire more target state so that
2696 user can attach to a previously running program.
2697 * (nindy_fetch_registers nindy_store_registers): Get rid of fp
2698 conversion code. That's all handled in {extract store}_floating
2700 * utils.c (floatformat_to_double): Don't bias exponent when
2701 handling zero's, denorms or NaNs.
2702 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
2703 REGISTER_CONVERT_TO_RAW): Change to using DOUBLST and
2704 FLOATFORMAT_TO/FROM_DOUBLEST macros.
2705 * config/i960/tm-nindy960.h: Undefine
2706 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW, and
2707 REGISTER_CONVERTIBLE. These are no longer necessary now that all
2708 the magic happens in extract/store_floating.
2712 * eval.c (evaluate_subexp_standard): Report error when attempting to
2713 evaluate subscripts for types which cannot be subscripted.
2715 * valarith.c (value_x_binop, value_x_unop): Add noside parameter.
2716 Return a zero value with the return type of the member function
2717 if noside is EVAL_AVOID_SIDE_EFFECTS instead of calling the member
2719 * values.h (value_x_binop, value_x_unop): Update prototypes
2721 * eval.c (evaluate_subexp_standard): Update all callers of
2722 value_x_binop, value_x_unop accordingly.
2724 * valarith.c (value_neg, value_complement): Perform ANSI C/C++
2725 integral promotion on operands.
2729 * README: Update for 4.16 release.
2730 * configure.in (AC_CHECK_FUNCS): Also check for sbrk.
2731 * configure: Regenerate with autoconf.
2732 * config.in: Regenerate with autoheader.
2733 * main.c (main): Only use sbrk() when HAVE_SBRK is defined.
2734 * top.c (command_loop): Ditto.
2738 * defs.h: Define TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
2739 defaults for bi-endian targets. Replace function pointers for
2740 floatformat routines with macros. No need for these to be runtime
2742 * findvar.c: Get rid of floatformat function pointers. Use
2743 macros in extract_floating and store_floating.
2744 * remote-nindy.c (nindy_fetch_registers nindy_store_registers):
2745 Use floatformat macros.
2750 * configure.in (AC_CHECK_HEADERS): check for endian.h.
2751 Use AC_CHECK_TOOL to find AR & RANLIB. Add AC_PROG_AWK.
2752 Add host & target cases for i[345]86-*-gnu*.
2753 * config.in: Regenerate with autoheader.
2754 * configure: Regenerate with autoconf.
2755 * Makefile.in (AR, AWK): Set from corresponding autoconf substs.
2756 (init.c): Don't scan mig-generated files.
2757 * defs.h (endian.h): Include if HAVE_ENDIAN_H defined.
2758 * config/nm-m3.h (ATTACH_NO_WAIT): Define.
2759 * infcmd.c (attach_command): Use "#ifndef ATTACH_NO_WAIT"
2760 rather than "#ifndef MACH".
2764 * remote.c (remotewritesize): New GDB variable, controls size
2765 of memory packets sent to the target.
2769 * dcache.c: Add prototypes. Make many functions static.
2770 * (dcache_peek dcache_fetch dcache_poke): Make dcache_fetch and
2771 dcache_poke call dcache_xfer_memory directly in order to fix
2772 problems with turning off dcache. dcache_peek is now unnecessary,
2775 * defs.h: Define new macros HOST_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
2776 and TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT to specify a pointer
2777 to a struct floatformat. This allows for better handling of
2778 targets whose floating point formats differ from the host by more
2779 than just byte order.
2780 * (floatformat_to_long_double floatformat_from_long_double):
2781 Prototypes for new functions in utils.c.
2782 * (floatformat_to_doublest floatformat_from_doublest): Prototypes
2783 for pointers to floating point conversion functions. The actual
2784 function uses either double or long double if the host supports it.
2785 * findvar.c (floatformat_to_doublest floatformat_from_doublest):
2786 Initialize to point at correct function depending on HAVE_LONG_DOUBLE.
2787 * (extract_floating store_floating): Rewrite. Now, if host fp
2788 format is the same as the target, we just do a copy. Otherwise,
2789 we call floatformat_{to from}_doublest.
2790 * remote-nindy.c (nindy_xfer_inferior_memory): Change param
2791 `write' to `should_write'.
2792 * utils.c (floatformat_to_long_double
2793 floatformat_from_long_double): New routines that implement long
2794 double versions of functions in libiberty/floatformat.c.
2795 * config/i960/tm-i960.h (TARGET_LONG_DOUBLE_FORMAT): Define this for
2796 i960 extended real (80 bit) numbers.
2797 * nindy-share/nindy.c (ninMemGet ninMemPut): Return number of bytes
2798 actually read or written.
2802 * ch-valprint.c (chill_val_print): Remove call to calculate_array_length.
2803 (calculate_array_length): Move function from here ...
2805 * ch-exp.c (calculate_array_length): ... to here.
2806 (parse_primval): If we have a symbol with an array type
2807 and the length is 0, call calculate_array_length.
2811 * eval.c (evaluate_subexp_standard): In case of TYPE_CODE_SET:
2812 Add some checks for powerset compatibility.
2814 * valops.c (value_slice): Use lowbound instead of lowerbound for
2815 call to slice_range_type to get correct bounds.
2819 * Makefile.in (scm-exp.o, scm-lang.o, scm-valprint.o): Add targets and
2821 * scm-lang.c (gdb_string.h): Include.
2822 * objfiles.c (add_to_objfile_sections): Cast second arg of obstack_grow
2823 call to correct type (char *).
2824 * cp-valprint.c (cp_print_static_field): Ditto.
2825 * somsolib.c (som_solib_create_inferior_hook): Add a declaration
2826 for external find_unwind_entry function (from hppa-tdep.c).
2827 * remote-pa.c (remote_write_bytes, remote_read_bytes): Change
2828 type of second arg to "char *" to be type compatible with
2830 (remote_wait): Cast second arg to strtol to correct type.
2831 * hppa-tdep.c (compare_unwind_entries): Change argument types to
2832 "const void *" to be type compatible with qsort, and then
2833 assign to local args prior to use.
2837 * infptrace.c (kill_inferior): Remove call to "kill"; update
2842 * remote-e7000.c: don't append :23 to target port if __WIN32__
2843 is defined (it's WinGDB).
2848 * gnu-nat.c, gnu-nat.h, msg.defs, exc_request.defs, i386gnu-nat.c,
2849 msg_reply.defs, notify.defs, process_reply.defs, reply_mig_hack.awk,
2850 config/nm-gnu.h, config/i386/{i386gnu.mh, i386gnu.mt, nm-gnu.h,
2851 m-i386gnu.h, xm-i386gnu.h}: New files for GNU hurd.
2855 * configure.in (case host): Add i386sco5 host.
2856 * configure: Regenerate.
2859 Add support for SCO OpenServer 5 (a.k.a. 3.2v5*) This
2860 target is an SVR3.2 with COFF, ELF, and shared libes, but
2862 * config/i386/i386sco5.mh: New file.
2863 * config/i386/nm-i386sco5.h: New file.
2867 * bcache.c (bcache): When size of chunk to cache is exactly equal to
2868 BCACHE_MAXLENGTH, stash chunk as unique copy.
2872 * symfile.c (INLINE_ADD_PSYMBOL): Remove ifdef.
2873 (add_psymbol_to_list): Add an arg for passing CORE_ADDR values and
2874 use it, rather than calling add_psymbol_addr_to_list.
2875 (add_psymbol_addr_to_list): Delete.
2876 (add_psymbol_to_list): Make psymbol static to avoid random data in
2877 gaps due to alignment of structure members.
2878 * symfile.h (INLINE_ADD_PSYMBOL, ADD_PSYMBOL_TO_LIST,
2879 ADD_PSYMBOL_ADDR_TO_LIST): Remove. Real world tests show no
2880 performance improvements by inlining via complicated macros and
2881 they just make gdb larger and harder to maintain.
2882 * dwarfread.c (add_enum_psymbol): Replace ADD_PSYMBOL_TO_LIST
2883 and/or ADD_PSYMBOL_ADDR_TO_LIST macro(s) with call to
2884 add_psymbol_to_list with appropriate long or CORE_ADDR args.
2885 (add_partial_symbol): Ditto.
2886 * partial-stab.h: Ditto.
2887 * os9kread.c (read_os9k_psymtab): Ditto
2888 * mdebugread.c (parse_partial_symbols): Ditto.
2889 (handle_psymbol_enumerators): Ditto.
2890 (demangle.h): Include.
2891 * hpread.c (hpread_build_psymtabs): Ditto.
2892 (hpread_build_psymtabs): Ditto.
2893 (demangle.h): Include
2895 start-sanitize-gdbtk
2898 * gdbtk.c (running_now): New global variable.
2899 (gdb_cmd): Test it before executing any command.
2900 (gdbtk_call_command): Set it when inferior is running.
2901 * gdbtk.tcl (gdbtk_tcl_busy, gdbtk_tcl_idle): Enable and
2902 disable interaction with command window's text appropriately.
2906 * gdbtk.c (SIOCSPGRP, linux): If on Linux, undef SIOCSPGRP, since
2907 some versions of the kernel don't support it.
2912 * configure.in: Check for setpgid function.
2913 * config.in: Regenerate with autoheader.
2914 * configure: Regenerate with autoconf.
2915 * inflow.c (_initialize_inflow): Only try to use _SC_JOB_CONTROL
2916 if it is actually defined.
2917 (gdb_setpgid): Use HAVE_SETPGID.
2918 * ch-exp.c: Change include of <string.h> to "gdb_string.h".
2919 * c-exp.y, f-exp.y, m2-exp.y: Ditto.
2920 * c-exp.y, serial.c: Include <ctype.h>.
2921 * config/m68k/nm-news.h: Add typedef for pid_t which is
2922 apparently missing from <sys/types.h>. Enclose entire
2923 file in NM_NEWS_H ifndef and define when included.
2924 * config/mips/nm-news-mips.h: Ditto.
2925 * config/m68k/tm-m68k.h (REGISTER_CONVERT_TO_VIRTUAL,
2926 REGISTER_CONVERT_TO_RAW): Change name of temporary variable.
2930 * arm-xdep.c: Move native-specific code to here from arm-tdep.c.
2931 * arm-tdep.c (arm_apcs_32): New global.
2932 (arm_addr_bits_remove, arm_saved_pc_after_call,
2933 arm_push_dummy_frame, arm_pop_frame): New functions.
2934 (arm_skip_prologue): Updated version from Richard Earnshaw.
2935 (_initialize_arm_tdep): Add set/show "apcs32".
2936 * config/arm/tm-arm.h (ADDR_BITS_REMOVE): Call
2937 arm_addr_bits_remove.
2938 (SAVED_PC_AFTER_CALL): Call arm_saved_pc_after_call.
2939 (frame_find_saved_regs): Declare properly.
2940 (PUSH_DUMMY_FRAME): Call arm_push_dummy_frame.
2941 (POP_FRAME): Call arm_pop_frame, use ADDR_BITS_REMOVE instead of
2943 * config/arm/nm-arm.h: New file.
2944 * config/arm/xm-arm.h (KERNEL_U_ADDR, FETCH_INFERIOR_REGISTERS):
2945 Move definitions to nm-arm.h.
2946 * config/arm/arm.mh (NAT_FILE): Define.
2948 * symfile.c (generic_load): Initialize data_count properly.
2952 * symmisc.c (print_objfile_statistics): Print memory used by
2953 psymbol cache obstack.
2957 * symfile.c (report_transfer_performance): New function.
2958 (generic_load): Call it to report transfer rate.
2959 * remote-e7000.c (e7000_load): Ditto.
2963 * mpw-make.sed: Change references to config.h to be in objdir,
2964 edit out rules to rebuild config.h.
2968 * hppa-tdep.c (hppa_pop_frame): Call clear_proceed_status before
2973 * hppah-nat.c (store_inferior_registers, store_inferior_registers,
2974 fetch_register, child_xfer_memory): Use call_ptrace function supplied
2975 by infptrace.c rather than calling ptrace directly.
2979 * mon960-rom.c: Cleanups and elimination of unused code,
2980 clarify documentation string.
2981 (mon960_serial, mon960_ttyname): Remove.
2982 * config/i960/tm-mon960.h (ADDITIONAL_OPTIONS,
2983 ADDITIONAL_OPTION_CASES, ADDITIONAL_OPTION_HELP): Remove.
2987 * configure.in: Check whether printf family supports printing
2988 long doubles or not and define PRINTF_HAS_LONG_DOUBLE if so.
2989 * acconfig.h: Provide default undef for PRINTF_HAS_LONG_DOUBLE.
2990 * configure: Regenerate.
2991 * valprint.c (print_floating): Use PRINTF_HAS_LONG_DOUBLE.
2992 * c-exp.y (parse_number): Use PRINTF_HAS_LONG_DOUBLE.
2993 * configure.in: Fix have_gregset and have_fpregset autoconf
2994 variable names so that they match the pattern required to
2999 * core-aout.c (fetch_core_registers): Cast core_reg_size to int
3000 before testing against reg_ptr.
3001 * eval.c (evaluate_subexp_standard): Cast type of
3002 TYPE_FN_FIELD_VOFFSET to int.
3003 * findvar.c (extract_signed_integer, extract_unsigned_integer,
3004 extract_long_unsigned_integer): Cast type of sizeof to int.
3005 * values.c (unpack_field_as_long, modify_field): Ditto.
3006 * valops.c (value_assign, call_function_by_hand): Ditto.
3007 * infcmd.c (do_registers_info): Ditto.
3008 * ser-tcp.c (tcp_open): Ditto.
3009 * remote.c (putpkt): Ditto.
3010 * dcache.c (dcache_peek): Ditto.
3011 * dcache.c (dcache_poke): Ditto.
3012 * m2-exp.y (yylex): Ditto.
3013 * gnu-regex.c (re_match_2): Ditto.
3014 * f-lang.c (ADD_BF_SYMNUM, saved_bf_list_end, tmp_bf_ptr): Ifdef
3015 out unused macro definition and variables.
3016 * inftarg.c (proc_wait): Move from main.c to here, and make static.
3017 * valprint.c (val_print_string): Change bufsize from int to unsigned.
3018 * main.c (wait.h): Include.
3019 * top.c (command_line_input): Remove unused variable "c".
3020 * f-typeprint.c (f_type_print_varspec_prefix): Add missing enum
3021 value TYPE_CODE_TYPEDEF to switch statement.
3022 (f_type_print_varspec_suffix): Add missing enum value
3023 TYPE_CODE_TYPEDEF to switch statement.
3024 * ch-exp.c (parse_primval): Add remaining enumeration values to
3025 switch statement, with no specific action.
3026 (ch_lex): Add LOC_UNRESOLVED in switch statement.
3027 (pushback_token): Ifdef out, since code using it is ifdef'd out.
3028 * stabsread.c (cleanup_undefined_types): Remove unused label
3030 * objfiles.h (print_symbol_bcache_statistics): Add prototype.
3031 * maint.c (objfiles.h): Include.
3032 (maintenance_print_statistics): Remove unused variable "temp".
3033 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
3034 unused variable "found_file_symbol".
3035 * m2-exp.y (yylex): Add LOC_UNRESOLVED case to switch.
3036 * language.c (lang_bool_type): Use existing function local type
3037 variable rather than create block local variables.
3038 * solib.c (disable_break): Enclose in ifndef SVR4_SHARED_LIBS.
3039 * infptrace.c (wait.h, command.h): Include.
3040 * ser-tcp.c (gdb_string.h): Include
3041 * i386-tdep.c (codestream_seek): Change "place" to CORE_ADDR.
3042 (i386_get_frame_setup): Change "pc" from int to CORE_ADDR.
3043 * command.c (complete_on_enum): Make assignment used as truth value
3044 explictly check against NULL.
3046 * infrun.c (wait_for_inferior): Ifdef out prologue_pc since code
3047 that uses it is ifdef'd out.
3048 * parser-defs.h: Add prototype for write_dollar_variable.
3049 * infrun.c: Add prototype for write_pc_pid.
3050 * breakpoint.h: Add prototype for re_enable_breakpoints_in_shlibs.
3051 * symmisc.c (bcache.h): Include.
3052 * bcache.h: Add prototype for print_bcache_statistics.
3053 * symfile.c: Include <time.h>.
3054 * printcmd.c (print_scalar_formatted): Change len to unsigned int.
3055 * valarith.c (value_equal): Cast result of TYPE_LENGTH to int.
3056 * valarith.c (value_binop): Change result_len, promoted_len1,
3057 and promoted_len2 to unsigned int.
3058 * valarith.c (value_subscripted_rvalue): Change elt_offs and
3059 elt_size to unsigned int.
3060 * valops.c (value_array): Change typelength to unsigned int.
3061 (destructor_name_p): Change len to unsigned int.
3062 * scm-lang.h (scm_parse): Add prototype for scm_unpack.
3063 * symfile.c (decrement_reading_symtab): Change return type to void.
3064 * valarith.c (value_subscript): Remove unused variable "word".
3065 (value_subscript): Remove unused variable "tint".
3066 * valops.c (auto_abandon): Ifdef out, since code using it is also
3068 * eval.c (init_array_element): Remove unused variable "val".
3069 * Makefile.in (values.o): Depends on scm-lang.h.
3070 (command.o): Depends upon wait_h.
3071 (ser-tcp.o): Depends upon gdb_string.h.
3072 (infptrace.o): Depends upon wait_h and command_h.
3073 (maint.o): Depends on objfiles.h and symfile.h.
3074 * values.c (allocate_repeat_value): Remove unused variable
3076 (scm-lang.h): Include.
3077 * breakpoint.c (create_longjmp_breakpoint): Enclose in
3078 GET_LONGJMP_TARGET define, unused otherwise.
3079 * config/i386/nm-linux.h: Add prototypes for i386_insert_watchpoint,
3080 i386_remove_watchpoint and i386_stopped_by_watchpoint.
3084 * configure.in (sparc64-*-solaris2*): Delete.
3085 Stick with sparc-*-solaris2*.
3086 * configure: Regenerated.
3090 * valops.c (value_assign): Make copy of internal variable value
3091 before returning it as a new value, since it is owned by the
3092 internal variable and will be freed along with it.
3096 * From Peter Schauer.
3097 * breakpoint.c (breakpoint_re_set_one): Keep temporary
3098 breakpoints bp_until, bp_finish, bp_watchpoint_cope, bp_call_dummy
3099 and bp_step_resume in case breakpoint_re_set_one is called due
3100 to a step over a dlopen call.
3101 * infrun.c (wait_for_inferior): Always remove breakpoints from
3102 inferior in BPSTAT_WHAT_CHECK_SHLIBS case.
3106 * config/mips/tm-mips.h (COERCE_FLOAT_TO_DOUBLE): Only prefer
3107 non-prototyped case over prototyped case for C.
3108 * config/pa/tm-hppa.h (COERCE_FLOAT_TO_DOUBLE): Ditto.
3112 * os9kread.c (os9k_process_one_symbol): Note nonportable
3113 assumption that an int can hold a char *.
3115 * bcache.h (struct hashlink): Wrap data[] inside union with
3116 double to force longest alignment.
3117 (BCACHE_DATA): New macro to access data[].
3118 (BCACHE_ALIGNMENT): New macro to get offset to data[].
3119 * bcache.c (lookup_cache, bcache): Use BCACHE_DATA to get
3120 address of cached data. Use BCACHE_ALIGNMENT to compute
3121 amount of space to allocate for each hashlink struct.
3125 * ch-lang.c (evaluate_subexp_chill): Fix typo.
3129 * Makefile.in (VERSION): Bump version to 4.15.3
3133 * config.in: Rename from config.h.in.
3134 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
3135 Change CONFIG_HEADERS test in AC_OUTPUT accordingly.
3136 * configure: Rebuild.
3137 * Makefile.in (stamp-h): Depend upon config.in, not config.h.in.
3138 Set CONFIG_HEADERS to config.h:config.in.
3142 * partial-stab.h (case N_ENDM): Finish current partial symbol
3143 table for Solaris 2 cc.
3147 * rs6000-nat.c (exec_one_dummy_insn): Don't clobber the
3148 PC in the registers array. From Peter Schauer.
3152 * symfile.c (reread_symbols): Reinitialize bcache struct
3153 members to zero using memset. Also use memset to reinit
3154 global_psymbols and static_psymbols, rather than explicitly
3155 resetting each structure member.
3159 * configure.in: Add fragment to create stamp-h.
3162 * configure.in (AC_CHECK_HEADERS): Check for link.h.
3163 * configure: Regenerate with autoconf.
3164 * config.h.in: Regenerate with autoheader.
3165 * config/i386/nm-linux.h: Include solib.h only if HAVE_LINK_H
3167 * solib.c: Exclude most of the code if HAVE_LINK_H is not defined.
3168 * config/i386/linux.mh: Reinstate XM_CLIBS, it is needed for
3169 older a.out based systems.
3173 * config.h.in: New file.
3174 * acconfig.h: New file, for autoheader.
3175 * configure.in (AC_CONFIG_HEADER): Add, generate config.h.
3176 * configure: Regenerate.
3177 * Makefile.in (defs_h): Add config.h
3178 (distclean): Remove config.h and stamp-h during distclean.
3179 (config.h, stamp-h): New targets to remake config.h when necessary.
3180 * defs.h (config.h): Include before any other includes or defines.
3181 * i386-tdep.c (gdb_string.h): Move include after include of defs.h.
3182 * i386v4-nat.c (defs.h): Include before testing HAVE_SYS_PROCFS_H.
3187 * Makefile.in (INSTALLED_LIBS): Make sure that @LIBS@ will not
3188 result in an empty line, to work around a bug in native Ultrix 4.4
3189 and OSF/1-3.2C make.
3193 * configure.in: Add gdbserver to configdirs under linux.
3194 * configure: Regenerate.
3198 * config/i386/nm-nbsd.h (FLOAT_INFO): Comment out.
3199 * config/i386/tm-nbsd.h (NUM_REGS): Define.
3203 * solib.c (solib_break_names): Add _r_debug_state for
3204 vanilla SVR4 implementations. From Peter Schauer.
3208 * mon960-rom.c: New file; support mon960 rom monitor on i960.
3209 * monitor.c (monitor_debug): Change remotedebug to buffer strings.
3210 * monitor.c (monitor_open): Add test for flag MO_NO_ECHO_ON_OPEN before
3211 epecting prompt and echo during open.
3212 * monitor.c (monitor_stop): Add test for flag MO_SEND_BREAK_ON_OPEN to
3213 determine if break should be sent as stop command.
3214 * monitor.h: Add flags MO_NO_ECHO_ON_OPEN and MO_SEND_BREAK_ON_OPEN.
3215 * i960-tdep.c (mon960_frame_chain_valid): New function for getting
3216 stack frame on mon960.
3217 * Makefile.in: Add mon960 files.
3218 * configure.in: Changed i960-*-coff* and i960-*-elf* to target mon960;
3219 added i960-nindy-coff* and i960-nindy-elf* for target nindy.
3220 * configure: Regenerated.
3221 * config/i960/mon960.mt, config/i960/tm-mon960.h: New files;
3222 support mon960 rom monitor on i960.
3226 With Michael Snyder:
3227 * i386-tdep.c (skip_trampoline_code): Fix strncmp length.
3228 * win32-nat.c (CHECK, DEBUG*, debug_*): New.
3229 (handle_load_dll): Don't reload symbols.
3230 (handle_exception): Use the DEBUG_* names.
3231 (child_wait): Add DEBUG_* code.
3232 (_initialize_inftarg): Add new commands to set debug_ names.
3236 * From Peter Schauer:
3237 * breakpoint.c (insert_breakpoints): Use ALL_BREAKPOINTS_SAFE.
3238 (bpstat_stop_status): Likewise.
3239 (remove_solib_event_breakpoints): Likewise.
3240 (clear_momentary_breakpoints): Likewise.
3241 (re_enable_breakpoints_in_shlibs): Don't reenable a breakpoint
3242 if we still can't read the memory for that breakpoint.
3243 (mention): Add bp_shlib_event case to keep gcc quiet.
3247 * breakpoint.h (enum enable): New enum shlib_disabled for
3248 shared library breakpoints that have been temporarily disabled.
3249 * breakpoint.c: Handle temporarily disabled shared library
3250 breakpoints like disabled breakpoints in most places.
3251 (insert_breakpoints): Use shlib_disabled to indicate
3252 that an unsettable breakpoint is only temporarily disabled.
3253 (re_enable_breakpoints_in_shlibs): New function.
3254 * corelow.c (solib_add_stub): After adding shared libraries,
3255 try to reenable any temporarily disabled breakpoints.
3256 * infcmd.c (attach_command): Likewise.
3257 * infrun.c (wait_for_inferior): Likewise.
3261 * defs.h (extract_long_unsigned_integer): Declare.
3262 * findvar.c (extract_long_unsigned_integer): New function.
3263 * printcmd.c (print_scalar_formatted): Use it.
3264 * valprint.c (val_print_type_code_int): Likewise.
3268 * infcmd.c (do_registers_info): Ignore anonymous registers.
3269 * sh-tdep.c (set processor): New command to set specific
3271 (sh_reg_names, sh3_reg_names): Arrays of register names for
3272 SH and SH3 processors.
3273 (sh_set_processor_type): New function.
3274 * sh3-rom.c (sh3_open): Call it.
3275 (sh3_regname): Add names of all the bank registers.
3276 (sh3_supply_register): Clean up formatting.
3277 * config/sh/tm-sh.h (NUM_REGS, NUM_REALREGS): Increase to include
3279 (REGISTER_NAMES): Add names of bank registers.
3280 (FP15_REGNUM): Define.
3281 (REGISTER_VIRTUAL_TYPE): Use it.
3282 * monitor.c: Clean up some comments.
3286 * i386b-nat.c: Revert part of Mar 5 change. FreeBSD collapsed the
3287 s* and t* symbols too.
3291 * symfile.c (generic_load): Avoid division by zero.
3295 * breakpoint.c (bfd_lookup_symbol): Provide for all SVR4 systems,
3296 not just those with HANDLE_SVR4_EXEC_EMULATORS.
3299 * breakpoint.c (internal_breakpoint_number): Move to file scope.
3300 (create_solib_event_breakpoint): Use an internal breakpoint number.
3304 * valarith.c (value_in): Change builtin_type_chill_bool to
3309 * ch-exp.c (parse_primval): Handle CARD, MAX, MIN.
3310 (match_string_literal): Handle control sequence.
3311 (match_character_literal): Deto.
3313 * ch-lang.c (chill_printchar): Change formating of nonprintable
3314 characters from C'xx' to ^(num).
3315 (chill_printstr): Deto.
3316 (value_chill_card, value_chill_max_min): New functions to process
3317 Chill's CARD, MAX, MIN.
3318 (evaluate_subexp_chill): Process UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN.
3320 * expression.h (exp_opcode): Add UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN
3321 for Chill's CARD, MAX, MIN.
3323 * valarith.c (value_in): Add processing of TYPE_CODE_RANGE
3324 and change return type from builtin_type_int to
3325 builtin_type_chill_bool.
3329 * config/nm-nbsd.h (link_object, lo_name, etc): Move to here
3330 from config/nm-nbsd.h.
3331 * config/sparc/nm-nbsd.h (regs, fp_status, etc): Move to here
3332 from config/sparc/tm-nbsd.h.
3334 * config/m68k/nm-hp300hpux.h (FIVE_ARG_PTRACE): Define here
3335 instead of in config/m68k/xm-hp300hpux.h.
3339 * i386b-nat.c, m68knbsd-nat.c (fetch_core_registers): Provide
3340 implementation for NetBSD systems.
3344 * valarith.c (binop_user_defined_p): Return 0 for BINOP_CONCAT.
3345 (value_concat): Handle varying strings (add COERCE_VARYING_ARRAY).
3347 * ch-lang.c (evaluate_subexp_chill case MULTI_SUBSCRIPT): Error
3348 if "function" is pointer to non-function.
3352 * top.c (print_gdb_version): Update copyright year.
3357 * infrun.c (wait_for_inferior): Remove breakpoints and
3358 switch terminal settings before calling SOLIB_ADD.
3359 * solib.c (enable_break, SVR4 variant): Don't map in symbols
3360 for the dynamic linker, the namespace pollution causes real
3365 * remote-mips.c (common_breakpoint): Explicitly terminate the
3371 * remote.c (remote_detach): Send a command 'D' to the target
3372 when detaching, update the function's comments.
3376 * gnu-nat.c (thread_cmd_list): New declaration.
3377 (parse_int_arg): New function.
3381 * gnu-nat.h (struct proc): Add DETACH_SC field.
3382 * gnu-nat.c (make_proc): Set DETACH_SC.
3383 (struct inf): Add DETACH_SC & DEFAULT_THREAD_DETACH_SC fields.
3384 (make_inf): Set DETACH_SC & DEFAULT_THREAD_DETACH_SC fields.
3385 (add_thread_commands): Add set/show for detach-suspend-count.
3386 Add takeover-suspend-count cmd.
3387 (inf_detach): Set suspend counts to the detach SC, not 0.
3388 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd,
3389 set_task_detach_sc_cmd, show_task_detach_sc_cmd,
3390 set_thread_default_thread_detach_sc_cmd,
3391 show_thread_default_thread_detach_sc_cmd): New functions.
3392 (show_task_cmd): Also show detach-suspend-count values.
3393 (thread_takeover_sc_cmd): New function.
3397 * gnu-nat.c (show_thread_run_cmd): Actually print state.
3401 * gnu-nat.c (inf_signal): Make unforwardable exceptions an error.
3405 * gnu-nat.c (inf_validate_stopped): proc_getprocinfo takes a
3406 pointer to the flags now, not the flags themselves.
3410 * gnu-nat.c (gnu_wait): Print debugging msgs for pending execs.
3411 (gnu_create_inferior): Check return from ptrace.
3415 * gnu-nat.h (struct proc): Add DEAD field.
3416 * gnu-nat.c (make_proc): Initialize DEAD.
3417 (inf_set_traced, inf_validate_task_sc, inf_validate_procs: Frob it.
3418 (gnu_wait): Only abort for 0 threads if the task isn't dead.
3422 * gnu-nat.c (inf_signal): Pass SIGCODE when posting a signal.
3426 * gnu-nat.c (S_proc_wait_reply): Add SIGCODE argument.
3427 (inf_set_traced): Only give no-signal-thread error message if
3428 turning *on* tracing.
3432 * gnu-nat.c (inf_validate_procs): If INF has no threads, always
3433 set inf->threads_up_to_date to 0.
3434 (inf_signal): Pass in new SIGCODE argument to msg_sig_post_untraced.
3435 (gnu_wait): Pass in new TIMEOUT arg to interrupt_operation.
3436 (proc_update_sc): Cast thread state arg to thread_set_state.
3437 (proc_get_state): Cast thread state arg to thread_get_state.
3438 (inf_validate_task_sc): Cast task_basic_info arg to task_info.
3439 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Call
3440 inf_update_procs before we lookup the thread.
3441 * config/i386/i386gnu.mh (MH_CFLAGS): New variable.
3445 * gnu-nat.c (gnu_kill_inferior): Use inf_set_task to clear the task.
3449 * gnu-nat.c (inf_set_traced): Use msg_set_init_int with
3450 INIT_TRACEMASK instead of setting the exec flags.
3454 * gnu-nat.c (inf_validate_procs): Don't clear INF->task if we find
3455 the task's died, so others have a chance at it.
3456 (gnu_resume): When single-stepping a single thread, given an error
3457 if there is no such thread. When single-stepping one but running
3458 the others, just given a warning and still run all the threads.
3459 (gnu_wait): If there seem to be no threads, look harder, and
3460 signal an error if there really aren't any.
3461 (gnu_attach): Reset thread numbering to 0.
3463 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Give
3464 thread name in warning messages.
3466 * gnu-nat.c (active_inf): New function.
3467 (show_sig_thread_cmd, show_stopped_cmd): Use it.
3468 (info_port_rights, info_send_rights_cmd, info_port_sets_cmd,
3469 info_recv_rights_cmd, info_port_rights_cmd, info_port_rights_cmd):
3471 (add_task_commands): Add new port-right info commands.
3475 * gnu-nat.c (gnu_wait): Instead of _hurd_intr_rpc_mach_msg, just
3476 use mach_msg with MACH_RCV_INTERRUPT.
3477 (set_noninvasive_cmd): New function.
3478 (add_task_commands): Add command entry for `set noninvasive'.
3482 * gnu-nat.c (gnu_read_inferior): Use hurd_safe_memmove, not safe_bcopy.
3483 (safe_bcopy): Function removed.
3487 * gnu-nat.c (proc_update_sc): Assert only threads can have state.
3488 (make_proc): Initialize state_valid & state_changed fields.
3492 * reply_mig_hack.awk: New file.
3496 * breakpoint.c (breakpoint_1): Print breakpoint thread field.
3498 * lynx-nat.c (child_wait): Return TARGET_WAITKIND_SPURIOUS for new
3503 * target.c (debug_to_check_threads): New function.
3505 * inflow.c (terminal_init_inferior_with_pgrp): New function.
3506 (terminal_init_inferior): Call terminal_init_inferior_with_pgrp.
3507 * inferior.h (terminal_init_inferior_with_pgrp): New declaration,
3508 but only if PROCESS_GROUP_TYPE is defined.
3512 * target.c (debug_to_thread_alive): Pass through the return value.
3516 * target.c (signals, target_signal_from_host, target_signal_to_host):
3517 Add mach exceptions.
3518 * target.h (enum target_signal): Add mach exceptions.
3522 * gnu-nat.c: New file: gnu native backend.
3523 * i386gnu-nat.c: New file: i386-specific part of gnu native backend.
3524 * gnu-nat.h: New file.
3525 * config/nm-gnu.h: New file.
3526 * config/tm-i386gnu.h: New file.
3527 * config/xm-i386gnu.h: New file.
3528 * config/i386/i386gnu.mh: New file.
3529 * config/i386/i386gnu.mt: New file.
3533 * Makefile.in (VERSION): Bump version to 4.15.2 to establish
3534 baseline for gdb 4.16 rerelease testing.
3538 * somsolib.c (som_solib_create_inferior_hook): Before returning
3539 call clear_symtab_users.
3543 * remote-e7000.c (e7000_open): Delete all breakpoints when
3544 connecting to e7000. Change connect message to allow use of
3545 monitor.exp in test suite.
3546 * (e7000_load): Print transfer rate of download.
3547 * symfile.c (generic_load): Print transfer rate of download.
3551 * configure.in (mips*-*-vxworks*): New config.
3552 * configure: Regenerated.
3554 * config/mips/vxmips.mt, config/mips/tm-vxmips.h: New files.
3555 * remote-vxmips.c (vx_convert_to_virtual, vx_convert_from_virtual):
3560 * partial-stab.h (case N_FUN): Function symbols generated
3561 by SPARCworks cc have a meaningless zero value, do not update
3562 pst->textlow if the function symbol value is zero.
3564 * stabsread.c (define_symbol): Initialize SYMBOL_TYPE field
3565 for function prototype declaration symbols.
3569 * remote-e7000.c (e7000_load): New routine to download via the
3571 * (e7000_wait): Don't backup PC when we hit a breakpoint.
3572 Apparantly new sh2 pods get this right...
3573 * (e7000_ops): Add call to e7000_load.
3577 * config/m68k/{nbsd.mh,nbsd.mt,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h},
3578 m68knbsd-nat.c: New files, support for NetBSD/m68k.
3580 * configure.in (m68k-*-netbsd*): New config.
3581 * configure: Regenerated.
3585 * standalone.c (open, _initialize_standalone): Fix obvious typos
3590 * solib.c (solib_create_inferior_hook): Fix thinko.
3594 * solib.c (solib_break_names): Define for Solaris and Linux.
3595 (enable_break): For SVR4 systems, first try to use the debugger
3596 interfaces in the dynamic linker to track shared library events
3597 as they happen, then fall back to BKPT_AT_SYMBOL code. Convert
3598 BKPT_AT_SYMBOL code to use shared library event breakpoints.
3599 (solib_create_inferior_hook): Simplify BKPT_AT_SYMBOL code,
3600 it no longer needs to restart/wait on the inferior.
3601 * symfile.c (find_lowest_section): No longer static.
3602 * symfile.h (find_lowest_section): Corresponding changes.
3606 * valops.c (COERCE_FLOAT_TO_DOUBLE): Define default value.
3607 (value_arg_coerce): Use COERCE_FLOAT_TO_DOUBLE.
3608 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Define to 1.
3609 * config/mips/tm-mips.h: Ditto.
3610 * config/pa/tm-hppa.h: Ditto.
3611 * config/rs6000/tm-rs6000.h: Ditto.
3612 * config/sparc/tm-sparc.h: Ditto.
3616 * config/{i386,ns32k}/nbsd.mh (NATDEPFILES): Remove core-aout.o.
3618 * config/nm-nbsd.h (FETCH_INFERIOR_REGISTERS): Defined.
3619 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
3620 #ifdef'd out definitions --- Causes serious gdb failures on
3621 the i386. Need to investigate further before enabling.
3623 * i386b-nat.c (fetch_inferior_registers, store_inferior_registers,
3624 fetch_core_registers): New functions. These functions are defined
3625 if FETCH_INFERIOR_REGISTERS is set. Registers are fetched/stored
3626 with ptrace PT_GETREGS/PT_SETREGS.
3630 * findvar.c (extract_floating store_floating): Replace `long
3631 double' with `DOUBLEST'.
3635 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
3640 * symtab.h (looup_minimal_symbol_solib_trampoline): Declare.
3642 * breakpoint.h (remove_solib_event_breakpoints): Declare.
3643 * breakpoint.c (remove_solib_event_breakpoints): New function.
3644 * somsolib.c (solib_create_inferior_hook): Remove all solib event
3645 breakpoints before inserting any new ones. Use a solib event
3646 breakpoint for the breakpoint at "_start".
3647 Remove extraneous "\n" from calls to warning.
3649 * breakpoint.c (breakpoint_1): Add missing "sigtramp" to bptypes
3654 * dwarfread.c (add_partial_symbol): Use ADD_PSYMBOL_ADDR_TO_LIST
3655 for CORE_ADDR values.
3656 (new_symbol): Use SYMBOL_VALUE_ADDRESS for CORE_ADDR values.
3657 * symfile.h (add_psymbol_{,addr}to_list): Add prototypes.
3661 * mipsread.c (mipscoff_symfile_read): Unconditionally add
3662 alpha coff dynamic symbols for all symbol files. Makes skipping
3663 over the trampoline code work when stepping from a function in a
3664 shared library into a function in a different shared library.
3668 * config/sparc/tm-sparc.h: Define PS_FLAG_CARRY. Define
3669 RETURN_VALUE_ON_STACK to return long doubles on the stack.
3673 * Makefile.in (ch-exp.o): Add dependencies.
3674 (various): Add gdb_string.h to dependencies that need it.
3678 * symmisc.c (print_symbol_bcache_statistics): Update description for
3679 printing byte cache statistics.
3683 * Add native support for long double data type.
3684 * c-exp.y (%union): Change dval to typed_val_float. Use DOUBLEST
3685 to store actual data. Change types of INT and FLOAT tokens to
3686 typed_val_int and typed_val_float respectively. Create new token
3687 DOUBLE_KEYWORD to specify the string `double'. Make production
3688 for FLOAT use type determined by parse_number. Add production for
3689 "long double" data type.
3690 * (parse_number): Use sscanf to parse numbers as float, double or
3691 long double depending upon the type of typed_val_float.dval. Also
3692 allow user to specify `f' or `l' suffix to explicitly specify
3693 float or long double constants. Change typed_val to
3695 * (yylex): Change typed_val to typed_val_int. Also, scan for
3697 * coffread.c (decode_base_type): Add support for T_LNGDBL basic
3699 * configure, configure.in: Add check for long double support in
3701 * defs.h: Define DOUBLEST appropriatly depending on whether
3702 HAVE_LONG_DOUBLE (from autoconf) is defined. Also, fix prototypes
3703 for functions that handle this type.
3704 * expression.h (union exp_element): doubleconst is now type
3706 * m2-exp.y f-exp.y (%union): dval becomes type DOUBLEST.
3707 * findvar.c (extract_floating): Make return value be DOUBLEST.
3708 Also, add support for numbers with size of long double.
3709 * (store_floating): Arg `val' is now type DOUBLEST. Handle all
3711 * parser-defs.h parse.c (write_exp_elt_dblcst): Arg expelt is now
3713 * valarith.c (value_binop): Change temp variables v1, v2 and v to
3714 type DOUBLEST. Coerce type of result to long double if either op
3716 * valops.c (value_arg_coerce): If argument type is bigger than
3717 double, coerce to long double.
3718 * (call_function_by_hand): If REG_STRUCT_HAS_ADDR is defined, and
3719 arg type is float and > 8 bytes, then use pointer-to-object
3720 calling conventions.
3721 * valprint.c (print_floating): Arg doub is now type DOUBLEST.
3722 Use appropriate format and precision to print out floating point
3724 * value.h: Fixup prototypes for value_as_double,
3725 value_from_double, and unpack_double to use DOUBLEST.
3726 * values.c (record_latest_value): Remove check for invalid
3727 floats. Allow history to store them so that people may examine
3728 them in hex if they want.
3729 * (value_as_double unpack_double): Change return value to DOUBLEST.
3730 * (value_from_double): Arg `num' is now DOUBLEST.
3731 * (using_struct_return): Use RETURN_VALUE_ON_STACK macro (target
3732 specific) to expect certain types to always be returned on the stack.
3736 * bcache.c, bcache.h: New files to implement a byte cache.
3737 * Makefile.in (SFILES): Add bcache.c.
3738 (symtab_h): Add bcache.h.
3739 (HFILES_NO_SRCDIR): add bcache.h
3740 (COMMON_OBJS): Add bcache.o
3741 (bcache.o): New target.
3742 * dbxread.c (start_psymtab): Make global_syms & static_syms
3743 type "partial_symbol **".
3744 * hpread.c (hpread_start_symtab): Ditto.
3745 * os9kread.c (os9k_start_psymtab): Ditto.
3746 * stabsread.h (start_psymtab): Ditto.
3747 * {symfile.c, symfile.h} (start_psymtab_common): Ditto.
3748 * maint.c (maintenance_print_statistics): Call
3749 print_symbol_bcache_statistics.
3750 * objfiles.c (allocate_objfile): Initialize psymbol bcache malloc
3752 * solib.c (allocate_rt_common_objfile): Ditto.
3753 * symfile.c (reread_symbols): Ditto.
3754 (free_objfile): Free psymbol bcache when objfile is freed.
3755 (objfile_relocate): Use new indirect psymbol pointers.
3756 * objfiles.h (struct objfile): Add psymbol cache.
3757 * symfile.c (compare_psymbols): Now passed pointers to pointers to
3759 (reread_symbols): Free psymbol bcache when freeing other objfile
3761 (add_psymbol_to_list, add_psymbol_addr_to_list): Initialize new
3762 psymbol using the psymbol bcache.
3763 (init_psymbol_list): Psymbol lists now contain pointers rather than
3764 the actual psymbols.
3765 * symfile.h (psymbol_allocation_list): Psymbol lists now dynamically
3766 grown arrays of pointers.
3767 (ADD_PSYMBOL_VT_TO_LIST): Initialize new symbol using the psymbol
3769 * symmisc.c (print_partial_symbols): Now takes pointer to pointer
3771 (print_symbol_bcache_statistics): New function to print per objfile
3773 (print_partial_symbol, print_partial_symbols,
3774 maintenance_check_symtabs, extend_psymbol_list):
3775 Account for change to pointer to pointer to partial symbol.
3776 * symtab.c (find_pc_psymbol, lookup_partial_symbol, decode_line_2,
3777 make_symbol_completion_list):
3778 Account for change to pointer to pointer to partial symbol.
3779 * symtab.h (bcache.h): Include.
3780 * xcoffread.c (xcoff_start_psymtab): Make global_syms & static_syms
3781 type "partial_symbol **".
3785 * dwarfread.c (free_utypes): New function.
3786 (read_file_scope): Call free_utypes as cleanup, rather than just
3787 freeing the utypes pointer.
3791 * demangle.c (is_cplus_marker): New function, checks if a
3792 character is one of the commonly used C++ marker characters.
3793 * defs.h (is_cplus_marker): Add prototype.
3794 * c-typeprint.c (c_type_print_base), ch-lang.c (chill_demangle),
3795 cp-valprint.c (cp_print_class_method), mdebugread.c (parse_symbol),
3796 stabsread.c (define_symbol, read_member_functions, read_struct_fields),
3797 symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P),
3798 values.c (vb_match): Use is_cplus_marker instead of comparison
3803 * symfile.h (INLINE_ADD_PSYMBOL): Default this to 0 and possibly
3804 delete entirely someday.
3808 * mpw-make.sed: Edit out makefile rebuild rule.
3809 (host_alias, target_alias): Comment out instead of deleting.
3810 (@LIBS@): Edit out references.
3814 * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
3815 Use n_psyms in OBJSTAT, not psyms.
3819 * configure.in (sparclet-*-aout*): New config.
3820 * configure: Regenerated.
3824 * somsolib.c (som_solib_add): Use xmalloc rather than bare
3825 unchecked call to malloc.
3826 * remote-mips.c (pmon_load_fast): ditto.
3827 * remote-mm.c (mm_open): ditto.
3828 * hpread.c (hpread_lookup_type): ditto.
3829 * remote-adapt.c (adapt_open): ditto.
3833 * f-lang.c (allocate_saved_bf_node, allocate_saved_function_node,
3834 allocate_saved_f77_common_node, allocate_common_entry_node,
3835 add_common_block): Use xmalloc rather than malloc, some of which
3837 * gnu-regex.c: At same point as other gdb specific changes
3838 #undef malloc and then #define it to xmalloc.
3839 * ch-exp.c (growbuf_by_size): Use xmalloc/xrealloc rather than
3840 bare unchecked calls to malloc/realloc.
3841 * stabsread.c (dbx_lookup_type): Use xmalloc rather than bare
3842 unchecked call to malloc.
3846 * symtab.c (gdb_mangle_name): Change opname var to be const to
3847 match return val of cplus_mangle_name.
3848 * i960-tdep.c: Change arg types of next_insn to match callers.
3852 * config/i386/linux.mh (XM_CLIBS, GDBSERVER_LIBS): Remove. These
3853 apparently aren't needed in any reasonably recent version of
3858 * stabsread.c (read_range_type): If !self-subrange and language
3859 is Chill, assume a true range. If a true_range is a sub_subrange,
3860 use builtin_type_int for index_type.
3864 * nindy-share/nindy.c (say): Use stdarg.h macros when compiling
3865 with an ANSI compiler.
3867 start-sanitize-gdbtk
3870 * gdbtk.tcl (create_file_win): Eliminate text widget B1 binding so
3871 double-clicking will work again.
3872 (create_asm_win): Put "break" at end of all B1 bindings.
3873 (create_file_win): Lower "sel" tag, don't raise it.
3874 (ensure_line_visible): New proc.
3875 (update_listing, update_assembly): Use it.
3876 (create_copyright_window): Destroy window on Leave event.
3877 (create_command_window): Put "break" at end of all B2 bindings.
3883 * valops.c (value_arg_coerce): Coerce float to double, unless the
3884 function prototype specifies float.
3888 * language.c (set_language_command): Use languages table when
3889 printing available languages.
3894 * command.c (add_cmd): Add missing initialization for enums member.
3895 Reorder members to match structure declaration to make it easier to
3896 tell when one is missing.
3897 * exec.c (exec_file_command): Fix problem where filename in malloc'd
3898 memory is referenced after being freed.
3902 * dwarfread.c (read_func_scope): Avoid GDB core dumps if
3903 AT_name tag is missing.
3905 * procfs.c (procfs_stopped_by_watchpoint): Fix logic when
3906 FLTWATCH and FLTKWATCH are defined.
3908 * remote.c (remote_read_bytes): Advance memaddr for transfers,
3909 return number of bytes transferred for partial reads.
3911 * top.c (init_signals): Reset SIGTRAP to SIG_DFL.
3915 * win32-nat.c (mappings): Add ppc registers.
3916 (child_resume): Turn off step for ppc.
3920 * config/powerpc/(cygwin32.mh, cygwin32.mt, tm-cygwin32.h,
3921 xm-cygwin32.h): New.
3922 * config/i386/(*win32*): Becomes *cygwin32*.
3923 * configure.in (i[3456]86-*-win32*): Becomes i[3456]86-*-cygwin32.
3924 (powerpcle-*-cygwin32): New.
3925 * configure: Regenerate.
3926 * win32-nat.c (child_create_inferior): Call CreateProcess
3927 with the right program arg.
3931 * config/pa/tm-hppa.h (SOFT_FLOAT): Provide a default definition.
3935 * serial.c: Change fputc/fputs/fprintf to _unfiltered forms.
3939 * config/sparc/xm-sun4os4.h (HAVE_TERMIOS): Remove.
3941 * config/sparc/xm-sparc.h (HAVE_WAIT_STRUCT): Remove, never used.
3943 * config/i386/nm-i386mach.h (CHILD_PREPARE_TO_STORE): Move to
3944 here from config/i386/xm-i386mach.h, fix name.
3945 * config/i386/nm-sun386.h: Ditto, from config/i386/xm-sun386.h.
3946 * config/i386/nm-ptx4.h (CHILD_PREPARE_TO_STORE): Move to
3947 here from config/i386/xm-ptx4.h.
3948 * config/i386/nm-ptx4.h: Ditto, from config/i386/xm-ptx.h.
3949 * config/i386/nm-symmetry.h: Ditto, from config/i386/xm-symmetry.h.
3950 * config/m68k/nm-sun3.h: Ditto, from config/m68k/xm-sun3.h.
3951 * config/sparc/nm-nbsd.h: Ditto, from config/sparc/xm-nbsd.h.
3952 * config/sparc/nm-sun4os4: Ditto, from config/sparc/xm-sparc.h.
3954 * config/sparc/nm-sun4sol2.h: New file, renamed from nm-sysv4.h.
3955 (PRSVADDR_BROKEN): Move here from xm-sun4sol2.h.
3956 * config/sparc/sun4sol2.mh (NAT_FILE): Update.
3960 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Handle software
3961 floating point correctly.
3962 (STORE_RETURN_VALUE): Likewise.
3963 * config/pa/tm-pro.h (SOFT_FLOAT): define.
3967 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
3968 Define to what should be reasonable values. However, apparently
3969 a bug in linux mmap prevents mapped symbol tables from working.
3973 * defs.h (errno.h>: Move #include closer to head of file to solve
3974 obscure problem with systems that declare perror with const arg, in
3975 both errno.h and stdio.h, and const is defined away by intervening
3981 * i386-stub.c (getpacket): Change fprintf stream from "gdb" to stderr.
3982 (mem_fault_routine): Fix misplaced volatile type qualifier in decl.
3986 * Makefile.in (diststuff): Make all-doc; diststuff target does not
3987 exist in doc/Makefile.in.
3991 * config/m88k/xm-cxux.h (BP_HIT_COUNT): Remove, never used.
3995 * ch-valprint.c (calculate_array_length): New function to
3996 determine the length of an array type.
3997 (chill_val_print (case TYPE_CODE_ARRAY)): If the length of an
3998 array type is zero, call calculate_array_length.
4000 * gdbtypes.c (get_discrete_bounds (case TYPE_CODE_ENUM)): The
4001 values may not be sorted. Scan all entries and set the real lower
4006 * config/xm-linux.h: Move include of solib.h and #define of
4007 SVR4_SHARED_LIBS from here ...
4008 * config/nm-linux.h: ...to here.
4012 * configure.in (AC_CHECK_HEADERS): Check for sys/procfs.h.
4013 Also check for gregset_t and fpregset_t types.
4014 * configure: Regenerate.
4015 * core-regset.c (sys/procfs.h): Only include if HAVE_SYS_PROCFS_H
4017 (fetch_core_registers): Turn into stub unless both HAVE_GREGSET_T
4018 and HAVE_FPREGSET_T are defined. These changes allow systems
4019 like linux that are migrating to /proc support to use a single
4020 configuration for both new and old versions.
4022 * config/i386/linux.mt: Note that this is now for both a.out and
4024 * config/i386/linux.mh (NATDEPFILES): Add solib.o, core-regset.o,
4026 * config/i386/tm-linux.h (tm-sysv4.h): Include.
4027 * config/i386/xm-linux.h (solib.h): Include
4028 (SVR4_SHARED_LIBS): Define.
4029 * i386v4-nat.c: Only compile if HAVE_SYS_PROCFS_H is defined.
4030 (supply_gregset, fill_gregset): Compile if HAVE_GREGSET_T defined.
4031 (supply_fpregset, fill_fpregset): Compile if HAVE_FPREGSET_T
4036 * config/sparc/xm-sparc.h (NEW_SUN_CORE): Remove, never used.
4037 * config/i386/xm-sun386.h: Ditto.
4038 * config/m68k/xm-sun2.h, config/m68k/xm-sun3.h: Ditto.
4042 * Makefile.in (INSTALLED_LIBS, CLIBS): Include @LIBS@.
4047 * dcache.c (dcache_peek, dcache_poke): Advance addr for
4052 * infrun.c (normal_stop): Fix test for shared library event.
4056 * configure.in (sparc64-*-*): Add default host configuration.
4057 start-sanitize-gdbtk
4058 (sparc64-*-solaris2* host): Link statically if GCC used.
4060 (sparc64-*-solaris2*): Add target configuration.
4061 * configure: Regenerated.
4062 * sparc/sp64sol2.mt: New file.
4066 * Makefile.in (RUNTEST): srcdir renamed to rootsrc.
4070 * Makefile.in (lint): Close backquotes.
4072 start-sanitize-gdbtk
4075 * gdbtk.tcl, gdbtk.c: Updated copyrights.
4077 * configure.in: Look for -ldl or -ldld when using Tcl 7.5 or
4079 * configure: Rebuilt.
4084 * NEWS: Make note of new record and replay feature for
4085 remote debug sessions.
4086 * serial.c (gdbcmd.h): Include.
4087 (serial_logfile, serial_logfp, serial_reading, serial_writing):
4088 Define here, for remote debug session logging.
4089 (serial_log_command, serial_logchar, serial_write, serial_readchar):
4090 New functions for remote debug session logging.
4091 (serial_open): Open remote debug session log file when needed.
4092 (serial_close): Close remote debug session log file when needed.
4093 (_initialize_serial): Add set/show commands for name of remote
4094 debug session log file.
4095 * serial.h (serial_readchar): Declare
4096 (SERIAL_READCHAR): Call serial_readchar().
4097 (SERIAL_WRITE): Call serial_write().
4098 (serial_close): Declare as extern.
4099 (serial_logfile, serial_logfp): Declare.
4100 * top.c (execute_command): Declare serial_logfp. Log user command
4101 in remote debug session log if log file is open.
4102 * remote-array.c (array_wait): #ifdef out echo to gdb_stdout.
4103 (array_read_inferior_memory): Rewrite to fix memory overwrite bug.
4104 * remote-array.c (SREC_SIZE): Remove, duplicates define in
4106 * remote-array.c (hexchars, hex2mem): Remove, unused.
4107 * gdbserver/low-linux.c (store_inferior_registers): Remove
4108 unnecessary extern declaration of registers[].
4109 * gdbserver/Makefile.in (all): Add gdbreplay.
4110 * gdbserver/gdbreplay.c: New file.
4111 * gdbserver/README: Give example of recording a remote
4112 debug session with gdb and then replaying it with gdbreplay.
4116 * stabsread.c (rs6000_builtin_type): Make bool type unsigned.
4117 (read_one_struct_field): Support boolean bitfields.
4118 * c-valprint.c (c_val_print): Print booleans properly.
4122 * remote-vxsparc.c (vx_convert_to_virtual, vx_convert_from_virtual):
4124 * config/sparc/vxsparc.mt (TDEPFILES): Add remote-vxsparc.o.
4128 * ch-exp.c (parse_tuple): Error if invalid mode.
4130 * value.h (COERCE_ARRAY): Don't coerce enums.
4131 (COERCE_ENUM): Don't COERCE_REF.
4132 (COERCE_NUMBER): New macro (same as COERCE_ARRAY then COERCE_ENUM).
4133 * valops.c (value_assign): Only do COERCE_ARRAY if internalvar (let
4134 value_cast handle it otherwise); do *not* COERCE_ENUM either way.
4135 * valarith.c: Use COERCE_NUMBER instead od COEREC_ARRAY.
4136 Add COERCE_REF before COERCE_ENUM.
4137 * values.c (value_as_long): Simplify.
4139 * valops.c (value_array): Create internalvar if !c_style_arrays.
4141 * language.c (lang_bool_type): Add Fortran support.
4142 * eval.c (OP_BOOL): Use LA_BOOL_TYPE.
4146 * symfile.c (auto_solib_add): Renamed from auto_solib_add_at_startup.
4147 All references changed.
4148 * breakpoint.c (bpstat_what): Add shlib_event to the class types.
4149 Update state table. Reformat so that it's still readable.
4150 When we hit the shlib_event breakpoint, set the calss of shlib_event.
4151 (breakpoint_1): Add "shlib events" as a breakpoint type.
4152 Print the shlib_event breakpoint like other breakpoints.
4153 (create_solib_event_breakpoint): New function.
4154 (breakpoint_re_set_one): Handle solib_event breakpoints.
4155 * breakpoint.h (enum bytype): Add bp_shlib_event breakpoint type.
4156 (enum bpstat_what_main_action): Add BPSTAT_WHAT_CHECK_SHLIBS
4158 (create_solib_event_breakpoint): Declare.
4159 * infrun.c (wait_for_inferior): Handle CHECK_SHLIBS bpstat.
4160 (normal_stop): Inform the user when the inferior stoped due
4161 to a shared library event.
4162 (_initialize_infrun): Add new set/show variable "stop-on-solib-events"
4163 to control whether or not gdb continues the inferior or stops it when
4164 a shared library event occurs.
4165 * minsyms.c (lookup_minimal_symbol_solib_trampoline): New function.
4166 * somsolib.c (TODO list): Update.
4167 (som_solib_create_inferior_hook): Arrange for gdb to be notified
4168 when significant shared library events occur.
4169 * hppa-tdep.c (find_unwind_entry): No longer static.
4173 * printcmd.c (print_insn): Pass fprintf_unfiltered to
4174 INIT_DISASSEMBLE_INFO.
4175 start-sanitize-gdbtk
4176 * gdbtk.c (gdb_disassemble): Likewise.
4181 * remote.c (remotebreak): New GDB variable.
4182 (remote_break): New global.
4183 (remote_interrupt): Send a break instead of ^C if remote_break.
4184 * NEWS: Describe the new variable.
4188 * sparc-tdep.c (_initialize_sparc_tdep): Always use print_insn_sparc.
4192 * hp300ux-nat.c (getpagesize): Remove unused function
4193 fetch_core_registers.
4194 (hp300ux_core_fns): Remove, is unused.
4195 (_initialize_core_hp300ux): Remove, is unused.
4196 (gdbcore.h): Remove #include, no longer needed.
4200 * rs6000-nat.c (exec_one_dummy_insn): Rework to avoid
4201 ptrace bug in aix4.1.3 on the rs6000.
4205 * remote-hms.c (hms_ops): Add value for to_thread_alive.
4206 * remote-nindy.c (nindy_ops): Ditto.
4207 * remote-udi.c (udi_ops): Ditto.
4211 * remote-mips.c (pmon_opn, pmon_wait, pmon_makeb64, pmon_zeroset,
4212 pmon_checkset, pmon_make_fastrec, pmon_check_ack,
4213 pmon_load_fast): New functions. Support for the PMON monitor world.
4214 (common_open): New function to merge support for different monitors.
4215 (mips_open): Use common_open().
4216 (mips_send_command): New function.
4217 (mips_send_packet): Scan out-of-sequence packets.
4218 (mips_enter_debug, mips_exit_debug): New functions.
4219 (pmon_ops): New target definition structure.
4223 * Makefile.in (CLIBS): Add LIBS to allow libraries to be
4224 specified on the make command line (via make LIBS=xxx).
4226 * configure.in (enable-gm): magic.o -> gmagic.o.
4229 start-sanitize-gdbtk
4232 * gdbtk.tcl (create_expr_window): Many changes to update GUI.
4233 (add_expr): Changes from create_expr_window.
4234 (create_command_window): Set focus.
4235 (delete_expr): Rewrote.
4236 (expr_update_button): New proc.
4237 (add_expr): Put bindings on FocusIn, FocusOut.
4238 Don't allow .file_popup to be torn off.
4243 * symtab.c (find_pc_symtab): Don't lose if OBJF_REORDERED
4244 is set but there are no psymtabs.
4248 * dsrec.c (load_srec): Remove unused variable.
4249 * monitor.c (monitor_expect): Don't expect a ^C to echo.
4250 * serial.c (serial_open): Add parallel interface.
4251 * sh3-rom.c (parallel, parallel_in_use): New.
4252 (sh3_load): If parallel_in_use, download though the
4254 (sh3_open): Open parallel port if specified.
4255 (sh3_close): New function.
4256 (_inititalize_sh3): Add sh3_close hook and documentation.
4257 * monitor.c (monitor_close): Export.
4258 * monitor.h (monitor_close): Add prototype.
4263 * remote.c (remotetimeout): New GDB variable, use to set the
4264 remote timeout for reading.
4266 start-sanitize-gdbtk
4269 * gdbtk.tcl (gdbtk_tcl_query): Swap Yes and No buttons.
4270 (update_listing): Use lassign. Use "see" to scroll. Don't need
4271 screen_top, screen_bot, screen_height.
4272 (update_assembly): Use "see" to scroll.
4273 (textscrollproc): Removed.
4274 (create_file_win): Don't use textscrollproc.
4275 (asmscrollproc): Removed.
4276 (create_asm_window): Don't use asmscrollproc.
4277 (create_asm_win): Ditto.
4278 (screen_height, screen_top, screen_bot): Removed.
4279 (run_editor): New proc.
4280 (build_framework): Use it.
4281 (create_file_win, create_source_window): Don't use textscrollproc.
4282 (create_breakpoints_window): Set -xscrollcommand on canvas.
4283 (not_implemented_yet): Default button is 0.
4284 (delete_char): Don't use tk_textBackspace.
4285 (create_command_window): Allow Tk bindings to fire after deleting
4287 (create_command_window): Make Delete delete left, not right.
4292 * lynx-nat.c, irix4-nat.c, sparc-nat.c: Include gdbcore.h
4293 to get "struct core_fns" defined.
4294 * Makefile.in (lynx-nat.o, irix4-nat.o, sparc-nat.o):
4295 Are dependent upon gdbcore_h.
4299 * symfile.c (decrement_reading_symtab): New function.
4300 * symfile.c, symtab.h (currently_reading_symtab): New variable.
4301 * symfile.c (psymtab_to_symtab): Adjust currently_reading_symtab.
4302 * gdbtypes.c (check_typedef): Don't call lookup_symbol if
4303 currently_reading_symtab (since that could infinitely recurse).
4307 * stabsread.c (read_struct_type): Trivial simplification.
4309 * stabsread.c (define-symbol): Use invisible references
4310 for TYPE_CODE_SET and TYPE_CODE_BITSTRING too.
4311 * valops.c (call_function_by_hand): Likewise.
4312 * eval.c (evaluate_subexp_standard): When known, use the formal
4313 parameter type as the expected type when evaluating arg expressions.
4314 * ch-lang.c (evaluate_subexp_chill): Likewise (for MULTI_SUBSCRIPT).
4316 start-sanitize-gdbtk
4319 * main.c (main): Disable window interface if --help or --version
4322 * gdbtk.tcl (FSBox): Don't use tk_listboxSingleSelect.
4324 Changes in sync with expect:
4325 * configure.in (ENABLE_GDBTK): Use CY_AC_PATH_TCL and
4327 * aclocal.m4: Replaced with version from expect.
4328 * configure: Regenerated.
4333 * configure.in, configure: Recognize rs6000-*-aix4*.
4334 * config/powerpc/xm-aix.h: Reduce to include "xm-aix4.h".
4335 * config/rs6000/aix4.mh (XM_FILE): Point to xm-aix4.h.
4336 * config/rs6000/xm-aix4.h: New file.
4337 * config/xm-aix4.h: New file.
4342 * gdbserver/low-linux.c: New file.
4343 * remote.c (remote_read_bytes): Fix aborts on larger packets.
4345 * config/i386/linux.mh (GDBSERVER_DEPFILES, GDBSERVER_LIBS):
4347 * stabsread.c (define_symbol): If register value is too large,
4348 tell what it is and what max is.
4350 start-sanitize-gdbtk
4353 * gdbtk.tcl (gdbtk_tcl_fputs, gdbtk_tcl_fputs_error,
4354 gdbtk_tcl_flush): Use "see", not "yview".
4355 (gdbtk_tcl_query): Use questhead bitmap.
4356 various: Always wrap condition of 'if' in {...}.
4357 (add_breakpoint_frame): Set -value on radiobuttons.
4358 (lassign): New proc.
4359 (add_breakpoint_frame): Use lassign, not series of assignments.
4360 (decr): Made faster.
4361 (interactive_cmd): Use "see", not "yview".
4362 (not_implemented_yet): Use warning bitmap.
4363 (update_expr): Don't allow $expr to be evalled by Tcl.
4364 (create_expr_window): Don't use "focus".
4365 (delete_char, delete_line): Define globally.
4366 (delete_line, delete_char, create_command_window, update_autocmd,
4367 build_framework, create_asm_win, create_file_win): Use "see", not
4369 (create_copyright_window, center_window, bind_widget_after_class):
4371 (FSBox,create_command_window, create_autocmd_window): Binding
4373 (textscrollproc): Define globally.
4374 (build_framework): tk_menuBar no longer needed. Keys Prior, Next,
4375 Home, End, Up, and Down are all defined by Tk.
4376 (apply_filespec): Use error bitmap in dialog.
4377 (files_command): Don't use tk_listboxSingleSelect.
4378 (files_command): Don't use "uniq" to remove duplicates from a
4380 (update_assembly): Use lassign.
4381 (create_asm_win): Removed redundant bindings.
4382 (listing_window_button_1, file_popup_menu): Use tk_popup.
4383 (ButtonRelease-1 binding): Just remove tag from window; rest
4386 * gdbtk.c (gdbtk_query): Use Tcl_Merge to provide quoting.
4387 (call_wrapper): Use Tcl_Eval, not Tcl_VarEval.
4388 (gdbtk_call_command): Ditto.
4393 * hpread.c (hpread_build_psymtabs): Finish Jan 4th
4394 enum namespace -> enum_namespace change.
4398 * ch-exp.c (parse_primval): In case ARRAY, add missing
4403 * remote-mips.c (mips_receive_header): Recognize \012 instead
4404 of \n, but write \n when program sends a \012.
4405 * ser-mac.c (mac_input_buffer): Increase size of buffer.
4409 * infptrace.c (initialize_infptrace): Move function out of
4410 #ifdef conditional; put code within the function inside an
4413 * buildsym.c (end_symtab): Remove sort_pending and sort_linevec
4414 arguments. Sorting is now dependent on OBJF_REORDERED. All
4415 callers/references changed.
4416 * dbxread.c (read_ofile_symtab): Correctly determine value for
4417 last_source_start_addr for reordered executables.
4418 (process_one_symbol): Handle N_FUN with no name as an end of
4420 * partial-stab.h (case N_FN, N_TEXT): Don't assume CUR_SYMBOL_VALUE
4421 is the high text address for a psymtab.
4422 (case N_SO): Likewise.
4423 (case N_FUN): Handle N_FUN with no name as an end of function
4425 * minsyms.c (lookup_minimal_symbol_by_pc): Examine all symbols
4426 at the same address rather than a random subset of them.
4427 * coffread.c (coff_symfile_init): Set OBJF_REORDERED.
4428 * elfread.c (elf_symfile_init): Similarly.
4429 * somread.c (som_symfile_init): Similarly.
4430 * xcoffread.c (xcoff_symfile_init): Similarly.
4434 * stack.c (print_stack_frame print_frame_info) symmisc.c
4435 (dump_symtab): Change RETURN_MASK_ERROR to RETURN_MASK_ALL so
4436 that catch_errors doesn't get blindsided by QUIT and lose the
4437 cleanup chain. This fixes a problem where ^C while in a
4438 user-defined command sometimes leaves instream NULL and causes a
4439 segfault in command_loop.
4443 * configure.in, configure: Add `-ldl -lw' for Solaris linking.
4447 * config/sh/sh.mt, config/powerpc/*.mt, config/pa/hppapro.mt,
4448 config/m68k/monitor.mt, config/h8500/h8500.mt, config/h8300/h8300.mt:
4449 srec.o renamed to dsrec.o.
4453 * breakpoint.c (remove_breakpoint): Change error to warning so
4454 that hardware watchpoint removal problems won't leave breakpoint
4455 traps in the target.
4456 start-sanitize-gdbtk
4457 * configure configure.in: Make --enable-gdbtk be the default.
4459 * remote-e7000.c (e7000_insert_breakpoint,
4460 e7000_remove_breakpoint): Use e7000 based breakpoints, not memory
4462 * (e7000_wait): Adjust PC back by two when we see a breakpoint to
4463 compensate for e7000 maladjustment.
4464 * sparcl-tdep.c (sparclite_check_watch_resources): Fix logic bug
4465 which prevented hardware watchpoints from working.
4469 * infptrace.c (udot_info): New function.
4470 (PT_*): Define each individually if that one is not defined.
4471 * rs6000-nat.c (kernel_u_size): New function
4472 Include <sys/user.h> for "struct user"
4473 * alpha-nat.c (kernel_u_size): New function.
4474 Include <sys/user.h> for "struct user"
4475 * sparc-nat.c (kernel_u_size): New function.
4476 Include <sys/user.h> for "struct user"
4477 * i386b-nat.c (kernel_u_size): New function.
4478 * i386v-nat.c (kernel_u_size): New function.
4479 * config/i386/nm-fbsd.h (KERNEL_U_SIZE): Define.
4480 (kernel_u_size): Declare.
4481 * config/i386/nm-linux.h (KERNEL_U_SIZE): Define.
4482 (kernel_u_size): Declare.
4483 * config/sparc/nm-sun4os4.h (KERNEL_U_SIZE): Define.
4484 (kernel_u_size): Declare.
4485 * config/alpha/nm-osf2.h (KERNEL_U_SIZE): Define.
4486 (kernel_u_size): Declare.
4487 * config/rs6000/nm-rs6000.h (KERNEL_U_SIZE): Define.
4488 (kernel_u_size): Declare.
4492 * mdebugread.c (mylookup_symbol): enum namespace becomes
4493 enum_namespace type.
4494 * symfile.c (add_psymbol_to_list)
4495 (add_psymbol_addr_to_list): Ditto.
4496 * symtab.c (lookup_partial_symbol): Ditto.
4497 (lookup_symbol): Ditto.
4498 (lookup_block_symbol): Ditto.
4499 * win32-nat.c (handle_load_dll): Use incoming dll base.
4500 (child_wait): Catch DLL load errors.
4501 (create_child_inferior): Translated between paths correctly.
4505 * i386v4-nat.c (supply_gregset, fill_gregset): Subtract NUM_FREGS
4506 from NUM_REGS to get number of general registers that we care about.
4507 * config/i386/tm-i386.h (REGISTER_BYTES): Define in terms
4508 of number of general regs and number of floating point regs.
4512 * config/i386/tm-win32.h (IN_SOLIB_CALL_TRAMPOLINE): New.
4513 (SKIP_TRAMPOLINE_CODE): New.
4514 * config/i386/xm-win32.h (CANT_FORK): Deleted.
4515 (SLASH*) Changed to use unix style slash.
4516 * symtab.h (namespace enum): becomes typedef to avoid namespace
4518 * infcmd.c (path_command): Use empty string if PATH name not set.
4519 * i386-tdep.c (skip_trampoline_code): New function.
4520 * srec.c: Renamed dsrec.c to avoid filename collision.
4521 * Makefile.in: Cope with renaming.
4525 * symmisc.c (print_objfile_statistics): Print memory use statistics
4526 for objfile psymbol, symbol, and type obstacks.
4530 * config/mips/nm-irix5.h: Restore.
4531 (TARGET_HAS_HARDWARE_WATCHPOINTS, etc): Define as for Irix 4;
4533 * config/mips/irix5.mh (NAT_FILE): Use nm-irix5.h.
4534 * config/mips/irix[345].mh (MUNCH_DEFINE): Remove.
4536 For older changes see ChangeLog-95
4542 version-control: never