3 * mswin/genmakes mswin/recordit: New scripts to generate make
8 * config/mips/{tm-vr5000.h,tm-vr5000el.h,vr5000.mt,vr5000el.mt}:
10 * configure.tgt: Modify cases for vr5000 to use new files.
14 * config/alpha/alpha-osf3.mh (XM_CLIBS): Add -lm for OSF/1-4.0.
16 * procfs.c (proc_set_exec_trap): Under Alpha OSF/1-4.0, tracing
17 the entry to the exit system call to detect termination of the
18 inferior stopped working. Trace termination of the inferior via
19 PRFS_STOPTERM instead.
20 (procfs_init_inferior): Do not trace entry to exit system call
21 if PIOCSSPCACT is defined.
22 (procfs_wait): Handle PR_DEAD event, which signals the termination
23 of the inferior if PRFS_STOPTERM is set.
25 * mdebugread.c (parse_partial_symbols): Ignore stNil section
26 start address symbols.
28 * sparc-tdep.c (get_saved_register): Get saved PC from the
29 frame info if not in innermost frame.
33 * dbxread.c (process_one_symbol): Interpret end-of-function
34 markers correctly; this fixes problem on Vr5000 where all
35 functions in a module had the same address.
36 * configure.in, configure.tgt, configure.host, gdbserver/configure.in:
37 Correct for pc-linux-gnu problem in config.guess.
38 * configure: Regenerate.
42 * dbxread.c: Don't swap symbols in place, since internal and
43 external forms may have different sizes. Don't assume that an
44 internal_nlist has the same layout as an external_nlist. Create
45 symbol for n_strx element so to hide specifics of nlist from
47 * partial-stab.h: Don't reference dbxread symbols directly. Use
48 CUR_SYMBOL_STRX instead.
49 * config/i386/xm-windows.h: Define SIGQUIT and SIGTRAP.
52 * config/v850/tm-v850.h: Define PS_REGNUM and TARGET_V850 for
54 * mswin/gdbwin.c (reg_order): Define register order for V850.
55 * mswin/gui.cpp (CGuiApp::InitInstance): Define target name for
57 * mswin/regdoc.h: Define MAXREGS for V850.
62 * v850-tdep.c (scan_prologue): Changes to deal with scheduled
63 prologues correctly. First, prologue end is now defined by
64 presence of a branch, jump or call insn. Second, can no longer
65 fix frame offsets because we may not know the offset until after a
66 register has been saved.
67 * (v850_init_extra_frame_info): Fixup frame offsets here because
68 we have all the info at this time.
69 * (v850_frame_chain): Use new calling convention for scan_prologue.
75 * d10v-tdep.c, config/d10v/tm-d10v.h: Changes to allow stack
76 backtraces and inferior function calls.
81 * mpw-make.sed: Update init.c editing to work with Oct 8 change.
82 (@HLDFLAGS@): Always edit out.
86 * mdebugread.c (parse_partial_symbols): Fix 64-bit
87 sign-extension problems in calculating psymtab addresses.
88 * buildsym.c (end_symtab): Use macro to pop context.
93 * v850-tdep.c: Cleanup lots of things. Add many comments.
95 * v850-tdep.c (v850_init_extra_frame_info v850_frame_chain): Fix
96 sign bugs with scanning prologues. Get a little smarter about
97 calculating the length of uninteresting instructions.
102 * top.c: Add new commands "set annotate" and "show annotate".
106 * corelow.c (core_close): Clear inferior_pid only if there is
109 * cp-valprint.c (cp_print_value_fields): Pass correct address
113 * eval.c (evaluate_subexp_standard) [case BINOP_REPEAT]: Chase
114 typedefs before checking for integral type of right operand.
118 * mdebugread.c (parse_symbol): Fix crash when malloc has
119 no type info and void type has no associated pointer type.
123 * configure.host: New file, host configuration mapping.
124 * configure.tgt: New file, target configuration mapping.
125 * configure.in: Remove host and target mapping.
126 * configure: Rebuild.
130 * breakpoint.c (must_shift_inst_regs): New global.
131 (bpstat_stop_status): Change #if uses of DECR_PC_AFTER_BREAK into
132 equivalent expression uses.
133 * infrun.c (wait_for_inferior): Ditto.
138 * v850-tdep.c (v850_push_arguments): Use symbolic names for arg
140 * config/v850/tm-v850.h: Change FP to 29. Define arg regs.
145 * Makefile.in (init.c): Don't use -s option with grep. It means
146 something different under Digital Unix.
148 * buildsym.c (finish_block): Treat LOC_BASEREG_ARG and
149 LOC_LOCAL_ARG as arguments so that GDB will know about function
150 args declared this way. Mostly affects dwarf.
151 * dwarfread.c (decode_die_type): Change default type from int to
152 void. This allows GDB to recognize void functions.
153 * (new_symbol): If AT_PROTOTYPED is present, set a flag in the
155 * findvar.c (extract_floating store_floating): Clean up comments
157 * gdbtypes.h: Add TYPE_FLAG_PROTOTYPED so that we can tell if a
158 function has a prototype. Currently, only dwarf supports this.
159 * utils.c (floatformat_from_doublest): Fix logic error with
160 converting from double to float. (It wasn't shifting mant_long if
161 it had a hidden bit.)
164 * v850-tdep.c: Add support for function calling. Fix some
165 problems with debugging code w/o debug symbols.
166 * config/v850/tm-v850.h: Ditto.
171 * utils.c: Always ensure that size_t is defined. Check
172 HAVE_STDDEF_H rather than __STDC__
173 (xmalloc, xrealloc): Use size_t rather than long.
177 * config/powerpc/tm-ppc-eabi.h: Undefine NO_SINGLE_STEP so targets
178 can use single-step commands.
182 * stabsread.c (define_symbol): If REG_STRUCT_HAS_ADDR is non-zero,
183 follow typedefs before checking TYPE_CODE for structures and unions.
187 * frame.h: Move definition of struct frame_saved_regs to before
188 struct frame to make it possible to use frame_saved_regs in
189 EXTRA_FRAME_INFO macro.
192 * v850-tdep.c config/v850/tm-v850.h: Lotsa new functions and
193 macros to make frame operations (such as backtrace) work.
198 * dbxread.c (process_one_symbol): Check for null string directly
199 rather than using strcmp against "".
200 * partial-stab.h: Ditto.
204 * gdbserver/{gdbreplay.c,low-linux.c,remote-utils.c,utils.c}:
205 Make it compile on Linux and eliminate some warnings.
209 * Makefile.in (init.c): Fixup final sed script to work around
210 Linux bug with `p' operator.
214 * remote-mips.c: Use the correct name everywhere (DDB) for NEC's
216 (ddb_ops, pmon_ops): Fix the documentation strings.
220 * Makefile.in (init.c): Retro HPUX grep lacks -h option. Strip
221 filenames with sed instead.
225 * defs.h: Remove decls of xmalloc and xrealloc. There is a
226 conflicting definition in libiberty.h.
230 * dbxread.c (dbx_symfile_read): Call free_pending_blocks rather
231 than poking global variable (which is now static).
232 * hpread.c (hpread_build_psymtabs): Ditto.
233 * os9kread.c (os9k_symfile_read): Ditto.
234 * xcoffread.c (xcoff_initial_scan): Ditto.
236 * buildsym.h (free_pending_blocks): Declare here.
237 (pending_blocks): Remove declaration of global symbol.
238 (free_pendings): Remove declaration of global symbol.
239 (make_blockvector): Declare here.
240 (record_pending_block): Declare here.
242 * dstread.c (make_blockvector): Remove static copy that was old
243 clone of version in buildsym.c.
244 (process_dst_block): Call record_pending_block rather than doing
246 (read_dst_symtab): Ditto.
248 * buildsym.c (make_blockvector): Make global rather than static,
249 (record_pending_block): New function, code moved from finish_block.
250 (finish_block): Use record_pending_block.
251 (free_pending_blocks): New function.
252 (really_free_pendings): Call free_pending_blocks.
253 (pending_blocks): Make static instead of global.
254 (free_pendings): Make static instead of global.
258 * config/i386/windows.mh config/i386/xm-windows.h:: New config
259 files to support building Wingdb (built under Microsoft build
262 * Makefile.in: Add rule for hpux-thread.o (needs special header
264 * (SUBDIRS): Remove mswin.
265 * Change procedure for creating init.c. Speeds things up quite a
267 * config.in configure configure.in: Check for select, poll.
268 * Check for OSF header files before including hpux-thread.o.
269 * Don't configure doc or testsuite when building under MSVC.
270 * findvar.c value.h (read_register_pid write_register_pid): Make
271 global. Needed for hppa-tdep.c.
272 * (supply_register): Don't set pid to inferior_pid when supplying
274 * hppa-tdep.c (saved_pc_after_call): frame_saved_pc ->
276 * (frame_saved_pc): Change name to hppa_frame_saved_pc.
277 * (hppa_pop_frame): Don't use a pid of 0 with target_write_pc.
278 Use write_pc instead, which uses the correct pid.
279 * (target_read_pc target_write_pc): Use read/write_register_pid
280 instead of read/write_register to preserve the pid passed in.
281 * inftarg.c (child_can_run): Add flag child_suppress_run to allow
282 hpux-threads.c to override this as a runnable target.
283 * config/pa/nm-hppah.h: Define target_new_objfile and
285 * config/pa/tm-hppa.h (FRAME_SAVED_PC): Use hppa_frame_saved_pc
286 instead of frame_saved_pc.
287 * config/m68k/tm-m68k.h: Define TARGET_M68K for Wingdb.
288 * config/m68k/tm-monitor.h: Use FRAME_CHAIN_VALID_ALTERNATE, since
289 we can't easily determine the start file bounds with ELF.
290 * config/mips/tm-mips.h: Define TARGET_MIPS for Wingdb.
291 * hpux-thread.c: New file for HPUX/OSF thread support.
292 * osf-share/{README AT386/cma_thread_io.h HP800/cma_thread_io.h
293 RIOS/cma_thread_io.h cma_attr.h cma_deb_core.h cma_debug_client.h
294 cma_errors.h cma_handle.h cma_init.h cma_list.h cma_mutex.h
295 cma_sched.h cma_semaphore_defs.h cma_sequence.h cma_stack.h
296 cma_stack_int.h cma_tcb_defs.h cma_util.h}: New files for OSF
301 * buildsym.c (finish_block): Change innerblock_anon_complaint to
302 print the addresses as part of the complaint. Add a complaint for
303 cases where the block end address is smaller than the block start
304 address, in case any such conditions slip through our fixup mechanism.
305 * symmisc.c (dump_symtab): Only print blockvector for primary
306 symtabs, to avoid massive duplication of output due to secondary
307 symtabs that point to same blockvector. Also do some minor
312 Replace header_files global by per-objfile field.
313 * gdb-stabs.h (struct dbx_symfile_info): Add fields header_files,
314 n_header_files, n_allocated_header_files.
315 * stabsread.h (header_files, n_header_files, n_allocated_header_files):
316 Replace externs by macros HEADER_FILES, N_HEADER_FILES, and
317 N_ALLOCATED_HEADER_FILES.
318 * dbxread.c (dbx_symfile_finish): Free HEADER_FILES.
319 (free_header_files, init_header-files): Don't free/init headerfiles.
320 (various functions): Use macros instead of header_files globals.
321 * stabsread.c (various functions): Likewise.
325 * dwarf2read.c (read_tag_reference_type): New fn.
326 (read_type_die): Call it.
327 (dwarf_attr): Also look in the DIEs referred to by specification
328 or abstract_origin attributes.
332 * inferior.h (IN_SIGTRAMP): Pass pc to SIGTRAMP_START and
334 * config/i386/tm-i386os9k.h (SIGTRAMP_START, SIGTRAMP_END):
335 Define with dummy pc arg.
336 * config/m68k/tm-nbsd.h: Ditto.
337 * doc/gdbint.texinfo: Document that SIGTRAMP_START and
338 SIGTRAMP_END are macros that take an single argument.
342 * defs.h: Remove define of PRIVATE_XMALLOC.
347 * config/v850/tm-v850.h: Use distinct register for PC, not EIPC.
352 * top.c (execute_control_command): Free values from while_control
353 and if_control conditions after evaluation to avoid storage leaks.
359 * configure configure.in: Recognize v850 target.
360 * v850-tdep.c: New file, NEC V850 target support.
361 * config/v850/{v850.mt tm-v850.h}: New files for NEC V850 support.
366 * infrun.c (wait_for_inferior): Update current_line and
367 current_symtab when stepping continues in the middle of a new line.
371 * top.c (print_gdb_version): Rewrote to comply with new GNU coding
372 standards for the --version option.
373 (print_gnu_advertisement): Remove, now part of print_gdb_version.
374 (show_version): Remove call to print_gnu_advertisement.
375 * top.h (print_gnu_advertisement): Remove prototype.
376 * main.c (print_gdb_help): Move help to static function and
378 (main): Call print_gdb_help rather than inlining it.
379 (main): Remove call to print_gnu_advertisement.
381 * gdbtk.tcl (create_copyright_window): Increase timeout from
382 15 seconds to 30 seconds.
388 * config/d10v/tm-d10v.h (TARGET_{INT,PTR}_BIT): Define.
389 (TARGET_{,LONG_}DOUBLE_BIT): Ditto.
394 * configure.in, config/i386/tm-linux.h: Fix configure
395 problem on older Linux systems that prevented core files
396 from being recognized.
400 * dbug-rom.c: New file, support for Motorola's dBUG monitor.
401 * config/m68k/monitor.mt (TDEPFILES): Add it.
407 * config/d10v/tm-d10v.h (SAVED_PC_AFTER_CALL): Fixed.
408 Now single-steps correctly.
409 * d10v-tdep.c (d10v_pop_frame): Fixed.
414 * config/sh/tm-sh.h (REGISTER_NAMES): Move fp registers to
415 be consistent with GCC.
416 (FPUL_REGNUM, etc): Renumber to match list changes.
417 (ADDR_BITS_REMOVE): Delete.
418 * sh-tdep.c (sh_reg_names, sh3_reg_names, sh3e_reg_names):
419 Rearrange to match REGISTER_NAMES.
420 * sh3-rom.c (sh3_regnames, sh3e_regnames): Ditto.
425 * d10v-tdep.c: Stack chain should work now.
429 * d10v-tdep.c, config/d10v/tm-d10v.h: Snapshot.
434 * configure.in: Add cases for MIPS 5000 like MIPS 4300.
435 * configure: Rebuild.
439 * ser-e7kpc.c: Added wingdb support for target e7000pc.
443 * remote-mips.c (pmon_wait): DDB PMON does not require forced
444 re-entry back into debug mode.
448 * remote-mips.c (mips_load): Ensure that the PC is explicitly
449 loaded after a load to a DDB PMON system.
453 * Makefile.in (INTERNAL_LDFLAGS): Add @HLDFLAGS@ to list.
454 (HLDENV): Set to @HLDENV@.
455 (gdb): Prefix link command line with $(HLDENV).
456 * configure.in: Add support to test for --enable-shared and
457 generate appropriate values for HLDFLAGS and HLDENV.
458 * configure: Regenerated with autoconf.
462 * alpha-nat.c (fetch_core_registers): Match Sep 4 gdbcore.h prototype
463 change for core_read_registers in struct core_fns.
464 * core-regset.c (fetch_core_registers): Ditto & add prototype.
465 * core-sol2.c (fetch_core_registers): Ditto & add prototype.
466 * i386aix-nat.c (fetch_core_registers): Ditto & add prototype.
467 * i386b-nat.c (fetch_core_registers): Ditto.
468 * i386mach-nat.c (fetch_core_registers): Ditto & add prototype.
469 * irix4-nat.c (fetch_core_registers): Ditto.
470 * irix5-nat.c (fetch_core_registers): Ditto.
471 * lynx-nat.c (fetch_core_registers): Ditto & add prototype.
472 * m68knbsd-nat.c (fetch_core_registers): Ditto.
473 * mips-nat.c (fetch_core_registers): Ditto & add prototype.
474 * rs6000-nat.c (fetch_core_registers): Ditto.
475 * sparc-nat.c (fetch_core_registers): Ditto.
476 * sun3-nat.c (fetch_core_registers): Ditto & add prototype.
477 * ultra3-nat.c (fetch_core_registers): Ditto & add prototype.
479 * alpha-nat.c (register_addr): Match Sep 4 gdbcore.h prototype change.
480 * delta68-nat.c (register_addr): Ditto.
481 * gdbserver/low-linux.c (register_addr): Ditto.
482 * gdbserver/low-hppabsd.c (register_addr): Ditto.
483 * i386m3-nat.c (register_addr): Ditto.
484 * mips-nat.c (register_addr): Ditto.
485 * ultra3-nat.c (register_addr): Ditto.
489 * blockframe.c (inside_main_func): Cleanup slightly. Move
490 mainsym def into the block it's used in.
491 * configure.in configure: Allow NATDEPFILES to be recognized in
492 .mh files regardless of whitespace.
494 * cpu32bug-rom.c (cpu32bug_cmds): Change load_response string to
495 keep downloads from hanging.
497 * remote-wiggler.c: Add support for flash upgrades.
498 * (wiggler_error): Fix message format. Add new error code.
499 * (wiggler_write_byets): Error code is hex. Report errors with
501 * (wiggler_read_byets): Report errors with proper routine name.
502 * (get_packet): Add support for new flash commands.
503 * (wiggler_load): Call clear_symtab_users() to reset things
504 properly after download.
505 * (flash_xfer_memory bdm_update_flash_command): New funxtions to
506 support flash upgrades for Wiggler.
507 * (_initialize_remote_wiggler): Add `bdm update-flash' command.
511 * ser-tcp.c: don't include netinet/tcp.h if __CYGWIN32__
515 * config/i386/cygwin32.mh:
516 * config/powerpc/cygwin32.mh: build ser-tcp.o for both hosts
520 * value.h (COERCE_REF): Fix previous change.
521 (COERCE_ENUM): Add a check_typedef (this is the real fix).
525 * eval.c (evaluate_subexp_standard): In case of OP_ARRAY: make a
526 better check of array boundaries.
530 * configure: Update aclocal.m4 and re-run autoconf to get correct
532 * remote-wiggler.c (wiggler_error): Error codes are hex. Also,
533 fix default message generation.
537 * Makefile.in: Add mswin to SUBDIRS. Add rules for
538 mswin/libwingdb.a and remote-wiggler.o.
539 * breakpoint.c (breakpoint_here_p): Clean up bp enabled test.
540 * (breakpoint_inserted_here_p): New func, just like
541 breakpoint_here_p, except it's honest. Honestly.
542 * breakpoint.h: Proto for above.
544 * configure configure.in: Add host *windows* to list of hosts
545 that don't support GDBtk.
547 * configure configure.in: Add mswin to configdirs if host is
549 * core-aout.c (fetch_core_registers register_addr) gdbcore.h:
550 Change all vars that can contain addresses to type CORE_ADDR.
551 * findvar.c (supply_register): Allow val to be NULL. This means
552 that regno is unsupported.
553 * (read_pc read_pc_pid write_pc write_pc_pid): Make non-pid forms
554 just call pid forms with inferior_pid so that there's only once
555 place to hack PC's and such.
556 * infrun.c (proceed): Don't skip breakpoints if user changed PC.
557 * remote-wiggler.c: New file. Support for BDM interface from
559 * serial.c: Enhance serial logging capability. Add hex and octal
560 output modes (set remotelogbase {hex|octal|ascii}. Also log
561 breaks, timeouts, errors, and eofs.
562 * serial.h: Redefine SERIAL_SEND_BREAK to go through a wrapper
563 function so that we can log breaks. Don't export serial_logfile
565 * top.c (execute_command): Don't test for serial_logfp here.
566 Just call serial_log_comand, and let serial.c sort it out.
567 * valops.c (value_of_variable): Don't attempt to establish frames
568 for static and global variables. This makes things work a bit
569 better if the stack or frame pointer is trashed.
570 * config/m68k/monitor.mt (TDEPFILES): Add remote-wiggler.o.
571 * config/m68k/tm-m68k.h: Define STACK_ALIGN. CPU32 can't hack
572 misaligned stacks during function calls.
576 * terminal.h: Don't use #elif.
580 * ch-exp.c (parse_tuple_element): Allow (*): for array tuples
583 * eval.c (evaluate_subexp_standard): In case of OP_ARRAY:
584 check number of args against bounds of array to avoid
587 * value.h (COERCE_REF): Do a CHECK_TYPEDEF in case we get
592 * remote-mips.c: Provide support for DDBVR4300 target board.
593 (ddb_open, ddb_ops): Added.
594 (mips_monitor_type): MON_DDB Added.
595 (mips_enter_debug, mips_exit_debug, mips_initialize,
596 mips_fetch_registers, common_breakpoint, mips_load,
597 _initialize_remote_mips): Updated.
601 * nlm/configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
602 * nlm/configure: Regenerate.
604 * gdbserver/configure.in (i[345]86-*-*): Recognize i686 for
609 * configure.in: If CY_AC_PATH_TCLCONFIG can't find TCL, don't run
610 CY_AC_LOAD_TCLCONFIG.
611 * configure: Rebuild.
615 * infrun.c (wait_for_inferior): Initialize stop_func_end before calling
616 find_pc_partial_function.
620 * configure: Regenerate again.
624 * configure.in: work around host_alias configure bug.
625 AC_CANONICAL_HOST is called twice (first by AC_CHECK_TOOL
626 and second by AC_CANONICAL_SYSTEM). The second clobbers the
627 previous setting. Circumventing by moving the second check
629 * configure: regenerated
634 * config/d10v/d10v.mt: New file.
635 * config/d10v/tm-d10v.h: New file.
636 * configure.in: New target D10V.
637 * d10v-tdep.c: New file.
642 * rs6000-tdep.c: Fix typo in comment.
643 * valops.c (call_function_by_hand): Set using_gcc to 2
644 for code compiled without -g, per comment in code.
645 * config/a29k/tm-a29k.h (STACK_ALIGN): Add comment.
646 * config/sparc/tm-sparc.h (STACK_ALIGN): Add comment.
647 * config/sparc/tm-sp64.h (STACK_ALIGN): Add comment.
648 * config/pyr/tm-pyr.h (STACK_ALIGN): Add comment.
649 * config/m88k/tm-m88k.h (STACK_ALIGN): Add comment.
650 * config/pa/tm-hppa.h (PUSH_ARGUMENTS): Enclose args in ()'s.
651 (STACK_ALIGN): Add comment, move to be with other associated
652 macros, and document.
653 * config/mips/tm-mips.h (PUSH_ARGUMENTS): Enclose args in ()'s.
654 (STACK_ALIGN): Remove completely, handled by PUSH_ARGUMENTS.
655 * config/alpha/tm-alpha.h (PUSH_ARGUMENTS): Enclose args in ()'s.
656 * config/rs6000/tm-rs6000.h (STACK_ALIGN): Remove completely,
657 handled by PUSH_ARGUMENTS.
658 (PUSH_ARGUMENTS): Enclose args in ()'s.
662 * infrun.c (wait_for_inferior): Try to reenable shared library
663 breakpoints even if auto_solib_load is not set.
667 * gdbtk.c (gdbtk_init): Check for a DISPLAY env variable and
668 gracefully degrade to using command line interface if none is
673 * valprint.c (print_longest): Test for CC_HAS_LONG_LONG as well as
674 PRINTF_HAS_LONG_LONG.
675 * expprint.c (dump_expression): Ditto.
676 * configure.in: Fix check for long long support in compiler to
677 use a function body, not a nested function.
678 * configure: Rebuild with autoconf.
682 * aclocal.m4: Include ../bfd/aclocal.m4.
683 * configure.in: Add stdlib.h to AC_CHECK_HEADERS. Call
684 BFD_NEED_DECLARATION on malloc, realloc, and free.
685 * acconfig.h: Add NEED_DECLARATION_MALLOC,
686 NEED_DECLARATION_REALLOC, and NEED_DECLARATION_FREE.
687 * configure, config.in: Rebuild.
688 * defs.h: Include <stddef.h> and <stdlib.h> based on HAVE_*_H
689 rather than __STDC__. Only declare malloc, realloc, and free if
690 NEED_DECLARATION_* is defined.
694 * solib.c (_initialize_solib): Add missing '\' chars at ends of
695 strings that continue on next line.
696 (enable_break): Replace "return 0" with setting success to zero
697 and letting normal return handle the return.
701 * mips-tdep.c (mips_push_arguments): Make sure sp and struct_addr
702 are properly aligned.
706 * rs6000-tdep.c (rs6000_fix_call_dummy): Add full set of arguments.
707 * config/rs6000/tm-rs6000.h (FIX_CALL_DUMMY): Pass all arguments
708 to function, declare function correctly.
712 * symtab.h: changed namespace to _namespace for compiling under
717 * mpw-make.sed: Update for various recent changes, add some
720 * mpw-config.in: Fix name of Magic Cap-specific file.
725 * config/rs6000/tm-rs6000.h (FIX_CALL_DUMMY): Cast args to be an
726 integer for type correctness.
730 * config/mips/{vr4300.mt, vr4300el.mt} (SIM): Add -lm when
731 simulator is included.
735 * findvar.c (write_register_pid): Only needed when TARGET_WRITE_PC
737 (read_register_pid): Only needed when TARGET_READ_PC is not
739 * hppa-tdep.c (frame_saved_pc): Remove prototype.
740 * infptrace.c (udot_info): Prototype when CHILD_XFER_MEMORY is
742 * config/xm-aix4.h (aix_resizewindow): Convert old style decl
744 * xcoffsolib.c (command.h): Include for needed prototypes.
748 * config/i386/cygwin32.mh: Set NAT_FILE to nm-empty.h to make
754 * hppa-tdep.c (hppa_fix_call_dummy): Use MSYMBOL_TYPE rather
755 than SYMBOL_TYPE on msymbols.
756 * somsolib.c (som_solib_create_inferior_hook): Ditto.
758 * Makefile.in (init.c): Generate with prototypes.
760 * config/pa/tm-hppa.h (frame_saved_pc): Add prototype.
761 * config/rs6000/xm-rs6000.h (aix_resizewindow): Ditto.
762 * config/rs6000/tm-rs6000.h (frame_initial_stack_address): Ditto.
763 (pc_load_segment_name): Ditto.
765 (extract_return_value): Ditto.
766 (is_magic_function_pointer): Ditto.
767 (push_dummy_frame): Ditto.
768 (fix_call_dummy): Ditto.
769 (push_arguments): Ditto.
770 (skip_trampoline_code): Ditto.
771 (aix_process_linenos): Ditto.
773 * config/m68k/tm-cisco.h (get_longjmp_target): Add prototype.
774 * config/m68k/tm-es1800.h: Ditto.
775 * config/m68k/tm-vx68.h: Ditto.
776 * config/m68k/tm-sun3.h: Ditto.
777 * config/m68k/tm-m68kv4.h: Ditto.
781 * config/mips/nm-mips.h (get_longjmp_target): Add prototype.
782 * config/mips/nm-irix3.h (get_longjmp_target): Add prototype.
783 * remote-mips.c (mips_read_processor_type): Remove prototype.
784 * mips-tdep.c (gdb_print_insn_mips): Add prototype and make static.
785 * irix5-nat.c (fetch_core_registers): Add prototype.
789 * remote-pa.c (boot_board): Add dummy params to make type compatible
790 for passing to add_com.
791 * scm-exp.c (scm_lreadr): Ensure svalue is not used uninitialized.
792 * buildsym.c (compare_line_numbers): Change function to match
793 prototype and also what qsort expects.
797 * remote.c: Make remote_write_size public.
798 * sh-tdep.c (_initialize_sh_tdep): Set remote_write_size to 300
799 to prevent packet errors with some versions of CMON.
803 * defs.h: Define CONST_PTR as blank if compiling with Microsoft
804 C, else it's `const'.
805 * c-lang.c c-lang.h ch-lang.c f-lang.c language.c m2-lang.c
806 scm-lang.c: Microsoft C can't hack const pointers. Use CONST_PTR
808 * configure configure.in defs.h: Use AC_C_CONST to figure out if
809 the compiler supports const. Gets rid of some cruft in defs.h.
810 * dwarf2read.c: <string.h> -> "gdb_string.h"
811 * remote-sim.c: Add prototypes. Fix call to gdbsim_kill.
812 * sparcl-tdep.c (download): Add prototypes to write_routine and
815 * mswin/gdbwin.c: Don't include both varargs.h AND stdarg.h. Get
816 rid of varargs.h Include string.h.
817 * (gdbwin_update gdbwin_fputs regs_changed_f bpt_changed_f
818 update): Fix prototypes, fix calls.
819 * (update): Return value for catch_errors.
820 * (run_execute_command togdb_command_from_tty togdb_command):
821 Cleanup catching of errors from calls to execute_command. Also,
822 dup command string to avoid modifying const strings.
823 * (togdb_breakinfo_i_init togdb_breakinfo_i_next): Use 0 instead
824 of NULL when see if b->address isn't set.
825 * (bi_disable_bpt bi_enable_bpt bi_delete_all
826 bi_delete_breakpoint): Add arg to calls to update.
827 * (gui_command): Add prototype.
828 * (mswin_query): Fix prototype.
829 * (_initialize_gdbwin): Dup string to avoid modifying const.
830 * (info_path togdb_get_info_path): Remove const from decls cuz
831 this can't be const (it points at malloc'ed memory).
832 * (togdb_searchpath): Remove const from path. Dup string to
833 avoid modifying const strings.
835 * (gdbwin_list_symbols): Regexp param is const.
836 * Fix lots of refs to psymtabs to deref correct pointers.
837 * (togdb_set_breakpoint_sal): Call set_breakpoint_sal with sal,
839 * mswin/gdbwin.h (togdb_searchpath togdb_get_info_path
840 toget_set_info_path): Fix prototypes to match reality.
841 * mswin/gui.cpp: Define _beginthreadex and _endthreadex routines
842 with proper prototypes.
843 * mswin/iface.cpp (gdbwin_fputs): Define with correct number of args.
844 * mswin/ser-win32s.c: Fix defs of min and max.
845 * mswin/serdll32.c (OpenComm16): Make cbInQueue and cbOutQueue be
847 * (WriteComm16): Change lpBug from LPVOID to LPCSTR.
848 * mswin/serdll32.h: Fix prototypes for OpenComm16 and WriteComm16.
852 * main.c (main): Make sure command loop is used with cygwin32.
853 * terminal.h: Allow cygwin32 to use termios.h.
858 * Makefile.in (LIB_INSTALL_DIR): New macro.
859 (TCL): Include @TCL_LD_SEARCH_FLAGS@.
864 * somread.c (som_symtab_read): Handle secondary definition
865 symbols (aka weak symbols).
867 * config/tm-hppa.h (EXTRACT_RETURN_VALUE): Fix thinko in
872 * symfile.c (symfile_bfd_open): Change ifdef from __WIN32__ to
875 * somread.c: Rearrange order of includes to fix warnings under
876 hpux-10.10. Also don't include sys/file.h.
880 * dbxread.c: Don't include param.h or sys/file.h.
881 * (dbx_symfile_read): Determine symfile_relocatable from bfd
882 flags instead of file extension. Also clean up a little bit.
886 * dwarf2read.c dwarfread.c exec.c infcmd.c infrun.c main.c
887 mdebugread.c os9kread.c source.c top.c utils.c: Don't
888 include param.h or sys/file.h (or unistd.h in some cases).
889 * defs.h exec.c inflow.c remote-array.c remote-e7000.c
890 sparcl-tdep.c terminal.h utils.c: Replace all occurances of
891 __WIN32__, WINGDB, WIN32, etc... with _WIN32.
892 * main.c: Remove #ifndef WINGDB around option processing. Fix
893 bug with passing argc==0 and argv==NULL to getopt.
894 * (main) Remove calls to access() before source_command. Let
895 soure_command handle access errors.
896 * maint.c (maintenance_dump_me): #ifdef out for _WIN32.
897 * symtab.c (operator_chars): Make this global for wingdb.
898 * top.c (disconnect): #ifdef out for _WIN32.
899 * (source_command): If got an error and from_tty, then call print
900 error, else just return quietly.
901 * utils.c (fatal_dump_core): Can't kill ourselves under windows.
903 * (pollquit notice_quit): #ifdef out stuff that doesn't exist
908 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Tweak for
909 structures > 4 bytes in size.
911 * valops.c (call_function_by_hand): Handle aligning stacks that
913 * config/pa/tm-hppa.h (USE_STRUCT_CONVENTION): Define.
914 (STACK_ALIGN): Define.
915 * hppa-tdep.c (hppa_alignof): Don't demand a minumim two byte
916 alignment on structs/unions.
920 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Define to "int *",
921 which is the documented type under at least AIX 3 and AIX 4.
925 * config/alpha/alpha-osf3.mh (XM_FILE): Change from xm-alpha.h to
927 (MMALLOC_CFLAGS): Define NO_MMCHECK to not install consistency
933 * gdbtk.c (mainWindow): Deleted.
934 (cleanup_init): Don't destroy main window.
935 (gdbtk_init): Main window now created by Tk_Init.
937 * configure.in: Most X checks now handled automatically by Tk.
938 Use new macros to find Tcl/Tk.
939 * aclocal.m4: New version for new Tcl/Tk; from Don Libes.
940 * config.in, configure: Regenerated.
942 * Makefile.in (TCL, TCL_CFLAGS, TK, TK_CFLAGS, X11_CFLAGS,
943 X11_LDFLAGS, X11_LIBS): Changed for new Tcl and Tk.
948 * config/mips/tm-mips.h (TM_MIPS_H): Enclose file contents in
949 this, define when contents are included.
950 (mips_read_processor_type): Add prototype.
951 * config/mips/xm-mips.h: Remove strdup decl, now in gdb_string.h
952 * mdebugread.c (ecoff_relocate_efi): Add prototype.
953 (fixup_sigtramp): Only needed when TM_MIPS_H is defined.
958 * Makefile.in (gdbtk.tcl): put in $(datadir), not $(libdir).
963 * rs6000-nat.c (add_vmap): Return 0 to caller rather than random value.
964 (vmap_ldinfo): Ensure got_exec_file is not used uninitialized.
965 (fetch_core_registers): Add prototype.
966 (vmap_symtab): Ditto.
967 (objfile_symbol_add): Ditto.
969 (vmap_ldinfo): Ditto.
974 * stabsread.c (get_substring): Declare second arg as int.
976 * remote-es.c: Include gdb_string.h after defs.h.
980 * rs6000-tdep.c (push_arguments): Remove unused variable "pc".
981 (branch_dest): Remove unused variable "offset".
982 (pop_dummy_frame): Add prototype and make static.
983 (push_arguments): Guard against using len uninitialized.
984 (push_arguments): Guard against using arg uninitialized.
985 (frame_saved_pc): Remove unused variable "frameless".
986 (free_loadinfo): Ifdef out unused function.
988 * xcoffread.c (compare_lte): Change prototype and function to
989 be correct type for passing to qsort.
990 (add_stab_to_list): Ifdef out unused function and prototype.
991 (compare_lte): Add prototype
992 (arrange_linetable): Ditto.
993 (record_include_begin): Ditto.
994 (record_include_end): Ditto.
995 (process_linenos): Ditto.
996 (xcoff_next_symbol_text): Ditto.
997 (scan_xcoff_symtab): Ditto.
998 (xcoff_initial_scan): Ditto.
1000 * mips-tdep.c (mips_read_processor_type): Add parens around
1001 bitwise-and operands in comparison; previous expression always
1002 evaluated to 0 because of equality comparison of two constants.
1004 * rs6000-tdep.c (skip_prologue): Add missing parens around
1005 operands of logical-or so that first operand does not bind
1006 to previous logical-and.
1008 * configure.in: Expand "long long" test to include code that triggers
1009 known problem on HPUX with native compiler.
1010 (configure): Regenerated.
1014 * somsolib.c (som_solib_create_inferior_hook): Don't
1015 warn if __d_pid can't be found.
1019 * config/mips/tm-mips.h (struct frame_info): Forward decl.
1020 (struct type): Ditto.
1021 (struct value): Ditto.
1023 * config/mips/tm-mips.h (sigtramp_address): Move extern decl
1024 from mips-tdep.c to here.
1025 (sigtramp_end): Ditto.
1026 (fixup_sigtramp): Ditto.
1028 * config/mips/tm-mips.h (init_extra_frame_info): Add prototype.
1029 (mips_frame_chain): Ditto.
1030 (mips_step_skips_delay): Ditto.
1031 (mips_frame_saved_pc): Ditto.
1032 (mips_find_saved_regs): Ditto.
1033 (mips_frame_num_args): Ditto.
1034 (mips_pop_frame): Ditto.
1035 (mips_extract_return_value): Ditto.
1036 (mips_store_return_value): Ditto.
1037 (mips_push_dummy_frame): Ditto.
1038 (mips_push_arguments): Ditto.
1039 (mips_do_registers_info): Ditto.
1040 (ecoff_relocate_efi): Ditto.
1041 (ecoff_relocate_efi): Ditto.
1042 * irix4-nat.c (fetch_core_registers): Add prototype.
1043 * mips-tdep.c (read_next_frame_reg): Add prototype
1044 (heuristic_proc_start): Ditto.
1045 (heuristic_proc_desc): Ditto.
1046 (mips_print_register): Ditto.
1047 * config/mips/nm-irix5.h (procfs_set_watchpoint): Add prototype.
1048 (procfs_stopped_by_watchpoint): Ditto.
1049 * config/mips/nm-irix4.h (procfs_set_watchpoint): Add prototype.
1050 (procfs_stopped_by_watchpoint): Ditto.
1051 * config/alpha/tm-alpha.h (ecoff_relocate_efi): Add prototype.
1052 (struct symbol): Add forward decl for prototype.
1054 * breakpoint.c (internal_breakpoint_number): Only needed if
1055 GET_LONGJMP_TARGET or SOLIB_ADD is defined.
1057 * objfiles.c (ecoff_relocate_efi): Remove prototype.
1061 * configure.in: Add test for "long long" support.
1062 * configure: Regenerate with autoconf.
1063 * acconfig.h: Add CC_HAS_LONG_LONG
1064 * config.in: Regenerate with autoheader.
1065 * config/mips/tm-mips64.h (FORCE_LONG_LONG): Remove
1066 * config/sparc/tm-sp64.h (CC_HAS_LONG_LONG): Remove.
1067 * config/mips/tm-vr4300el.h (CC_HAS_LONG_LONG): Remove.
1068 * config/mips/tm-vr4300.h (CC_HAS_LONG_LONG): Remove.
1069 * config/mips/xm-irix5.h (CC_HAS_LONG_LONG): Remove
1070 (PRINTF_HAS_LONG_LONG): Remove.
1071 (FORCE_LONG_LONG): Remove.
1072 * config/powerpc/xm-aix.h (UINT_MAX): Undef and use gdb's version.
1073 * config/convex/xm-convex.h (CC_HAS_LONG_LONG): Remove
1074 (PRINTF_HAS_LONG_LONG): Remove.
1075 * config/xm-nbsd.h (CC_HAS_LONG_LONG): Remove.
1076 (PRINTF_HAS_LONG_LONG): Remove.
1077 * config/pa/tm-hppa.h (GET_FIELD): Put parens around
1078 subtraction inside shift. Put parens around subtraction
1079 in operand of bitwise and.
1080 (struct frame_info): Forward declare
1081 if __STDC__ defined.
1082 (frame_saved_regs): Ditto.
1083 (struct value): Ditto.
1084 (struct type): Ditto.
1085 (struct inferior_status): Ditto.
1086 (init_extra_frame_info): Add prototype.
1087 (skip_prologue): Ditto.
1088 (frameless_function_invocation): Ditto.
1089 (frame_chain): Ditto.
1090 (frame_chain_valid): Ditto.
1091 (saved_pc_after_call): Ditto.
1092 (hppa_fix_call_dummy): Ditto.
1093 (hppa_push_arguments): Ditto.
1094 (pa_do_registers_info): Ditto.
1095 (in_solib_call_trampoline): Ditto.
1096 (in_solib_return_trampoline): Ditto.
1097 (push_dummy_frame): Ditto.
1098 * convex-tdep.c (decout): Use print_longest rather than
1100 * defs.h: Remove use of FORCE_LONG_LONG and __GNUC__ to set
1102 (INT_MIN): Fix so it works correctly when assigned to a long long.
1103 * valprint.c (longest_to_int): Rewrite to remove dependence
1104 on INT_MIN and INT_MAX.
1105 (print_longest): Rewrite the code that falls back to synthesized
1106 hex output when LONGEST value is not representable as in a long and
1107 printf doesn't support printing long longs.
1108 * ch-valprint.c (chill_val_print): Cast 2nd arg of
1109 chill_print_type_scalar to LONGEST.
1110 chill_print_type_scalar): Make static and add prototype.
1111 * hppa-tdep.c (get_field): Ifdef out unused function.
1114 (extract_5_store): Ditto.
1115 (extract_11): Ditto.
1116 (extract_12): Ditto.
1117 (deposit_17): Ditto.
1118 (extract_14): Convert to static and add prototype.
1119 (deposit_14): Ditto.
1120 (extract_21): Ditto.
1121 (deposit_21): Ditto.
1122 (extract_17): Ditto.
1123 (extract_5r_store): Ditto.
1124 (extract_5R_store): Ditto.
1125 (extract_5_load): Ditto.
1126 (find_proc_framesize): Ditto.
1127 (find_dummy_frame_regs): Ditto.
1128 (sign_extend): Ditto.
1129 (find_unwind_entry): Add prototype.
1130 (find_return_regnum): Ditto.
1131 (unwind_command): Ditto.
1132 (find_dummy_frame_regs): Add parens around subtraction in operand
1134 (skip_prologue): Add parens around operands of logical-and inside
1135 operand of logical-or.
1136 (sign_extend): Add parens around operands of subtraction inside
1138 (low_sign_extend): Ditto.
1139 * top.c (filename_completer): Convert old style decl of
1140 filename_completion_function into prototype.
1141 * f-lang.c (patch_common_entries): Ifdef out unused function.
1142 * stabsread.c (read_cfront_baseclasses): Remove unused local
1143 variable "msg_noterm".
1144 (resolve_cfront_continuation): Remove unused local variable "fip".
1145 (read_type): Remove unused variable xtypenums.
1146 (read_cfront_static_fields): Remove unused variable "i".
1147 (read_cfront_static_fields): Remove unused variable "nfields".
1148 (read_cfront_member_functions): Add missing comment terminator.
1149 (read_cfront_static_fields): Return 1 rather than random value.
1150 (read_cfront_baseclasses): Ditto.
1151 (read_cfront_baseclasses): Ditto.
1152 (read_cfront_baseclasses): Ditto.
1153 * somsolib.c (som_solib_create_inferior_hook): Remove unused
1155 (som_solib_create_inferior_hook): Remove unused variable
1157 (language.h): Add for needed prototypes.
1158 (som_solib_sharedlibrary_command): Add prototype.
1159 * hpread.c: (hpread_read_array_type): Add prototype.
1160 * somread.c (hpread_build_pysmtabs): Add prototype.
1161 (hpread_symfile_finish): Ditto.
1162 (hpread_symfile_init): Ditto.
1163 * hppah-nat.c (fetch_register): Convert old style decl
1165 (gdbcore.h): Include for needed prototypes.
1166 (fetch_register): Remove unused variable "mess".
1167 * remote-pa.c (get_offsets): Ifdef out unused function.
1168 (remote_start_remote): Remove unused variable "timeout".
1169 (boot_board): Add prototype.
1170 (reaad_frame): Add prototype.
1171 (getpkt): Remove unused variable "bp".
1172 (remote_kill): Add prototype.
1173 (remote_mourn): Add prototype.
1174 (remote_insert_breakpoint): Add prototype.
1175 (remote_remove_breakpoint): Add prototype.
1176 * valops.c (value_push): Only use if PUSH_ARGUMENTS is not defined.
1177 * infcmd.c (do_registers_info): Only need prototype if
1178 DO_REGISTERS_INFO is not defined.
1179 (breakpoint_auto_delete_contents): Only need if
1180 CALL_DUMMY_BREAKPOINT_OFFSET is defined.
1184 * xcoffread.c (xcoff_end_psymtab): Add textlow_not_set parameter.
1185 (END_PSYMTAB): Ditto.
1186 (scan_xcoff_symtab): Call xcoff_end_psymtab with textlow_not_set.
1190 * printcmd.c (_initialize_printcmd): Initialize
1191 tm_print_insn_info.flavour.
1192 start-sanitize-gdbtk
1193 * gdbtk.c (gdb_disassemble): Initialize di.flavour.
1198 * Makefile.in (scm-valprint.o): Depends upon gdbcore_h.
1199 (arm-tdep.o): Ditto.
1201 (i386ly-tdep.o): Ditto.
1202 (i960-tdep.o): Ditto.
1203 (m68k-tdep.o): Ditto.
1204 (nindy-tdep.o): Ditto.
1205 (scm-lang.o): Ditto.
1206 (w65-tdep.o): Ditto.
1207 (z8k-tdep.o): Ditto.
1208 (m68k-tdep.o): Depends upon value_h and gdb_string.h
1209 (m2-valprint.o): Depends upon m2-lang.h.
1210 (sparc-tdep.o): Depends upon gdb_string.h
1211 (valprint.o): Depends upon valprint.h
1213 * remote-e7000.c (notice_quit): Remove prototype.
1214 * top.c (initialize_targets): Remove prototype, now in target.h.
1215 * stabsread.c (resolve_cfront_continuation): Remove prototype.
1216 * dbxread.c (resolve_cfront_continuation): Remove prototype.
1217 * symfile.h (set_demangling_style): Remove prototype.
1218 * config/tm-sysv4.h (in_plt_section): Remove prototype, in objfiles.h.
1219 * config/sparc/tm-sparc.h (single_step): Remove extern decl, now in
1221 * config/arc/tm-arc.h (one_stepped, single_step): Remove extern decls,
1223 * ser-unix.c (hardwire_restore): Remove obsolete prototype.
1224 * sparc-tdep.c (single_step): Remove forward decl of isbranch.
1225 * scm-lang.c (find_function_in_inferior): Remove prototype.
1226 (value_allocate_space_in_inferior): Ditto.
1227 * infrun.c (write_pc_pid): Remove prototype, now in inferior.h.
1228 * defs.h (strchr): Remove declarations, they are declared in
1234 * f-valprint.c (f77_print_array_1): Remove extra arg that was being
1235 passed to f77_print_array_1.
1236 * gdbtypes.c (add_name): Remove unused variables lenstrlen and lenstr.
1237 * scm-exp.c (scm_istr2int): Remove unused variable "j".
1238 (scm_parse): Remove unused variable "str".
1239 * hp300ux-nat.c (store_inferior_register): Remove unused variable
1241 (store_inferior_registers): Remove unnecessary decl "registers".
1242 * m68k-tdep.c (m68k_pop_frame): Remove unused variable "fi".
1243 * scm-lang.c (scm_get_field): Remove unused variable "val".
1244 (scm_lookup_name): Remove unused variable "symval".
1245 * objfiles.c (map_to_file): Remove unused local variable "tempfd".
1246 * procfs.c (do_attach, do_detach): Remove unused variable "result".
1247 (last_resume_pid): Remove unused static variable.
1248 * alpha-tdep.c (alpha_linux_sigtramp_offset): Remove unused variable
1250 * objfiles.c (map_to_address): Remove unused function.
1251 * f-valprint.c (print_max): Remove extraneous extern decl,
1253 (calc_f77_array_dims): Remove extraneous prototype, in f-lang.h.
1254 * ch-exp.c (write_lower_upper_value): Remove prototype for
1257 * gdbtypes.c (cfront_mangle_name): #ifdef out unused function.
1258 * ch-exp.c (parse_mode_call): Ditto.
1259 * f-valprint.c (there_is_a_visible_common_named): Ditto.
1260 * f-lang.c (clear_function_list): Ditto.
1261 (get_bf_for_fcn): Ditto.
1262 (clear_bf_list): Ditto.
1263 (add_common_block): Ditto.
1264 (patch_all_commons_by_name): Ditto.
1265 (find_first_common_named): Ditto.
1266 (add_common_entry): Ditto.
1267 (allocate_saved_function_node): Ditto.
1268 (allocate_saved_bf_node): Ditto.
1269 (allocate_common_entry_node): Ditto.
1270 (allocate_saved_f77_common_node): Ditto.
1272 * arm-tdep.c (gdbcore.h): Include for necessary prototypes.
1273 * dcache.c (gdbcore.h): Ditto.
1274 * i386ly-tdep.c (gdbcore.h): Ditto.
1275 * i960-tdep.c (gdbcore.h): Ditto.
1276 * m2-valprint.c (m2-lang.h): Ditto.
1277 * m68k-tdep.c (gdbcore.h): Ditto.
1279 (gdb_string.h): Ditto.
1280 * nindy-tdep.c (gdbcore.h): Ditto.
1281 * scm-lang.c (gdbcore.h): Ditto.
1282 * scm-valprint.c (gdbcore.h): Ditto.
1283 * w65-tdep.c (gdbcore.h): Ditto.
1284 * z8k-tdep.c (gdbcore.h): Ditto.
1285 * sparc-tdep.c (gdb_string.h): Include.
1286 * valprint.c (valprint.h): Include.
1288 * config/xm-lynx.h: Remove part of comment about INT_MIN
1289 redefined warnings from defs.h, since INT_MIN define in
1290 defs.h is now protected by #ifndef INT_MIN.
1291 * config/i386/xm-i386bsd.h: Ditto.
1292 * config/m68k/xm-hp300bsd.h: Ditto.
1293 * config/m68k/xm-news.h: Ditto.
1295 * config/pa/xm-hppah.h (INT_MIN): Remove bogus INT_MIN
1296 definition as 0x80000000. The macro in defs.h is better.
1297 * config/i386/xm-i386m3.h (INT_MIN): Ditto.
1298 * config/i386/xm-i386mach.h (INT_MIN): Ditto.
1299 * config/ns32k/xm-ns32km3.h (INT_MIN): Ditto.
1300 * config/pa/xm-hppab.h: Ditto.
1302 * core-aout.c (fetch_core_registers): Add prototype.
1303 * hp300ux-nat.c (fetch_inferior_register): Ditto.
1304 (store_inferior_register_1): Ditto.
1305 (store_inferior_register): Ditto.
1306 * config/m68k/tm-m68k.h (find_saved_regs): Ditto.
1307 *scm-valprint.c (c_val_print): Ditto.
1308 * procfs.c (add_fd): Ditto.
1311 (sigcodename): Ditto.
1312 (sigcodedesc): Ditto.
1313 (procfs_kill_inferior): Ditto.
1314 (procfs_xfer_memory): Ditto.
1315 (procfs_store_registers): Ditto.
1316 (create_procinfo): Ditto.
1317 (procfs_init_inferior): Ditto.
1318 (proc_set_exec_trap): Ditto.
1319 (procfs_attach): Ditto.
1320 (procfs_detach): Ditto.
1321 (procfs_prepare_to_store): Ditto.
1322 (procfs_files_info): Ditto.
1323 (procfs_open): Ditto.
1324 (procfs_wait): Ditto.
1325 (procfs_fetch_registers): Ditto.
1326 (procfs_mourn_inferior): Ditto.
1327 (procfs_can_run): Ditto.
1328 (procfs_thread_alive): Ditto.
1329 (procfs_stop): Ditto.
1330 * alpha-nat.c (fetch_core_registers): Ditto.
1331 * config/alpha/tm-alpha.h (alpha_osf_skip_sigtramp_frame): Ditto.
1332 * objfiles.c (ecoff_relocate_efi): Ditto.
1333 * inflow.c (pass_signal): Ditto.
1334 (handle_sigio): Ditto.
1335 * annotate.c (breakpoint_changed): Ditto.
1336 * callback.c (wrap): Ditto.
1339 * utils.c (malloc_botch): Ditto.
1340 (fputs_maybe_filtered): Ditto.
1341 (vfprintf_maybe_filtered): Ditto.
1342 * defs.h (notice_quit): Ditto.
1343 * defs.h (xmalloc, xrealloc): Ditto.
1344 * top.c (stop_sig): Ditto.
1345 (init_signals): Ditto.
1346 (user_defined_command): Ditto.
1347 (source_cleanup_lines): Ditto.
1348 (dont_repeat_command): Ditto.
1349 (serial_log_command): Ditto.
1350 (disconnect): Ditto.
1351 * target.h (initialize_targets): Ditto.
1352 * os9kread.c (read_minimal_symbols): Ditto.
1353 * mdebugread.c (mdebug_psymtab_to_symtab): Ditto.
1355 (push_parse_stack): Ditto.
1356 (pop_parse_stack): Ditto.
1357 (is_pending_symbol): Ditto.
1358 (add_pending): Ditto.
1359 * serial.c (serial_logchar): Ditto.
1360 (serial_interface_lookup): Ditto.
1361 * serial.h (serial_log_command): Ditto.
1362 * f-valprint.c (info_common_command): Ditto.
1363 * gdbtypes.h (print_type_scalar): Ditto.
1364 * scm-valprint.c (scm_scmlist_print): Ditto.
1366 * scm-lang.c (scm_printstr): Ditto.
1368 (evaluate_subexp_scm): Ditto.
1369 * scm-exp.c (scm_read_token): Ditto.
1370 (scm_skip_ws): Ditto.
1371 (scm_lreadparen): Ditto.
1372 * m2-lang.c (emit_char): Ditto.
1373 (m2_printchar): Ditto.
1374 (m2_printstr): Ditto.
1375 (m2_create_fundamental_type): Ditto.
1376 * f-lang.c (emit_char): Ditto.
1377 (f_printchar): Ditto.
1378 (f_printstr): Ditto.
1379 (f_create_fundamental_type): Ditto.
1380 * ch-lang.c (chill_printchar): Ditto.
1381 (chill_printstr): Ditto.
1382 (chill_create_fundamental_type): Ditto.
1383 (value_chill_length): Ditto.
1384 (value_chill_card): Ditto.
1385 (value_chill_max_min): Ditto.
1386 (evaluate_subexp_chill): Ditto.
1387 * ch-exp.c (PEEK_TOKEN): Ditto.
1388 (peek_token_): Ditto.
1389 (forward_token_): Ditto.
1390 (parse_case_label): Ditto.
1391 (parse_opt_untyped_expr): Ditto.
1392 (parse_unary_call): Ditto.
1393 (parse_call): Ditto.
1394 (parse_named_record_element): Ditto.
1395 (parse_tuple_element): Ditto.
1396 (parse_opt_element_list): Ditto.
1397 (parse_tuple): Ditto.
1398 (parse_primval): Ditto.
1399 (parse_operand6): Ditto.
1400 (parse_operand5): Ditto.
1401 (parse_operand4): Ditto.
1402 (parse_operand3): Ditto.
1403 (parse_operand2): Ditto.
1404 (parse_operand1): Ditto.
1405 (parse_operand0): Ditto.
1406 (parse_expr): Ditto.
1407 (parse_then_alternative): Ditto.
1408 (parse_else_alternative): Ditto.
1409 (parse_if_expression): Ditto.
1410 (parse_untyped_expr): Ditto.
1411 (growbuf_by_size): Ditto.
1412 (match_simple_name_string): Ditto.
1413 (decode_integer_value): Ditto.
1414 (decode_integer_literal): Ditto.
1415 (match_float_literal): Ditto.
1416 (match_float_literal): Ditto.
1417 (match_string_literal): Ditto.
1418 (match_character_literal): Ditto.
1419 (match_integer_literal): Ditto.
1420 (match_bitstring_literal): Ditto.
1421 (write_lower_upper_value): Ditto.
1422 * ch-lang.h (type_lower_upper): Ditto.
1423 * c-lang.c (emit_char): Ditto.
1424 * dwarfread.c (free_utypes): Ditto.
1425 * stabsread.h (resolve_cfront_continuation): Ditto.
1426 * stabsread.c (get_substring): Ditto.
1427 (read_one_struct_field): Ditto.
1428 * stabsread.h (process_later): Ditto.
1429 * demangle.c (set_demangling_command): Ditto.
1430 * defs.h (set_demangling_style): Ditto.
1431 * maint.c (maintenance_info_command): Ditto.
1432 (print_section_table): Ditto.
1433 (maintenance_info_sections): Ditto.
1434 (maintenance_print_command): Ditto.
1435 * symtab.h (maintenance_print_statistics): Ditto.
1436 * objfiles.h (in_plt_section): Ditto.
1437 * objfiles.c (add_to_objfile_sections): Ditto.
1438 * bcache.c (hash): Ditto.
1439 (lookup_cache): Ditto.
1440 * exec.c (bfdsec_to_vmap): Ditto.
1442 * f-exp.y (growbuf_by_size, match_string_literal): Ditto.
1443 * language.c (unk_lang_printchar): Ditto.
1444 (unk_lang_printstr): Ditto.
1445 (unk_lang_create_fundamental_type): Ditto.
1446 (unk_lang_print_type): Ditto.
1447 (unk_lang_val_print): Ditto.
1448 (unk_lang_value_print): Ditto.
1449 * target.c (update_current_target): Ditto.
1450 (debug_to_open): Ditto.
1451 (debug_to_close): Ditto.
1452 (debug_to_attach): Ditto.
1453 (debug_to_detach): Ditto.
1454 (debug_to_resume): Ditto.
1455 (debug_to_wait): Ditto.
1456 (debug_to_fetch_registers): Ditto.
1457 (debug_to_store_registers): Ditto.
1458 (debug_to_prepare_to_store): Ditto.
1459 (debug_to_xfer_memory): Ditto.
1460 (debug_to_files_info): Ditto.
1461 (debug_to_insert_breakpoint): Ditto.
1462 (debug_to_remove_breakpoint): Ditto.
1463 (debug_to_terminal_init): Ditto.
1464 (debug_to_terminal_inferior): Ditto.
1465 (debug_to_terminal_ours_for_output): Ditto.
1466 (debug_to_terminal_ours): Ditto.
1467 (debug_to_terminal_info): Ditto.
1468 (debug_to_kill): Ditto.
1469 (debug_to_load): Ditto.
1470 (debug_to_lookup_symbol): Ditto.
1471 (debug_to_create_inferior): Ditto.
1472 (debug_to_mourn_inferior): Ditto.
1473 (debug_to_can_run): Ditto.
1474 (debug_to_notice_signals): Ditto.
1475 (debug_to_thread_alive): Ditto.
1476 (debug_to_stop): Ditto.
1477 start-sanitize-gdbtk
1478 * gdbtk.c (null_routine): Ditto.
1479 (gdbtk_flush): Ditto.
1480 (gdbtk_fputs): Ditto.
1481 (gdbtk_query): Ditto.
1482 (gdbtk_readline): Ditto.
1483 (gdbtk_readline_end): Ditto.
1484 (gdb_get_breakpoint_list): Ditto.
1485 (gdb_get_breakpoint_info): Ditto.
1486 (breakpoint_notify): Ditto.
1487 (gdbtk_create_breakpoint): Ditto.
1488 (gdbtk_delete_breakpoint): Ditto.
1489 (gdbtk_modify_breakpoint): Ditto.
1492 (gdb_sourcelines): Ditto.
1493 (map_arg_registers): Ditto.
1494 (get_register_name): Ditto.
1495 (gdb_regnames): Ditto.
1496 (get_register): Ditto.
1497 (gdb_fetch_registers): Ditto.
1498 (register_changed_p): Ditto.
1499 (gdb_changed_register_list): Ditto.
1501 (call_wrapper): Ditto.
1502 (gdb_listfiles): Ditto.
1504 (gdbtk_dis_asm_read_memory): Ditto.
1505 (compare_lines): Ditto.
1506 (gdb_disassemble): Ditto.
1507 (tk_command): Ditto.
1508 (cleanup_init): Ditto.
1509 (gdbtk_interactive): Ditto.
1511 (gdbtk_wait): Ditto.
1512 (gdbtk_call_command): Ditto.
1513 (tk_command_loop): Ditto.
1514 (gdbtk_init): Ditto.
1516 * breakpoint.h (set_breakpoint_sal): Ditto.
1517 * remote-utils.c (usage): Ditto.
1518 * remote.c (set_thread): Ditto.
1519 (remote_thread_alive): Ditto.
1520 (get_offsets): Ditto.
1521 (read_frame): Ditto.
1522 (remote_insert_breakpoint): Ditto.
1523 (remote_remove_breakpoint): Ditto.
1524 * sparc-nat.c (fetch_core_registers): Ditto.
1525 * corelow.c (add_to_thread_list): Ditto.
1527 * inftarg.c (proc_wait): Ditto.
1528 * infptrace.c (udot_info): Ditto.
1529 (fetch_register): Ditto.
1530 * ser-unix.c (hardwire_noflush_set_tty_state): Ditto.
1531 (hardwire_print_tty_state): Ditto.
1532 (hardwire_flush_output): Ditto.
1533 (hardwire_flush_input): Ditto.
1534 (hardwire_send_break): Ditto.
1535 (hardwire_setstopbits): Ditto.
1536 * ser-tcp.c (tcp_return_0): Ditto.
1537 (tcp_noflush_set_tty_state): Ditto.
1538 (tcp_print_tty_state): Ditto.
1539 * solib.c (match_main): Ditto.
1540 * gdbtypes.c (print_bit_vector): Ditto.
1541 (print_arg_types): Ditto.
1542 (dump_fn_fieldlists): Ditto.
1543 (print_cplus_stuff): Ditto.
1544 * symfile.h (entry_point_address): Ditto.
1545 * symfile.c (decrement_reading_symtab): Ditto.
1546 * valops.c (value_arg_coerce): Ditto.
1547 * value.h (find_function_in_inferior): Ditto.
1548 (value_allocate_space_in_inferior): Ditto.
1549 * values.c (vb_match): Ditto.
1550 * thread.c (info_thread_command): Ditto.
1551 (restore_current_thread): Ditto.
1552 (thread_apply_all_command): Ditto.
1553 (thread_apply_command): Ditto.
1554 * inferior.h (write_pc_pid): Ditto.
1555 * infrun.c (delete_breakpoint_current_contents): Ditto.
1556 * breakpoint.c (print_it_normal): Ditto.
1557 (watchpoint_check): Ditto.
1558 (print_it_done): Ditto.
1559 (print_it_noop): Ditto.
1560 (maintenance_info_breakpoints): Ditto.
1561 (create_longjmp_breakpoint): Ditto.
1562 (hbreak_command): Ditto.
1563 (thbreak_command): Ditto.
1564 (watch_commnd_1): Ditto.
1565 (rwatch_command): Ditto.
1566 (awatch_command): Ditto.
1567 (do_enable_breakpoint): Ditto.
1568 * ch-valprint.c (chill_val_print_array_elements): Ditto.
1569 * eval.c (evaluate_subexp): Ditto.
1571 (evaluate_struct_tuple): Ditto.
1572 * eval.c (init_array_element): Ditto.
1574 * alpha-tdep.c (push_sigtramp_desc): Add prototype and make static.
1575 * breakpoint.c (hw_breakpoint_used_count): Ditto.
1576 (hw_watchpoint_used_count): Ditto.
1577 * findvar.c (write_register_gen): Ditto.
1578 (read_register_pid): Ditto.
1579 * symtab.c (cplusplus_hint): Ditto.
1580 * infcmd.c (breakpoint_auto_delete_contents): Ditto.
1581 * ch-valprint.c (chill_print_type_scalar): Ditto.
1582 * gdbtypes.c (add_name): Ditto.
1583 (add_mangled_type): Ditto.
1584 (cfront_mangle_name): Ditto.
1585 * sparc-tdep.c (isbranch): Ditto.
1586 * inftarg.c (child_stop): Ditto.
1587 * win32-nat.c (child_stop): Ditto.
1588 * mac-nat.c (child_stop): Ditto.
1589 * remote-utils.c (sr_com): Ditto.
1590 * dbxread.c (process_now): Ditto.
1591 * ch-exp.c (require): Ditto.
1592 (check_token): Ditto.
1594 (parse_mode_call): Ditto.
1595 (parse_mode_or_normal_call): Ditto.
1596 * scm-lang.c (scm_lookup_name): Ditto
1597 * f-lang.c (allocate_saved_bf_node): Ditto.
1598 (allocate_saved_function_node): Ditto.
1599 (allocate_saved_f77_common_node): Ditto.
1600 (allocate_common_entry_node): Ditto.
1601 (add_common_block): Ditto.
1602 (add_common_entry): Ditto.
1603 (find_first_common_named): Ditto.
1604 (patch_common_entries): Ditto.
1605 (patch_all_commons_by_name): Ditto.
1606 (clear_bf_list): Ditto.
1607 (get_bf_for_fcn): Ditto.
1608 (clear_function_list): Ditto.
1609 * scm-exp.c (scm_istr2int): Ditto.
1610 (scm_istring2number): Ditto.
1611 * scm-valprint.c (scm_inferior_print): Ditto.
1612 * f-typeprint.c (print_equivalent_f77_float_type): Ditto.
1613 * f-valprint.c (f77_get_dynamic_length_of_aggregate): Ditto.
1614 (f77_create_arrayprint_offset_tbl): Ditto.
1615 (f77_print_array_1): Ditto.
1616 (f77_print_array): Ditto.
1617 (list_all_visible_commons): Ditto.
1618 (there_is_a_visible_common_named): Ditto.
1619 * mdebugread.c (ecoff_relocate_efi): Ditto.
1620 * callback.c (os_close): Ditto.
1621 (os_get_errno): Ditto.
1626 (os_read_stdin): Ditto.
1628 (os_write_stdout): Ditto.
1633 (os_shutdown): Ditto.
1635 (os_printf_filtered): Ditto.
1637 * scm-lang.h (scm_parse): Change old style decl to prototype.
1638 * config/alpha/tm-alphalinux.h (alpha_linux_sigtramp_offset): Ditto.
1639 * top.c (init_proc): Ditto.
1640 (query_hook): Ditto.
1641 (error_hook): Ditto.
1642 * f-lang.c (c_value_print): Ditto.
1643 * ch-exp.c (parse_expression): Ditto.
1644 (parse_primval): Ditto.
1645 (parse_untyped_expr): Ditto.
1646 (parse_opt_untyped_expr): Ditto.
1648 * config/sparc/tm-sparc.h (sparc_init_extra_frame_info): Ditto.
1649 (sparc_frame_saved_pc): Ditto.
1650 (sparc_push_dummy_frame): Ditto.
1651 (sparc_pop_frame): Ditto.
1652 * defs.h (fclose): Ditto.
1654 (error_hook): Ditto.
1656 * arc-tdep.c (single_step): Change arg to type "enum target_signal".
1657 * rs6000-tdep.c (single_step): Ditto.
1658 * sparc-tdep.c (single_step): Ditto.
1660 * breakpoint.c (cleanup_executing_breakpoints): Change unused arg type
1661 to PTR which is what make_cleanup expects.
1662 * utils.c (null_cleanup): Change arg type to PTR.
1663 * defs.h (null_cleanup): Change prototype to match actual function.
1664 * config/sparc/tm-sparc.h (struct frame_info): Move forward decl.
1665 * ch-valprint.c (chill_val_print): Cast 2nd arg of
1666 chill_print_type_scalar to LONGEST.
1667 * infrun.c (wait_for_inferior): Have empty switch case for
1668 BPSTAT_WHAT_CHECK_SHLIBS when SOLIB_ADD is not defined.
1669 (stop_on_solib_events): Only needed if SOLIB_ADD is defined.
1670 * infcmd.c (attach_command): Only need auto_solib_add if SOLIB_ADD
1672 * symfile.c (generic_load): Scan long int using a long int spec,
1674 * infptrace.c (udot_info): Only need local variables if KERNEL_U_SIZE
1676 (fetch_register): Only need function if FETCH_INFERIOR_REGISTERS is
1678 * inflow.c (handle_sigio): Only need prototype when the actual
1679 function is compiled in.
1680 * valprint.c (longest_to_int): Expand error message to be
1681 separate messages for args larger than largest signed int
1682 and args smaller than smallest signed int.
1683 * valprint.c (print_longest): Fix problems with support for case
1684 where compiler supports type "long long" but the runtime doesn't
1685 support printing them with "%ll".
1686 * scm-valprint.c (scm_scmlist_print, scm_scmval_print): Change
1687 return types to void since we don't actually return anything
1688 meaningful and callees ignore the values anyway.
1689 * procfs.c (modify_inherit_on_fork_flag): Enclose pr_flags in PIOCSET
1691 (modify_run_on_last_close_flag): Ditto.
1692 (wait_fd): Enclose local variables "num_fds" and "i" LOSING_POLL
1694 * alpha-tdep.c (push_sigtramp_desc): Return proc_desc rather than
1696 * infrun.c (wait_for_inferior): Ensure random_signal is not used
1698 * valops.c (call_function_by_hand): Ensure struct_addr is not used
1700 * breakpoint.c (watch_command_1): Ensure prev_frame is not used
1702 * utils.c (vfprintf_maybe_filtered): Change second arg from "char *"
1704 start-sanitize-gdbtk
1705 * gdbtk.c (gdb_fetch_registers): Cast fourth arg to map_arg_registers
1706 to proper pointer type, from int.
1707 (gdbtk_query): Change first arg to "const char *" from "char *".
1709 * infptrace.c (udot_info): Add two dummy args so that the type is
1710 correct for passing to add_info.
1711 * f-lang.c (saved_fcn): Move decl to head of file so it can be used
1713 (saved_bf_symnum): Ditto.
1714 (SAVED_FUNCTION): Ditto.
1715 (SAVED_FUNCTION_PTR): Ditto.
1717 (SAVED_BF_PTR): Ditto.
1718 * ch-exp.c (parse_named_record_element): Build error message in
1719 temporary buffer before passing it to expect, rather than passing
1720 wrong number of args to expect.
1721 * demangle.c (set_demangling_style): Call set_demangling_command with
1722 correct number of arguments.
1723 * inferior.h (terminal_init_inferior_with_pgrp): Change arg type to
1724 int to match actual function.
1725 (os_isatty): Call fdmap with right number of arguments, was missing
1726 the host_callback* arg.
1727 * target.c (cleanup_target): Prototype all functions casts.
1728 * target.h (one_stepped, single_step): Declare here and convert
1729 single_step to prototype.
1730 * infrun.c (one_stepped, single_step): Don't declare externs
1731 here, they have moved to target.h.
1732 * eval.c (init_array_element): Declare previously undeclared
1733 last two args as LONGEST.
1734 * dcache.c (dcache_xfer_memory): Change xfunc decls to prototype form.
1735 start-sanitize-gdbtk
1736 * gdbtk.c (register_changed_p): Remove unused local variable "buf".
1741 * dsrec.c (load_srec): Protect ANSI style function parms with PARAMS.
1745 * Makefile.in (os9kread.o): Remove dependency on partial-stab.h.
1746 * dbxread.c (read_dbx_symtab end_psymtab), partial-stab.h: Don't
1747 use partial_symtab->textlow==0 as a flag, as 0 is a legitimate
1748 text address. Use a seperate flag (textlow_not_set) instead.
1749 This makes stabs in ELF .o files work a lot better.
1750 * mdebugread.c xcoffread.c: Define textlow_not_set for
1752 * stabsread.h (end_psymtab): Add textlow_not_set arg to prototype.
1754 start-sanitize-gdbtk
1757 * gdbtk.tcl (files_command): Reorder the binding tags for
1758 the listbox widget to avoid referencing the listbox after
1759 the containing widget has been destroyed by the action of
1765 * dwarf2read.c (struct filenames): Change internal "struct file"
1766 to "struct fileinfo" to avoid conflict with "struct file" in
1767 <sys/file.h> on HPUX and Solaris.
1769 start-sanitize-gdbtk
1772 * gdbtk.tcl (delete_expr): Unset corresponding element of
1773 expr_update_list when destroying an expression.
1774 (create_expr_window): Initialize expr_num, delete_expr_num,
1775 and expr_update_list here when each new expression window
1776 is created, rather than once at startup.
1781 * dwarf2read.c: New file, DWARF 2 reader originally contributed by
1782 Brent Benson, with additions by Gary Funck and Jerry Kreuscher.
1783 * Makefile.in (COMMON_OBS): Add dwarf2read.o.
1784 (SFILES): Add dwarf2read.c.
1785 (dwarf2read.o): Add build rule.
1786 * symfile.h (dwarf2_has_info, dwarf2_build_psymtabs): Declare
1788 * elfread.c (elf_symfile_read): Call them.
1789 (elf_symtab_read) [HARRIS_TARGET]: Skip some special symbols.
1793 * symfile.c (symfile_bfd_open):
1794 * exec.c (exec_file_command): for __GO32__ and __WIN32__ systems,
1795 free the user from having to type the .exe extension.
1799 * mon960-rom.c: Shorten the mon960_inits string to a single
1800 carriage return; this prevents a hang on connecting immediately
1801 after powerup, when MON960 is attempting autobaud detection.
1805 * a29k-tdep.c (get_saved_register): Allow PC to be modified
1806 when innermost frame is selected, but not in outer frames.
1810 * command.c (do_setshow_command): Don't segfault when showing
1811 var_string and var_string_noescape vars that are NULL.
1815 * win32-nat.c (handle_load_dll): dos_path_to_unix_path renamed to
1816 cygwin32_conv_to_posix_path.
1817 (child_create_inferior): unix_path_to_dos_path renamed to
1818 cygwin32_conv_to_win32_path. Rewrite code to translate PATH.
1822 * defs.h printcmd.c: Create global disassemble_info structure
1824 start-sanitize-gdbtk
1825 * gdbtk.c (gdb_disassemble): Setup di.mach from
1826 tm_print_insn_info.mach, and set endian from TARGET_BYTE_ORDER.
1828 * i386-tdep.c (set_assembly_language_command): set
1829 tm_print_insn_info.mach to the appropriate value for 386 or 8086
1831 * printcmd.c (print_insn): Move init of disassembler_info to
1832 _initialize_printcmd. Set endian for disassembler here.
1833 * sparc-tdep.c: Set tm_print_insn_info.mach as appropriate to
1834 select sparc/sparclite.
1835 * config/sparc/{tm-sparc.h tm-sparclite.h}: Get rid of
1836 TM_PRINT_INSN. Set TM_PRINT_INSN_MACH to
1837 bfd_mach_sparc/bfd_mach_sparc_sparclite.
1841 * hpread.c (hpread_lookup_type): Use xmmalloc/xmrealloc rather
1842 than xmalloc/xrealloc.
1846 * objfiles.c (map_to_file): Error return from mmalloc_findbase is
1847 a NULL pointer, not a -1.
1851 * i386-tdep.c (set_assembly_language_command): New routine to
1852 select between i386 and i8086 instruction sets for disassembly.
1853 New command `set assembly-language {i386 i8086}'.
1857 * monitor.c (monitor_write_memory, monitor_read_memory_single):
1858 Disable use of "long long" memory read/write commands; can't
1859 use them because we hold the values to read/write in an int
1860 variable, and because strtoul fails on values that exceed the
1861 size of a long. This fixes breakpoint problems on MON960.
1865 * config/m68k/xm-hp300hpux.h (HAVE_MMAP): Remove definition.
1866 * config/pa/xm-hppah.h (HAVE_MMAP): Ditto.
1870 * Makefile.in (MMALLOC_CFLAGS): Eliminate intermediate MMALLOC_DISABLE
1871 and MMALLOC_CHECK macros, and add comment indicating how host dependent
1872 makefile fragment should modify MMALLOC_CFLAGS to not use mmalloc, or
1873 to use it but to not do heap corruption checking.
1874 * gdbserver/Makefile.in: Ditto.
1875 * utils.c (init_malloc): Replace warning() use with direct call of
1876 fprintf_unfiltered, since current_target has not yet been set and thus
1877 we cannot use warning(). If we try to use mmcheck and it fails,
1878 suggest that this configuration needs NO_MMCHECK or MMCHECK_FORCE
1879 defined. Other small mmalloc related cleanups.
1880 * config/sparc/sun4os4.mh (MMALLOC_CFLAGS): Define MMCHECK_FORCE to 1.
1881 * config/alpha/alpha-osf2.mh (MMALLOC_CFLAGS): Set to -DNO_MMCHECK.
1883 * config/sparc/xm-sun4os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1884 * config/i386/xm-i386v4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1885 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1886 * config/m68k/xm-hp300hpux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1887 * config/m68k/xm-m68kv4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT);
1888 * config/m68k/xm-sun3os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1889 * config/pa/xm-hppah.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1890 * config/sparc/xm-sun4sol2.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1891 Remove obsolete defines.
1893 * config/alpha/alpha-linux.mh (MMALLOC_DISABLE):
1894 * config/alpha/alpha-osf1.mh (MMALLOC_DISABLE):
1895 * config/rs6000/rs6000.mh (MMALLOC_DISABLE):
1896 * config/rs6000/aix4.mh (MMALLOC_DISABLE):
1897 * config/powerpc/aix4.mh (MMALLOC_DISABLE):
1898 * config/powerpc/aix.mh (MMALLOC_DISABLE):
1899 * config/ns32k/ns32km3.mh (MMALLOC_DISABLE):
1900 * config/mips/mipsm3.mh (MMALLOC_DISABLE):
1901 * config/mips/decstation.mh (MMALLOC_DISABLE):
1902 * config/m88k/cxux.mh (MMALLOC_DISABLE):
1903 * config/i386/i386mk.mh (MMALLOC_DISABLE):
1904 * config/i386/i386m3.mh (MMALLOC_DISABLE):
1905 * config/i386/i386gnu.mh (MMALLOC_DISABLE):
1906 Use MMALLOC_CFLAGS instead.
1910 * h8300-tdep.c: Remove some outdated comments.
1911 (h8300_skip_prologue): Rework to be more correct for the H8/300H.
1912 Handle stm.l insns for the H8/S.
1913 (examine_prologue): Likewise.
1917 * ser-mac.c (mac_close): Change a typo SetSetBuf to SerSetBuf.
1921 * mon960-rom.c (mon960_open): Add floating point detection to
1922 prevent hang on non-FPU processors (PR 9775).
1923 (mon960_cmds): Swap setmem.cmdw and setmem.cmdl to fix problem
1924 setting breakpoints and improve loading speed.
1928 * coffread.c (record_minimal_symbol): Don't presave name string
1929 on symbol_obstack before passing to prim_record_minimal_symbol.
1930 It now handles saving the string itself.
1931 * dbxread.c (read_dbx_dynamic_symtab): Ditto.
1932 * mipsread.c (read_alphacoff_dynamic_symtab): Ditto.
1933 * os9kread.c (record_minimal_symbol): Ditto.
1934 * solib.c (solib_add_common_symbols): Ditto.
1936 * coffread.c (coff_symtab_read): Don't presave name string on
1937 symbol_obstack before passing to prim_record_minimal_symbol_and_info.
1938 It now handles saving the string itself.
1939 * dbxread.c (record_minimal_symbol): Ditto.
1940 * elfread.c (record_minimal_symbol_and_info): Ditto.
1942 * dstread.c (record_minimal_symbol): Remove static function that just
1943 called prim_record_minimal_symbol with the same args (after change to
1944 prim_record_minimal_symbol to do it's own name string saves).
1945 * nlmread.c (record_minimal_symbol): Ditto.
1946 * somread.c (record_minimal_symbol): Ditto.
1948 * hpread.c (hpread_read_enum_type): Save symbol name on symbol obstack.
1949 (hpread_read_function_type): Ditto.
1950 (hpread_process_one_debug_symbol): Ditto.
1951 * mdebugread.c (parse_symbol): Ditto.
1952 (new_symbol): Ditto.
1953 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
1955 * coffread.c (process_coff_symbol): Use obsavestring to save
1956 SYMBOL_NAME, rather than obstack_copy0.
1957 * dstread.c (create_new_symbol): Ditto
1958 * symfile.c (obconcat): Ditto.
1959 * stabsread.c (patch_block_stabs): Ditto.
1960 * xcoffread.c (SYMNAME_ALLOC): Ditto.
1962 * symfile.c (obsavestring): Update comments
1963 * solib.c (solib_add_common_symbols): Remove local var origname.
1967 * configure: Re-build with autoconf-2.10.
1969 * sparcl-tdep.c (_initialize_sparc_tdep) config/sparc/tm-sparc.h,
1970 config/sparc/tm-sparclite.h: Initialize tm_print_insn from
1971 TM_PRINT_INSN, which comes from the tm file.
1975 * coffread.c, dbxread.c, elfread.c, mipsread.c, nlmread.c,
1976 os9kread.c: Replace identical sym_offsets functions with
1977 default_symfile_offsets.
1978 * somread.c (som_symfile_offsets): Use new SIZEOF_SECTION_OFFSETS
1979 macro to allocate section_offsets.
1980 * symfile.c (default_symfile_offsets): New function.
1981 * symfile.h: Declare default_symfile_offsets.
1982 * symtab.h: Define SIZEOF_SECTION_OFFSETS macro to
1983 simplify allocation of section_offsets.
1987 * Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
1988 * configure configure.in: Only make sol-thread.o for native.
1989 Also, switch to dlopened libthread_db.so.1.
1990 * sol-thread.c: Switch to using dlopen to get the thread_db
1995 * configure, configure.in: Change test for libthread_db to only
1996 work for configs where build/host/target are the same.
2000 * config/powerpc/{linux.mh,xm-linux.h}: New files, for Linux on
2003 * configure.in (powerpc-*-linux): Add Linux, System V, and ELF
2005 * configure: Regenerate.
2010 * mpw-make.sed: Add lines to whack out autoconf hook
2015 * remote-e7000.c (e7000_stop): New function.
2019 * configure, configure.in: Add target sparclet.
2020 * monitor.h, monitor.c: Added monitor flags MO_NO_ECHO_ON_SETMEM
2021 (don't expect echo on setmem command), MO_RUN_FIRST_TIME (if
2022 command to start process running on target is different from one
2023 to continue execution), MO_HEX_PREFIX (if addresses from monitor
2024 have a "0x" prefix).
2025 * monitor.c, parse.c, sparc-tdep.c: Don't require strings in the
2026 registers array. This is to allow NULLs to be place holders in
2027 the tm-*.h file so that only minor changes are needed when a new
2028 processor is introduced (eg, one without floating point).
2029 * sparc-tdep.c: Conditionally remove dependancies on floating
2031 * sparclet-rom.c, config/sparc/sparclet.mt,
2032 config/sparc/tm-sparclet.h: New files for target sparclet.
2033 * symfile.c (load_command): Add option for 2nd parameter; a load
2034 offset added to the vma of each section.
2038 * main.c (main): Add option "l" for setting remote_timeout.
2042 * remote-e7000.c, remote.c, target.h, top.c: Add set option
2043 "remote_timeout" for setting remote_timeout. Add set option
2044 "use_hard_breakpoints" for setting hardware .vs. memory
2049 * remote-e7000.c (e7000_parse_device): New function.
2050 Add option "tcp_remote" to target command if using
2051 tcp to connect to a remote host which is then connected
2052 via serial port to the e7000 (for exampole, a port master).
2053 (e7000_open): Change to call e7000_parse_device.
2057 * monitor.c (monitor_debug): Fix remotedebug buffering.
2061 * config/i386/cygwin32.mh, config/powerpc/cygwin32.mh
2062 (NATDEPFILES): Add a space.
2066 * gdbtypes.c (create_array_type): If TYPE_LENGTH (result_type)
2067 is zero, set TYPE_FLAG_TARGET_STUB to force reevaluation of the type.
2069 * ch-exp.c (calculate_array_length): Function removed.
2073 * remote-e7000.c (e7000_read_inferior_memory_large): New function.
2074 (e7000_xfer_inferior_memory): Call it.
2078 * gdb/gdbserver/Makefile.in (docdir): Removed.
2082 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir):
2083 Use autoconf set values.
2085 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
2086 * nlm/Makefile.in (bindir, libdir, datadir, mandir, infodir,
2087 includedir): Use autoconf set values.
2089 * nlm/configure.in (AC_PREREQ): autoconf 2.5 or higher.
2090 * nlm/configure: Rebuilt.
2091 * gdb/gdbserver/Makefile.in (datadir): Set to $(prefix)/share.
2095 * stabsread.c (read_cfront_member_functions): add type
2099 * win32-nat.c: #include <unistd.h>.
2100 (unix_paths_to_dos_paths, dos_paths_to_unix_paths): Delete.
2101 (child_create_inferior): Convert only env var PATH to win32 style.
2102 (set_pathstyle_dos): Delete.
2103 (_initialize_inftarg): Delete dos-path-style command.
2105 start-sanitize-gdbtk
2108 * gdbtk.tcl (create_register_windows): Include missing '$'s.
2109 Add global declarations for various reg_format_* variables.
2110 * gdbtk.tcl (populate_register_window): Make initial window one
2111 line taller to account for new column header line.
2115 * gdbtk.c (get_register): Support for printing raw formats.
2116 * gdbtk.tcl: Add hint for using debug_interface.
2117 (center_window, add_breakpoint_frame, delete_breakpoint_frame):
2118 Enclose arg in braces for consistency.
2119 (create_registers_window, populate_reg_window, update_registers):
2120 Major rewrite to support displaying multiple formats in the register
2122 (init_reg_info): New function.
2123 (recompute_reg_display_list): Reset reg_display_list, start
2124 register display lines at line 2.
2129 * configure.in: Revise sol-thread.o test.
2130 * configure: Regenerated.
2132 * source.c (find_source_lines): Reassign size to result of read.
2134 start-sanitize-gdbtk
2137 * gdbtk.tcl (gdbtk_tcl_readline_begin): Handle backspace to
2138 avoid backing up over prompt. At every input, make sure insert
2139 point is at least after command start, handle control-u to delete
2141 (tclsh): Handle backspace to avoid backing up over prompt. Handle
2142 control-u to delete current input line.
2146 * configure.in: disable gdbtk for *cygwin32* hosted compiles
2147 * configure: regenerated with autoconf 2.8
2152 * h8300-dep.c (gdb_print_insn_h8300): Handle the H8/S.
2153 (h8300_command): Likewise.
2154 (set_machine): Likewise.
2155 (set_machine_hook): Likewise.
2156 (_initialize_h8300m): Likewise.
2158 * config/h8300/tm-h8300.h (h8300smode): Declare.
2162 * somsolib.c (som_solib_create_inferior_hook): Handle tracking
2163 of shl_load calls for hpux10.
2167 * config.in: Regenerated.
2168 * acconfig.h (HAVE_THREAD_DB_LIB): Added entry.
2170 * configure: Regenerated.
2171 * aclocal.m4 (CY_AC_PATH_TCLH, CY_AC_PATH_TKH): Use odd names to
2172 avoid name clashes with SunOS headers.
2177 * bcache.c (print_bcache_statistics): Avoid divide-by-zero
2178 exception if one or more objfile has no symbols, such as when
2179 a dynamic library has been stripped.
2183 * Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
2184 * configure configure.in: Only make sol-thread.o for native.
2185 Also, switch to dlopened libthread_db.so.1.
2186 * sol-thread.c: Switch to using dlopen to get the thread_db
2191 * config/sparc/{xm-sun4sol2.h,xm-sun4os4.h} (MMAP_BASE_ADDRESS):
2192 Change from 0xE0000000 to 0xC0000000.
2196 * config/powerpc/xm-solaris.h: Initial version of support for
2201 * configure.in (configdirs): Force 4100 builds to use 4300 GDB
2203 * configure: Rebuild.
2205 * config/mips/vr4300el.mt (SIM_OBS): Include simulator in
2206 little-endian builds.
2210 * inftarg.c (child_thread_alive): Protect declaration with
2211 #ifndef CHILD_THREAD_ALIVE.
2213 * source.c (find_source_lines): Check the time on the symtab's bfd if
2214 it exists, else check the time on the exec_bfd.
2218 * dsrec.c (make_srec): Fix calculation of address size
2219 to allow addresses less than 0x100.
2223 * ch-exp.c (ch_lex): In case of LOC_TYPEDEF call calculate_array_length.
2227 * remote-mips.c: cannot use EINVAL for breakpoint test since
2228 its value varies for different hosts (e.g. go32's is 19, while
2229 sunos is 22). Changed to hardcoded 22 since that is what the
2234 * configure: Regenerated.
2235 * aclocal.m4 (CY_AC_PATH_TCLH): Don't use AC_TRY_RUN.
2236 (CY_AC_PATH_TKH): Don't use AC_TRY_RUN.
2240 * solib.c (solib_absolute_prefix, solib_search_path): New variables.
2241 (_initialize_solib): Add set/show commands for those variables.
2242 (solib_map_sections): Implement searching using them.
2248 * NEWS: Add Alpha Linux as a new native configuration.
2250 * mdebugread.c (parse_symbol): When we find a malloc() symbol with
2251 return type VOID, assume no debugging info is available for that
2252 object file and patch the return value into VOID *. Otherwise,
2253 operations requiring an implicit call to malloc() will fail.
2255 * infrun.c (wait_for_inferior): The criterion to detect entering a
2256 sigtramp handler is now: (a) the current pc is inside a sigtramp
2257 handler, (b) the previous pc is not in a sigtramp handler, and (c)
2258 the current stack pointer is "inner" than the old one. Condition
2259 (c) is new to avoid mistaking a return from a signal handler into
2260 sigtramp as a new sigtramp invocation.
2262 * dcache.c (struct dcache_block): Declare addr as CORE_ADDR. An
2263 int may not be big enough to hold an address.
2264 (dcache_hit): Ditto.
2265 (dcache_peek_byte): Fix indentation.
2267 * configure.in (alpha-*-linux*): Add target.
2268 * configure: Rebuild
2270 * config/alpha/tm-alpha.h (PROC_DESC_IS_DYN_SIGTRAMP): New macro.
2271 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2272 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
2273 (SIGCONTEXT_ADDR): Ditto.
2274 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
2276 * config/alpha/alpha-linux.mh: New file.
2277 * config/alpha/alpha-linux.mt: Ditto.
2278 * config/alpha/nm-linux.h: Ditto.
2279 * config/alpha/tm-alphalinux.h: Ditto.
2280 * config/alpha/xm-alphalinux.h: Ditto.
2281 * config/alpha/xm-alphaosf.h: Renamed from xm-alpha.h.
2282 * config/alpha/alpha-osf1.mh (XM_FILE): Change from xm-alpha.h to
2284 * config/alpha/alpha-osf2.mh: Ditto.
2286 * blockframe.c (find_pc_partial_function): Pass PC to
2287 SIGTRAMP_START and SIGTRAMP_END macros for the benefit of systems
2288 that detect sigtramp code via designated code sequences (as is the
2289 case for Linux/Alpha, for example).
2291 * config/i386/tm-i386bsd.h: Change SIGTRAMP_START and SIGTRAMP_END
2292 to ignore new PC argument.
2293 * config/m68k/tm-hp300bsd.h: Ditto.
2294 * config/vax/tm-vax.h: Ditto.
2296 * alpha-tdep.c (alpha_linux_sigtramp_offset): New function.
2297 (alpha_osf_skip_sigtramp_frame): Ditto.
2298 (push_sigtramp_desc): Ditto.
2299 (alpha_find_saved_regs): Use SIGCONTEXT_ADDR macro to extract
2300 sigcontext address from frame.
2301 (alpha_saved_pc_after_call): When in sigtramp, use
2302 alpha_frame_saved_pc() instead of read-register().
2303 (after_prologue): When inside a dynamically generated sigtramp
2304 function, there is no prologue, so return address of first
2306 (alpha_in_prologue): Fix typo in comment.
2307 (find_proc_desc): Use macro DYNAMIC_SIGTRAMP_OFFSET to determine
2308 whether we're inside a dynamicaly generated sigtramp function. If
2309 so, create and push and appropriate procedure descriptor.
2310 (alpha_frame_chain): Use macro FRAME_PAST_SIGTRAMP_FRAME to obtain
2311 the frame past a sigtramp frame (if the current frame is indeed a
2313 (init_extra_frame_info): Don't read next frame register off of
2314 stack-pointer when inside a dynamiccaly generated sigtramp.
2315 (alpha_pop_frame): Also unlink and destroy procedure descriptors
2316 created for dynamically generated sigtramp functions.
2318 * alpha-nat.c: When compiling under Linux, include <asm/reg.h> and
2319 <alpha/ptrace.h> instead of <machine/reg.h>
2323 * gnu-nat.c (inf_validate_task_sc):
2324 Give terminal to gdb while asking question.
2325 (inf_resume): Don't validate the task suspend-count while execing.
2329 * gnu-nat.c (inf_validate_task_sc): Query user before clearing any
2330 additional suspend count.
2331 (S_proc_wait_reply, gnu_attach): Don't call inf_validate_task_sc.
2332 (inf_resume): Call inf_validate_task_sc here.
2333 (gnu_resume): Call inf_update_procs to ensure noticing new threads.
2337 * gnu-nat.c (gnu_create_inferior: attach_to_child): Return PID.
2341 * h8300-tdep.c (IS_PUSH): Refine.
2342 (IS_MOVE_FP, IS_MOV_SP_FP): Accept H8/300H varaints.
2343 (IS_SUB4_SP, IS_SUBL_SP): New macros.
2344 (h8300_skip_prologue): Handle H8/300H prologue code sequences.
2345 (examine_prologue): Handle addresses from 0x010000 to 0xffffff
2346 when in H8/300H mode. Get the return pointer's address correctly
2347 for the H8/300H. Handle H8/300H prolouge code sequences.
2349 * symfile.c (generic_load): Print the starting address
2350 of the file just loaded.
2354 * mpw-make.sed: Edit @THREAD_DB_OBS@ out of makefile.
2358 * breakpoint.c (bpstat_do_actions): Avoid endless recursion
2359 if a `source' command is contained in bs->commands.
2361 * infrun.c (wait_for_inferior): Update step_frame_address when
2362 stepping into a new line.
2365 * breakpoint.c (breakpoint_1): Add shlib_disabled case to
2370 * dsrec.c (load_srec): Add WAITACK parameter, for machines
2371 like EST visionICE that send back an ACK after each S-record.
2372 * monitor.c (monitor_wait_srec_ack): New function.
2373 (monitor_load): Pass monitor_wait_srec_ack to load_srec
2374 if the monitor's MO_SREC_ACK flag is set.
2375 * monitor.h: Define MO_SREC_ACK flag.
2376 * remote-est.c (est_cmds): Add MO_SREC_ACK flag.
2377 * sh3-rom.c (sh3_load): Accomodate change in load_srec prototype.
2378 * srec.h: Add WAITACK parameter to load_srec prototype.
2380 Sun May 19 21:22:00 1996 Rob Savoye <rob@chinadoll>
2382 * config/sparc/sparclite.mt: Add the sparc simulator.
2386 * defs.h (read_command_lines, query_hook): Update prototypes.
2387 (readline_begin_hook, readline_hook, readline_end_hook): Declare.
2388 * breakpoint.c (commands_command): Build message in temporary buffer
2389 and pass that, as well as tty control flag, to read_command_lines.
2390 * top.c (readline_begin_hook, readline_hook, readline_end_hook):
2392 (command_loop): Check for non-NULL instream before looping.
2393 (command_line_input): Use readline_hook when appropriate, to get
2394 user input from a GUI window.
2395 (read_next_line): Also build prompt if getting user input from a GUI.
2396 (recurse_read_control_structure): Fix typo in comment.
2397 (read_command_lines): Use passed in prompt and tty flag to decide how
2398 to build message. Use readline_begin_hook when appropriate, to set
2399 up a GUI interaction window. Just return head, whether NULL or not,
2400 after using readline_end_hook to complete GUI interaction.
2401 (define_command, document_command): Build message in a temporary
2402 buffer and pass it to read_command_lines, along with tty flag.
2404 start-sanitize-gdbtk
2405 * gdbtk.c (gdbtk_readline_begin, gdbtk_readline, gdbtk_readline_end):
2407 (tk_command_loop): Set instream to NULL to enable Tk user interaction.
2408 (gdbtk_init): Set readline_begin_hook, readline_hook,
2409 and readline_end_hook.
2410 * gdbtk.tcl (gdbtk_tcl_readline_begin, gdbtk_tcl_readline,
2411 gdbtk_tcl_readline_end): New functions.
2412 (tclsh): Pack scroll bar on right side of window, not left.
2417 * blockframe.c (frameless_look_for_prologue):
2418 Add FUNCTION_START_OFFSET only if func_start is non-zero.
2419 * minsyms.c (lookup_minimal_symbol_by_pc): Return NULL if
2420 pc is not in a known section.
2421 * stack.c (print_frame_info): Remove check for fi->pc in known
2422 section, now handled by lookup_minimal_symbol_by_pc.
2424 start-sanitize-gdbtk
2427 * gdbtk.tcl (create_command_window): Change a misspelled "get"
2428 to the intended "cget".
2429 (delete_line): Fix so it deletes the current line at the
2435 * sh-stub.c: New file, was config/sh/stub.c.
2437 start-sanitize-gdbtk
2440 * gdbtk.tcl (gdb_prompt): Set this early on.
2441 (create_command_window): Use gdb_prompt rather than "(gdb) ".
2442 (gdbtk_tcl_preloop): Proc executed just prior to Tk main loop.
2443 (tclsh): If an evaluation window already exists, just bring it
2444 to the front instead of trying to create another.
2445 * gdbtk.c (tk_command_loop): New function.
2446 (gdbtk_init): Call tk_command_loop rather than Tk_MainLoop.
2450 * gdbtk.tcl (evaluate_tcl_command, tclsh): New functions that
2451 implement a tcl evaluation window for gdbtk maintainers to use.
2455 * gdbtk.tcl (files_command): Correctly insert list of files into
2458 * gdbtk.tcl (files_command): listbox command no longer accepts
2463 * gdbtk.tcl (create_command_window): If command window's buffer
2464 is disabled, don't execute any of the key bindings.
2469 * top.c (read_next_line): Fix thinkos. From Donn Seeley.
2471 * coffread.c (coff_symtab_read): Handle C_LABEL symbols like
2473 * h8300-tdep.c (h8300_pop_frame): Reset $sp and $pc correctly.
2474 Flush cached frames just before exiting.
2475 * remote-sim.c (gdbsim_resume): Complain if the program isn't
2477 * config/h8300/tm-h8300.h (BELIEVE_PCC_PROMOTION): Define.
2481 * procfs.c (procfs_thread_alive procfs_stop): Make static.
2482 (procfs_pid_to_str): New routine to print out thread id's in an
2483 intelligible manner.
2484 * sol-thread.c (sol_thread_fetch_registers): Re-order manner in
2485 which supply_register is called to fix bug with writing
2487 * config/sparc/tm-sun4sol2.h: Define default for
2488 target_pid_to_str in case host lacks libthread_db.
2492 * Makefile.in config.in configure configure.in
2493 config/sparc/nm-sun4sol2.h config/sparc/sun4sol2.mh
2494 config/sparc/tm-sun4sol2.h: Use autoconf to config Solaris thread
2495 and pthread support, since pre-2.5 systems don't come with
2498 * procfs.c (info_proc): Use int instead of id_t. Old versions of
2499 Irix don't seem to define this.
2501 start-sanitize-gdbtk
2504 * gdbtk.c (tk_command): Catch case where no argument is given
2505 since this will cause the tcl interpreter to dump core.
2510 * top.c (execute_control_command, case while_control): Allow
2511 a while command to be interrupted.
2515 * sol-thread.c: More cleanup, add comments.
2516 (sol_thread_resume): Prevent people from trying to step
2518 (sol_thread_wait sol_thread_fetch_registers
2519 sol_thread_store_registers): Remove unnecessary check for
2520 sol_thread_active. These routines won't get called unless threads
2526 * sh-tdep.c (sh_reg_names, sh3_reg_names): Add empty names for
2528 (sh3e_reg_names): New register name array.
2529 (sh_processor_type_table): Add sh3e processor type.
2530 * config/sh/tm-sh.h (REGISTER_VIRTUAL_TYPE): Fix test.
2531 (REGISTER_NAMES, NUM_REGS, NUM_REALREGS, etc): Adjust for
2532 full set of registers.
2533 * remote-e7000.c (want_sh3, want_sh3_nopc): New globals.
2534 (e7000_fetch_registers, e7000_wait): Use them.
2535 * sh3-rom.c (sh3_regnames): Add float registers.
2536 (sh3e_cmds, sh3e_ops): New globals.
2537 (sh3e_open): New function.
2538 (_initialize_sh3_rom): Rename from _initialize_sh3, set up
2543 * sol-thread.c: Cleanup. gcc -Wall fixes. Add prototypes.
2544 Print out messages instead of codes for thread_db errors. Make
2545 access macros for thread and lwp manipulation. Make cleanups to
2546 fixup inferior_pid in case of errors.
2550 * aclocal.m4: Remove unused definition of AC_C_CROSS.
2551 * configure.in: Add powerpcle-*-solaris* host and target config
2552 so April 30th change does not get lost next time configure is
2557 * Makefile.in, breakpoint.c, corelow.c, fork-child.c, inflow.c,
2558 infrun.c, mac-nat.c, procfs.c, remote.c, sol-thread.c, thread.c,
2559 win32-nat.c, config/nm-lynx.h: Rename thread.h to gdbthread.h to
2560 avoid conflict with Solaris /usr/include/thread.h.
2564 * abug-rom.c: Config file for the older style ABug monitor that
2565 runs on the mvme13x boards.
2566 * config/m68k/monitor.mt: Add abug support for m68k cross
2571 * infcmd.c (do_registers_info): Always print the raw floating
2572 point value's bytes in big endian order, so the the leftmost bit
2573 is the most significant.
2574 * breakpoint.c (clear_momentary_breakpoints): Remove dead code
2575 that is referenced nowhere else.
2576 (set_breakpoint): Ditto.
2577 (do_enable_breakpoint): Created from enable_once_breakpoint
2578 with a couple of changes.
2579 (enable_breakpoint): Call do_enable_breakpoint with an appropriate
2580 bpdisp enum value to set disposition of breakpoint.
2581 (enable_once_breakpoint): Ditto.
2582 (enable_delete_breakpoint): Ditto.
2583 * breakpoint.h (clear_momentary_breakpoints): Remove prototype.
2584 * symtab.c (find_pc_line): Improve comments.
2585 start-sanitize-gdbtk
2586 * gdbtk.c: Fix a couple of misspellings.
2588 * xcoffread.c: Ditto.
2592 * target.c (debug_to_xfer_memory): Insert line breaks when
2593 dumping the memory block.
2597 * fork-child.c (fork_inferior), inferior.h: init_trace_fun now
2598 returns a possibly modified pid.
2599 * inftarg.c (ptrace_him): Now returns pid;
2600 * m3-nat.c (m3_trace_him): Now returns pid;
2601 * infcmd.c (run_command): Minor cleanup.
2602 * infrun.c (wait_for_inferior): Add another check for one_stepped
2603 near where we read the pc to avoid erroneously setting
2604 random_signal for multi-threaded support.
2605 * procfs.c: Add support for Solaris LWPs. Remove def of
2606 LOSING_POLL. Many cleanups... Several workarounds for Solaris
2607 lossage. System call entry and exit are now handled by
2608 dynamically registered handlers.
2609 * (syscallname): Don't barf when handed an unknown syscall
2611 * (info_proc_syscalls): Ditto.
2612 * sol-thread.c: New file. Implements Solaris thread support.
2613 * symfile.c (symbol_file_add): Add call to target_new_objfile to
2614 notify target-dependent code about new symbol tables.
2615 * (clear_symtab_users): Call target_new_objfile to notify it of
2616 the removal of all symbol tables.
2617 * target.c (push_target): Make sure that to_close is non-zero
2619 * target.h (target_new_objfile): Provide default.
2620 * config/alpha/nm-osf2.h: Define LOSING_POLL because this version
2621 of OSF can't hack using poll with /proc.
2622 * config/sparc/nm-sun4sol2.h (target_new_objfile): Define to be
2623 sol-thread-new-objfile.
2624 * config/sparc/sun4sol2.mh: Add sol-thread.o to NATDEFFILES, and
2625 add libthread_db.so.1 to NAT_CLIBS.
2626 * config/sparc/tm-sun4sol2.h: Define PIDGET, TIDGET, and
2631 * procfs.c (remove_fd): Fix copy of fds to fill hole left after
2632 removal of the requested fd.
2636 * rs6000-tdep.c (_initialize_rs6000_tdep): Don't do XCOFF specific
2639 * config/powerpc/tm-ppc-eabi.h: Define ELF_OBJECT_FORMAT.
2641 start-sanitize-gdbtk
2644 * gdbtk.tcl (debug_interface): New global, use to aid debugging.
2645 (insert_breakpoint_tag, delete_breakpoint_tag): Fix range.
2646 (file_popup_menu): Delete, never used.
2647 (listing_window_popup): Rename from listing_window_button_1,
2648 remove breakpoint toggling code.
2649 (toggle_breakpoint): New procedure.
2650 (create_file_win): Bind popup menu to button 2, toggle breakpoints
2651 with button 1 in breakpoint area, add display of tagged areas if
2658 * breakpoint.h (enum bpdisp): Add del_at_next_stop.
2659 * breakpoint.c (insert_breakpoints, watchpoint_check,
2660 bpstat_stop_status): Avoid bad references to memory freed via
2661 delete_breakpoint on watchpoints going out of scope.
2662 Do not delete these watchpoints, disable them and change their
2663 disposition to del_at_next_stop instead.
2664 (breakpoint_auto_delete): Delete all breakpoints whose disposition
2665 is del_at_next_stop.
2666 (breakpoint_init_inferior): Use switch to avoid reference to
2667 already deleted breakpoint.
2671 * Makefile.in (rs6000-nat.o): Depend on xcoffsolib.h.
2672 * config/rs6000/rs6000.mh (NATDEPFILES): Move xcoffread.o ...
2673 * config/rs6000/rs6000.mt (TDEPFILES): ... to here.
2674 * xcoffsolib.c (xcoff_relocate_symtab_hook): Define and initialize.
2675 (solib_info): Call xcoff_relocate_symtab via the hook.
2676 (sharedlibrary_command): Ditto.
2677 * xcoffread.c: Remove all FAKING_RS6000 comments and defines.
2678 (xcoff_add_toc_to_loadinfo_hook): Define and initialize here.
2679 (xcoff_init_loadinfo_hook): Define and initialize here.
2680 (scan_xcoff_symtab): Call xcoff_add_toc_to_loadinfo via the hook.
2681 (xcoff_initial_scan): Call xcoff_init_loadinfo via the hook.
2682 * xcoffsolib.h (xcoff_relocate_symtab_hook): Declare extern func.
2683 * rs6000-tdep.c (_initialize_rs6000_tdep): Add initializations
2684 of xcoff_add_toc_to_loadinfo_hook and xcoff_init_loadinfo_hook.
2685 * rs6000-nat.c (_initialize_core_rs6000): Add initialization
2686 of xcoff_relocate_symtab_hook.
2690 * configure (powerpcle-*-solaris*): Add Solaris support.
2692 * config/powerpc/{solaris.m[ht],tm-solaris.h}: New files for
2697 * c-valprint.c (c_val_print): Fix printing for arrays defined
2702 Support for bi-endian remote breakpoints.
2703 * remote.c (big_break_insn, little_break_insn): New globals.
2704 (break_insn): Remove.
2705 (remote_insert_breakpoint, remote_remove_breakpoint): Use own
2706 code if REMOTE_BREAKPOINT defined, otherwise call memory
2707 breakpoint functions.
2708 * config/sh/tm-sh.h (REMOTE_BREAKPOINT): Remove.
2709 (BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT): Define.
2711 * mon960-rom.c (mon960_cmds): Remove forward decl.
2712 (mon960_load): Use current_monitor instead of mon960_cmds.
2713 (mon960_regnames): Remove backslashes from line ends.
2714 (_initialize_mon960): Fix documentation string.
2718 * symfile.h (psymbol_allocation_list): Expand comments which
2719 describe the psymbol allocation list and how each field is
2724 * breakpoint.c (delete_breakpoint): Fix bpt->val, bpt->exp
2726 (breakpoint_re_set_one): Fix b->exp, b->val, b->cond storage leaks.
2728 * infcmd.c (run_command), solib.c (locate_base): Check for
2729 target_has_execution in addition to inferior_pid, a core file
2730 from a threaded program is yielding a non-zero inferior_pid.
2732 * sparc-tdep.c (get_saved_register): Handle window registers
2733 in a dummy frame correctly.
2737 * Makefile.in (CLIBS): Move $(MMALLOC) past all other libs,
2738 so that anything that wants an allocation function not yet pulled
2739 in, will get it from mmalloc rather than a system library.
2740 * Makefile.in (INSTALLED_LIBS): Reorder to match order of CLIBS,
2741 to avoid surprising results when used.
2745 * stabsread.c: Changes and bug fixes for cfront support.
2746 Fix bug for class data members.
2747 Fix parsing bug when no base classes exist.
2748 Fix memory bug - allocate space for cplusplus specific info.
2749 Add support for static data.
2750 Add prototypes for static functions.
2751 Enhance comments to show what each function expects to parse.
2753 * stabsread.c(resolve_cont),dbxread.c(resolve_cont): Rename
2754 function to resolve_cfront_continuation.
2758 * infrun.c (wait_for_inferior): Call registers_changed when
2759 restarting the inferior to get over a nullified instruction.
2763 * dbxread.c,stabsread.c,gdbtypes.c,partial-stab.h,valops.c:
2764 Add new support for parsing cfront stabs.
2768 * infrun.c (wait_for_inferior): Move "have_waited" label
2769 outside of #ifdef conditionals. Don't trash the wait status
2770 if we get a signal and the current instruction is nullified.
2774 * Makefile.in (VERSION): Bump version number to 4.16.1.
2775 * NEWS: Update for 4.16 release.
2779 * monitor.h: Clean up comment formatting.
2780 (current_monitor): Remove decl.
2781 (LOADTYPES, LOADPROTOS, INIT_CMD, etc): Remove definitions.
2782 (push_monitor, SREC_SIZE): Remove.
2783 * monitor.c: Expand old macro into current_monitor derefs
2785 * remote-os9k.c (current_monitor): Remove definition.
2789 * corefile.c (specify_exec_file_hook): Allow arbitrary number of
2791 (call_extra_exec_file_hooks): New function.
2792 * h8300-tdep.c: Lint; add .h files to provide missing declarations,
2793 remove unused variables.
2794 (set_machine_hook): New function.
2795 (_initialize_h8300m): Initialize it.
2799 * remote-mips.c (encoding): Don't specify size, to avoid bug in
2800 SunOS native compiler.
2804 * monitor.c: Use int rather than LONGEST for values, since
2805 the formatting strings are not prepared to accept long longs.
2809 * arm-tdep.c (initialize_arm_tdep): Make apcs32 a `zinteger'.
2813 * corelow.c (add_to_thread_list): Make sure reg_sect is non-null
2814 before de-referencing it. Prevents deref of NULL pointer if core
2815 file lacks .reg section.
2816 * defs.h: Rename floatformat_{to from}_long_double to
2817 floatformat_{to from}_doublest. Get rid of FLOATFORMAT_{TO
2819 * findvar.c (extract_floating store_floating): Change all refs to
2820 FLOATFORMAT_{FROM TO}... to floatformat_{from to}_doublest.
2821 * utils.c: Change floatformat_{to from}_long_double to
2822 floatformat_{to from}_doublest cuz the new routines will use
2823 whatever size (double or long double) is appropriate.
2824 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
2825 REGISTER_CONVERT_TO_RAW): Change FLOATFORMAT... macros to
2826 floatformat... routine calls.
2830 * stabsread.c (read_type): Move handling of '@' from type
2831 number handling to handling of types proper (as emitted by gcc!).
2832 For typedefs, allocate the typedef type before reading its
2833 definition, to properly handling recursive types.
2837 * ch-exp.c (calculate_array_length): Fix prototype.
2841 * remote-nindy.c (nindy_open): Acquire more target state so that
2842 user can attach to a previously running program.
2843 * (nindy_fetch_registers nindy_store_registers): Get rid of fp
2844 conversion code. That's all handled in {extract store}_floating
2846 * utils.c (floatformat_to_double): Don't bias exponent when
2847 handling zero's, denorms or NaNs.
2848 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
2849 REGISTER_CONVERT_TO_RAW): Change to using DOUBLST and
2850 FLOATFORMAT_TO/FROM_DOUBLEST macros.
2851 * config/i960/tm-nindy960.h: Undefine
2852 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW, and
2853 REGISTER_CONVERTIBLE. These are no longer necessary now that all
2854 the magic happens in extract/store_floating.
2858 * eval.c (evaluate_subexp_standard): Report error when attempting to
2859 evaluate subscripts for types which cannot be subscripted.
2861 * valarith.c (value_x_binop, value_x_unop): Add noside parameter.
2862 Return a zero value with the return type of the member function
2863 if noside is EVAL_AVOID_SIDE_EFFECTS instead of calling the member
2865 * values.h (value_x_binop, value_x_unop): Update prototypes
2867 * eval.c (evaluate_subexp_standard): Update all callers of
2868 value_x_binop, value_x_unop accordingly.
2870 * valarith.c (value_neg, value_complement): Perform ANSI C/C++
2871 integral promotion on operands.
2875 * README: Update for 4.16 release.
2876 * configure.in (AC_CHECK_FUNCS): Also check for sbrk.
2877 * configure: Regenerate with autoconf.
2878 * config.in: Regenerate with autoheader.
2879 * main.c (main): Only use sbrk() when HAVE_SBRK is defined.
2880 * top.c (command_loop): Ditto.
2884 * defs.h: Define TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
2885 defaults for bi-endian targets. Replace function pointers for
2886 floatformat routines with macros. No need for these to be runtime
2888 * findvar.c: Get rid of floatformat function pointers. Use
2889 macros in extract_floating and store_floating.
2890 * remote-nindy.c (nindy_fetch_registers nindy_store_registers):
2891 Use floatformat macros.
2896 * configure.in (AC_CHECK_HEADERS): check for endian.h.
2897 Use AC_CHECK_TOOL to find AR & RANLIB. Add AC_PROG_AWK.
2898 Add host & target cases for i[345]86-*-gnu*.
2899 * config.in: Regenerate with autoheader.
2900 * configure: Regenerate with autoconf.
2901 * Makefile.in (AR, AWK): Set from corresponding autoconf substs.
2902 (init.c): Don't scan mig-generated files.
2903 * defs.h (endian.h): Include if HAVE_ENDIAN_H defined.
2904 * config/nm-m3.h (ATTACH_NO_WAIT): Define.
2905 * infcmd.c (attach_command): Use "#ifndef ATTACH_NO_WAIT"
2906 rather than "#ifndef MACH".
2910 * remote.c (remotewritesize): New GDB variable, controls size
2911 of memory packets sent to the target.
2915 * dcache.c: Add prototypes. Make many functions static.
2916 * (dcache_peek dcache_fetch dcache_poke): Make dcache_fetch and
2917 dcache_poke call dcache_xfer_memory directly in order to fix
2918 problems with turning off dcache. dcache_peek is now unnecessary,
2921 * defs.h: Define new macros HOST_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
2922 and TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT to specify a pointer
2923 to a struct floatformat. This allows for better handling of
2924 targets whose floating point formats differ from the host by more
2925 than just byte order.
2926 * (floatformat_to_long_double floatformat_from_long_double):
2927 Prototypes for new functions in utils.c.
2928 * (floatformat_to_doublest floatformat_from_doublest): Prototypes
2929 for pointers to floating point conversion functions. The actual
2930 function uses either double or long double if the host supports it.
2931 * findvar.c (floatformat_to_doublest floatformat_from_doublest):
2932 Initialize to point at correct function depending on HAVE_LONG_DOUBLE.
2933 * (extract_floating store_floating): Rewrite. Now, if host fp
2934 format is the same as the target, we just do a copy. Otherwise,
2935 we call floatformat_{to from}_doublest.
2936 * remote-nindy.c (nindy_xfer_inferior_memory): Change param
2937 `write' to `should_write'.
2938 * utils.c (floatformat_to_long_double
2939 floatformat_from_long_double): New routines that implement long
2940 double versions of functions in libiberty/floatformat.c.
2941 * config/i960/tm-i960.h (TARGET_LONG_DOUBLE_FORMAT): Define this for
2942 i960 extended real (80 bit) numbers.
2943 * nindy-share/nindy.c (ninMemGet ninMemPut): Return number of bytes
2944 actually read or written.
2948 * ch-valprint.c (chill_val_print): Remove call to calculate_array_length.
2949 (calculate_array_length): Move function from here ...
2951 * ch-exp.c (calculate_array_length): ... to here.
2952 (parse_primval): If we have a symbol with an array type
2953 and the length is 0, call calculate_array_length.
2957 * eval.c (evaluate_subexp_standard): In case of TYPE_CODE_SET:
2958 Add some checks for powerset compatibility.
2960 * valops.c (value_slice): Use lowbound instead of lowerbound for
2961 call to slice_range_type to get correct bounds.
2965 * Makefile.in (scm-exp.o, scm-lang.o, scm-valprint.o): Add targets and
2967 * scm-lang.c (gdb_string.h): Include.
2968 * objfiles.c (add_to_objfile_sections): Cast second arg of obstack_grow
2969 call to correct type (char *).
2970 * cp-valprint.c (cp_print_static_field): Ditto.
2971 * somsolib.c (som_solib_create_inferior_hook): Add a declaration
2972 for external find_unwind_entry function (from hppa-tdep.c).
2973 * remote-pa.c (remote_write_bytes, remote_read_bytes): Change
2974 type of second arg to "char *" to be type compatible with
2976 (remote_wait): Cast second arg to strtol to correct type.
2977 * hppa-tdep.c (compare_unwind_entries): Change argument types to
2978 "const void *" to be type compatible with qsort, and then
2979 assign to local args prior to use.
2983 * infptrace.c (kill_inferior): Remove call to "kill"; update
2988 * remote-e7000.c: don't append :23 to target port if __WIN32__
2989 is defined (it's WinGDB).
2994 * gnu-nat.c, gnu-nat.h, msg.defs, exc_request.defs, i386gnu-nat.c,
2995 msg_reply.defs, notify.defs, process_reply.defs, reply_mig_hack.awk,
2996 config/nm-gnu.h, config/i386/{i386gnu.mh, i386gnu.mt, nm-gnu.h,
2997 m-i386gnu.h, xm-i386gnu.h}: New files for GNU hurd.
3001 * configure.in (case host): Add i386sco5 host.
3002 * configure: Regenerate.
3005 Add support for SCO OpenServer 5 (a.k.a. 3.2v5*) This
3006 target is an SVR3.2 with COFF, ELF, and shared libes, but
3008 * config/i386/i386sco5.mh: New file.
3009 * config/i386/nm-i386sco5.h: New file.
3013 * bcache.c (bcache): When size of chunk to cache is exactly equal to
3014 BCACHE_MAXLENGTH, stash chunk as unique copy.
3018 * symfile.c (INLINE_ADD_PSYMBOL): Remove ifdef.
3019 (add_psymbol_to_list): Add an arg for passing CORE_ADDR values and
3020 use it, rather than calling add_psymbol_addr_to_list.
3021 (add_psymbol_addr_to_list): Delete.
3022 (add_psymbol_to_list): Make psymbol static to avoid random data in
3023 gaps due to alignment of structure members.
3024 * symfile.h (INLINE_ADD_PSYMBOL, ADD_PSYMBOL_TO_LIST,
3025 ADD_PSYMBOL_ADDR_TO_LIST): Remove. Real world tests show no
3026 performance improvements by inlining via complicated macros and
3027 they just make gdb larger and harder to maintain.
3028 * dwarfread.c (add_enum_psymbol): Replace ADD_PSYMBOL_TO_LIST
3029 and/or ADD_PSYMBOL_ADDR_TO_LIST macro(s) with call to
3030 add_psymbol_to_list with appropriate long or CORE_ADDR args.
3031 (add_partial_symbol): Ditto.
3032 * partial-stab.h: Ditto.
3033 * os9kread.c (read_os9k_psymtab): Ditto
3034 * mdebugread.c (parse_partial_symbols): Ditto.
3035 (handle_psymbol_enumerators): Ditto.
3036 (demangle.h): Include.
3037 * hpread.c (hpread_build_psymtabs): Ditto.
3038 (hpread_build_psymtabs): Ditto.
3039 (demangle.h): Include
3041 start-sanitize-gdbtk
3044 * gdbtk.c (running_now): New global variable.
3045 (gdb_cmd): Test it before executing any command.
3046 (gdbtk_call_command): Set it when inferior is running.
3047 * gdbtk.tcl (gdbtk_tcl_busy, gdbtk_tcl_idle): Enable and
3048 disable interaction with command window's text appropriately.
3052 * gdbtk.c (SIOCSPGRP, linux): If on Linux, undef SIOCSPGRP, since
3053 some versions of the kernel don't support it.
3058 * configure.in: Check for setpgid function.
3059 * config.in: Regenerate with autoheader.
3060 * configure: Regenerate with autoconf.
3061 * inflow.c (_initialize_inflow): Only try to use _SC_JOB_CONTROL
3062 if it is actually defined.
3063 (gdb_setpgid): Use HAVE_SETPGID.
3064 * ch-exp.c: Change include of <string.h> to "gdb_string.h".
3065 * c-exp.y, f-exp.y, m2-exp.y: Ditto.
3066 * c-exp.y, serial.c: Include <ctype.h>.
3067 * config/m68k/nm-news.h: Add typedef for pid_t which is
3068 apparently missing from <sys/types.h>. Enclose entire
3069 file in NM_NEWS_H ifndef and define when included.
3070 * config/mips/nm-news-mips.h: Ditto.
3071 * config/m68k/tm-m68k.h (REGISTER_CONVERT_TO_VIRTUAL,
3072 REGISTER_CONVERT_TO_RAW): Change name of temporary variable.
3076 * arm-xdep.c: Move native-specific code to here from arm-tdep.c.
3077 * arm-tdep.c (arm_apcs_32): New global.
3078 (arm_addr_bits_remove, arm_saved_pc_after_call,
3079 arm_push_dummy_frame, arm_pop_frame): New functions.
3080 (arm_skip_prologue): Updated version from Richard Earnshaw.
3081 (_initialize_arm_tdep): Add set/show "apcs32".
3082 * config/arm/tm-arm.h (ADDR_BITS_REMOVE): Call
3083 arm_addr_bits_remove.
3084 (SAVED_PC_AFTER_CALL): Call arm_saved_pc_after_call.
3085 (frame_find_saved_regs): Declare properly.
3086 (PUSH_DUMMY_FRAME): Call arm_push_dummy_frame.
3087 (POP_FRAME): Call arm_pop_frame, use ADDR_BITS_REMOVE instead of
3089 * config/arm/nm-arm.h: New file.
3090 * config/arm/xm-arm.h (KERNEL_U_ADDR, FETCH_INFERIOR_REGISTERS):
3091 Move definitions to nm-arm.h.
3092 * config/arm/arm.mh (NAT_FILE): Define.
3094 * symfile.c (generic_load): Initialize data_count properly.
3098 * symmisc.c (print_objfile_statistics): Print memory used by
3099 psymbol cache obstack.
3103 * symfile.c (report_transfer_performance): New function.
3104 (generic_load): Call it to report transfer rate.
3105 * remote-e7000.c (e7000_load): Ditto.
3109 * mpw-make.sed: Change references to config.h to be in objdir,
3110 edit out rules to rebuild config.h.
3114 * hppa-tdep.c (hppa_pop_frame): Call clear_proceed_status before
3119 * hppah-nat.c (store_inferior_registers, store_inferior_registers,
3120 fetch_register, child_xfer_memory): Use call_ptrace function supplied
3121 by infptrace.c rather than calling ptrace directly.
3125 * mon960-rom.c: Cleanups and elimination of unused code,
3126 clarify documentation string.
3127 (mon960_serial, mon960_ttyname): Remove.
3128 * config/i960/tm-mon960.h (ADDITIONAL_OPTIONS,
3129 ADDITIONAL_OPTION_CASES, ADDITIONAL_OPTION_HELP): Remove.
3133 * configure.in: Check whether printf family supports printing
3134 long doubles or not and define PRINTF_HAS_LONG_DOUBLE if so.
3135 * acconfig.h: Provide default undef for PRINTF_HAS_LONG_DOUBLE.
3136 * configure: Regenerate.
3137 * valprint.c (print_floating): Use PRINTF_HAS_LONG_DOUBLE.
3138 * c-exp.y (parse_number): Use PRINTF_HAS_LONG_DOUBLE.
3139 * configure.in: Fix have_gregset and have_fpregset autoconf
3140 variable names so that they match the pattern required to
3145 * core-aout.c (fetch_core_registers): Cast core_reg_size to int
3146 before testing against reg_ptr.
3147 * eval.c (evaluate_subexp_standard): Cast type of
3148 TYPE_FN_FIELD_VOFFSET to int.
3149 * findvar.c (extract_signed_integer, extract_unsigned_integer,
3150 extract_long_unsigned_integer): Cast type of sizeof to int.
3151 * values.c (unpack_field_as_long, modify_field): Ditto.
3152 * valops.c (value_assign, call_function_by_hand): Ditto.
3153 * infcmd.c (do_registers_info): Ditto.
3154 * ser-tcp.c (tcp_open): Ditto.
3155 * remote.c (putpkt): Ditto.
3156 * dcache.c (dcache_peek): Ditto.
3157 * dcache.c (dcache_poke): Ditto.
3158 * m2-exp.y (yylex): Ditto.
3159 * gnu-regex.c (re_match_2): Ditto.
3160 * f-lang.c (ADD_BF_SYMNUM, saved_bf_list_end, tmp_bf_ptr): Ifdef
3161 out unused macro definition and variables.
3162 * inftarg.c (proc_wait): Move from main.c to here, and make static.
3163 * valprint.c (val_print_string): Change bufsize from int to unsigned.
3164 * main.c (wait.h): Include.
3165 * top.c (command_line_input): Remove unused variable "c".
3166 * f-typeprint.c (f_type_print_varspec_prefix): Add missing enum
3167 value TYPE_CODE_TYPEDEF to switch statement.
3168 (f_type_print_varspec_suffix): Add missing enum value
3169 TYPE_CODE_TYPEDEF to switch statement.
3170 * ch-exp.c (parse_primval): Add remaining enumeration values to
3171 switch statement, with no specific action.
3172 (ch_lex): Add LOC_UNRESOLVED in switch statement.
3173 (pushback_token): Ifdef out, since code using it is ifdef'd out.
3174 * stabsread.c (cleanup_undefined_types): Remove unused label
3176 * objfiles.h (print_symbol_bcache_statistics): Add prototype.
3177 * maint.c (objfiles.h): Include.
3178 (maintenance_print_statistics): Remove unused variable "temp".
3179 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
3180 unused variable "found_file_symbol".
3181 * m2-exp.y (yylex): Add LOC_UNRESOLVED case to switch.
3182 * language.c (lang_bool_type): Use existing function local type
3183 variable rather than create block local variables.
3184 * solib.c (disable_break): Enclose in ifndef SVR4_SHARED_LIBS.
3185 * infptrace.c (wait.h, command.h): Include.
3186 * ser-tcp.c (gdb_string.h): Include
3187 * i386-tdep.c (codestream_seek): Change "place" to CORE_ADDR.
3188 (i386_get_frame_setup): Change "pc" from int to CORE_ADDR.
3189 * command.c (complete_on_enum): Make assignment used as truth value
3190 explictly check against NULL.
3192 * infrun.c (wait_for_inferior): Ifdef out prologue_pc since code
3193 that uses it is ifdef'd out.
3194 * parser-defs.h: Add prototype for write_dollar_variable.
3195 * infrun.c: Add prototype for write_pc_pid.
3196 * breakpoint.h: Add prototype for re_enable_breakpoints_in_shlibs.
3197 * symmisc.c (bcache.h): Include.
3198 * bcache.h: Add prototype for print_bcache_statistics.
3199 * symfile.c: Include <time.h>.
3200 * printcmd.c (print_scalar_formatted): Change len to unsigned int.
3201 * valarith.c (value_equal): Cast result of TYPE_LENGTH to int.
3202 * valarith.c (value_binop): Change result_len, promoted_len1,
3203 and promoted_len2 to unsigned int.
3204 * valarith.c (value_subscripted_rvalue): Change elt_offs and
3205 elt_size to unsigned int.
3206 * valops.c (value_array): Change typelength to unsigned int.
3207 (destructor_name_p): Change len to unsigned int.
3208 * scm-lang.h (scm_parse): Add prototype for scm_unpack.
3209 * symfile.c (decrement_reading_symtab): Change return type to void.
3210 * valarith.c (value_subscript): Remove unused variable "word".
3211 (value_subscript): Remove unused variable "tint".
3212 * valops.c (auto_abandon): Ifdef out, since code using it is also
3214 * eval.c (init_array_element): Remove unused variable "val".
3215 * Makefile.in (values.o): Depends on scm-lang.h.
3216 (command.o): Depends upon wait_h.
3217 (ser-tcp.o): Depends upon gdb_string.h.
3218 (infptrace.o): Depends upon wait_h and command_h.
3219 (maint.o): Depends on objfiles.h and symfile.h.
3220 * values.c (allocate_repeat_value): Remove unused variable
3222 (scm-lang.h): Include.
3223 * breakpoint.c (create_longjmp_breakpoint): Enclose in
3224 GET_LONGJMP_TARGET define, unused otherwise.
3225 * config/i386/nm-linux.h: Add prototypes for i386_insert_watchpoint,
3226 i386_remove_watchpoint and i386_stopped_by_watchpoint.
3230 * configure.in (sparc64-*-solaris2*): Delete.
3231 Stick with sparc-*-solaris2*.
3232 * configure: Regenerated.
3236 * valops.c (value_assign): Make copy of internal variable value
3237 before returning it as a new value, since it is owned by the
3238 internal variable and will be freed along with it.
3242 * From Peter Schauer.
3243 * breakpoint.c (breakpoint_re_set_one): Keep temporary
3244 breakpoints bp_until, bp_finish, bp_watchpoint_cope, bp_call_dummy
3245 and bp_step_resume in case breakpoint_re_set_one is called due
3246 to a step over a dlopen call.
3247 * infrun.c (wait_for_inferior): Always remove breakpoints from
3248 inferior in BPSTAT_WHAT_CHECK_SHLIBS case.
3252 * config/mips/tm-mips.h (COERCE_FLOAT_TO_DOUBLE): Only prefer
3253 non-prototyped case over prototyped case for C.
3254 * config/pa/tm-hppa.h (COERCE_FLOAT_TO_DOUBLE): Ditto.
3258 * os9kread.c (os9k_process_one_symbol): Note nonportable
3259 assumption that an int can hold a char *.
3261 * bcache.h (struct hashlink): Wrap data[] inside union with
3262 double to force longest alignment.
3263 (BCACHE_DATA): New macro to access data[].
3264 (BCACHE_ALIGNMENT): New macro to get offset to data[].
3265 * bcache.c (lookup_cache, bcache): Use BCACHE_DATA to get
3266 address of cached data. Use BCACHE_ALIGNMENT to compute
3267 amount of space to allocate for each hashlink struct.
3271 * ch-lang.c (evaluate_subexp_chill): Fix typo.
3275 * Makefile.in (VERSION): Bump version to 4.15.3
3279 * config.in: Rename from config.h.in.
3280 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
3281 Change CONFIG_HEADERS test in AC_OUTPUT accordingly.
3282 * configure: Rebuild.
3283 * Makefile.in (stamp-h): Depend upon config.in, not config.h.in.
3284 Set CONFIG_HEADERS to config.h:config.in.
3288 * partial-stab.h (case N_ENDM): Finish current partial symbol
3289 table for Solaris 2 cc.
3293 * rs6000-nat.c (exec_one_dummy_insn): Don't clobber the
3294 PC in the registers array. From Peter Schauer.
3298 * symfile.c (reread_symbols): Reinitialize bcache struct
3299 members to zero using memset. Also use memset to reinit
3300 global_psymbols and static_psymbols, rather than explicitly
3301 resetting each structure member.
3305 * configure.in: Add fragment to create stamp-h.
3308 * configure.in (AC_CHECK_HEADERS): Check for link.h.
3309 * configure: Regenerate with autoconf.
3310 * config.h.in: Regenerate with autoheader.
3311 * config/i386/nm-linux.h: Include solib.h only if HAVE_LINK_H
3313 * solib.c: Exclude most of the code if HAVE_LINK_H is not defined.
3314 * config/i386/linux.mh: Reinstate XM_CLIBS, it is needed for
3315 older a.out based systems.
3319 * config.h.in: New file.
3320 * acconfig.h: New file, for autoheader.
3321 * configure.in (AC_CONFIG_HEADER): Add, generate config.h.
3322 * configure: Regenerate.
3323 * Makefile.in (defs_h): Add config.h
3324 (distclean): Remove config.h and stamp-h during distclean.
3325 (config.h, stamp-h): New targets to remake config.h when necessary.
3326 * defs.h (config.h): Include before any other includes or defines.
3327 * i386-tdep.c (gdb_string.h): Move include after include of defs.h.
3328 * i386v4-nat.c (defs.h): Include before testing HAVE_SYS_PROCFS_H.
3333 * Makefile.in (INSTALLED_LIBS): Make sure that @LIBS@ will not
3334 result in an empty line, to work around a bug in native Ultrix 4.4
3335 and OSF/1-3.2C make.
3339 * configure.in: Add gdbserver to configdirs under linux.
3340 * configure: Regenerate.
3344 * config/i386/nm-nbsd.h (FLOAT_INFO): Comment out.
3345 * config/i386/tm-nbsd.h (NUM_REGS): Define.
3349 * solib.c (solib_break_names): Add _r_debug_state for
3350 vanilla SVR4 implementations. From Peter Schauer.
3354 * mon960-rom.c: New file; support mon960 rom monitor on i960.
3355 * monitor.c (monitor_debug): Change remotedebug to buffer strings.
3356 * monitor.c (monitor_open): Add test for flag MO_NO_ECHO_ON_OPEN before
3357 epecting prompt and echo during open.
3358 * monitor.c (monitor_stop): Add test for flag MO_SEND_BREAK_ON_OPEN to
3359 determine if break should be sent as stop command.
3360 * monitor.h: Add flags MO_NO_ECHO_ON_OPEN and MO_SEND_BREAK_ON_OPEN.
3361 * i960-tdep.c (mon960_frame_chain_valid): New function for getting
3362 stack frame on mon960.
3363 * Makefile.in: Add mon960 files.
3364 * configure.in: Changed i960-*-coff* and i960-*-elf* to target mon960;
3365 added i960-nindy-coff* and i960-nindy-elf* for target nindy.
3366 * configure: Regenerated.
3367 * config/i960/mon960.mt, config/i960/tm-mon960.h: New files;
3368 support mon960 rom monitor on i960.
3372 With Michael Snyder:
3373 * i386-tdep.c (skip_trampoline_code): Fix strncmp length.
3374 * win32-nat.c (CHECK, DEBUG*, debug_*): New.
3375 (handle_load_dll): Don't reload symbols.
3376 (handle_exception): Use the DEBUG_* names.
3377 (child_wait): Add DEBUG_* code.
3378 (_initialize_inftarg): Add new commands to set debug_ names.
3382 * From Peter Schauer:
3383 * breakpoint.c (insert_breakpoints): Use ALL_BREAKPOINTS_SAFE.
3384 (bpstat_stop_status): Likewise.
3385 (remove_solib_event_breakpoints): Likewise.
3386 (clear_momentary_breakpoints): Likewise.
3387 (re_enable_breakpoints_in_shlibs): Don't reenable a breakpoint
3388 if we still can't read the memory for that breakpoint.
3389 (mention): Add bp_shlib_event case to keep gcc quiet.
3393 * breakpoint.h (enum enable): New enum shlib_disabled for
3394 shared library breakpoints that have been temporarily disabled.
3395 * breakpoint.c: Handle temporarily disabled shared library
3396 breakpoints like disabled breakpoints in most places.
3397 (insert_breakpoints): Use shlib_disabled to indicate
3398 that an unsettable breakpoint is only temporarily disabled.
3399 (re_enable_breakpoints_in_shlibs): New function.
3400 * corelow.c (solib_add_stub): After adding shared libraries,
3401 try to reenable any temporarily disabled breakpoints.
3402 * infcmd.c (attach_command): Likewise.
3403 * infrun.c (wait_for_inferior): Likewise.
3407 * defs.h (extract_long_unsigned_integer): Declare.
3408 * findvar.c (extract_long_unsigned_integer): New function.
3409 * printcmd.c (print_scalar_formatted): Use it.
3410 * valprint.c (val_print_type_code_int): Likewise.
3414 * infcmd.c (do_registers_info): Ignore anonymous registers.
3415 * sh-tdep.c (set processor): New command to set specific
3417 (sh_reg_names, sh3_reg_names): Arrays of register names for
3418 SH and SH3 processors.
3419 (sh_set_processor_type): New function.
3420 * sh3-rom.c (sh3_open): Call it.
3421 (sh3_regname): Add names of all the bank registers.
3422 (sh3_supply_register): Clean up formatting.
3423 * config/sh/tm-sh.h (NUM_REGS, NUM_REALREGS): Increase to include
3425 (REGISTER_NAMES): Add names of bank registers.
3426 (FP15_REGNUM): Define.
3427 (REGISTER_VIRTUAL_TYPE): Use it.
3428 * monitor.c: Clean up some comments.
3432 * i386b-nat.c: Revert part of Mar 5 change. FreeBSD collapsed the
3433 s* and t* symbols too.
3437 * symfile.c (generic_load): Avoid division by zero.
3441 * breakpoint.c (bfd_lookup_symbol): Provide for all SVR4 systems,
3442 not just those with HANDLE_SVR4_EXEC_EMULATORS.
3445 * breakpoint.c (internal_breakpoint_number): Move to file scope.
3446 (create_solib_event_breakpoint): Use an internal breakpoint number.
3450 * valarith.c (value_in): Change builtin_type_chill_bool to
3455 * ch-exp.c (parse_primval): Handle CARD, MAX, MIN.
3456 (match_string_literal): Handle control sequence.
3457 (match_character_literal): Deto.
3459 * ch-lang.c (chill_printchar): Change formating of nonprintable
3460 characters from C'xx' to ^(num).
3461 (chill_printstr): Deto.
3462 (value_chill_card, value_chill_max_min): New functions to process
3463 Chill's CARD, MAX, MIN.
3464 (evaluate_subexp_chill): Process UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN.
3466 * expression.h (exp_opcode): Add UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN
3467 for Chill's CARD, MAX, MIN.
3469 * valarith.c (value_in): Add processing of TYPE_CODE_RANGE
3470 and change return type from builtin_type_int to
3471 builtin_type_chill_bool.
3475 * config/nm-nbsd.h (link_object, lo_name, etc): Move to here
3476 from config/nm-nbsd.h.
3477 * config/sparc/nm-nbsd.h (regs, fp_status, etc): Move to here
3478 from config/sparc/tm-nbsd.h.
3480 * config/m68k/nm-hp300hpux.h (FIVE_ARG_PTRACE): Define here
3481 instead of in config/m68k/xm-hp300hpux.h.
3485 * i386b-nat.c, m68knbsd-nat.c (fetch_core_registers): Provide
3486 implementation for NetBSD systems.
3490 * valarith.c (binop_user_defined_p): Return 0 for BINOP_CONCAT.
3491 (value_concat): Handle varying strings (add COERCE_VARYING_ARRAY).
3493 * ch-lang.c (evaluate_subexp_chill case MULTI_SUBSCRIPT): Error
3494 if "function" is pointer to non-function.
3498 * top.c (print_gdb_version): Update copyright year.
3503 * infrun.c (wait_for_inferior): Remove breakpoints and
3504 switch terminal settings before calling SOLIB_ADD.
3505 * solib.c (enable_break, SVR4 variant): Don't map in symbols
3506 for the dynamic linker, the namespace pollution causes real
3511 * remote-mips.c (common_breakpoint): Explicitly terminate the
3517 * remote.c (remote_detach): Send a command 'D' to the target
3518 when detaching, update the function's comments.
3522 * gnu-nat.c (thread_cmd_list): New declaration.
3523 (parse_int_arg): New function.
3527 * gnu-nat.h (struct proc): Add DETACH_SC field.
3528 * gnu-nat.c (make_proc): Set DETACH_SC.
3529 (struct inf): Add DETACH_SC & DEFAULT_THREAD_DETACH_SC fields.
3530 (make_inf): Set DETACH_SC & DEFAULT_THREAD_DETACH_SC fields.
3531 (add_thread_commands): Add set/show for detach-suspend-count.
3532 Add takeover-suspend-count cmd.
3533 (inf_detach): Set suspend counts to the detach SC, not 0.
3534 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd,
3535 set_task_detach_sc_cmd, show_task_detach_sc_cmd,
3536 set_thread_default_thread_detach_sc_cmd,
3537 show_thread_default_thread_detach_sc_cmd): New functions.
3538 (show_task_cmd): Also show detach-suspend-count values.
3539 (thread_takeover_sc_cmd): New function.
3543 * gnu-nat.c (show_thread_run_cmd): Actually print state.
3547 * gnu-nat.c (inf_signal): Make unforwardable exceptions an error.
3551 * gnu-nat.c (inf_validate_stopped): proc_getprocinfo takes a
3552 pointer to the flags now, not the flags themselves.
3556 * gnu-nat.c (gnu_wait): Print debugging msgs for pending execs.
3557 (gnu_create_inferior): Check return from ptrace.
3561 * gnu-nat.h (struct proc): Add DEAD field.
3562 * gnu-nat.c (make_proc): Initialize DEAD.
3563 (inf_set_traced, inf_validate_task_sc, inf_validate_procs: Frob it.
3564 (gnu_wait): Only abort for 0 threads if the task isn't dead.
3568 * gnu-nat.c (inf_signal): Pass SIGCODE when posting a signal.
3572 * gnu-nat.c (S_proc_wait_reply): Add SIGCODE argument.
3573 (inf_set_traced): Only give no-signal-thread error message if
3574 turning *on* tracing.
3578 * gnu-nat.c (inf_validate_procs): If INF has no threads, always
3579 set inf->threads_up_to_date to 0.
3580 (inf_signal): Pass in new SIGCODE argument to msg_sig_post_untraced.
3581 (gnu_wait): Pass in new TIMEOUT arg to interrupt_operation.
3582 (proc_update_sc): Cast thread state arg to thread_set_state.
3583 (proc_get_state): Cast thread state arg to thread_get_state.
3584 (inf_validate_task_sc): Cast task_basic_info arg to task_info.
3585 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Call
3586 inf_update_procs before we lookup the thread.
3587 * config/i386/i386gnu.mh (MH_CFLAGS): New variable.
3591 * gnu-nat.c (gnu_kill_inferior): Use inf_set_task to clear the task.
3595 * gnu-nat.c (inf_set_traced): Use msg_set_init_int with
3596 INIT_TRACEMASK instead of setting the exec flags.
3600 * gnu-nat.c (inf_validate_procs): Don't clear INF->task if we find
3601 the task's died, so others have a chance at it.
3602 (gnu_resume): When single-stepping a single thread, given an error
3603 if there is no such thread. When single-stepping one but running
3604 the others, just given a warning and still run all the threads.
3605 (gnu_wait): If there seem to be no threads, look harder, and
3606 signal an error if there really aren't any.
3607 (gnu_attach): Reset thread numbering to 0.
3609 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Give
3610 thread name in warning messages.
3612 * gnu-nat.c (active_inf): New function.
3613 (show_sig_thread_cmd, show_stopped_cmd): Use it.
3614 (info_port_rights, info_send_rights_cmd, info_port_sets_cmd,
3615 info_recv_rights_cmd, info_port_rights_cmd, info_port_rights_cmd):
3617 (add_task_commands): Add new port-right info commands.
3621 * gnu-nat.c (gnu_wait): Instead of _hurd_intr_rpc_mach_msg, just
3622 use mach_msg with MACH_RCV_INTERRUPT.
3623 (set_noninvasive_cmd): New function.
3624 (add_task_commands): Add command entry for `set noninvasive'.
3628 * gnu-nat.c (gnu_read_inferior): Use hurd_safe_memmove, not safe_bcopy.
3629 (safe_bcopy): Function removed.
3633 * gnu-nat.c (proc_update_sc): Assert only threads can have state.
3634 (make_proc): Initialize state_valid & state_changed fields.
3638 * reply_mig_hack.awk: New file.
3642 * breakpoint.c (breakpoint_1): Print breakpoint thread field.
3644 * lynx-nat.c (child_wait): Return TARGET_WAITKIND_SPURIOUS for new
3649 * target.c (debug_to_check_threads): New function.
3651 * inflow.c (terminal_init_inferior_with_pgrp): New function.
3652 (terminal_init_inferior): Call terminal_init_inferior_with_pgrp.
3653 * inferior.h (terminal_init_inferior_with_pgrp): New declaration,
3654 but only if PROCESS_GROUP_TYPE is defined.
3658 * target.c (debug_to_thread_alive): Pass through the return value.
3662 * target.c (signals, target_signal_from_host, target_signal_to_host):
3663 Add mach exceptions.
3664 * target.h (enum target_signal): Add mach exceptions.
3668 * gnu-nat.c: New file: gnu native backend.
3669 * i386gnu-nat.c: New file: i386-specific part of gnu native backend.
3670 * gnu-nat.h: New file.
3671 * config/nm-gnu.h: New file.
3672 * config/tm-i386gnu.h: New file.
3673 * config/xm-i386gnu.h: New file.
3674 * config/i386/i386gnu.mh: New file.
3675 * config/i386/i386gnu.mt: New file.
3679 * Makefile.in (VERSION): Bump version to 4.15.2 to establish
3680 baseline for gdb 4.16 rerelease testing.
3684 * somsolib.c (som_solib_create_inferior_hook): Before returning
3685 call clear_symtab_users.
3689 * remote-e7000.c (e7000_open): Delete all breakpoints when
3690 connecting to e7000. Change connect message to allow use of
3691 monitor.exp in test suite.
3692 * (e7000_load): Print transfer rate of download.
3693 * symfile.c (generic_load): Print transfer rate of download.
3697 * configure.in (mips*-*-vxworks*): New config.
3698 * configure: Regenerated.
3700 * config/mips/vxmips.mt, config/mips/tm-vxmips.h: New files.
3701 * remote-vxmips.c (vx_convert_to_virtual, vx_convert_from_virtual):
3706 * partial-stab.h (case N_FUN): Function symbols generated
3707 by SPARCworks cc have a meaningless zero value, do not update
3708 pst->textlow if the function symbol value is zero.
3710 * stabsread.c (define_symbol): Initialize SYMBOL_TYPE field
3711 for function prototype declaration symbols.
3715 * remote-e7000.c (e7000_load): New routine to download via the
3717 * (e7000_wait): Don't backup PC when we hit a breakpoint.
3718 Apparantly new sh2 pods get this right...
3719 * (e7000_ops): Add call to e7000_load.
3723 * config/m68k/{nbsd.mh,nbsd.mt,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h},
3724 m68knbsd-nat.c: New files, support for NetBSD/m68k.
3726 * configure.in (m68k-*-netbsd*): New config.
3727 * configure: Regenerated.
3731 * standalone.c (open, _initialize_standalone): Fix obvious typos
3736 * solib.c (solib_create_inferior_hook): Fix thinko.
3740 * solib.c (solib_break_names): Define for Solaris and Linux.
3741 (enable_break): For SVR4 systems, first try to use the debugger
3742 interfaces in the dynamic linker to track shared library events
3743 as they happen, then fall back to BKPT_AT_SYMBOL code. Convert
3744 BKPT_AT_SYMBOL code to use shared library event breakpoints.
3745 (solib_create_inferior_hook): Simplify BKPT_AT_SYMBOL code,
3746 it no longer needs to restart/wait on the inferior.
3747 * symfile.c (find_lowest_section): No longer static.
3748 * symfile.h (find_lowest_section): Corresponding changes.
3752 * valops.c (COERCE_FLOAT_TO_DOUBLE): Define default value.
3753 (value_arg_coerce): Use COERCE_FLOAT_TO_DOUBLE.
3754 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Define to 1.
3755 * config/mips/tm-mips.h: Ditto.
3756 * config/pa/tm-hppa.h: Ditto.
3757 * config/rs6000/tm-rs6000.h: Ditto.
3758 * config/sparc/tm-sparc.h: Ditto.
3762 * config/{i386,ns32k}/nbsd.mh (NATDEPFILES): Remove core-aout.o.
3764 * config/nm-nbsd.h (FETCH_INFERIOR_REGISTERS): Defined.
3765 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
3766 #ifdef'd out definitions --- Causes serious gdb failures on
3767 the i386. Need to investigate further before enabling.
3769 * i386b-nat.c (fetch_inferior_registers, store_inferior_registers,
3770 fetch_core_registers): New functions. These functions are defined
3771 if FETCH_INFERIOR_REGISTERS is set. Registers are fetched/stored
3772 with ptrace PT_GETREGS/PT_SETREGS.
3776 * findvar.c (extract_floating store_floating): Replace `long
3777 double' with `DOUBLEST'.
3781 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
3786 * symtab.h (looup_minimal_symbol_solib_trampoline): Declare.
3788 * breakpoint.h (remove_solib_event_breakpoints): Declare.
3789 * breakpoint.c (remove_solib_event_breakpoints): New function.
3790 * somsolib.c (solib_create_inferior_hook): Remove all solib event
3791 breakpoints before inserting any new ones. Use a solib event
3792 breakpoint for the breakpoint at "_start".
3793 Remove extraneous "\n" from calls to warning.
3795 * breakpoint.c (breakpoint_1): Add missing "sigtramp" to bptypes
3800 * dwarfread.c (add_partial_symbol): Use ADD_PSYMBOL_ADDR_TO_LIST
3801 for CORE_ADDR values.
3802 (new_symbol): Use SYMBOL_VALUE_ADDRESS for CORE_ADDR values.
3803 * symfile.h (add_psymbol_{,addr}to_list): Add prototypes.
3807 * mipsread.c (mipscoff_symfile_read): Unconditionally add
3808 alpha coff dynamic symbols for all symbol files. Makes skipping
3809 over the trampoline code work when stepping from a function in a
3810 shared library into a function in a different shared library.
3814 * config/sparc/tm-sparc.h: Define PS_FLAG_CARRY. Define
3815 RETURN_VALUE_ON_STACK to return long doubles on the stack.
3819 * Makefile.in (ch-exp.o): Add dependencies.
3820 (various): Add gdb_string.h to dependencies that need it.
3824 * symmisc.c (print_symbol_bcache_statistics): Update description for
3825 printing byte cache statistics.
3829 * Add native support for long double data type.
3830 * c-exp.y (%union): Change dval to typed_val_float. Use DOUBLEST
3831 to store actual data. Change types of INT and FLOAT tokens to
3832 typed_val_int and typed_val_float respectively. Create new token
3833 DOUBLE_KEYWORD to specify the string `double'. Make production
3834 for FLOAT use type determined by parse_number. Add production for
3835 "long double" data type.
3836 * (parse_number): Use sscanf to parse numbers as float, double or
3837 long double depending upon the type of typed_val_float.dval. Also
3838 allow user to specify `f' or `l' suffix to explicitly specify
3839 float or long double constants. Change typed_val to
3841 * (yylex): Change typed_val to typed_val_int. Also, scan for
3843 * coffread.c (decode_base_type): Add support for T_LNGDBL basic
3845 * configure, configure.in: Add check for long double support in
3847 * defs.h: Define DOUBLEST appropriatly depending on whether
3848 HAVE_LONG_DOUBLE (from autoconf) is defined. Also, fix prototypes
3849 for functions that handle this type.
3850 * expression.h (union exp_element): doubleconst is now type
3852 * m2-exp.y f-exp.y (%union): dval becomes type DOUBLEST.
3853 * findvar.c (extract_floating): Make return value be DOUBLEST.
3854 Also, add support for numbers with size of long double.
3855 * (store_floating): Arg `val' is now type DOUBLEST. Handle all
3857 * parser-defs.h parse.c (write_exp_elt_dblcst): Arg expelt is now
3859 * valarith.c (value_binop): Change temp variables v1, v2 and v to
3860 type DOUBLEST. Coerce type of result to long double if either op
3862 * valops.c (value_arg_coerce): If argument type is bigger than
3863 double, coerce to long double.
3864 * (call_function_by_hand): If REG_STRUCT_HAS_ADDR is defined, and
3865 arg type is float and > 8 bytes, then use pointer-to-object
3866 calling conventions.
3867 * valprint.c (print_floating): Arg doub is now type DOUBLEST.
3868 Use appropriate format and precision to print out floating point
3870 * value.h: Fixup prototypes for value_as_double,
3871 value_from_double, and unpack_double to use DOUBLEST.
3872 * values.c (record_latest_value): Remove check for invalid
3873 floats. Allow history to store them so that people may examine
3874 them in hex if they want.
3875 * (value_as_double unpack_double): Change return value to DOUBLEST.
3876 * (value_from_double): Arg `num' is now DOUBLEST.
3877 * (using_struct_return): Use RETURN_VALUE_ON_STACK macro (target
3878 specific) to expect certain types to always be returned on the stack.
3882 * bcache.c, bcache.h: New files to implement a byte cache.
3883 * Makefile.in (SFILES): Add bcache.c.
3884 (symtab_h): Add bcache.h.
3885 (HFILES_NO_SRCDIR): add bcache.h
3886 (COMMON_OBJS): Add bcache.o
3887 (bcache.o): New target.
3888 * dbxread.c (start_psymtab): Make global_syms & static_syms
3889 type "partial_symbol **".
3890 * hpread.c (hpread_start_symtab): Ditto.
3891 * os9kread.c (os9k_start_psymtab): Ditto.
3892 * stabsread.h (start_psymtab): Ditto.
3893 * {symfile.c, symfile.h} (start_psymtab_common): Ditto.
3894 * maint.c (maintenance_print_statistics): Call
3895 print_symbol_bcache_statistics.
3896 * objfiles.c (allocate_objfile): Initialize psymbol bcache malloc
3898 * solib.c (allocate_rt_common_objfile): Ditto.
3899 * symfile.c (reread_symbols): Ditto.
3900 (free_objfile): Free psymbol bcache when objfile is freed.
3901 (objfile_relocate): Use new indirect psymbol pointers.
3902 * objfiles.h (struct objfile): Add psymbol cache.
3903 * symfile.c (compare_psymbols): Now passed pointers to pointers to
3905 (reread_symbols): Free psymbol bcache when freeing other objfile
3907 (add_psymbol_to_list, add_psymbol_addr_to_list): Initialize new
3908 psymbol using the psymbol bcache.
3909 (init_psymbol_list): Psymbol lists now contain pointers rather than
3910 the actual psymbols.
3911 * symfile.h (psymbol_allocation_list): Psymbol lists now dynamically
3912 grown arrays of pointers.
3913 (ADD_PSYMBOL_VT_TO_LIST): Initialize new symbol using the psymbol
3915 * symmisc.c (print_partial_symbols): Now takes pointer to pointer
3917 (print_symbol_bcache_statistics): New function to print per objfile
3919 (print_partial_symbol, print_partial_symbols,
3920 maintenance_check_symtabs, extend_psymbol_list):
3921 Account for change to pointer to pointer to partial symbol.
3922 * symtab.c (find_pc_psymbol, lookup_partial_symbol, decode_line_2,
3923 make_symbol_completion_list):
3924 Account for change to pointer to pointer to partial symbol.
3925 * symtab.h (bcache.h): Include.
3926 * xcoffread.c (xcoff_start_psymtab): Make global_syms & static_syms
3927 type "partial_symbol **".
3931 * dwarfread.c (free_utypes): New function.
3932 (read_file_scope): Call free_utypes as cleanup, rather than just
3933 freeing the utypes pointer.
3937 * demangle.c (is_cplus_marker): New function, checks if a
3938 character is one of the commonly used C++ marker characters.
3939 * defs.h (is_cplus_marker): Add prototype.
3940 * c-typeprint.c (c_type_print_base), ch-lang.c (chill_demangle),
3941 cp-valprint.c (cp_print_class_method), mdebugread.c (parse_symbol),
3942 stabsread.c (define_symbol, read_member_functions, read_struct_fields),
3943 symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P),
3944 values.c (vb_match): Use is_cplus_marker instead of comparison
3949 * symfile.h (INLINE_ADD_PSYMBOL): Default this to 0 and possibly
3950 delete entirely someday.
3954 * mpw-make.sed: Edit out makefile rebuild rule.
3955 (host_alias, target_alias): Comment out instead of deleting.
3956 (@LIBS@): Edit out references.
3960 * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
3961 Use n_psyms in OBJSTAT, not psyms.
3965 * configure.in (sparclet-*-aout*): New config.
3966 * configure: Regenerated.
3970 * somsolib.c (som_solib_add): Use xmalloc rather than bare
3971 unchecked call to malloc.
3972 * remote-mips.c (pmon_load_fast): ditto.
3973 * remote-mm.c (mm_open): ditto.
3974 * hpread.c (hpread_lookup_type): ditto.
3975 * remote-adapt.c (adapt_open): ditto.
3979 * f-lang.c (allocate_saved_bf_node, allocate_saved_function_node,
3980 allocate_saved_f77_common_node, allocate_common_entry_node,
3981 add_common_block): Use xmalloc rather than malloc, some of which
3983 * gnu-regex.c: At same point as other gdb specific changes
3984 #undef malloc and then #define it to xmalloc.
3985 * ch-exp.c (growbuf_by_size): Use xmalloc/xrealloc rather than
3986 bare unchecked calls to malloc/realloc.
3987 * stabsread.c (dbx_lookup_type): Use xmalloc rather than bare
3988 unchecked call to malloc.
3992 * symtab.c (gdb_mangle_name): Change opname var to be const to
3993 match return val of cplus_mangle_name.
3994 * i960-tdep.c: Change arg types of next_insn to match callers.
3998 * config/i386/linux.mh (XM_CLIBS, GDBSERVER_LIBS): Remove. These
3999 apparently aren't needed in any reasonably recent version of
4004 * stabsread.c (read_range_type): If !self-subrange and language
4005 is Chill, assume a true range. If a true_range is a sub_subrange,
4006 use builtin_type_int for index_type.
4010 * nindy-share/nindy.c (say): Use stdarg.h macros when compiling
4011 with an ANSI compiler.
4013 start-sanitize-gdbtk
4016 * gdbtk.tcl (create_file_win): Eliminate text widget B1 binding so
4017 double-clicking will work again.
4018 (create_asm_win): Put "break" at end of all B1 bindings.
4019 (create_file_win): Lower "sel" tag, don't raise it.
4020 (ensure_line_visible): New proc.
4021 (update_listing, update_assembly): Use it.
4022 (create_copyright_window): Destroy window on Leave event.
4023 (create_command_window): Put "break" at end of all B2 bindings.
4029 * valops.c (value_arg_coerce): Coerce float to double, unless the
4030 function prototype specifies float.
4034 * language.c (set_language_command): Use languages table when
4035 printing available languages.
4040 * command.c (add_cmd): Add missing initialization for enums member.
4041 Reorder members to match structure declaration to make it easier to
4042 tell when one is missing.
4043 * exec.c (exec_file_command): Fix problem where filename in malloc'd
4044 memory is referenced after being freed.
4048 * dwarfread.c (read_func_scope): Avoid GDB core dumps if
4049 AT_name tag is missing.
4051 * procfs.c (procfs_stopped_by_watchpoint): Fix logic when
4052 FLTWATCH and FLTKWATCH are defined.
4054 * remote.c (remote_read_bytes): Advance memaddr for transfers,
4055 return number of bytes transferred for partial reads.
4057 * top.c (init_signals): Reset SIGTRAP to SIG_DFL.
4061 * win32-nat.c (mappings): Add ppc registers.
4062 (child_resume): Turn off step for ppc.
4066 * config/powerpc/(cygwin32.mh, cygwin32.mt, tm-cygwin32.h,
4067 xm-cygwin32.h): New.
4068 * config/i386/(*win32*): Becomes *cygwin32*.
4069 * configure.in (i[3456]86-*-win32*): Becomes i[3456]86-*-cygwin32.
4070 (powerpcle-*-cygwin32): New.
4071 * configure: Regenerate.
4072 * win32-nat.c (child_create_inferior): Call CreateProcess
4073 with the right program arg.
4077 * config/pa/tm-hppa.h (SOFT_FLOAT): Provide a default definition.
4081 * serial.c: Change fputc/fputs/fprintf to _unfiltered forms.
4085 * config/sparc/xm-sun4os4.h (HAVE_TERMIOS): Remove.
4087 * config/sparc/xm-sparc.h (HAVE_WAIT_STRUCT): Remove, never used.
4089 * config/i386/nm-i386mach.h (CHILD_PREPARE_TO_STORE): Move to
4090 here from config/i386/xm-i386mach.h, fix name.
4091 * config/i386/nm-sun386.h: Ditto, from config/i386/xm-sun386.h.
4092 * config/i386/nm-ptx4.h (CHILD_PREPARE_TO_STORE): Move to
4093 here from config/i386/xm-ptx4.h.
4094 * config/i386/nm-ptx4.h: Ditto, from config/i386/xm-ptx.h.
4095 * config/i386/nm-symmetry.h: Ditto, from config/i386/xm-symmetry.h.
4096 * config/m68k/nm-sun3.h: Ditto, from config/m68k/xm-sun3.h.
4097 * config/sparc/nm-nbsd.h: Ditto, from config/sparc/xm-nbsd.h.
4098 * config/sparc/nm-sun4os4: Ditto, from config/sparc/xm-sparc.h.
4100 * config/sparc/nm-sun4sol2.h: New file, renamed from nm-sysv4.h.
4101 (PRSVADDR_BROKEN): Move here from xm-sun4sol2.h.
4102 * config/sparc/sun4sol2.mh (NAT_FILE): Update.
4106 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Handle software
4107 floating point correctly.
4108 (STORE_RETURN_VALUE): Likewise.
4109 * config/pa/tm-pro.h (SOFT_FLOAT): define.
4113 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
4114 Define to what should be reasonable values. However, apparently
4115 a bug in linux mmap prevents mapped symbol tables from working.
4119 * defs.h (errno.h>: Move #include closer to head of file to solve
4120 obscure problem with systems that declare perror with const arg, in
4121 both errno.h and stdio.h, and const is defined away by intervening
4127 * i386-stub.c (getpacket): Change fprintf stream from "gdb" to stderr.
4128 (mem_fault_routine): Fix misplaced volatile type qualifier in decl.
4132 * Makefile.in (diststuff): Make all-doc; diststuff target does not
4133 exist in doc/Makefile.in.
4137 * config/m88k/xm-cxux.h (BP_HIT_COUNT): Remove, never used.
4141 * ch-valprint.c (calculate_array_length): New function to
4142 determine the length of an array type.
4143 (chill_val_print (case TYPE_CODE_ARRAY)): If the length of an
4144 array type is zero, call calculate_array_length.
4146 * gdbtypes.c (get_discrete_bounds (case TYPE_CODE_ENUM)): The
4147 values may not be sorted. Scan all entries and set the real lower
4152 * config/xm-linux.h: Move include of solib.h and #define of
4153 SVR4_SHARED_LIBS from here ...
4154 * config/nm-linux.h: ...to here.
4158 * configure.in (AC_CHECK_HEADERS): Check for sys/procfs.h.
4159 Also check for gregset_t and fpregset_t types.
4160 * configure: Regenerate.
4161 * core-regset.c (sys/procfs.h): Only include if HAVE_SYS_PROCFS_H
4163 (fetch_core_registers): Turn into stub unless both HAVE_GREGSET_T
4164 and HAVE_FPREGSET_T are defined. These changes allow systems
4165 like linux that are migrating to /proc support to use a single
4166 configuration for both new and old versions.
4168 * config/i386/linux.mt: Note that this is now for both a.out and
4170 * config/i386/linux.mh (NATDEPFILES): Add solib.o, core-regset.o,
4172 * config/i386/tm-linux.h (tm-sysv4.h): Include.
4173 * config/i386/xm-linux.h (solib.h): Include
4174 (SVR4_SHARED_LIBS): Define.
4175 * i386v4-nat.c: Only compile if HAVE_SYS_PROCFS_H is defined.
4176 (supply_gregset, fill_gregset): Compile if HAVE_GREGSET_T defined.
4177 (supply_fpregset, fill_fpregset): Compile if HAVE_FPREGSET_T
4182 * config/sparc/xm-sparc.h (NEW_SUN_CORE): Remove, never used.
4183 * config/i386/xm-sun386.h: Ditto.
4184 * config/m68k/xm-sun2.h, config/m68k/xm-sun3.h: Ditto.
4188 * Makefile.in (INSTALLED_LIBS, CLIBS): Include @LIBS@.
4193 * dcache.c (dcache_peek, dcache_poke): Advance addr for
4198 * infrun.c (normal_stop): Fix test for shared library event.
4202 * configure.in (sparc64-*-*): Add default host configuration.
4203 start-sanitize-gdbtk
4204 (sparc64-*-solaris2* host): Link statically if GCC used.
4206 (sparc64-*-solaris2*): Add target configuration.
4207 * configure: Regenerated.
4208 * sparc/sp64sol2.mt: New file.
4212 * Makefile.in (RUNTEST): srcdir renamed to rootsrc.
4216 * Makefile.in (lint): Close backquotes.
4218 start-sanitize-gdbtk
4221 * gdbtk.tcl, gdbtk.c: Updated copyrights.
4223 * configure.in: Look for -ldl or -ldld when using Tcl 7.5 or
4225 * configure: Rebuilt.
4230 * NEWS: Make note of new record and replay feature for
4231 remote debug sessions.
4232 * serial.c (gdbcmd.h): Include.
4233 (serial_logfile, serial_logfp, serial_reading, serial_writing):
4234 Define here, for remote debug session logging.
4235 (serial_log_command, serial_logchar, serial_write, serial_readchar):
4236 New functions for remote debug session logging.
4237 (serial_open): Open remote debug session log file when needed.
4238 (serial_close): Close remote debug session log file when needed.
4239 (_initialize_serial): Add set/show commands for name of remote
4240 debug session log file.
4241 * serial.h (serial_readchar): Declare
4242 (SERIAL_READCHAR): Call serial_readchar().
4243 (SERIAL_WRITE): Call serial_write().
4244 (serial_close): Declare as extern.
4245 (serial_logfile, serial_logfp): Declare.
4246 * top.c (execute_command): Declare serial_logfp. Log user command
4247 in remote debug session log if log file is open.
4248 * remote-array.c (array_wait): #ifdef out echo to gdb_stdout.
4249 (array_read_inferior_memory): Rewrite to fix memory overwrite bug.
4250 * remote-array.c (SREC_SIZE): Remove, duplicates define in
4252 * remote-array.c (hexchars, hex2mem): Remove, unused.
4253 * gdbserver/low-linux.c (store_inferior_registers): Remove
4254 unnecessary extern declaration of registers[].
4255 * gdbserver/Makefile.in (all): Add gdbreplay.
4256 * gdbserver/gdbreplay.c: New file.
4257 * gdbserver/README: Give example of recording a remote
4258 debug session with gdb and then replaying it with gdbreplay.
4262 * stabsread.c (rs6000_builtin_type): Make bool type unsigned.
4263 (read_one_struct_field): Support boolean bitfields.
4264 * c-valprint.c (c_val_print): Print booleans properly.
4268 * remote-vxsparc.c (vx_convert_to_virtual, vx_convert_from_virtual):
4270 * config/sparc/vxsparc.mt (TDEPFILES): Add remote-vxsparc.o.
4274 * ch-exp.c (parse_tuple): Error if invalid mode.
4276 * value.h (COERCE_ARRAY): Don't coerce enums.
4277 (COERCE_ENUM): Don't COERCE_REF.
4278 (COERCE_NUMBER): New macro (same as COERCE_ARRAY then COERCE_ENUM).
4279 * valops.c (value_assign): Only do COERCE_ARRAY if internalvar (let
4280 value_cast handle it otherwise); do *not* COERCE_ENUM either way.
4281 * valarith.c: Use COERCE_NUMBER instead od COEREC_ARRAY.
4282 Add COERCE_REF before COERCE_ENUM.
4283 * values.c (value_as_long): Simplify.
4285 * valops.c (value_array): Create internalvar if !c_style_arrays.
4287 * language.c (lang_bool_type): Add Fortran support.
4288 * eval.c (OP_BOOL): Use LA_BOOL_TYPE.
4292 * symfile.c (auto_solib_add): Renamed from auto_solib_add_at_startup.
4293 All references changed.
4294 * breakpoint.c (bpstat_what): Add shlib_event to the class types.
4295 Update state table. Reformat so that it's still readable.
4296 When we hit the shlib_event breakpoint, set the calss of shlib_event.
4297 (breakpoint_1): Add "shlib events" as a breakpoint type.
4298 Print the shlib_event breakpoint like other breakpoints.
4299 (create_solib_event_breakpoint): New function.
4300 (breakpoint_re_set_one): Handle solib_event breakpoints.
4301 * breakpoint.h (enum bytype): Add bp_shlib_event breakpoint type.
4302 (enum bpstat_what_main_action): Add BPSTAT_WHAT_CHECK_SHLIBS
4304 (create_solib_event_breakpoint): Declare.
4305 * infrun.c (wait_for_inferior): Handle CHECK_SHLIBS bpstat.
4306 (normal_stop): Inform the user when the inferior stoped due
4307 to a shared library event.
4308 (_initialize_infrun): Add new set/show variable "stop-on-solib-events"
4309 to control whether or not gdb continues the inferior or stops it when
4310 a shared library event occurs.
4311 * minsyms.c (lookup_minimal_symbol_solib_trampoline): New function.
4312 * somsolib.c (TODO list): Update.
4313 (som_solib_create_inferior_hook): Arrange for gdb to be notified
4314 when significant shared library events occur.
4315 * hppa-tdep.c (find_unwind_entry): No longer static.
4319 * printcmd.c (print_insn): Pass fprintf_unfiltered to
4320 INIT_DISASSEMBLE_INFO.
4321 start-sanitize-gdbtk
4322 * gdbtk.c (gdb_disassemble): Likewise.
4327 * remote.c (remotebreak): New GDB variable.
4328 (remote_break): New global.
4329 (remote_interrupt): Send a break instead of ^C if remote_break.
4330 * NEWS: Describe the new variable.
4334 * sparc-tdep.c (_initialize_sparc_tdep): Always use print_insn_sparc.
4338 * hp300ux-nat.c (getpagesize): Remove unused function
4339 fetch_core_registers.
4340 (hp300ux_core_fns): Remove, is unused.
4341 (_initialize_core_hp300ux): Remove, is unused.
4342 (gdbcore.h): Remove #include, no longer needed.
4346 * rs6000-nat.c (exec_one_dummy_insn): Rework to avoid
4347 ptrace bug in aix4.1.3 on the rs6000.
4351 * remote-hms.c (hms_ops): Add value for to_thread_alive.
4352 * remote-nindy.c (nindy_ops): Ditto.
4353 * remote-udi.c (udi_ops): Ditto.
4357 * remote-mips.c (pmon_opn, pmon_wait, pmon_makeb64, pmon_zeroset,
4358 pmon_checkset, pmon_make_fastrec, pmon_check_ack,
4359 pmon_load_fast): New functions. Support for the PMON monitor world.
4360 (common_open): New function to merge support for different monitors.
4361 (mips_open): Use common_open().
4362 (mips_send_command): New function.
4363 (mips_send_packet): Scan out-of-sequence packets.
4364 (mips_enter_debug, mips_exit_debug): New functions.
4365 (pmon_ops): New target definition structure.
4369 * Makefile.in (CLIBS): Add LIBS to allow libraries to be
4370 specified on the make command line (via make LIBS=xxx).
4372 * configure.in (enable-gm): magic.o -> gmagic.o.
4375 start-sanitize-gdbtk
4378 * gdbtk.tcl (create_expr_window): Many changes to update GUI.
4379 (add_expr): Changes from create_expr_window.
4380 (create_command_window): Set focus.
4381 (delete_expr): Rewrote.
4382 (expr_update_button): New proc.
4383 (add_expr): Put bindings on FocusIn, FocusOut.
4384 Don't allow .file_popup to be torn off.
4389 * symtab.c (find_pc_symtab): Don't lose if OBJF_REORDERED
4390 is set but there are no psymtabs.
4394 * dsrec.c (load_srec): Remove unused variable.
4395 * monitor.c (monitor_expect): Don't expect a ^C to echo.
4396 * serial.c (serial_open): Add parallel interface.
4397 * sh3-rom.c (parallel, parallel_in_use): New.
4398 (sh3_load): If parallel_in_use, download though the
4400 (sh3_open): Open parallel port if specified.
4401 (sh3_close): New function.
4402 (_inititalize_sh3): Add sh3_close hook and documentation.
4403 * monitor.c (monitor_close): Export.
4404 * monitor.h (monitor_close): Add prototype.
4409 * remote.c (remotetimeout): New GDB variable, use to set the
4410 remote timeout for reading.
4412 start-sanitize-gdbtk
4415 * gdbtk.tcl (gdbtk_tcl_query): Swap Yes and No buttons.
4416 (update_listing): Use lassign. Use "see" to scroll. Don't need
4417 screen_top, screen_bot, screen_height.
4418 (update_assembly): Use "see" to scroll.
4419 (textscrollproc): Removed.
4420 (create_file_win): Don't use textscrollproc.
4421 (asmscrollproc): Removed.
4422 (create_asm_window): Don't use asmscrollproc.
4423 (create_asm_win): Ditto.
4424 (screen_height, screen_top, screen_bot): Removed.
4425 (run_editor): New proc.
4426 (build_framework): Use it.
4427 (create_file_win, create_source_window): Don't use textscrollproc.
4428 (create_breakpoints_window): Set -xscrollcommand on canvas.
4429 (not_implemented_yet): Default button is 0.
4430 (delete_char): Don't use tk_textBackspace.
4431 (create_command_window): Allow Tk bindings to fire after deleting
4433 (create_command_window): Make Delete delete left, not right.
4438 * lynx-nat.c, irix4-nat.c, sparc-nat.c: Include gdbcore.h
4439 to get "struct core_fns" defined.
4440 * Makefile.in (lynx-nat.o, irix4-nat.o, sparc-nat.o):
4441 Are dependent upon gdbcore_h.
4445 * symfile.c (decrement_reading_symtab): New function.
4446 * symfile.c, symtab.h (currently_reading_symtab): New variable.
4447 * symfile.c (psymtab_to_symtab): Adjust currently_reading_symtab.
4448 * gdbtypes.c (check_typedef): Don't call lookup_symbol if
4449 currently_reading_symtab (since that could infinitely recurse).
4453 * stabsread.c (read_struct_type): Trivial simplification.
4455 * stabsread.c (define-symbol): Use invisible references
4456 for TYPE_CODE_SET and TYPE_CODE_BITSTRING too.
4457 * valops.c (call_function_by_hand): Likewise.
4458 * eval.c (evaluate_subexp_standard): When known, use the formal
4459 parameter type as the expected type when evaluating arg expressions.
4460 * ch-lang.c (evaluate_subexp_chill): Likewise (for MULTI_SUBSCRIPT).
4462 start-sanitize-gdbtk
4465 * main.c (main): Disable window interface if --help or --version
4468 * gdbtk.tcl (FSBox): Don't use tk_listboxSingleSelect.
4470 Changes in sync with expect:
4471 * configure.in (ENABLE_GDBTK): Use CY_AC_PATH_TCL and
4473 * aclocal.m4: Replaced with version from expect.
4474 * configure: Regenerated.
4479 * configure.in, configure: Recognize rs6000-*-aix4*.
4480 * config/powerpc/xm-aix.h: Reduce to include "xm-aix4.h".
4481 * config/rs6000/aix4.mh (XM_FILE): Point to xm-aix4.h.
4482 * config/rs6000/xm-aix4.h: New file.
4483 * config/xm-aix4.h: New file.
4488 * gdbserver/low-linux.c: New file.
4489 * remote.c (remote_read_bytes): Fix aborts on larger packets.
4491 * config/i386/linux.mh (GDBSERVER_DEPFILES, GDBSERVER_LIBS):
4493 * stabsread.c (define_symbol): If register value is too large,
4494 tell what it is and what max is.
4496 start-sanitize-gdbtk
4499 * gdbtk.tcl (gdbtk_tcl_fputs, gdbtk_tcl_fputs_error,
4500 gdbtk_tcl_flush): Use "see", not "yview".
4501 (gdbtk_tcl_query): Use questhead bitmap.
4502 various: Always wrap condition of 'if' in {...}.
4503 (add_breakpoint_frame): Set -value on radiobuttons.
4504 (lassign): New proc.
4505 (add_breakpoint_frame): Use lassign, not series of assignments.
4506 (decr): Made faster.
4507 (interactive_cmd): Use "see", not "yview".
4508 (not_implemented_yet): Use warning bitmap.
4509 (update_expr): Don't allow $expr to be evalled by Tcl.
4510 (create_expr_window): Don't use "focus".
4511 (delete_char, delete_line): Define globally.
4512 (delete_line, delete_char, create_command_window, update_autocmd,
4513 build_framework, create_asm_win, create_file_win): Use "see", not
4515 (create_copyright_window, center_window, bind_widget_after_class):
4517 (FSBox,create_command_window, create_autocmd_window): Binding
4519 (textscrollproc): Define globally.
4520 (build_framework): tk_menuBar no longer needed. Keys Prior, Next,
4521 Home, End, Up, and Down are all defined by Tk.
4522 (apply_filespec): Use error bitmap in dialog.
4523 (files_command): Don't use tk_listboxSingleSelect.
4524 (files_command): Don't use "uniq" to remove duplicates from a
4526 (update_assembly): Use lassign.
4527 (create_asm_win): Removed redundant bindings.
4528 (listing_window_button_1, file_popup_menu): Use tk_popup.
4529 (ButtonRelease-1 binding): Just remove tag from window; rest
4532 * gdbtk.c (gdbtk_query): Use Tcl_Merge to provide quoting.
4533 (call_wrapper): Use Tcl_Eval, not Tcl_VarEval.
4534 (gdbtk_call_command): Ditto.
4539 * hpread.c (hpread_build_psymtabs): Finish Jan 4th
4540 enum namespace -> enum_namespace change.
4544 * ch-exp.c (parse_primval): In case ARRAY, add missing
4549 * remote-mips.c (mips_receive_header): Recognize \012 instead
4550 of \n, but write \n when program sends a \012.
4551 * ser-mac.c (mac_input_buffer): Increase size of buffer.
4555 * infptrace.c (initialize_infptrace): Move function out of
4556 #ifdef conditional; put code within the function inside an
4559 * buildsym.c (end_symtab): Remove sort_pending and sort_linevec
4560 arguments. Sorting is now dependent on OBJF_REORDERED. All
4561 callers/references changed.
4562 * dbxread.c (read_ofile_symtab): Correctly determine value for
4563 last_source_start_addr for reordered executables.
4564 (process_one_symbol): Handle N_FUN with no name as an end of
4566 * partial-stab.h (case N_FN, N_TEXT): Don't assume CUR_SYMBOL_VALUE
4567 is the high text address for a psymtab.
4568 (case N_SO): Likewise.
4569 (case N_FUN): Handle N_FUN with no name as an end of function
4571 * minsyms.c (lookup_minimal_symbol_by_pc): Examine all symbols
4572 at the same address rather than a random subset of them.
4573 * coffread.c (coff_symfile_init): Set OBJF_REORDERED.
4574 * elfread.c (elf_symfile_init): Similarly.
4575 * somread.c (som_symfile_init): Similarly.
4576 * xcoffread.c (xcoff_symfile_init): Similarly.
4580 * stack.c (print_stack_frame print_frame_info) symmisc.c
4581 (dump_symtab): Change RETURN_MASK_ERROR to RETURN_MASK_ALL so
4582 that catch_errors doesn't get blindsided by QUIT and lose the
4583 cleanup chain. This fixes a problem where ^C while in a
4584 user-defined command sometimes leaves instream NULL and causes a
4585 segfault in command_loop.
4589 * configure.in, configure: Add `-ldl -lw' for Solaris linking.
4593 * config/sh/sh.mt, config/powerpc/*.mt, config/pa/hppapro.mt,
4594 config/m68k/monitor.mt, config/h8500/h8500.mt, config/h8300/h8300.mt:
4595 srec.o renamed to dsrec.o.
4599 * breakpoint.c (remove_breakpoint): Change error to warning so
4600 that hardware watchpoint removal problems won't leave breakpoint
4601 traps in the target.
4602 start-sanitize-gdbtk
4603 * configure configure.in: Make --enable-gdbtk be the default.
4605 * remote-e7000.c (e7000_insert_breakpoint,
4606 e7000_remove_breakpoint): Use e7000 based breakpoints, not memory
4608 * (e7000_wait): Adjust PC back by two when we see a breakpoint to
4609 compensate for e7000 maladjustment.
4610 * sparcl-tdep.c (sparclite_check_watch_resources): Fix logic bug
4611 which prevented hardware watchpoints from working.
4615 * infptrace.c (udot_info): New function.
4616 (PT_*): Define each individually if that one is not defined.
4617 * rs6000-nat.c (kernel_u_size): New function
4618 Include <sys/user.h> for "struct user"
4619 * alpha-nat.c (kernel_u_size): New function.
4620 Include <sys/user.h> for "struct user"
4621 * sparc-nat.c (kernel_u_size): New function.
4622 Include <sys/user.h> for "struct user"
4623 * i386b-nat.c (kernel_u_size): New function.
4624 * i386v-nat.c (kernel_u_size): New function.
4625 * config/i386/nm-fbsd.h (KERNEL_U_SIZE): Define.
4626 (kernel_u_size): Declare.
4627 * config/i386/nm-linux.h (KERNEL_U_SIZE): Define.
4628 (kernel_u_size): Declare.
4629 * config/sparc/nm-sun4os4.h (KERNEL_U_SIZE): Define.
4630 (kernel_u_size): Declare.
4631 * config/alpha/nm-osf2.h (KERNEL_U_SIZE): Define.
4632 (kernel_u_size): Declare.
4633 * config/rs6000/nm-rs6000.h (KERNEL_U_SIZE): Define.
4634 (kernel_u_size): Declare.
4638 * mdebugread.c (mylookup_symbol): enum namespace becomes
4639 enum_namespace type.
4640 * symfile.c (add_psymbol_to_list)
4641 (add_psymbol_addr_to_list): Ditto.
4642 * symtab.c (lookup_partial_symbol): Ditto.
4643 (lookup_symbol): Ditto.
4644 (lookup_block_symbol): Ditto.
4645 * win32-nat.c (handle_load_dll): Use incoming dll base.
4646 (child_wait): Catch DLL load errors.
4647 (create_child_inferior): Translated between paths correctly.
4651 * i386v4-nat.c (supply_gregset, fill_gregset): Subtract NUM_FREGS
4652 from NUM_REGS to get number of general registers that we care about.
4653 * config/i386/tm-i386.h (REGISTER_BYTES): Define in terms
4654 of number of general regs and number of floating point regs.
4658 * config/i386/tm-win32.h (IN_SOLIB_CALL_TRAMPOLINE): New.
4659 (SKIP_TRAMPOLINE_CODE): New.
4660 * config/i386/xm-win32.h (CANT_FORK): Deleted.
4661 (SLASH*) Changed to use unix style slash.
4662 * symtab.h (namespace enum): becomes typedef to avoid namespace
4664 * infcmd.c (path_command): Use empty string if PATH name not set.
4665 * i386-tdep.c (skip_trampoline_code): New function.
4666 * srec.c: Renamed dsrec.c to avoid filename collision.
4667 * Makefile.in: Cope with renaming.
4671 * symmisc.c (print_objfile_statistics): Print memory use statistics
4672 for objfile psymbol, symbol, and type obstacks.
4676 * config/mips/nm-irix5.h: Restore.
4677 (TARGET_HAS_HARDWARE_WATCHPOINTS, etc): Define as for Irix 4;
4679 * config/mips/irix5.mh (NAT_FILE): Use nm-irix5.h.
4680 * config/mips/irix[345].mh (MUNCH_DEFINE): Remove.
4682 For older changes see ChangeLog-95
4688 version-control: never