Fix date format in one entry. Fix whitespace throughout while there.
[binutils-gdb.git] / gdb / ChangeLog
index 94264e1c695617864b9a62e8065261db9a57c9a0..288d920c2ccf7c1e1bb2d8034e4b8528af8d3532 100644 (file)
@@ -1,3 +1,211 @@
+2010-04-15  Pedro Alves  <pedro@codesourcery.com>
+
+       * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
+       flags.
+       * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
+
+2010-04-15  Doug Evans  <dje@google.com>
+
+       * NEWS: Add entry for python program space support.
+       * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
+       (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
+       (py-progspace.o): New rule.
+       * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
+       function.
+       (find_pretty_printer_from_progspace): New function.
+       (find_pretty_printer_from_gdb): New function.
+       (find_pretty_printer): Rewrite.
+       * python/py-progspace.c: New file.
+       * python/python-internal.h (program_space): Add forward decl.
+       (pspace_to_pspace_object, pspy_get_printers): Declare.
+       (gdbpy_initialize_pspace): Declare.
+       * python/python.c: #include "progspace.h".
+       (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
+       (_initialize_python): Call gdbpy_initialize_pspace.
+       (GdbMethods): Add current_progspace, progspaces.
+
+       Add -s option to source command.
+       * NEWS: Document new option.
+       * cli/cli-cmds.c (find_and_open_script): Add function comment.
+       Delete from_tty and cleanupp args.  Split filep arg into file and
+       full_pathp.  New arg search_path.
+       (source_script_from_stream): New function.
+       (source_script_with_search): New function.
+       (source_script): Rewrite.
+       (source_command): Parse "-s" option.
+       (init_cli_cmds): Add "-s" docs to source command help, and reformat.
+       * python/python.c (source_python_script): Make file arg a const char *.
+       Don't call fclose, leave for caller.
+       * python/python.h (source_python_script): Update.
+
+2010-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
+           Pedro Alves  <pedro@codesourcery.com>
+
+       Avoid rereading shared libraries that haven't changed.
+
+       * solib.c (free_so_symbols): New function, from ...
+       (free_so): ... here.  Call it.
+       (solib_read_symbols): Don't warn here if symbols have already been
+       loaded.
+       (solib_add): Warn here instead, if a pattern was specified.
+       (reload_shared_libraries_1): New.
+       (reload_shared_libraries): Rewrite to not fetch the library list.
+
+2010-04-14  Doug Evans  <dje@google.com>
+
+       * source.c (openp): Strip DOS drive letter if present before
+       concatenating string to search path.
+
+2010-04-14  Pedro Alves  <pedro@codesourcery.com>
+
+       * objfiles.h (gdb_bfd_close_or_warn): Declare.
+       * objfiles.c (gdb_bfd_close_or_warn): New.
+       * corelow.c: Include objfiles.h
+       (core_close): Use gdb_bfd_close_or_warn.
+       * elfread.c (build_id_verify): Ditto.
+       * exec.c (exec_close, exec_close_1): Ditto.
+
+2010-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
+           Pedro Alves  <pedro@codesourcery.com>
+
+       Group errors for many missing shared libraries.
+
+       * solist.h (struct so_list): Remove from_tty.
+       * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
+       (solib_map_sections): Take so_list argument.  Return 0 if we
+       failed to open a BFD.  Add target sections here.
+       (symbol_add_stub): Delete.
+       (solib_read_symbols): Inline symbol_add_stub.  Use current flags,
+       not from_tty copied from the so_list.  Don't warn a second time
+       for a missing library.
+       (update_solib_list): Don't save from_tty.  Use TRY_CATCH.  Do not
+       add to the section table here.  Print out a single warning for all
+       missing libraries.
+       * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
+       flags.
+
+2010-04-14  Phil Muldoon  <pmuldoon@redhat.com>
+
+       * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
+       error/warning messages.  Capitalize and use complete sentences.
+       (blpy_block_syms_iternext): Likewise.
+       * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
+       * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
+       (frame_info_to_frame_object, frapy_read_var)
+       (gdbpy_frame_stop_reason_string): Likewise.
+       * python/py-lazy-string.c (stpy_convert_to_value)
+       (gdbpy_create_lazy_string_object): Likewise.
+       * python/py-objfile.c (objfpy_set_printers): Likewise.
+       * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
+       * python/python.c (parameter_to_python): Likewise.
+       * python/py-type.c (typy_range, typy_target): Likewise.
+       * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
+       (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
+
+
+2010-04-14  Phil Muldoon  <pmuldoon@redhat.com>
+
+       PR python/11381
+
+       * python/py-prettyprint.c (pretty_print_one_value): Test for
+       Py_None.
+       (print_string_repr): Test for Py_None.  Set flags accordingly.
+       Return value depending on return type.
+       (print_children): Take a value indicating whether data was printed
+       before this function was called.  Alter output accordingly.
+       (apply_val_pretty_printer): Capture return value from
+       print_string_repr and pass to print_children.
+
+2010-04-13  Mark Kettenis  <kettenis@gnu.org>
+
+       PR corefiles/11481
+       * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
+       register note sections.
+       (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
+       New variables.
+       (i386_linux_init_abi): Install list of supported register note
+       sections that matches the target description.
+
+2010-04-13  Pedro Alves  <pedro@codesourcery.com>
+
+       * remote.c (remote_get_noisy_reply): Don't error out on empty
+       replies.
+       (remote_start_remote): Update and merge tracepoints and trace
+       state variables as long as the target supports tracepoints.
+       (remote_trace_init): Fix prototype.
+       (remote_download_trace_state_variable): Validate reply.
+       (remote_trace_set_readonly_regions): Fix prototype.
+       (remote_trace_start): Fix prototype.  Check for empty reply.
+       (remote_get_trace_status): Small cleanup.
+       (remote_trace_stop): Fix prototype.  Check for empty reply.
+       (remote_trace_find): Check for empty reply.
+       (remote_save_trace_data): Validate reply.
+       (remote_set_disconnected_tracing): Check for empty reply, and
+       validate reply.
+       (remote_set_circular_trace_buffer): Ditto.
+
+2010-04-13  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       Suppress unused value warning during compilation.
+       * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
+       calls to void.
+       * tui/tui-stack.c (tui_show_locator_content): Likewise.
+
+2010-04-12  Stan Shebs  <stan@codesourcery.com>
+
+       * tracepoint.c (tfile_xfer_partial): Check read result.
+
+2010-04-12  Mike Frysinger  <vapier@gentoo.org>
+
+       * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
+       * remote-sim.c (gdbsim_files_info): Likewise.
+
+2010-04-12  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
+
+       * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
+       * arm-linux-nat.c (arm_linux_vfp_register_count): New
+       variable.
+       (fetch_vfp_registers): New function to fetch VFP registers.
+       (store_vfp_registers): New function to store VFP registers.
+       (arm_linux_fetch_inferior_registers): Add support for VFP
+       registers.
+       (arm_linux_store_inferior_registers): Likewise.
+       (arm_linux_read_description): Likewise.
+       (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
+       until we need it.
+
+2010-04-11  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
+       tdep.
+       (amd64_collect_xstateregset): Likewise.
+
+2010-04-09  Stan Shebs  <stan@codesourcery.com>
+
+       * tracepoint.c (trace_status_mi): Report frames created.
+
+       * tracepoint.c (trace_dump_command): Include default-collect
+       expressions.
+
+2010-04-09  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * symtab.c (find_function_start_sal): Never return SAL pointing
+       before function start address, even if line info is missing.
+
+2010-04-09  Pedro  Alves  <pedro@codesourcery.com>
+
+       * NEWS: Mention tracepoints support.
+
+2010-04-09  Pedro Alves  <pedro@codesourcery.com>
+
+       * tracepoint.c (trace_status_mi): Report disconnected tracing and
+       circular trace buffer statuses.
+
+2010-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * config/djgpp/fnchange.lst: Fix typo in translations for
+       symbol-without-target_section.exp and symbol-without-target_section.c.
+
 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
 
        * breakpoint.c (condition_command): Pass condition expression to
        i386_xmm_regnum_p.
        (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
        Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
-       (i386_gdbarch_init): Set xstateregset.  Set xsave_xcr0_offset. 
+       (i386_gdbarch_init): Set xstateregset.  Set xsave_xcr0_offset.
        Call set_gdbarch_register_name.  Replace I386_SSE_NUM_REGS with
        I386_AVX_NUM_REGS.  Set ymmh_register_names, ymm0h_regnum and
        num_ymm_regs.  Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
 2010-03-31  Richard Earnshaw  <rearnsha@arm.com>
 
        * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
-       instructions.  Use the PC+4 if the base of the TBB or TBH is the 
+       instructions.  Use the PC+4 if the base of the TBB or TBH is the
        PC register.
 
 2010-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
 2010-03-31  Stan Shebs  <stan@codesourcery.com>
 
        * breakpoint.c (tracepoint_save_command): Include variables,
-       conditionals, tracepoint types, and default-collect.
+       conditionals, tracepoint types, and default-collect.
        * tracepoint.c (save_trace_state_variables): New function.
        * tracepoint.h (save_trace_state_variables): Declare it.
 
 2010-03-31  Pierre Muller  <muller@ics.u-strasbg.fr>
 
-       * src/gdb/remote.c (end_thread): ARI fix: Use xstrdup instead of
-       strdup.
+       * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
 
 2010-03-30  Keith Seitz  <keiths@redhat.com>
 
 
 2010-03-24  Michael Snyder  <msnyder@localhost.localdomain>
 
-       * elfread.c (find_separate_debug_file_by_buildid): 
+       * elfread.c (find_separate_debug_file_by_buildid):
        Remove unused local variable.
 
 2010-03-24  Tom Tromey  <tromey@redhat.com>
 
 2010-03-19  Stan Shebs  <stan@codesourcery.com>
 
-       * ax-general.c (ax_const_l): Fix a sizing bug. 
+       * ax-general.c (ax_const_l): Fix a sizing bug.
 
 2010-03-18  Joel Brobecker  <brobecker@adacore.com>
 
        If the extracted function name and the original name are the same,
        we don't have a C++ method.
 
-       From Jan Kratochvil  <jan.kratochvil@redhat.com>:    
-       * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
+       From Jan Kratochvil  <jan.kratochvil@redhat.com>:
+       * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
 
        * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
        and arguments from symbol lookups.
        (MON_ROCKHOPPER): New mips_monitor_type.
        (read_hex_value): New function.
        (mips_request): Send 8-byte values with a 'T' packet.  Read the
-       packet argument as a string and use read_hex_value to parse it.  
+       packet argument as a string and use read_hex_value to parse it.
        (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
        (rockhopper_open): New function.
        (mips_wait): Read the PC, FP and SP fields as strings.  Use
        (amd64_register_name): Likewise.
        (amd64_register_type): Likewise.
        (amd64_init_abi):  Set num_core_regs and register_names.  Set
-       target description to tdesc_amd64 if needed.  Don't call 
+       target description to tdesc_amd64 if needed.  Don't call
        set_gdbarch_register_name nor set_gdbarch_register_type.
        (_initialize_amd64_tdep): New.
 
        (typy_lookup_type): Likewise.
 
 2010-02-25  Daniel Jacobowitz  <dan@codesourcery.com>
+
        Symbian config
 
        gdb/
        * mi/mi-main.c (mi_cmd_execute): Fix typo.
 
 2010-02-24  Phil Muldoon  <pmuldoon@redhat.com>
-           Tom Tromey  <tromey@redhat.com>
+           Tom Tromey  <tromey@redhat.com>
            Thiago Jung Bauermann  <bauerman@br.ibm.com>
 
        * python/python.c (_initialize_python): Call
        * infrun.c (handle_inferior_event): Do not look up regcache
        for exited processes.
 
-Mon Feb  8 13:17:10 2010  Chris Moller  <moller@mollerware.com>
+2010-02-08  Chris Moller  <moller@mollerware.com>
 
        PR gdb/10728
        * valarith.c (value_ptrdiff): Added a test for a zero type length,
-       warn if found, and assume length = 1. 
+       warn if found, and assume length = 1.
 
 2010-02-08  Chris Moller  <cmoller@redhat.com>
 
        PR gdb/9067
        * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
        cp_print_static_field)  Fix use of obstacks.
-       
+
 2010-02-08  Pedro Alves  <pedro@codesourcery.com>
 
        * linux-nat.c (linux_nat_resume): In non-stop, also only tag
@@ -3358,7 +3565,7 @@ Mon Feb  8 13:17:10 2010  Chris Moller  <moller@mollerware.com>
        * breakpoint.c (watchpoint_check): Check the call
        gdbarch_in_function_epilogue_p before calling frame_find_by_id.
        Extend the comment.
-       * config/djgpp/fnchange.lst: Add translations for 
+       * config/djgpp/fnchange.lst: Add translations for
        watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
        watchpoint-cond-gone-stripped.c.
 
@@ -3945,8 +4152,8 @@ Mon Feb  8 13:17:10 2010  Chris Moller  <moller@mollerware.com>
        tramp-frame.h.
        (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
        (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
-       (SIGCONTEXT_LO_OFF): New macros. 
-       (mips_irix_n32_tramp_frame_init): New function. 
+       (SIGCONTEXT_LO_OFF): New macros.
+       (mips_irix_n32_tramp_frame_init): New function.
        (mips_irix_n32_tramp_frame): New static constant.
        (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.