* infrun.c (fetch_inferior_event): Only call normal_stop if not
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 5e4b8cf047aa2ec7410316a473493db3eb6fb5e5..d709b5b4096583365ecc51d7b7a8e39266ed34b7 100644 (file)
@@ -1,3 +1,391 @@
+2008-08-16  Pedro Alves  <pedro@codesourcery.com>
+
+       * infrun.c (fetch_inferior_event): Only call normal_stop if not
+       stopping quietly.
+
+2008-08-15  Luis Machado  <luisgpm@br.ibm.com>
+
+       * rs6000-tdep: Include "features/rs6000/powerpc-vsx32.c".
+       Include "features/rs6000/powerpc-vsx64.c".
+       (ppc_supply_vsxregset): New function.
+       (ppc_collect_vsxregset): New function.
+       (IS_VSX_PSEUDOREG): New macro.
+       (IS_EFP_PSEUDOREG): New macro.
+       (vsx_register_p): New function.
+       (ppc_vsx_support_p): New function.
+       (rs6000_builtin_type_vec128): New function.
+       (rs6000_register_name): Hide upper halves of vs0~vs31.  Return
+       correct names for VSX registers and EFPR registers.
+       (rs6000_pseudo_register_type): Return correct types for VSX
+       and EFPR registers.
+       (rs6000_pseudo_register_reggroup_p): Return correct group for
+       VSX and EFPR registers.
+       (ppc_pseudo_register_read): Rename to dfp_pseudo_register_read.
+       (ppc_pseudo_register_write): Rename to dfp_pseudo_register_write.
+       (vsx_pseudo_register_read): New function.
+       (vsx_pseudo_register_write): New function.
+       (efpr_pseudo_register_read): New function.
+       (efpr_pseudo_register_write): New function.
+       (rs6000_pseudo_register_read): Call new VSX and EFPR read functions.
+       (rs6000_pseudo_register_write): Call new VSX and EFPR write functions.
+       (rs6000_gdbarch_init): Declare have_vsx.
+       Initialize new upper half VSX registers.
+       Initialize VSX-related and EFPR-related pseudo-registers variables.
+       Adjust the number of pseudo registers accordingly.
+
+       * ppc-linux-nat.c: Define PTRACE_GETVSXREGS, PTRACE_SETVSXREGS
+       and SIZEOF_VSRREGS.
+       (gdb_vsxregset_t): New type.
+       (have_ptrace_getsetvsxregs): New variable.
+       (fetch_vsx_register): New function.
+       (fetch_register): Handle VSX registers.
+       (fetch_vsx_registers): New function.
+       (fetch_ppc_registers): Handle VSX registers.
+       (store_ppc_registers): Handle VSX registers.
+       (store_vsx_register): New function.
+       (store_register): Handle VSX registers.
+       (store_vsx_registers): New function.
+       (ppc_linux_read_description): Handle VSX-enabled inferiors.
+       (gdb_vsxregset_t): New type.
+       (supply_vsxregset): New function.
+       (fill_vsxregset): New function.
+
+       * ppc-tdep.h (vsx_register_p): New prototype.
+       (vsx_support_p): New prototype.
+       (ppc_vsr0_regnum): New variable.
+       (ppc_vsr0_upper_regnum): Likewise.
+       (ppc_efpr0_regnum): Likewise.
+       (ppc_builtin_type_vec128): New type.
+       (ppc_num_vsrs): New constant.
+       (ppc_num_vshrs): New constant.
+       (ppc_num_efprs): Likewise.
+       Define POWERPC_VEC_VSX PPC_VSR0_UPPER_REGNUM and PPC_VSR31_UPPER_REGNUM.
+       (ppc_supply_vsxregset): New prototype.
+       (ppc_collect_vsxregset): New prototype.
+
+       * ppc-linux-tdep.c: Include "features/rs6000/powerpc-vsx32l.c"
+       Include "features/rs6000/powerpc-vsx64l.c".
+       (_initialize_ppc_linux_tdep): Initialize VSX-enabled targets.
+       (ppc_linux_regset_sections): Add new ".reg-ppc-vsx" field.
+       (ppc32_linux_vsxregset): New 32-bit VSX-enabled regset.
+       (ppc_linux_regset_from_core_section): Handle VSX core section.
+       (ppc_linux_core_read_description): Support VSX-enabled core files.
+
+       * ppc-linux-tdep.h: Declare *tdesc_powerpc_vsx32l
+       Declare tdesc_powerpc_vsx64l
+
+       * corelow.c (get_core_register_section): Support VSX-enabled
+       core files.
+
+       * features/rs6000/power-vsx.xml: New VSX descriptions.
+       * features/rs6000/powerpc-vsx32.xml: New file.
+       * features/rs6000/powerpc-vsx32l.xml: New file.
+       * features/rs6000/powerpc-vsx64.xml: New file.
+       * features/rs6000/powerpc-vsx64l.xml: New file.
+       * features/rs6000/powerpc-vsx32.c: New file (generated).
+       * features/rs6000/powerpc-vsx32l.c: New file (generated).
+       * features/rs6000/powerpc-vsx64.c: New file (generated).
+       * features/rs6000/powerpc-vsx64l.c: New file (generated).
+       * features/Makefile: Updated with new descriptions.
+       * regformats/rs6000/powerpc-vsx32l.dat: New file (generated).
+       * regformats/rs6000/powerpc-vsx64l.dat: New file (generated).
+
+2008-08-15  Vladimir Prus  <vladimir@codesourcery.com>
+
+       * ia64-linux.nat (_initialize_ia64_linux_nat): Don't
+       call linux_target twice.
+
+2008-08-14  Aleksandar Ristovski  <aristovski@qnx.com>
+
+       * nto-tdep.c (lm_info): Updated struct lm_info definition from
+       solib-svr4.c
+       (LM_ADDR): Use l_addr if available; if not, use link map and set 
+       l_addr.
+
+2008-08-14  Tom Tromey  <tromey@redhat.com>
+
+       * macrocmd.c (macro_define_command): Check for NULL argument.
+       (macro_undef_command): Likewise.
+
+2008-08-14  Pedro Alves  <pedro@codesourcery.com>
+
+       * infcmd.c (continue_1): Add an ERROR_NO_INFERIOR call.
+
+2008-08-13  Pedro Alves  <pedro@codesourcery.com>
+
+       * breakpoint.c (always_inserted_auto, always_inserted_on)
+       (always_inserted_off, always_inserted_enums): New.
+       (always_inserted_mode): Change type to char* and point to
+       always_inserted_auto.
+       (show_always_inserted_mode): In auto mode, also show the current
+       effect of the option.
+       (breakpoints_always_inserted_mode): Adjust for the new auto mode.
+       (_initialize_breakpoint): Make the "set breakpoints
+       always-inserted" command an enum command.  Extend help to describe
+       the auto mode.
+
+2008-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status
+       query valid) bit.  Ignore bits outside the condition field.
+       (info_spu_proxydma_command): Ignore bits outside the field.
+
+2008-08-12  Michael Snyder  <msnyder@vmware.com>
+
+       * MAINTAINERS: Update my email address.
+
+2008-08-12  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP.
+
+2008-08-12  Pedro Alves  <pedro@codesourcery.com>
+
+       Add no-ack mode to the remote protocol --- optionally stop ACKing
+       packets and responses when we have a reliable communication
+       medium.
+
+       Based on Apple's GDB, by Jason Molenda <jmolenda@apple.com>
+
+       * remote.c (struct remote_state): Add noack_mode field.
+       (PACKET_QStartNoAckMode): New.
+       (remote_start_remote): Don't any outstanding packet here.
+       (remote_open_1): Clear noack_mode.  Ack any outstanding packet
+       here.  Activate noack mode if requested.
+       (remote_protocol_features): Add QStartNoAckMode.
+       (remote_open_1):
+       (putpkt_binary): Don't send ack in noack mode.
+       (read_frame): Don't recompute the checksum in noack mode.
+       (getpkt_sane): Skip sending ack if in noack mode.
+       (_initialize_remote): Add set/show remote noack mode.
+       * NEWS:  Note the new features.
+
+2008-08-11  Kevin Buettner  <kevinb@redhat.com>
+
+       * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK):
+       New macros.
+       (rs6000_skip_main_prologue): New function.
+       (rs6000_gdb_arch_init): Register rs6000_skip_main_prologue.
+
+2008-08-11  Sandra Loosemore  <sandra@codesourcery.com>
+
+       * MAINTAINERS (Write After Approval):  Add self.
+
+2008-08-11  Stan Shebs  <stan@codesourcery.com>
+
+       ARM BE8 support.
+       * disasm.c (gdb_disassemble_info): Set endian_code.
+       * gdbarch.sh (gdbarch_info): New field byte_order_for_code.
+       * gdbarch.h, gdbarch.c: Regenerate.
+       * arch-utils.c (initialize_current_architecture): Set the
+       default byte_order_for_code.
+       (gdbarch_info_init): Ditto.
+       (gdbarch_info_fill): Ditto.
+       * arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros.
+       (thumb_analyze_prologue): Swap halfword if code endianness is
+       different from general endianness.
+       (arm_skip_prologue): Similarly.
+       (arm_scan_prologue): Ditto.
+       (thumb_get_next_pc): Ditto.
+       (arm_get_next_pc): Ditto.
+       (arm_gdbarch_init): Set byte_order_for_code from BE8 flag,
+       choose correct endianness for breakpoints.
+
+2008-08-10  Pedro Alves  <pedro@codesourcery.com>
+
+       * bsd-kvm.c: Include "gdbthread.h".
+       (bsd_kvm_ptid): New.
+       (bsd_kvm_open): Add a main thread.
+       (bsd_kvm_close): Delete it.
+       (bsd_kvm_thread_alive): New.
+       (bsd_kvm_pid_to_str): New.
+       (bsd_kvm_add_target): Register bsd_kvm_thread_alive and
+       bsd_kvm_pid_to_str.
+       (bsd_kvm_add_target): Initialize bsd_kvm_ptid.
+
+2008-08-09  Pedro Alves  <pedro@codesourcery.com>
+
+       * buildsym.c (start_subfile): Properly cast sentinel in concat
+       call.
+       * cp-name-parser.y: Include "config.h".
+       * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in
+       concat call.
+       * gdb_select.h: Include sys/time.h if sys/select.h is not
+       available.
+
+2008-08-09  Pedro Alves  <pedro@codesourcery.com>
+
+       * go32-nat.c: Include "gdbthread.h".
+       (go32_stop, go32_kill_inferior): Delete the main thread.
+       (go32_create_inferior): Add it.
+       (go32_thread_alive, go32_pid_to_str): New.
+       (init_go32_ops): Register go32_thread_alive and go32_pid_to_str.
+
+2008-08-09  Pedro Alves  <pedro@codesourcery.com>
+
+       * go32-nat.c (fetch_register, store_register): Pass the regcache
+       gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p.
+       (go32_xfer_memory): Change type of myaddr parameter to gdb_byte.
+       (struct seg_descr, struct seg_descr): pack the whole struct
+       instead of each member individually.
+
+2008-08-09  Andreas Schwab  <schwab@suse.de>
+
+       * python/python.c (_initialize_python): Use unabbreviated commands
+       in prefix name.
+
+2008-08-09  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * Makefile.in (stamp-h): Also create .deps.
+
+2008-08-09  Tom Tromey  <tromey@redhat.com>
+
+       * Makefile.in (generated_files): Add GNULIB_H.
+
+2008-08-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       * solib-pa64.c (pa64_solib_create_inferior_hook): Don't set
+       DT_HP_DEBUG_PRIVATE.  Add warning if DT_HP_DEBUG_PRIVATE is not set.
+       Revise comment.
+       (pa64_current_sos): Remove map private warning warning.
+       * solib-som.c: Include string.h and sys/utsname.h.
+       (get_hpux_major_release): New function.
+       (som_solib_create_inferior_hook): Read dynamic linker header.  Warn
+       about shared library private mapping on HP-UX 11 and later.  Only force
+       private mapping of shared libraries on HP-UX 10 and earlier.
+       (link_map_start): Delete warning.
+
+2008-08-09  Xuepeng Guo  <xuepeng.guo@intel.com>
+           H.J. Lu  <hongjiu.lu@intel.com>
+           Mark Kettenis <kettenis@gnu.org>
+
+       * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg.
+       (amd64_init_frame_cache): Initialize saved_sp_reg.
+       (amd64_analyze_stack_align): New.
+       (amd64_analyze_prologue): Call it.
+       (amd64_frame_cache): Use saved_sp_reg if it is invalid.  Don't set
+       %rip to 8 when halfway aligning the stack.
+
+       * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to
+       AMD64_R14_REGNUM.
+
+       * i386-tdep.c (i386_frame_cache): Remove stack_align.  Add
+       saved_sp_reg.
+       (i386_alloc_frame_cache): Remove stack_align.  Initialize
+       saved_sp_reg to -1.
+       (i386_analyze_stack_align): Rewrite.
+       (i386_frame_cache): Use saved_sp_reg if it is valid.
+
+2008-08-09  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * target.c: Include "solib.h".
+       (target_pre_inferior): Call no_shared_libraries.
+       * infcmd.c (run_command_1): Do not call objfile_purge_solibs
+       or clear_solib.
+       (attach_command): Do not call clear_solib.
+
+2008-08-09  Mark Kettenis  <kettenis@gnu.org>
+
+       * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
+       the %eip register.
+
+2008-08-08  Tom Tromey  <tromey@redhat.com>
+
+       * Makefile.in (python.o): Remove dependencies.  Use COMPILE and
+       POSTCOMPILE.
+       (python-utils.o): Likewise.
+
+2008-08-08  Andreas Schwab  <schwab@suse.de>
+
+       * corefile.c (_initialize_core): Remove spurious paren from set
+       gnutarget doc string.
+
+2008-08-08  Luis Machado  <luisgpm@br.ibm.com>
+
+       * ppc-linux-nat.c: Include "auxv.h" and "elf/common.h".
+       Define PPC_FEATURE_BOOKE.
+       (ppc_linux_get_hwcap): New function.
+       (ppc_linux_region_ok_for_hw_watchpoint): Handle PowerPC 440
+       4-bytes alignment restrictions.
+       (ppc_linux_insert_watchpoint): Handle PowerPC 440-specific
+       positioning of the read/write flags.
+       (ppc_linux_watchpoint_addr_within_range): Handle PowerPC 440
+       4-bytes alignment.
+
+2008-08-08  Pedro Alves  <pedro@codesourcery.com>
+
+       Use ptid_t.tid to store thread ids instead of ptid_t.pid.
+
+       * win32-nat.c (win32_add_thread): Change thread argument type to
+       ptid_t.  Adjust.
+       (win32_add_thread): Adjust.
+       (win32_delete_thread): Change thread argument type to ptid_t.
+       Adjust.
+       (win32_fetch_inferior_registers, win32_store_inferior_registers)
+       (win32_resume, get_win32_debug_event, get_win32_debug_event)
+       (win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust.
+       (init_win32_ops): Put to_magic last.
+       (win32_win32_thread_alive): Adjust.
+
+2008-08-08  Pedro Alves  <pedro@codesourcery.com>
+
+       * remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New.
+       (init_m32r_ops): Register m32r_thread_alive and m32r_pid_to_str.
+
+2008-08-08  Pedro Alves  <pedro@codesourcery.com>
+
+       * remote-m32r-sdi.c: Include "gdbthread.h".
+       (remote_m32r_ptid): New.
+       (m32r_close): Delete the main thread.
+       (m32r_resume): Set inferior_ptid toA remote_m32r_ptid. Add the
+       main thread.
+       (m32r_kill, m32r_load, sdireset_command): Delete the main thread.
+       (_initialize_remote_m32r): Initialize remote_m32r_ptid.
+
+2008-08-07  Tom Tromey  <tromey@redhat.com>
+           Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * aclocal.m4, configure: Rebuild.
+       * configure.in: Call ZW_CREATE_DEPDIR,
+       ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
+       (MAKE, GMAKE): New substs.
+       * acinclude.m4: Include depstand.m4.
+       * Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
+       COMPILE, POSTCOMPILE, depcomp): New variables.
+       Remove all _h variables.
+       Remove many .o targets.
+       ($(srcdir)/copying.c): avoid backslash-newline after comment
+       sign (@maintainer_mode_true@).
+       (HFILES_NO_SRCDIR): Regenerate.
+       (generated_files): New variable.
+       (all_gdbtk_cflags): Likewise.
+       (.c.o): Rewrote.
+       (init.o, version.o, copying.o): Remove.
+       (distclean): Remove DEPDIR.
+       (test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
+       printcmd.o, procfs.o, v850ice.o): Rewrite.
+       (cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
+       cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
+       (gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
+       gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
+       gdbtk-wrapper.o): Likewise.
+       (mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
+       mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
+       mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
+       mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
+       tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
+       tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
+       tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
+       tui-wingeneral.o, tui-winsource.o): Likewise.
+       (all_object_files): New variable.
+       ($(all_object_files)): New target.
+       Include dependency files, when using GNU Make.
+
+2008-08-07  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * spu-tdep.c (info_spu_dma_cmdlist): Only show entries with
+       the valid bit set.  Ensure display order respects partial
+       order defined by dependency bits.
+
 2008-08-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
 
        * solib-pa64.c (read_dld_descriptor): Return zero if load map is not
 
 2008-08-06  Phil Muldoon  <pmuldoon@redhat.com>
 
-        * MAINTAINERS (Write After Approval): Add self.
+       * MAINTAINERS (Write After Approval): Add self.
 
 2008-08-06  Phil Muldoon  <pmuldoon@redhat.com>
 
        * configure.ac: Don't check if ../itcl exists when building
        gdbtk. It could be installed.
        Rewrite gdbtk configury to allow for using system-supplied
-       Tcl and Tk. Gdbtk no longer requires build-time access to 
+       Tcl and Tk. Gdbtk no longer requires build-time access to
        itcl and itk.
        * Makefile.in: Remove everything related to itcl and itk.
        Rewrite the Tcl bits for gdbtk to correspond to rewrite of
        (ALL_TCL_CFLAGS): New convenience defintion. Change all
        gdbtk sources to use it.
        * configure: Regenerate.
-       
+
 2008-07-31  Stan Shebs  <stan@codesourcery.com>
 
        * coffread.c (coff_symtab_read): Remove FUNCTION_EPILOGUE_SIZE.
 2008-07-26  Vladimir Prus  <vladimir@codesourcery.com>
 
        Kill cmd_async_ok.
-        * cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok)
-        (get_cmd_async_ok): Remove.
-        * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove.
-        * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok.
-        * infcmd.c (_initialize_infcmd): Likewise.
-        * thread.c (_initialize_thread): Likewise.
+       * cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok)
+       (get_cmd_async_ok): Remove.
+       * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove.
+       * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok.
+       * infcmd.c (_initialize_infcmd): Likewise.
+       * thread.c (_initialize_thread): Likewise.
 
 2008-07-25  Joseph Myers  <joseph@codesourcery.com>
 
        * nto-procfs.c (procfs_xfer_memory): Changed signature.
        (procfs_resume): Workaround for dereferencing type-punned pointer
        warning.
-       * nto-tdep.c (nto_parse_redirection): Change signature to be const 
+       * nto-tdep.c (nto_parse_redirection): Change signature to be const
        correct.
        * nto-tdep.h (nto_parse_redirection): Likewise.
 
        * observer.sh: Handle functions with no arguments.
 
 2008-07-20  Sergei Poselenov  <sposelenov@emcraft.com>
-            Chris Demetriou  <cgd@google.com>
+           Chris Demetriou  <cgd@google.com>
 
        * elfread.c (elf_symfile_segments): Fix the check that each loadable
        section fits within an ELF segment to handle ELF segments that hit
This page took 0.030753 seconds and 4 git commands to generate.