+2013-05-20 Tom Tromey <tromey@redhat.com>
+
+ * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
+ Decref the reslut of PyObject_CallMethod.
+
+2013-05-20 Tom Tromey <tromey@redhat.com>
+
+ * python/py-event.c (gdbpy_initialize_event_generic): Return
+ early if PyType_Ready fails.
+
+2013-05-20 Tom Tromey <tromey@redhat.com>
+
+ * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
+ as 'default' in the switch.
+
+2013-05-20 Tom Tromey <tromey@redhat.com>
+
+ * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
+ get_addr_from_python calls out of TRY_CATCH.
+ (infpy_write_memory, infpy_search_memory): Likewise.
+ * python/py-utils.c (get_addr_from_python): Return negative
+ value on error. Use TRY_CATCH.
+ * python/python-internal.h (get_addr_from_python): Use
+ CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
+
+2013-05-20 Tom Tromey <tromey@redhat.com>
+
+ * python/py-event.c (evpy_emit_event): Decref the
+ result of PyObject_CallFunctionObjArgs.
+
+2013-05-20 Tom Tromey <tromey@redhat.com>
+
+ * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
+ Correctly decref.
+
+2013-05-20 Tom Tromey <tromey@redhat.com>
+
+ * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
+
+2013-05-20 Tom Tromey <tromey@redhat.com>
+
+ * python/py-event.h (gdbpy_initialize_event_generic): Use
+ CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
+ * python/py-evts.c (add_new_registry): Use
+ CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
+ * python/python-internal.h
+ (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
+
+2013-05-20 Tom Tromey <tromey@redhat.com>
+
+ * python/py-arch.c (archpy_disassemble): Update.
+ * python/py-type.c (typy_get_composite, typy_lookup_typename)
+ (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
+ * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
+ * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
+ macro.
+ (GDB_PY_HANDLE_EXCEPTION): Update.
+ (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
+
+2013-05-20 Tom Tromey <tromey@redhat.com>
+
+ * python/python-internal.h (events_object_type): Remove.
+
+2013-05-20 Tom Tromey <tromey@redhat.com>
+
+ * python/py-event.h (evpy_emit_event): Use
+ CPYCHECKER_STEALS_REFERENCE_TO_ARG.
+ * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
+ New macro.
+
+2013-05-20 Tom Tromey <tromey@redhat.com>
+
+ * py-evtregistry.c (create_event_object): Decref
+ eventregistry_object if PyList_New fails.
+
+2013-05-20 Tom Tromey <tromey@redhat.com>
+
+ * py-cmd.c (gdbpy_string_to_argv): Check result of
+ PyList_New.
+
+2013-05-20 Tom Tromey <tromey@redhat.com>
+
+ * python/python.c (before_prompt_hook): Add cleanup to
+ decref 'hook'.
+
+2013-05-20 Tom Tromey <tromey@redhat.com>
+
+ * python/py-function.c (fnpy_init): Decref result of
+ PyObject_GetAttrString.
+
+2013-05-20 Tom Tromey <tromey@redhat.com>
+
+ * python/py-threadevent.c (get_event_thread): Use
+ CPYCHECKER_RETURNS_BORROWED_REF.
+ * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
+ New define.
+ (pspace_to_pspace_object, objfile_to_objfile_object)
+ (find_thread_object): Use it.
+
+2013-05-20 Tom Tromey <tromey@redhat.com>
+
+ * python/py-arch.c (arch_object_type): Use
+ CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
+ * python/py-block.c (block_syms_iterator_object_type):
+ Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
+ * python/py-bpevent.c (breakpoint_event_object_type):
+ Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
+ * python/py-cmd.c (cmdpy_object_type): Use
+ CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
+ * python/py-continueevent.c (continue_event_object_type):
+ Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
+ * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
+ Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
+ * python/py-events.h (thread_event_object_type):
+ Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
+ * python/py-evtregistry.c (eventregistry_object_type): Use
+ CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
+ * python/py-exitedevent.c (exited_event_object_type):
+ Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
+ * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
+ Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
+ * python/py-function.c (fnpy_object_type): Use
+ CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
+ * python/py-inferior.c (inferior_object_type, membuf_object_type):
+ Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
+ * python/py-infthread.c (thread_object_type): Use
+ CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
+ * python/py-lazy-string.c (lazy_string_object_type):
+ Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
+ * python/py-newobjfileevent.c (new_objfile_event_object_type):
+ Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
+ * python/py-objfile.c (objfile_object_type): Use
+ CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
+ * python/py-param.c (parmpy_object_type):
+ Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
+ * python/py-progspace.c (pspace_object_type):
+ Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
+ * python/py-signalevent.c (signal_event_object_type):
+ Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
+ * python/py-symtab.c (symtab_object_type, sal_object_type): Use
+ CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
+ * python/py-type.c (type_object_type, field_object_type)
+ (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
+ * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
+ define.
+ (value_object_type, block_object_type, symbol_object_type)
+ (event_object_type, stop_event_object_type, breakpoint_object_type)
+ (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
+
+2013-05-20 Andreas Tobler <andreas@fgznet.ch>
+
+ * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
+ (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
+
+2013-05-20 Doug Evans <dje@google.com>
+
+ When reading CU, stay in DWO. Be more tolerent of bad debug info.
+ For Fission.
+ * dwarf2read.c (struct dwarf2_per_cu_data): New member
+ reading_dwo_directly.
+ (struct signatured_type): New member dwo_unit.
+ (struct die_reader_specs): New member comp_dir.
+ (create_signatured_type_table_from_index): Use malloc for
+ all_type_units instead of objfile's obstack.
+ (create_all_type_units): Ditto.
+ (fill_in_sig_entry_from_dwo_entry): New function.
+ (add_type_unit): New function.
+ (lookup_dwo_signatured_type): New function.
+ (lookup_dwp_signatured_type): New function.
+ (lookup_signatured_type): New arg cu. All callers updated.
+ (init_cu_die_reader): Initialize comp_dir.
+ (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
+ Change assert of matching type signatures to call error on mismatch.
+ (lookup_dwo_unit): Add assert.
+ (init_tu_and_read_dwo_dies): New function.
+ (init_cutu_and_read_dies): Call it.
+ (build_type_unit_groups): Handle case of no type unit groups created.
+ (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
+ (lookup_dwo_cutu): Tweak complaint.
+ (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
+ (dwarf2_per_objfile_free): Free all_type_units.
+
+2013-05-20 Joel Brobecker <brobecker@adacore.com>
+
+ * windows-nat.c (handle_unload_dll): Add missing empty line.
+
+2013-05-20 Joel Brobecker <brobecker@adacore.com>
+
+ * dwarf2read.c (prototyped_function_p): New function.
+ (read_subroutine_type): Use it.
+
+2013-05-20 Joel Brobecker <brobecker@adacore.com>
+
+ * rs6000-aix-tdep.c: De-indent some example code provided
+ as a comment.
+
+2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
+
+ * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
+ region is ok for a hardware watchpoint using the new ptrace interface
+ on Power servers.
+
+2013-05-17 Doug Evans <dje@google.com>
+
+ * NEWS: Mention new maintenance commands check-symtabs, and
+ expand-symtabs, and renamed check-psymtabs.
+ * psymtab.c (maintenance_check_psymtabs): Renamed from
+ maintenance_check_symtabs. Only process already-expanded symbol
+ tables.
+ (_initialize_psymtab): Update.
+ * symmisc.c (maintenance_check_symtabs): New function.
+ (maintenance_expand_name_matcher): New function
+ (maintenance_expand_file_matcher): New function
+ (maintenance_expand_symtabs): New function.
+ (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
+ commands.
+
+2013-05-17 Tom Tromey <tromey@redhat.com>
+
+ * python/py-inferior.c (infpy_read_memory): Don't call
+ PyErr_SetString if PyObject_New fails.
+ * python/py-frame.c (frame_info_to_frame_object): Don't call
+ PyErr_SetString if PyObject_New fails.
+
+2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
+
+ * acinclude.m4: Add check for dlopen in libdl.
+ * configure.ac: Ditto.
+ * configure: Regenerate.
+
+2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
+
+ * frame.c (frame_stash): Convert to htab.
+ (frame_addr_hash): New function.
+ (frame_addr_hash_eq): New function.
+ (frame_stash_create): Convert function to create
+ a hash table.
+ (frame_stash_add): Convert function to add an entry to a hash
+ table.
+ (frame_stash_find): Convert function to search the hash table.
+ (frame_stash_invalidate): Convert function to empty the hash
+ table.
+ (get_frame_id): Only add to stash if a frame_id is created.
+ (_initialize_frame): Call frame_stash_create.
+
+2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
+
+ * configure.ac: Ensure MIG is available when building for GNU Hurd
+ hosts.
+ * configure: Regenerate.
+
+2013-05-16 Joel Brobecker <brobecker@adacore.com>
+
+ * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
+
+2013-05-16 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-lang.c (ada_make_symbol_completion_list): Make sure
+ all cleanups are done before returning from this function.
+
+2013-05-15 Joel Brobecker <brobecker@adacore.com>
+
+ * utils.h: #include "exceptions.h".
+ (enum errors): Remove partial declaration.
+
+2013-05-15 Joel Brobecker <brobecker@adacore.com>
+
+ * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
+ * gdbarch.h, gdbarch.c: Regenerate.
+ * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
+ handling.
+
+ * rs6000-aix-tdep.h: New file.
+ * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
+ * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
+ "xml-utils.h".
+ (struct field_info, struct ld_info_desc): New types.
+ (ld_info32_desc, ld_info64_desc): New static constants.
+ (struct ld_info): New type.
+ (rs6000_aix_extract_ld_info): New function.
+ (rs6000_aix_shared_library_to_xml): Likewise.
+ (rs6000_aix_ld_info_to_xml): Likewise.
+ (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
+ (rs6000_aix_init_osabi): Add call to
+ set_gdbarch_core_xfer_shared_libraries_aix.
+ * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
+ Remove "xml-utils.h" include.
+ (LdInfo): Delete typedef.
+ (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
+ Delete macros.
+ (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
+ Adjust code accordingly.
+ (rs6000_core_ldinfo): Delete, folded into
+ rs6000_aix_core_xfer_shared_libraries_aix.
+ (rs6000_xfer_shared_library): Delete.
+ (rs6000_xfer_shared_libraries): Reimplement.
+
+2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
+
+ * record.c (record_goto_cmdlist): New.
+ (cmd_record_goto): Split into this ...
+ (cmd_record_goto_begin): ... this
+ (cmd_record_goto_end): ... and this.
+ (_initialize_record): Change "record goto" to prefix command.
+ Add commands for "record goto begin" and "record goto end".
+ Add an alias for "record goto start" to "record goto begin".
+
+2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * linespec.c (convert_linespec_to_sals): New comment for
+ SOURCE_FILENAME assignment.
+
+2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * cleanups.c (restore_my_cleanups): Replace gdb_assert by
+ internal_warning.
+
+2013-05-14 Tom Tromey <tromey@redhat.com>
+
+ * eval.c (parse_and_eval_long): Make 'exp' const.
+ * value.h (parse_and_eval_long): Update.
+
+2013-05-14 Tom Tromey <tromey@redhat.com>
+
+ * ui-file.c (gdb_fopen): Make arguments const.
+ * ui-file.h (gdb_fopen): Make arguments const.
+
+2013-05-14 Tom Tromey <tromey@redhat.com>
+
+ * remote.c (remote_set_trace_notes): Make arguments const.
+ * target.c (update_current_target): Update cast.
+ * target.h (to_set_trace_notes): Make arguments const.
+
+2013-05-14 Tom Tromey <tromey@redhat.com>
+
+ * go32-nat.c (go32_terminal_info): Make 'args' const.
+ * inferior.h (child_terminal_info): Update.
+ * inflow.c (child_terminal_info): Make 'args' const.
+ * target.c (default_terminal_info): Make 'args' const.
+ (debug_to_terminal_save_ours): Likewise.
+ * target.h (struct target_ops) <to_terminal_info>: Make argument
+ const.
+
+2013-05-13 Tom Tromey <tromey@redhat.com>
+
+ * gcore.c (create_gcore_bfd): Make 'filename' const.
+ * gcore.h (create_gcore_bfd): Make 'filename' const.
+ * record-full.c (record_full_save): Make 'recfilename' const.
+ * target.c (target_save_record): Make 'filename' const.
+ * target.h (struct target_ops) <to_save_record>: Make 'filename'
+ const.
+ (target_save_record): Likewise.
+
+2013-05-13 Tom Tromey <tromey@redhat.com>
+
+ PR gdb/15338:
+ * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
+ ranges section has been read.
+
+2013-05-13 Tom Tromey <tromey@redhat.com>
+
+ PR exp/15364:
+ * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
+ STRUCTOP_PTR>: Return a not_lval value for
+ EVAL_AVOID_SIDE_EFFECTS.
+ * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
+ for EVAL_AVOID_SIDE_EFFECTS.
+
+2013-05-13 Joel Brobecker <brobecker@adacore.com>
+
+ * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
+ floating point registers to register type before storing
+ value.
+ * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
+ Likewise.
+
+2013-05-10 Joel Brobecker <brobecker@adacore.com>
+ Tom Tromey <tromey@redhat.com>
+
+ * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
+ New functions.
+ * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
+ Declare.
+ * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
+ (darwin_ptrace_him): Use unmark_fd_no_cloexec.
+ * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
+ (inf_ttrace_prepare): Use mark_fd_no_cloexec.
+
+2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
+ Tom Tromey <tromey@redhat.com>
+
+ PR build/15414:
+ * configure: Rebuild.
+ * configure.ac (build_warnings): Do not use -Wformat-nonliteral
+ with -Wno-format.
+
+2013-05-10 Pedro Alves <palves@redhat.com>
+
+ * remote.c (_initialize_remote): Fix spelling of
+ qXfer:traceframe-info:read packet in packet config command.
+
2013-05-10 David Taylor <dtaylor@emc.com>
PR remote/15455