X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2FChangeLog;h=e01b9c35f59a4bf9f8ea8e6fb2e7fb7fe8b30dac;hb=540af400154502df8054af624998b03f659f1043;hp=f8538bdd8325705860b9c7011ac6f7be36a761b5;hpb=6ec4c4bd0ef272bc731317621ce4482eb801e4ca;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f8538bdd83..e01b9c35f5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,883 @@ +2001-04-30 Michael Snyder + + * thread-db.c: Revert 2001-04-26 change for debugging output. + * lin-lwp.c: Ditto. + +2001-04-27 Andrew Cagney + + * gdbtypes.c (check_stub_method): Always initialize ``p''. + +2001-04-27 Andrew Cagney + + * configure.host: Delete romp host. + * TODO: Update. + +2001-04-27 Andrew Cagney + + * TODO: Updates to 5.1. No more targets to obsolete. + +2001-04-27 Don Howard + + (Changes from Kevin Buettner, with minor update by Don Howard.) + + * i387-nat.c (i387_supply_fxsave, i387_fill_fxsave, i387_tag): Fix + typos in which hexadecimal constants were really intended to be + binary constants. + (i387_tag): Swap logic regarding zero vs non-zero exponents. + * MAINTAINERS (Misc): Added myself to the write-after-approval + list. + +2001-04-26 Jim Blandy + + (Changes from Daniel Berlin, with revisions by Jim Blandy.) + + Abstract out operations specific to particular C++ ABI's, and + invoke them through a function table. This removes the C++ ABI + dependencies scattered throughout the code, and allows us to + cleanly add support for new C++ ABI's. + * cp-abi.h, cp-abi.h, gnu-v2-abi.c, hpacc-abi.c: New files. + * c-typeprint.c, c-valprint.c, dbxread.c, eval.c, gdbtypes.c, + jv-typeprint.c, linespec.c, symtab.c, typeprint.c, valops.c: + #include "cp-abi.h". These files all use functions now declared + there. + * symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P): + Deleted. These services are now provided by functions declared in + cp-abi.h. + * value.h (value_rtti_type, value_virtual_fn_field): Same. + * values.c (value_virtual_fn_field): Same, for this definition. + * valops.c (value_rtti_type): Same. + * c-typeprint.c (c_type_print_base): Use the functions from + "cp-abi.h", instead of the old macros, or hard-coded ABI-specific + tests. + * dbxread.c (record_minimal_symbol): Same. + * gdbtypes.c (get_destructor_fn_field, virtual_base_index, + virtual_base_index_skip_primaries): Same. + * jv-typeprint.c (java_type_print_base): Same. + * linespec.c (find_methods, decode_line_1): Same. + * symtab.c (gdb_mangle_name): Same. + * Makefile.in (SFILES): Add the new .c files mentioned above. + (cp_abi_h): New variable. + (COMMON_OBS): Add gnu-v2-abi.o, hpacc-abi.o, and cp-abi.o. + (cp-abi.o, gnu-v2-abi.o, hpacc-abi.o): New targets. + (c-typeprint.o, c-valprint.o, dbxread.o, eval.o, gdbtypes.o, + jv-typeprint.o, symtab.o, linespec.o, typeprint.o, valops.o): Add + dependency on $(cp_abi_h). + +2001-04-26 Michael Snyder + + * thread-db.c (_initialize_thread_db): Add set/show command + "debug-linux-threads" for debugging output. + * lin-lwp.c (various): Use global "debug_linux_threads to + turn on extra debugging output. + * lin-lwp.c: Minor cleanups in comments. + * target.c (normal_pid_to_str): Get rid of an ancient hack. + * remote.c (remote_pid_to_str): New function for remote target. + +2001-04-24 Jim Blandy + + * c-typeprint.c (c_type_print_cv_qualifier): Don't print `const' + qualifier on C++ references; all references are innately const. + +2001-04-20 Mark Kettenis + + * event-top.h: Fix formatting. + +2001-04-17 Andrew Cagney + + * source.c (openp): Obsolete #ifdef MPW code. + (open_source_file): Ditto. + * event-top.c (display_gdb_prompt): Ditto. + * utils.c (query): Ditto. + (init_page_info): Ditto. + (init_page_info): Delete #ifndef MPW. + * top.c (gdb_readline): Ditto. + * mac-xdep.c: Obsolete. + * mac-gdb.r: Obsolete. + * config/powerpc/xm-mpw.h: Obsolete. + * config/xm-mpw.h: Obsolete. + * mpw-make.sed: Obsolete. + * mpw-config.in: Obsolete. + * TODO: Update + * NEWS: Update + +2001-04-19 Mark Kettenis + + * i386-tdep.c (i386_frameless_function_invocation): New function. + * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION): Redefine + in terms of i386_frameless_function_invocation. Adjust comment. + (i386_frameless_function_invocation): New prototype. + +2001-04-18 Martin M. Hunt + + * top.c (gdb_init): Don't call cli_out_new() to + create global uiout if init_ui_hook is set. uiout will + have to be initialized there. + +2001-04-18 Andrew Cagney + + * arch-utils.c: Include "regcache.h". + +2001-04-18 Mark Kettenis + + * i386-tdep.c (i386_saved_pc_after_call): New function. + * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Redefine in terms + of i386_saved_pc_after_call. + (i386_saved_pc_after_call): New prototype. + +2001-04-17 Michael Snyder + + * i386-nat.c: Fix typo in comment. + * solib.c (no_shared_libraries): New function. Discard all symbols + from shared libraries. + (_initialize_solib): Add command "nosharedlibrary" as complement + to the command "sharedlibrary". Unloads symbols for all solibs. + +2001-04-16 Andrew Cagney + + * configure.host (m68030-sony-*, m68*-isi-*, m68*-sony-*): + * configure.tgt (m68*-rom68k-*, m68*-*bug-*, m68*-monitor-*) + (m68*-est-*, m68*-sony-*, m68*-isi-*): + * Makefile.in (xm-news1000.h, tm-news.h, xm-news.h): Obsolete.. + * config/m68k/xm-news.h: Obsolete. + * config/m68k/tm-news.h: + * config/m68k/xm-news1000.h: Obsolete. + * config/m68k/news.mh: Obsolete. + * config/m68k/news.mt: Obsolete. + * config/m68k/nm-news.h: Obsolete. + * config/m68k/news1000.mh: Obsolete. + * news-xdep.c: Obsolete. + * Makefile.in (isi-xdep.o): Obsolete. + (ALLDEPFILES): Delete isi-xdep.c. + (tm-isi.h): Obsolete. + * m68k-tdep.c (altos_skip_prologue): Update comments. + (isi_skip_prologue): Obsolete. + * isi-xdep.c: Obsolete. + * config/m68k/xm-isi.h: Obsolete. + * config/m68k/isi.mh: Obsolete. + * config/m68k/tm-isi.h: Obsolete. + * config/m68k/isi.mt: Obsolete. + + * TODO: Update. + * NEWS: Update. + +2001-04-17 Michael Snyder + + * remote.c (remote_open_1): On opening the remote target, activate + the solib_create_inferior_hook, so that it can detect when the + target loads shared libraries. + (remote_async_open_1): Ditto. + +2001-04-17 Michael Snyder + + * breakpoint.c (print_one_breakpoint): Handle 64-bit addresses. + * tracepoint.c (tracepoints_info): Handle 64-bit addresses. + * testsuite/gdb.trace/deltrace.exp: Allow for 64-bit addresses. + * testsuite/gdb.trace/infotrace.exp: Ditto. + * testsuite/gdb.trace/passcount.exp: Ditto. + * testsuite/gdb.trace/while-stepping.exp: Ditto. + +2001-04-17 Michael Snyder + + * thread-db.c (check_thread_signals): When looping over all + signals, ignore signal zero. + (disable_thread_signals): Ditto. + +2001-04-17 Eirik Fuller + + * thread.c (do_captured_thread_select): Allow the argument to the + thread command to be an expression rather than a literal integer. + +2001-04-17 Mark Kettenis + + * i386-linux-tdep.c (i386_linux_saved_pc_after_call): Use + read_memory_unsigned_integer instead of read_memory_integer. + +2001-04-16 Kevin Buettner + + * solib-aix5.c (map_index_vs_section_name_okay): New function. + (aix5_relocate_main_executable): Don't use file offsets for + determining corresponding sections and map file entries. Call + map_index_vs_section_name_okay() to do this instead. + +2001-04-16 Kevin Buettner + + * procfs.c (open_with_retry): New function. + (open_procinfo_files, load_syscalls, proc_iterate_over_mappings) + (proc_get_LDT_entry): Call open_with_retry() instead of open(). + +2001-04-16 Kevin Buettner + + * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Adjust + comparison against TRAP_HWBKPT constant yet again to account + for the various values used by different kernel versions. + +2001-04-16 Daniel Berlin + + * demangle.c (_initialize_demangler): Use xcalloc on the + demangling_style_names, and make it a null terminated array of + names, to avoid a crash. + +2001-04-16 Mark Kettenis + + * i386-tdep.c (i386_frame_chain): New function. + * config/i386/tm-i386.h (FRAME_CHAIN): Redefine in terms of + i386_frame_chain. + (i386_frame_chain): New prototype. + +2001-04-14 J.T. Conklin + + * target.h (target_ops): Removed to_core_file_to_sym_file vector + function. + * corelow.c (core_ops): Updated for above change. + * gnu-nat.c (core_ops): Likewise. + * inftarg.c (child_ops): Likewise. + * monitor.c (monitor_ops): Likewise. + * ppc-bdm.c (bdm_ppc_ops): Likewise. + * remote-adapt.c (adapt_ops): Likewise. + * remote-bug.c (bug_ops): Likewise. + * remote-e7000.c (e7000_ops): Likewise. + * remote-eb.c (eb_ops): Likewise. + * remote-es.c (es1800_ops, es1800_child_ops): Likewise. + * remote-mm.c (mm_ops): Likewise. + * remote-nindy.c (nindy_ops): Likewise. + * remote-nrom.c (nrom_ops): Likewise. + * remote-os9k.c (rombug_ops): Likewise. + * remote-rdp.c (remote_rdp_ops): Likewise. + * remote-sim.c (gdbsim_ops): Likewise. + * remote-st.c (st2000_ops): Likewise. + * v850ice.c (v850ice_ops): Likewise. + * target.c (cleanup_target): Likewise + (update_current_target): Likewise. + (setup_target_debug): Likewise + (debug_to_core_file_to_sym_file): Removed. + + * corefile.c (core_file_command) [HPUXHPPA]: Removed code that + sets symbol file from information obtained from the core file. + * corelow.c (core_file_to_sym_file): Removed. + +2001-04-13 Fernando Nasser + + From Adam Mirowski + Fixed Insight on Solaris. It was not possible to debug a process + because of EINTR "errors". + * procfs.c: (procfs_wait): if proc_wait_for_stop() fails + with EINTR, retry the call. + +2001-04-12 Kevin Buettner + + * solib-aix5.c (enum maptype): Delete. + (struct lm_info): Add new member ``nmappings''. Make ``mapping'' + member a pointer instead of a statically sized array. + (build_so_list_from_mapfile): Dynamically allocate ``mapping'' + array. + (aix5_relocate_main_executable, aix5_relocate_section_addresses, + aix5_find_global_pointer): Search for correct mapping to use + based on file offset instead of knowledge of whether the section + is read-only or read/write. + (aix5_find_gate_addresses): Use the first mapping instead of + the (now defunct) MT_READONLY mapping. + +2001-04-12 Nicholas Duffek + + * xcoffread.c (scan_xcoff_symtab): Ignore symbols beginning with + "@". + +2001-04-12 Kevin Buettner + + * config/i386/fbsd.mh (NATDEPFILES): Add i386-nat.o. + +2001-04-09 Andrew Cagney + + Obsolete i[3456]86-*-sunos* (aka Sun386) host and target. + * config/i386/sun386.mh: Obsolete. + * config/i386/sun386.mt: Obsolete. + * config/i386/xm-sun386.h: Obsolete. + * config/i386/tm-sun386.h: Obsolete. + * config/i386/nm-sun386.h: Obsolete. + * Makefile.in (ALLDEPFILES): Delete sun386-nat.c. + (sun386-nat.o): Target is obsolete. + * sun386-nat.c: Obsolete. + * configure.tgt (i[3456]86-*-sunos*): Obsolete. + * configure.host (i[3456]86-*-sunos*): Obsolete. + * NEWS: Update. + * TODO: Update. + +2001-04-10 J.T. Conklin + + * maint.c: Fix typo in comment. + +2001-04-09 Keith Seitz + + * MAINTAINERS: Swap with Syd Polk as a gdbtk maintainer. + +2001-04-08 Kevin Buettner + + * fork-child.c (fork_inferior, clone_and_follow_inferior): + Document fact that apparent call to vfork() might actually be + a call to fork() instead. + * ser-pipe.c (pipe_open): Likewise. + +2001-04-08 Kevin Buettner + + * printcmd.c (print_frame_args): Use a cleanup to invoke + ui_out_list_end() so that the list count nesting flag will + be decremented properly when an error occurs. + * stack.c (print_frame): Likewise. + +2001-04-06 J.T. Conklin + + * dcache.c (dcache_write_line): Fixed bugs where cache line was + not written to target correctly. + + * gdbserver/low-hppabsd.c (read_inferior_memory): Add explicit + void return value; + * gdbserver/low-nbsd.c: Likewise. + * gdbserver/low-sparc.c: Likewise. + * gdbserver/low-sun3.c: Likewise. + +2001-04-06 Geoffrey Keating + + * config/rs6000/nm-rs6000.h (PTRACE_ATTACH): Don't define. + (PTRACE_DETACH): Don't define. + +2001-04-06 David Smith + + * arch-utils.c (default_prepare_to_proceed) + (generic_prepare_to_proceed): Added new functions. + * arch-utils.h: New function declarations for + default_prepare_to_proceed() and generic_prepare_to_proceed(). + * gdbarch.sh: Added PREPARE_TO_PROCEED. + * gdbarch.c: Regenerated. + * gdbarch.h: Regenerated. + * inferior.h: Added get_last_target_status() declaration. + * infrun.c (get_last_target_status): Added new function. + (handle_inferior_event): Saves last pid and waitstatus, which will + get returned by get_last_target_status(). + + * hppa-tdep.c (prepare_to_proceed): Added comment stating that + prepare_to_proceed() is potentially redundant since + default_prepare_to_proceed() has been added. + * linux-thread.c (prepare_to_proceed): Ditto. + * lin-lwp.c (prepare_to_proceed): Ditto. + * m3-nat.c (prepare_to_proceed): Ditto. + +2001-04-05 Andrew Cagney + + Obsolete powerpcle-*-cygwin* and powerpcle-*-solaris* platforms + and powerpc-*-netware* target. + * configure.host (powerpcle-*-cygwin*, powerpcle-*-solaris*): + Obsolete. + * configure.tgt (powerpc-*-netware*, powerpcle-*-cygwin*) + (powerpcle-*-solaris*): Obsolete. + * config/powerpc/tm-cygwin.h: Obsolete. + * config/powerpc/cygwin.mt: Obsolete. + * config/powerpc/xm-cygwin.h: Obsolete. + * config/powerpc/cygwin.mh: Obsolete. + * config/powerpc/nm-solaris.h: Obsolete. + * config/powerpc/xm-solaris.h: Obsolete. + * config/powerpc/tm-solaris.h: Obsolete. + * config/powerpc/solaris.mt: Obsolete. + * config/powerpc/tm-ppc-nw.h: Obsolete. + * config/powerpc/ppc-nw.mt: Obsolete. + * TODO: Update. + * NEWS: Update. + +2001-04-06 Fernando Nasser + + * buildsym.c (record_line): Turn off unused addr bits. + +2001-04-06 Fernando Nasser + + From David Deephanphongs + * inferior.h: Fix declarations of get_inferior_args and + set_inferior_args, which were missing the trailing 's'. + +2001-04-05 Jeff Holcomb + + * monitor.c (monitor_supply_register): Only report an error if we + don't get a valid value. + +2001-04-05 Eli Zaretskii + + * README: Don't mention gdba.el. + +2001-04-05 Elena Zannoni + + From Jimmy Guo + * top.c (init_main): set prompt if annotation_level>1, + this is necessary when annotation_level is set to 2 via + --annotate=2 command line option. + +2001-04-04 Andrew Cagney + + Obsolete a29k-*-* host and a29k-*-sym1* and a29k-*-kern* targets. + * configure.tgt (a29k-*-sym1*, a29k-*-kern*): Obsolete. + * configure.host (a29k-*-*): Obsolete. + * Makefile.in (ALLDEPFILES): Remove ultra3-nat.c and + ultra3-xdep.c. + (ultra3-nat.o, ultra3-xdep.o): Obsolete. + * config/a29k/tm-ultra3.h: Obsolete. + * config/a29k/ultra3.mt: Obsolete. + * config/a29k/ultra3.mh: Obsolete. + * config/a29k/nm-ultra3.h: Obsolete. + * config/a29k/xm-ultra3.h: Obsolete. + * ultra3-xdep.c: Obsolete. + * ultra3-nat.c: Obsolete. + * config/a29k/a29k-kern.mt: Obsolete. + * NEWS: Update. + * TODO: Update. + +Wed Apr 4 21:48:42 2001 Christopher Faylor + + * main.c: Remove windows.h use. + (gdbtk_test): Use PATH_MAX for home var calculation. + * remote-e7000.c (e7000_parse_device): Accomodate Cygwin as well as + Win32 in colon test. + * ser-tcp.c: Use modern __CYGWIN__ conditional. + * source.c (mod_path): Add __CYGWIN__ conditional to WIN32 test. + (openp): Ditto. + * symfile.c (symfile_bfd_open): Ditto. + +2001-04-04 Martin M. Hunt + + * main.c (captured_main): For GDBtk, don't use tui_fileopen(). + Handle all stream setup in gdbtk_init + +2001-04-04 Mark Kettenis + + * i386-tdep.c (i386_extract_return_value): Don't return the return + value of a void function. + (i386_store_return_value): Likewise. + +2001-04-03 Andrew Cagney + + Obsolete w65-*-* target. + * configure.tgt (w65-*-*): Obsolete. + * config/w65/w65.mt: Obsolete. + * config/w65/tm-w65.h: Obsolete. + * w65-tdep.c: Obsolete. + * NEWS: Update. Fix TiC80 description. + * TODO: Update. + +2001-04-03 Andrew Cagney + + Obsolete tic80-*-* target. + * configure.tgt (tic80-*-*): Obsolete. + * config/tic80/tic80.mt: Obsolete. + * config/tic80/tm-tic80.h: Obsolete. + * tic80-tdep.c: Obsolete. + * TODO: Update + * NEWS: Update. + +2001-04-02 J.T. Conklin + + * remote-mips.c (S_IROTH): Moved definition from here. + * gdb_stat.h (S_IROTH): to here. + + * remote.c (remote_protocol_e, remote_protocol_E): Define. + (set_remote_protocol_e_packet_cmd) + (set_remote_protocol_E_packet_cmd) + (show_remote_protocol_e_packet_command) + (show_remote_protocol_E_packet_command): New functions. + (init_all_packet_configs): Initialize remote_protocol_e and + remote_protocol_E. + (remote_resume, remote_async_resume): Support e/E command + packets. + (show_remote_cmd): Show state of remote_protocol_e and + remote_protocol_E. + (_initialize_remote): Add "set remote step-over-range-packet" + and "set remote step-over-range-w-signal-packet" to CLI. + +2001-04-01 Andrew Cagney + + Obsolete ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv* and + ns32k-utek-*. + * Makefile.in (ALLDEPFILES): Delete umax-xdep.c and ns32km3-nat.c. + (umax-xdep.o, ns32km3-nat.o): Obsolete. + * configure.tgt (ns32k-*-mach3*, ns32k-utek-sysv*, ns32k-utek-*): + Obsolete. + * configure.host (ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv*): + Obsolete. + * config/ns32k/merlin.mh: Obsolete. + * config/ns32k/merlin.mt: Obsolete. + * config/ns32k/xm-merlin.h: Obsolete. + * config/ns32k/tm-merlin.h: Obsolete. + * config/ns32k/nm-umax.h: Obsolete. + * config/ns32k/umax.mh: Obsolete. + * config/ns32k/umax.mt: Obsolete. + * config/ns32k/xm-umax.h: Obsolete. + * umax-xdep.c: Obsolete. + * config/ns32k/ns32km3.mh: Obsolete. + * config/ns32k/ns32km3.mt: Obsolete. + * config/ns32k/tm-ns32km3.h: Obsolete. + * config/ns32k/xm-ns32km3.h: Obsolete. + * ns32km3-nat.c: Obsolete. + * ns32k-tdep.c (merlin_skip_prologue): Obsolete. + (merlin_frame_num_args): Ditto. + * NEWS: Update. + * TODO: Update. + +2001-04-02 Eli Zaretskii + + * config/djgpp/fnchange.lst: Tweak due to + expect/example/chesslib.c. + +2001-04-02 Kevin Buettner + + * m88k-tdep.c (examine_prologue): Change type of ``insn'' from + unsigned int to unsigned long. Also, fix format string. + (pop_frame): Fix PC_IN_CALL_DUMMY() call so that it doesn't + use an undeclared variable. Also, delete declaration and + initialization of ``fp'' because it is otherwise unused. + * remote-bug.c (sleep): Delete declaration. + (bug_store_register, bug_write_memory, bug_read_memory) + (bug_insert_breakpoint, bug_remove_breakpoint): Fix sprintf() + format statements and cast certain sprintf() arguments to + eliminate warnings. + (bug_load): Likewise for call to printf_filtered(). + * config/m88k/tm-m88k.h (FIX_CALL_DUMMY): Eliminate + assignment to ``pc''. The necessary assignment is done in + hand_function_call() after the invocation of FIX_CALL_DUMMY(). + +2001-03-20 Daniel Berlin + + * symtab.c (completion_list_add_name): Remove duplicate string checks, + readline already does this, and it's much faster at it, too. + +2001-04-01 Eli Zaretskii + + * go32-nat.c: Minor tweaks, to pacify the ari script. + +2001-04-01 Mark Kettenis + + * i386-tdep.c (i386_extract_struct_value_address): New function. + * config/i386/tm-i386.h (EXTRACT_STRUCT_VALUE_ADDRESS): Redefine + in terms of i386_extract_struct_value_address. + (i386_extract_struct_value_address): New prototype. + + * i386-linux-nat.c (i386_linux_dr_get): Change type of return + value to `unsigned long'. Change type of `value' to `unsigned + long'. + (i386_linux_dr_set): Change type of second argument to `unsigned + long'. + (i386_linux_dr_set_control): Change type of first argument to + `unsigned long'. + (i386_linux_dr_get_status): Change type of return value to + unsigned long. + * config/i386/nm-linux.h (i386_linux_dr_set_control, + i386_linux_dr_get_status): Adjust prototypes accordingly. + +2001-03-31 Kevin Buettner + + * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Change + TRAP_HWBKPT constant to match that in the kernel headers for + Linux/IA-64. + +2001-03-31 Mark Kettenis + + * i386bsd-nat.c: Include "gdb_assert.h". + [HAVE_PT_GETDBREGS] (DBREG_DRX): Define if not + already defined. + [HAVE_PT_GETDBREGS] (i386bsd_dr_set, i386bsd_dr_set_control, + i386bsd_dr_set_addr, i386bsd_dr_reset_addr, + i386bsd_dr_get_status): New functions. + * config/i386/nm-fbsd.h [HAVE_PT_GETDBREGS] + (I386_USE_GENERIC_WATCHPOINTS): Define. + Include "i386/nm-i386.h". + (I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR, + I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros. + (i386bsd_dr_set_control, i386bsd_dr_set_addr, + i386bsd_dr_reset_addr, i386bsd_dr_get_status): New prototypes. + * acconfig.h (HAVE_PT_GETDBREGS): New configure macro. + * configure.in: Cleanup a few comments. Check for PT_GETDBREGS + ptrace request. + * config.in, configure: Regenerate. + + * i386-nat.c (i386_insert_aligned_watchpoint): Set address + register before enabling it by setting the control register. + (i386_remove_aligned_watchpoint): Reset address register after + disabling it by setting the control register. + + * i386-tdep.c (i386_extract_return_value): If the type of the + return value is TYPE_STRUCT and the number of fields is one, call + ourselves with TYPE set tp the type of the first field. + (i386_store_return_value): Likewise. + This fixes a problem with returning structs consisting of a single + `float' or `double' on *BSD. + +2001-03-30 Mark Kettenis + + * lin-lwp.c (lin_lwp_resume): Don't mark LWP as not stopped until + we're absolutely sure we're going to resume it. + + * thread-db.c (check_event): Don't report an error if we encounter + a thread creation event for a thread that's already in the thread + list, since that may legitemately happen. Instead only call + attach_thread if it's not already in the thread list. + +2001-03-28 Andrew Cagney + + * config/pa/xm-hppah.h (malloc): Really delete declaration + (MALLOC_INCOMPATIBLE): Really delete macro. + * cli/cli-cmds.c (apropos_command): Use xcalloc. + +2001-03-28 Andrew Cagney + + * configure.in (build_warnings): Add -Wuninitialized. + * configure: Regenerate. + + * v850-tdep.c (v850_scan_prologue): Initialize ``insn2''. + * sparc-tdep.c (sparc64_push_arguments): Add default case to + switch. + * sh-tdep.c (sh_do_fp_register): Replace ``?:'' printf format + expression with if statement. + * mn10200-tdep.c (mn10200_analyze_prologue): Initialize + ``stack_size''. + * mips-tdep.c (show_mipsfpu_command): Add default case to switch. + (mips_dump_tdep): Fix setting of ef_mips_arch. + * mcore-tdep.c (mcore_analyze_prologue): Initialize ``fp_regnum''. + * dsrec.c (make_srec): Always initialize ``binbuf''. + * monitor.c (monitor_read_memory_single): Do not pass an + uninitialized buffer to monitor_error. Make ``i'' more local. + +2001-03-28 Andrew Cagney + + * MAINTAINERS: Change ns32k target to ,-Werror. + + * ns32k-tdep.c: Include "gdbcore.h" + (flip_bytes): Change first argument to void*. Add forward + declaration. + (sign_extend): Add declaration. + (merlin_frame_num_args): Add final else clause to if-else chain. + (umax_frame_num_args): Ditto. + * config/ns32k/tm-umax.h (ns32k_localcount): Declare. + (flip_bytes): Ditto. + +2001-03-28 Mark Kettenis + + * i386-linux-tdep.c (FRAMELESS_SIGNAL): Moved here from + config/i386/nm-linux.h (including comment). + (i386_linux_frame_chain): New function implementing guts of the + former FRAME_CHAIN macro, but using read_memory_unsigned_integer + instead of read_memory_integer. + (i386_linux_frame_saved_pc): Removed doc pointing to + i386/tm-linux.h for an explanation of FRAMELESS_SIGNAL since that + now lives in this file. + * config/i386/tm-linux.h (FRAMELESS_SIGNAL): Moved to + i386-linux-tdep.c (including comment). + (FRAME_CHAIN): Redefined in terms of i386_linux_frame_chain. + (i386_linux_frame_chain): New prototype. + + * gdbserver/low-linux.c [I386_GNULINUX_TARGET]: Cleanup code and + make it work again. + (NUM_FREGS): Redefine to 0. + (NUM_REGS): Redefine as NUM_GREGS. + (i386_register_byte, i386_register_raw_size): Update from + i386-tdep.c. Add comment about their origin. + (regmap, register_u_addr): Take these from i386-linux-nat.c. + (i386_register_u_addr): Removed. + + * i386-linux-nat.c (i386_linux_dr_get): Return 0 if ptrace call + fails instead of calling perror_with_name. This should fix + debugging remote i386 targets with a native Linux/x86 GDB. Add + FIXME for this hack. + +2001-03-19 J.T. Conklin + + * arch-utils.c (#include "gdbthread.h"): Removed. + (#include "symfile.h"): Removed. + (XMALLOC): Removed unused macro. + * breakpoint.c (tbreak_command): Removed local declaration. + (awatch_command, do_enable_breakpoint, set_breakpoint_count): + Remove duplicate declarations. + (bpstat_should_step, bpstat_have_active_hw_watchpoints) + (remove_solib_event_breakpoints): Fix indentation botch. + * c-typeprint.c (#include "command.h"): Removed. + (#include "gdbcmd.h"): Removed. + * ch-exp.c (ch_terminal_match_float_literal, parse_expr) + (parse_primval, parse_untyped_expr, parse_opt_untyped_expr): + Removed duplicate declarations. + * ch-typeprint.c (#include "command.h"): Removed. + (#include "gdbcmd.h"): Removed. + * corefile.c (#include "frame.h"): Removed + (#include "symfile.h"): Removed. + (#include "language.h"): Removed. + * dbxread.c (#include "command.h"): Removed. + * environ.c (#include "gdbcore.h"): Removed. + * event-loop.c (#include "top.h"): Removed. + * f-typeprint.c (#include "command.h"): Removed. + (#include "gdbcmd.h"): Removed. + (#include "language.h"): Removed. + (#include "typeprint.h"): Removed. + (#include "frame.h"): Removed. + * gdbtypes.h (print_type_scalar): Removed declaration. + * infcmd.c (#include "completer.h"): Removed. + * language.c (#include "frame.h"): Removed. + * m2-typeprint.c (#include "command.h"): Removed. + (#include "gdbcmd.h"): Removed. + (#include "language.h"): Removed. + * m2-valprint.c (#include "valprint.h"): Removed. + * p-typeprint.c (#include "command.h"): Removed. + (#include "gdbcmd.h"): Removed. + * p-valprint.c (#include "typeprint.h"): Removed. + * parse.c (#include "linespec.h"): Removed. + * regcache.c (#include "frame.h"): Removed. + * remote.c (#include "frame.h"): Removed. + (getpkt_sane): Make static. + * source.c (#include "completer.h"): Removed. + * stack.c (#include "symfile.h"): Removed. + (#include "objfiles.h"): Removed. + * symfile.c (#include "completer.h"): Removed. + * tracepoint.c (#include "completer.h"): Removed. + * values.c (#include "frame.h"): Removed. + * varobj.c (#include "valprint.h"): Removed. + * wrapper.c (#include "frame.h"): Removed. + + * memattr.c (create_mem_region): Removed unused variable. + * remote-nrom.c: Removed spurious semicolon after init_nrom_ops. + +2001-03-27 Nick Clifton + + * remote-rdp.c (rdp_set_command_line): Add missing double quote. + +2001-03-27 Kevin Buettner + + * solib-aix5.c (build_so_lib_from_mapfile): Use xfree() instead + of free(). + +2001-03-27 Eli Zaretskii + + * TODO (Cleanups): Remove the item about converting docs to GFDL. + +2001-03-26 Kevin Buettner + + * ia64-tdep.c (slotN_contents, replace_slotN_contents): Change + type of ``bundle'' from unsigned char * to char *. + (ia64_get_saved_register): Use alloca() to allocate register + buffers. + + * solib-aix5.c (build_so_lib_from_mapfile): Fix xasprintf() usage. + +2001-03-26 Kevin Buettner + + * proc-utils.h (procfs_ctl_t): New typedef. + * proc-api.c (write_with_trace): Change type of ``opcode'' from + long to procfs_ctl_t. Don't assume that the target has defined + BREAKPOINT. Handle case in which PCRESET is the same as PCUNSET. + * proc-events.c (sys/syscall.h, sys/fault.h): Include conditionally. + * procfs.c (sys/fault.h, sys/syscall.h): Include conditionally. + (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t, gdb_premptysysset) + (gdb_praddsysset, gdb_prdelsysset, gdb_pr_issyssetmember): + Conditionally define as appropriate for AIX/non-AIX systems. Use + these defines/typedefs as appropriate elsewhere in file. + (struct procinfo): Change type of saved_sigset and saved_sighold + from sigset_t to gdb_sigset_t. Make saved_exitset and + saved_entryset pointer variables. Add two new fields, num_syscalls + and syscall_names. + (DYNAMIC_SYSCALLS): Define when HAVE_PRSYSENT_T is defined. + (sysset_t_size, sysset_t_alloc): New functions. + (load_syscalls, free_syscalls, find_syscall): New functions for + platforms which define DYNAMIC_SYSCALLS. + (create_procinfo): Call load_syscalls. + (destroy_one_procinfo): Call free_syscalls. + (GDBRESET): Don't define twice. + (proc_modify_flag): Change type of operation code array `arg' + from long to procfs_ctl_t. + (proc_stop_process, proc_wait_for_stop, proc_run_process) + (proc_set_traced_signals, proc_set_traced_faults) + (proc_set_traced_sysentry, proc_set_traced_sysexit) + (proc_set_held_signals, proc_clear_current_fault) + (proc_set_current_signal, proc_clear_current_signal, proc_set_gregs) + (proc_set_fpregs, proc_kill, proc_set_watchpoint): Likewise for `cmd'. + (proc_set_traced_sysentry): Dynamically allocate variable sized + struct gdb_proc_ctl_pcsentry. Also, free it at function exit. + (proc_set_traced_sysexit): Dynamically allocate variable + sized struct gdb_proc_ctl_pcsexit. Also, free it at + function exit. + (proc_get_traced_sysentry, proc_get_traced_sysexit): Add new code + for reading the sysset_t struct on AIX5. + (procfs_debug_inferior): Don't assume that SYS_exit will be + defined. Add new code for finding certain syscalls on AIX5. + (syscall_is_lwp_exit, syscall_is_exit, syscall_is_exec) + (syscall_is_lwp_create): New functions. + (procfs_wait): Restructured code which checks for certain + system calls to use the new syscall_is_... functions. + (procfs_notice_signals): Account for the fact that saved_entryset + and saved_exitset in struct procinfo are now pointers. + +2001-03-26 Kevin Buettner + + * symtab.c (find_pc_sect_line): Revise method used for finding + the ending pc. + +2001-03-26 Mark Kettenis + + * i386-linux-tdep.c (i386_linux_sigtramp_saved_pc, + i386_linux_sigtramp_saved_sp): Make static. + (i386_linux_frame_saved_pc): New function based on the old + FRAME_SAVED_PC macro, but use read_memory_unsigned_integer instead + of read_memory_integer. + * config/i386/tm-linux.h (sigtramp_saved_pc): Remove definition. + (i386_linux_sigtramp_saved_pc): Remove prototype. + (FRAME_SAVED_PC): Redefine in terms of i386_linux_frame_saved_pc. + (i386_linux_frame_saved_pc): New prototype. + +2001-03-26 Andrew Cagney + + * MAINTAINERS: Document m88k as a ``Known problem in 5.1''. + * TODO (GDB 5.1 - Cleanups): Update. + +2001-03-26 Andrew Cagney + + * fork-child.c (clone_and_follow_inferior): Delete #ifdef + HAVE_VFORK. + +2001-03-26 Mark Kettenis + + * config/i386/tm-symmetry.h (PUSH_ARGUMENTS): #undef. + + * i386-tdep.c (i386_push_arguments, i386_store_struct_return): New + functions. + * config/i386/tm-i386.h (PUSH_ARGUMENTS): New macro. + (STORE_STRUCT_RETURN): Redefine in terms of + i386_store_struct_return. + (i386_push_arguments, i386_store_struct_return): New prototypes. + * config/i386/tm-i386v.h (STORE_STRUCT_RETURN): Remove. It's + definition was identical to the definition in "i386/tm-i386.h" so + the new definition should suffice too. + +2001-03-26 Eli Zaretskii + + * event-loop.c (toplevel) [!HAVE_POLL] [NO_FD_SET]: Remove unused + definitions for SELECT, NBBY, FD_SETSIZE, NFDBITS, and MASK_SIZE. + + * config/djgpp/djconfig.sh: Add copyright notice. + + * ser-go32.c (rawclock): Remove prototype; include time.h instead. + (ISR, dos_hookirq, isr_t): Convert K&R definition to ANSI C. + (top level) : Include gdb_string.h instead. + (dos_noop, dos_raw, dos_noflush_set_tty_state) + (dos_print_tty_state, dos_info): Remove ATTRIBUTE_UNUSED. + + * go32-nat.c (go32_create_inferior): Move the declaration of + `environ' to here from the top level. + (top level) <_initialize_go32_nat>: Remove redundant prototype. + : Include it instead of string.h. + (store_register): Call register_buffer instead of accessing + registers[] directly. + (redir_cmdline_delete, redir_cmdline_parse, redir_to_debugger) + (redir_to_debugger, redir_debug_init) [__DJGPP_MINOR__ < 3]: Put + the function names at the start of the line. + (go32_set_dr): Throw internal_error if the argument is not a valid + debug register number. + (go32_open, go32_close, go32_attach, go32_detach, go32_resume) + (go32_wait, go32_xfer_memory, go32_files_info) + (go32_terminal_info): Remove ATTRIBUTE_UNUSED. + +2001-03-25 Jim Blandy + + * mips-tdep.c (mips_gdbarch_init): Tweak indentation. + 2001-03-25 Elena Zannoni From Andrew Cagney @@ -53,6 +933,8 @@ 2001-03-23 Jim Blandy + Fix from Dan Berlin: + * stabsread.c (read_cpp_abbrev): Properly construct the names of virtual function table pointer fields. @@ -199,9 +1081,11 @@ 2001-03-21 Jim Blandy + Fix from Dan Berlin: + * linespec.c (find_methods): Whitespace differences aren't significant in *un*mangled method names. Use strcmp_iw to compare - them, not STREQ. (Fix from Daniel Berlin.) + them, not STREQ. 2001-03-21 Andrew Cagney @@ -298,6 +1182,8 @@ 2001-03-20 Jim Blandy + Fix from Dan Berlin: + * Makefile.in: Clean up dependencies on ../include/demangle.h. (demangle_h): New variable. (jv-typeprint.o, jv-valprint.o, linespec.o): Use it. @@ -325,6 +1211,8 @@ 2001-03-20 Jim Blandy + Fix from Dan Berlin: + * linespec.c (find_methods): Just call CHECK_TYPEDEF on t, rather than asking for sym_class's type; that's circuitous. Remove sym_class, since the last use of it is gone.