Fix compilation on 32-bit host configurations.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 2327ee17e901b4ad8532ff6b377f180c782e15e9..a0f27153b4261a4f331b67caee2ba939038da8bf 100644 (file)
@@ -1,3 +1,359 @@
+2008-12-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix compilation on 32-bit host configurations.
+       * ia64-tdep.c (ia64_breakpoint_from_pc): Suffix a constant by `LL'.
+
+2008-12-05  Tristan Gingold  <gingold@adacore.com>
+
+       * i386-darwin-nat.c (i386_darwin_sstep_at_sigreturn): New function.
+       (amd64_darwin_sstep_at_sigreturn): New function.
+       (darwin_set_sstep): The sigreturn is a special case: the trace flag
+       must be set in the mcontext structure.
+
+2008-12-05  Pedro Alves  <pedro@codesourcery.com>
+
+       * infcmd.c (step_once): Remove dead code.
+
+2008-12-04  Doug Evans  <dje@google.com>
+
+       * infcall.c (call_function_by_hand): Clean up use of local dummy_addr.
+
+2008-12-02  Doug Evans  <dje@google.com>
+
+       * infrun.c (handle_inferior_event): Remove redundant resetting of
+       stepping_past_singlestep_breakpoint.
+
+2008-12-02  Pedro Alves  <pedro@codesourcery.com>
+
+       * target.h (target_get_osdata): Describe.
+       * osdata.h (make_cleanup_osdata_free): Declare.
+       * osdata.c (osdata_item_clear): Define even if HAVE_LIBEXPAT is
+       not defined.
+       (osdata_free_cleanup): New.
+       (make_cleanup_osdata_free): New.
+       (get_osdata): Fix leak.
+       (info_osdata_command): Use make_cleanup_osdata_free.
+       (info_processes_command): Delete.
+       (_initialize_osdata): Drop undocumented "info processes" alias.
+       * mi/mi-main.c (mi_cmd_list_thread_groups): Fix leak.
+
+2008-12-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix resolving external references to TLS variables.
+       * findvar.c: Include `objfiles.h'.
+       (read_var_value <LOC_UNRESOLVED>): New variable `obj_section'.  Handle
+       SEC_THREAD_LOCAL variables.
+       * printcmd.c (address_info <LOC_UNRESOLVED>): Handle SEC_THREAD_LOCAL
+       variables.
+
+2008-12-02  Doug Evans  <dje@google.com>
+
+       * infrun.c (handle_inferior_event): Delete unused local tp.
+
+2008-12-02  Pedro Alves  <pedro@codesourcery.com>
+           Vladimir Prus  <vladimir@codesourcery.com>
+
+       Implement -list-thread-groups --available
+
+        * Makefile.in (XMLFILES): Add osdata.dtd.
+        (SFILES): Add osdata.c.
+        (COMMON_OBS): Add osdata.o.
+        * linux-nat.c: Include pwd.h, sys/types.h, gdb_dirent.h and xml-support.h.
+        (linux_nat_xfer_osdata): New function.
+        (linux_xfer_partial): Handle TARGET_OBJECT_OSDATA.
+        * osdata.c: New file.
+        * osdata.h: New file.
+        * remote.c (PACKET_qXfer_osdata): New packet enum.
+        (remote_protocol_features): Add "qXfer:osdata:read".
+        (remote_read_qxfer): Handle TARGET_OBJECT_OSDATA.
+        (extended_remote_can_run): New.
+        (init_extended_remote_ops): Set to_can_run to
+        extended_remote_can_run.
+        (_initialize_remote): Add packet config command for
+        "qXfer:osdata:read".
+        * xml-support.c (obstack_xml_printf): New function.
+        * xml-support.h (obstack_xml_printf): Declare.
+        * target.c (target_get_osdata): New function.
+        * target.h (enum target_object): Add TARGET_OBJECT_OSDATA.
+        (target_os_data): Declare.
+        * features/osdata.dtd: New file.
+        * mi/mi-main.c (mi_list_thread_groups): Handle the --available
+        option.
+
+2008-12-01  Doug Evans  <dje@google.com>
+
+       * infrun.c (proceed): Delete unused local stop_signal.
+
+2008-11-27  Tristan Gingold  <gingold@adacore.com>
+
+       * NEWS: Add entry for new native configuration: Darwin.
+       * configure.host: Add Darwin host.
+       * configure.tgt: Add Darwin target.
+       * defs.h (enum gdb_osabi): Add GDB_OSABI_DARWIN.
+       * osabi.c (gdb_osabi_names): Add name for Darwin abi.
+       * i386-darwin-nat.c: New file.
+       * i386-darwin-tdep.c: New file.
+       * machoread.c: New file.
+       * darwin-nat-info.c: New file.
+       * darwin-nat.c: New file.
+       * darwin-nat.h: New file.
+       * darwin.defs: New file.
+       * config/i386/darwin.mh: New file.
+
+2008-11-26  Tristan Gingold  <gingold@adacore.com>
+
+       * MAINTAINERS: Add myself for write after approval privileges.
+
+2008-11-26  Jerome Guitton  <guitton@adacore.com>
+
+       * value.h (allocate_value_lazy): New function declaration.
+       (value_free): Remove macro, make it a function.
+       * value.c (value): Move actual content outside of the memory space
+       of the struct; add a pointer to this actual content.
+       (allocate_value_lazy, allocate_value_contents): New function.
+       (allocate_value): Reimplement using these two new functions.
+       (value_contents_raw, value_contents_all_raw): If no memory
+       has been allocated yet for the actual content, allocate it.
+       (value_contents_all): Resync with struct value's changes.
+       (value_free): New function.
+       (value_copy, value_primitive_field): Use new function
+       allocate_value_lazy to allocate lazy values.
+       (value_change_enclosing_type): Resync with struct value's changes.
+       As the value is not reallocated, remove the special handling for
+       the value chain (now obsolete).
+       * valops.c (value_at_lazy): Use new function allocate_value_lazy.
+       (value_fetch_lazy): Allocate value content. Use allocate_value_lazy
+       to allocate lazy values.
+       (value_slice): Use allocate_value_lazy to allocate lazy values.
+
+2008-11-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix automatic restoration of breakpoints memory for ia64.
+       * ia64-tdep.c: New #if check on BREAKPOINT_MAX vs. BUNDLE_LEN.  
+       (ia64_memory_insert_breakpoint): New comment part for SHADOW_CONTENTS
+       content.  Remove variable instr.  New variable cleanup.  Disable
+       automatic breakpoints restoration.  PLACED_SIZE and SHADOW_LEN are now
+       set larger, to BUNDLE_LEN - 2.  Variable `bundle' type update.  Return
+       error if even just final target_write_memory has failed.
+       (ia64_memory_remove_breakpoint): Rename variables bundle to bundle_mem
+       and instr to instr_saved.  New variables bundle_saved and
+       instr_breakpoint.  Comment new reasons why we need to disable automatic
+       restoration of breakpoints.  Assert PLACED_SIZE and SHADOW_LEN.  New
+       check of the original memory content.  Return error if even just final
+       target_write_memory has failed.
+       (ia64_breakpoint_from_pc): Implement the emulation of permanent
+       breakpoints compatible with current bp_loc_is_permanent.
+       (template_encoding_table): Make it `const'.
+       * breakpoint.c (bp_loc_is_permanent): Support unsupported software
+       breakpoints.  New variables `cleanup' and `retval'.
+
+2008-11-24  Tom Tromey  <tromey@redhat.com>
+
+       * ada-lang.c (value_from_contents_and_address): Move...
+       * value.c: ... here.
+       * ada-lang.h (value_from_contents_and_address): Move
+       declaration...
+       * value.h: ... here.
+
+2008-11-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
+
+       * valprint.c (val_print_array_elements): Pass correct
+       element address to val_print.
+       
+2008-11-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix access of an already freed memory.
+       * parse.c (parse_field_expression): Call xstrdup on `*name'.
+       * completer.c (expression_completer): Free fieldname.
+
+2008-11-24  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       PR gdb/2474
+       * remote.c (remote_read_description_p): New function.
+       (remote_start_remote): Try to fetch the target description
+       before adding shared libraries.  Try again later if the
+       target is running but stopped.
+       (remote_open_1): Mark extended targets as exited by default.
+       (remote_read_description): Check target_has_execution.
+
+2008-11-24  Jerome Guitton  <guitton@adacore.com>
+
+       * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Use
+        the frame address in block instead of the return address to
+        locate the mdebug PDR of the frame.
+
+2008-11-21  Joel Brobecker  <brobecker@adacore.com>
+
+       Remove the unused BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK.
+
+       * breakpoint.h (enum bpstat_what_main_action): Remove
+       BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK.
+       * breakpoint.c (bpstat_what): Delete catch_shlib_event from enum class.
+       Remove the BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK column from
+       variable table.
+       * infrun.c (wait_for_inferior): Remove handling of
+       BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK.
+
+2008-11-21  Tom Tromey  <tromey@redhat.com>
+
+       * configure: Rebuild.
+       * configure.ac: Merge calls to AC_CHECK_FUNCS, AC_CHECK_HEADERS,
+       AC_CHECK_DECLS, and AC_CHECK_MEMBERS.
+
+2008-11-21  Tom Tromey  <tromey@redhat.com>
+
+       * python/python-internal.h (PyGILState_Ensure): New define.
+       (PyGILState_Release): Likewise.
+       (PyEval_InitThreads): Likewise.
+       (PyThreadState_Swap): Likewise.
+       (PyEval_InitThreads): Likewise.
+       * python/python.c (_initialize_python): Initialize threads.
+       Release GIL.
+       (eval_python_from_control_command): Acquire GIL.
+       (python_command): Likewise.
+       * python/python-internal.h (make_cleanup_py_restore_gil):
+       Declare.
+       * python/python-utils.c (py_gil_restore): New function.
+       (make_cleanup_py_restore_gil): Likewise.
+
+2008-11-20  Doug Evans  <dje@google.com>
+
+       * frame.c (frame_debug_got_null_frame): Remove file arg.
+       All callers updated.
+
+2008-11-20  Pedro Alves  <pedro@codesourcery.com>
+
+       * infrun.c (resume): If following a fork, also reset regcache,
+       gdbarch and pc.
+
+2008-11-20  Doug Evans  <dje@google.com>
+
+       * printcmd.c (sym_info): Don't print the offset if it's zero.
+
+2008-11-20  Pedro Alves  <pedro@codesourcery.com>
+
+       * infrun.c (resume): If following a fork, reread the current
+       thread.  Avoid dereferencing a possibly dangling pointer.
+
+2008-11-19  Doug Evans  <dje@google.com>
+
+       * inferior.h (proceed_to_finish): Delete, unused.
+       (stop_registers): Tweak comment.
+       * infrun.c (stop_registers): Tweak comment.
+
+2008-11-19  Kevin Buettner  <kevinb@redhat.com>
+
+       * frv-tdep.c (frv_skip_main_prologue): New function.
+       (frv_gdbarch_init): Register frv_skip_main_prologue.
+       * solib-frv.c (fetch_loadmap): Return early when no segments are
+       found.
+       (frv_relocate_main_executable): Return early when both interpreter
+       and executable loadmap addresses are zero.
+
+2008-11-19  Bob Wilson  <bob.wilson@acm.org>
+       
+       * xtensa-config.c (rmap): Remove entries for ar32 through ar63.  Add
+       threadptr, scompare1, mmid, epc5, epc6, epc7, eps5, eps6, eps7,
+       excsave5, excsave6, excsave7, cpenable, and vecbase registers.
+       (xtensa_submask0, xtensa_submask1, xtensa_submask2)
+       (xtensa_submask3, xtensa_submask4, xtensa_submask5, xtensa_submask6)
+       (xtensa_submask7, xtensa_submask8, xtensa_submask9, xtensa_submask10)
+       (xtensa_submask11, xtensa_submask12, xtensa_submask13, xtensa_submask14)
+       (xtensa_submask15): Adjust register numbers.
+       * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
+       (xtensa_regmap_table): Add entry for scompare1.
+       * regformats/reg-xtensa.dat: Remove ar32 through ar63.  Add threadptr
+       and scompare1.
+       
+2008-11-19  Pedro Alves  <pedro@codesourcery.com>
+
+       * remote.c (escape_buffer): New.
+       (putpkt_binary, read_frame, getpkt_or_notif_sane_1): Use it.  Make
+       sure debug output printing a packet buffer goes through a single
+       fprintf_unfiltered call.
+       * utils.c (vfprintf_unfiltered): If outputting timestamps, end
+       output with a newline if it wasn't going to already.
+
+2008-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
+
+       * maint.c (maintenance_translate_address): Fix a buglet.
+       
+2008-11-18  Thiago Jung Bauermann  <bauerman@br.ibm.com>
+
+       * features/Makefile (rs6000/powerpc-isa205-32l-expedite,
+       rs6000/powerpc-isa205-altivec32l-expedite,
+       powerpc-isa205-vsx32l-expedite, rs6000/powerpc-isa205-64l-expedite,
+       rs6000/powerpc-isa205-altivec64l-expedite,
+       powerpc-isa205-vsx64l-expedite): New variables.
+       * regformats/rs6000/powerpc-isa205-32l.dat: Generate.
+       * regformats/rs6000/powerpc-isa205-altivec32l.dat: Generate.
+       * regformats/rs6000/powerpc-isa205-vsx32l.dat: Generate.
+       * regformats/rs6000/powerpc-isa205-64l.dat: Generate.
+       * regformats/rs6000/powerpc-isa205-altivec64l.dat: Generate.
+       * regformats/rs6000/powerpc-isa205-vsx64l.dat: Generate.
+
+2008-11-18  Thiago Jung Bauermann  <bauerman@br.ibm.com>
+
+       * ppc-linux-nat.c (ppc_register_u_addr): Add special case to return
+       offset for full 64-bit slot of FPSCR when in 32-bits.
+       (ppc_linux_read_description): Return target description with 64-bit
+       FPSCR when inferior is running on an ISA 2.05 or later processor.
+       * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Call
+       initialize_tdec_powerpc_isa205_32l,
+       initialize_tdec_powerpc_isa205_altivec32l,
+       initialize_tdec_powerpc_isa205_vsx32l,
+       initialize_tdec_powerpc_isa205_64l,
+       initialize_tdec_powerpc_isa205_altivec64l and
+       initialize_tdec_powerpc_isa205_vsx64l.
+       * ppc-linux-tdep.h: Add external declaration for
+       tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l,
+       tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_64l,
+       tdesc_powerpc_isa205_altivec64l and tdesc_powerpc_isa205_vsx64l.
+       * features/rs600/powerpc-fpu-isa205.xml: New file.
+       * features/rs600/powerpc-isa205-32l.xml: New file.
+       * features/rs600/powerpc-isa205-64l.xml: New file.
+       * features/rs600/powerpc-isa205-altivec32l.xml: New file.
+       * features/rs600/powerpc-isa205-altivec64l.xml: New file.
+       * features/rs600/powerpc-isa205-vsx32l.xml: New file.
+       * features/rs600/powerpc-isa205-vsx64l.xml: New file.
+       * features/rs600/powerpc-isa205-32l.c: Generate.
+       * features/rs600/powerpc-isa205-64l.c: Generate.
+       * features/rs600/powerpc-isa205-altivec32l.c: Generate.
+       * features/rs600/powerpc-isa205-altivec64l.c: Generate.
+       * features/rs600/powerpc-isa205-vsx32l.c: Generate.
+       * features/rs600/powerpc-isa205-vsx64l.c: Generate.
+
+2008-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
+
+       * objfiles.h: New MULTI_OBJFILE_P macro.
+       * printcmd.c (sym_info): Print object name.
+       * maint.c (maintenance_translate_address): Likewise.
+       
+2008-11-18  Joel Brobecker  <brobecker@adacore.com>
+
+       * NEWS: Document the removal of "catch load" and "catch unload".
+
+2008-11-17  Doug Evans  <dje@google.com>
+
+       * infcall.c (call_function_by_hand): Fix punctuation and capitalization
+       on error messages.
+
+2008-11-17  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       PR gdb/2250
+       * infrun.c (clear_proceed_status_thread): New function.
+       (clear_proceed_status_callback): New function.
+       (clear_proceed_status): In all-stop mode, clear per-thread
+       proceed status of *all* threads, not only the current.
+       (handle_inferior_event): In all-stop mode, if we're stepping
+       one thread, but got some inferior event in another thread
+       that does not cause GDB to break to the user interface,
+       ensure the interrupted stepping operation continues in the
+       original thread.
+       (currently_stepping): Move thread-related tests to ...
+       (currently_stepping_thread): ... this new function.
+       (currently_stepping_callback): New function.
+
 2008-11-17  Vladimir Prus  <vladimir@codesourcery.com>
 
        Implement =thread-selected notification.
This page took 0.027894 seconds and 4 git commands to generate.