-2012-11-02 Pedro Alves <palves@redhat.com>
+2012-12-15 Joel Brobecker <brobecker@adacore.com>
+
+ * ppc-ravenscar-thread.h, ppc-ravenscar-thread.c: New files.
+ * Makefile.in (ALL_TARGET_OBS): Add ppc-ravenscar-thread.o.
+ (HFILES_NO_SRCDIR): Add ppc-ravenscar-thread.h.
+ (ALLDEPFILES): Add ppc-ravenscar-thread.c.
+ * configure.tgt: Add ravenscar-thread.o and ppc-ravenscar-thread.o
+ to gdb_target_obs for every target that uses rs6000-tdep.o.
+ * rs6000-tdep.c: #include "ppc-ravenscar-thread.h".
+ (rs6000_gdbarch_init): Call register_e500_ravenscar_ops
+ or register_ppc_ravenscar_ops.
+
+2012-12-15 Joel Brobecker <brobecker@adacore.com>
+
+ * sparc-ravenscar-thread.h: SPARC_RAVENSCAR_THREAD_H renames
+ RAVENSCAR_SPARC_THREAD_H.
+ * sparc-ravenscar-thread.c: Rename all global entities
+ whose name is uses "ravenscar_sparc" as the prefix to use
+ "sparc_ravenscar" instead.
+
+2012-12-15 Joel Brobecker <brobecker@adacore.com>
+
+ * sparc-ravenscar-thread.h: Renames ravenscar-sparc-thread.h.
+ * sparc-ravenscar-thread.c: Renames ravenscar-sparc-thread.c.
+ Adjust sparc-ravenscar-thread.h #include.
+ * sparc-tdep.c: Adjust sparc-ravenscar-thread.h #include
+ accordingly.
+ * Makefile.in: Replace ravenscar-sparc-thread with
+ sparc-ravenscar-thread throughout.
+ * configure.tgt: Likewise.
- * gdb.base/foll-vfork.exp (setup_gdb): New procedure.
- (check_vfork_catchpoints, vfork_parent_follow_through_step)
- (vfork_parent_follow_to_bp): Call it.
- (kill_child): Delete.
- (vfork_and_exec_child_follow_to_main_bp)
- (vfork_and_exec_child_follow_through_step): Call setup_gdb. No
- longer call kill_child.
- (tcatch_vfork_then_parent_follow): Call setup_gdb.
- (do_vfork_and_exec_tests): Don't runto_main before calling each
- test procedure.
- (top level): Don't clean restart and set verbose before running
- each test procedure.
+2012-12-15 Joel Brobecker <brobecker@adacore.com>
-2012-11-02 Pedro Alves <palves@redhat.com>
+ * gdbarch.sh: Add "struct ravenscar_arch_ops" advance
+ declaration.
+ (ravenscar_ops): New gdbarch variable.
+ * gdbarch.h, gdbarch.c: Regenerate.
+ * ravenscar-thread.h (ravenscar_register_arch_ops): Delete.
+ * ravenscar-thread.c (current_arch_ops): Delete.
+ (ravenscar_fetch_registers): Get the ravenscar_arch_ops
+ from the gdbarch.
+ (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
+ (ravenscar_inferior_created): Add gdbarch_ravenscar_ops check.
+ (ravenscar_register_arch_ops): Delete.
+ * ravenscar-sparc-thread.h: New file.
+ * ravenscar-sparc-thread.c: #include "ravenscar-sparc-thread.h".
+ (ravenscar_sparc_ops): Define value statically.
+ (_initialize_ravenscar_sparc): Delete.
+ (register_sparc_ravenscar_ops): New function.
+ * sparc-tdep.c: #include "ravenscar-sparc-thread.h".
+ (sparc32_gdbarch_init): Add call to register_sparc_ravenscar_ops.
+ * Makefile.in (ALL_TARGET_OBS): Add ravenscar-thread.o and
+ ravenscar-sparc-thread.o.
+ (SFILES): Add ravenscar-thread.c.
+ (HFILES_NO_SRCDIR): Add ravenscar-sparc-thread.h.
+ (ALLDEPFILES): ravenscar-sparc-thread.c.
+ * configure.tgt: Add ravenscar-thread.o and ravenscar-sparc-thread.o
+ to gdb_target_obs
+ for all the targets that use sparc-tdep.o.
+
+2012-12-15 Joel Brobecker <brobecker@adacore.com>
+
+ * ravenscar-thread.c (ravenscar_is_open): Delete.
+ (ravenscar_initialize): Move most of the code from here...
+ (ravenscar_inferior_created): ... to there. Invert logic.
+ (ravenscar_close): Delete.
+ (init_ravenscar_thread_ops): Remove setting of
+ ravenscar_ops.to_close.
+
+2012-12-15 Joel Brobecker <brobecker@adacore.com>
+
+ * objfiles.c (init_entry_point_info): Move function from here...
+ * symfile.c (init_entry_point_info): ... to there. Make static.
+ * objfiles.h (objfiles.h): Delete declaration.
+
+2012-12-15 Joel Brobecker <brobecker@adacore.com>
+
+ * symfile.c (syms_from_objfile_1): Renames syms_from_objfile.
+ Remove call to init_entry_point_info. Add OBJFILE's
+ section_offsets and num_sections initialization. Add note
+ about entry info in the function documentation.
+ (syms_from_objfile): New function.
+ * coffread.c (coff_symfile_init): Remove call to
+ init_entry_point_info.
+ * machoread.c (macho_symfile_init): Likewise.
+ * xcoffread.c(xcoff_symfile_init): Likewise.
+
+2012-12-15 Yao Qi <yao@codesourcery.com>
+
+ * remote-notif.c (_initialize_notif): Add new commands
+ 'set debug notification' and 'show debug notification'.
+ * NEWS: Mention these new commands.
+
+2012-12-15 Yao Qi <yao@codesourcery.com>
+
+ * Makefile.in (REMOTE_OBS): Add "remote-notif.o".
+ (SFILES): Add "remote-notif.c".
+ (HFILES_NO_SRCDIR): Add "remote-notif.h" and "common/queue.h".
+ * remote-notif.c: New. Factored out from remote.c.
+ * remote-notif.h: New.
+ * remote.c: Include "remote-notif.h".
+ (stop_reply_xmalloc, do_stop_reply_xfree):
+ (remote_parse_stop_reply, remote_get_pending_stop_replies):
+ (remote_async_get_pending_events_handler): Remove declarations.
+ (remote_parse_stop_reply): Declare.
+ (pending_stop_reply): Remove.
+ (remote_async_get_pending_events_token): Move to
+ remote-notif.c.
+ (remote_close): Replace 'delete_async_event_handler' with
+ remote_notif_unregister_async_event_handler.
+ Don't call discard_pending_stop_replies.
+ (remote_start_remote): Replace code with remote_notif_parse
+ and remote_notif_get_pending_replies.
+ (remote_open_1): Replace 'create_async_event_handler' with
+ remote_notif_register_async_event_handler.
+ (extended_remote_attach_1): Call remote_notif_parse and
+ notif_stop_reply_push.
+ (struct stop_reply) <next>: Remove.
+ <base>: New field.
+ Callers update.
+ (stop_reply_queue): Change its type.
+ (stop_reply_xmalloc, do_stop_reply_xfree): Remove.
+ (remote_notif_remove_all): New.
+ (discard_pending_stop_replies): Update.
+ (remote_notif_stop_ack, stop_reply_dtr): New.
+ (remote_notif_stop_alloc_event): New.
+ (notif_client_stop): New variable.
+ (stop_reply_match_ptid, stop_reply_match_ptid_and_ws: New.
+ (queued_stop_reply, peek_stop_reply): Adjust.
+ (remote_get_pending_stop_replies): Rename to
+ remote_notif_get_pending_events.
+ (handle_notification): Move to remote-notif.c.
+ (remote_async_get_pending_events_handler): Likewise.
+ (remote_wait_as): Adjust to call remote_notif_parse.
+ Call 'getpkt_or_notif_sane' instead of 'getpkt_sane'.
+ Return minus_one_ptid early if gets a notification.
+ (remote_wait): Call QUEUE_is_empty (notif_reply_p).
+ (_initialize_remote): Call QUEUE_alloc. Update caller.
+ (remote_resume): Call 'remote_notif_process' in all-stop mode.
+ * remote.h: Include "remote-notif.h".
+ (remote_notif_get_pending_replies): Declare.
+
+2012-12-15 Yao Qi <yao@codesourcery.com>
+
+ * remote.c (discard_pending_stop_replies): Update declaration.
+ (remote_detach_1, extended_remote_mourn_1): Likewise.
+ (discard_pending_stop_replies): Change parameter from PID to
+ INF.
+ (remote_close): Update caller.
+ (_initialize_remote): Attach discard_pending_stop_replies to
+ inferior_exit observer.
+
+2012-12-15 Yao Qi <yao@codesourcery.com>
+
+ * remote.c (getpkt_or_notif_sane): Add one more argument in
+ its declaration.
+ (getpkt_or_notif_sane_1): Add one more argument.
+ (getpkt_sane): Update caller.
+ (getpkt_or_notif_sane): Likewise. Update call
+ togetpkt_or_notif_sane_1.
+ (remote_wait_ns): Update caller.
+
+2012-12-15 Yao Qi <yao@codesourcery.com>
+ Doug Evans <dje@google.com>
- * gdb.base/foll-vfork.exp (vfork_parent_follow_through_step)
- (vfork_parent_follow_to_bp)
- (vfork_and_exec_child_follow_to_main_bp)
- (vfork_and_exec_child_follow_through_step)
- (tcatch_vfork_then_parent_follow)
- (tcatch_vfork_then_parent_follow, tcatch_vfork_then_child_follow):
- Use with_test_prefix.
+ * common/queue.h: New.
-2012-11-02 Pedro Alves <palves@redhat.com>
+2012-12-15 Yao Qi <yao@codesourcery.com>
- * gdb.base/foll-vfork.c: Add copyright header.
- * gdb.base/vforked-prog.c: Add copyright header.
+ * breakpoint.c (print_one_breakpoint_location): Display the
+ state of 'installed' of each non-pending location of a tracepoint
+ in both CLI and MI.
+ (download_tracepoint_locations): Notify 'breakpoint-modified'
+ observer if any tracepoint location is downloaded.
+ * tracepoint.c (start_tracing): Likewise.
+ (merge_uploaded_tracepoints): Record all modified
+ tracepoints and notify 'breakpoint-modified' observer for them.
-2012-11-02 Pedro Alves <palves@redhat.com>
+ * NEWS: Mention the change for CLI and MI.
- * gdb.base/foll-vfork.exp
- (vfork_and_exec_child_follow_through_step): Don't skip on
- non-HP/UX targets. Expect the next to only step one line on
- non-HP/UX targets, rather than stopping only after the exec.
+2012-12-15 Yao Qi <yao@codesourcery.com>
-2012-11-02 Pedro Alves <palves@redhat.com>
+ * breakpoint.c (download_tracepoint_locations): Iterate over
+ ALL_TRACEPOINTS first and then iterate over locations of
+ each tracepoint.
- Don't hard code line numbers.
+2012-12-14 Pierre Muller <muller@sourceware.org>
+ Pedro Alves <palves@redhat.com>
- * gdb.base/foll-vfork.exp (vfork_parent_follow_through_step):
- Expect text from the sources instead of a line number.
- (vfork_parent_follow_to_bp)
- (vfork_and_exec_child_follow_to_main_bp)
- (vfork_and_exec_child_follow_through_step)
- (tcatch_vfork_then_parent_follow, tcatch_vfork_then_child_follow):
- Use gdb_get_line_number.
+ * solib-target.c (solib_target_current_sos): Remove 'const'
+ qualifier from type of library_document local variable to be
+ able to free it and avoid a memory leak.
+ Use cleanup chain to avoid leak even if exceptino is generated.
+
+2012-12-14 Tom Tromey <tromey@redhat.com>
+
+ PR c++/8888:
+ * symtab.c (lookup_symbol_aux): If constructor is found, consider
+ returning the type instead.
+ * c-exp.y (classify_name): Check STRUCT_DOMAIN if a constructor is
+ found.
+
+2012-12-14 Tom Tromey <tromey@redhat.com>
+
+ Partial fix for PR c++/14160:
+ * c-typeprint.c (c_type_print_base): Use TYPE_FN_FIELD_CONSTRUCTOR.
+ * dwarf2read.c (dwarf2_is_constructor): New function.
+ (dwarf2_add_member_fn): Use it.
+ * gnu-v3-abi.c (gnuv3_pass_by_reference): Use
+ TYPE_FN_FIELD_CONSTRUCTOR.
+ * jv-typeprint.c (java_type_print_base): Use
+ TYPE_FN_FIELD_CONSTRUCTOR.
+ * gdbtypes.h (struct fn_field) <is_constructor>: New field.
+ <dummy>: Shrink.
+ (TYPE_FN_FIELD_CONSTRUCTOR): New macro.
+
+2012-12-14 Tom Tromey <tromey@redhat.com>
+
+ * c-exp.y (block, variable, name_not_typename, lex_one_token,
+ classify_name): Update.
+ * c-valprint.c (c_val_print): Update.
+ * f-exp.y (yylex): Update.
+ * go-exp.y (package_name_p, classify_packaged_name)
+ (classify_name): Update.
+ * jv-exp.y (push_variable): Update.
+ * m2-exp.y (variable): Update.
+ * mi/mi-cmd-stack.c (list_args_or_locals): Update.
+ * p-exp.y (block, variable, yylex): Update.
+ * p-valprint.c (pascal_val_print): Update.
+ * parse.c (write_dollar_variable): Update.
+ * printcmd.c (address_info): Update.
+ * python/py-symbol.c (gdbpy_lookup_symbol): Update.
+ * symtab.c (lookup_symbol_aux, lookup_symbol_in_language)
+ (lookup_symbol): Change type of 'is_a_field_of_this'.
+ (check_field): Add 'is_a_field_of_this' argument.
+ * symtab.h (struct field_of_this_result): New.
+ (lookup_symbol, lookup_symbol_in_language): Update.
+
+2012-12-14 Tom Tromey <tromey@redhat.com>
+
+ * symtab.c (check_field): Now static. Move from...
+ * valops.c (check_field): ... here. Remove.
+ * value.h (check_field): Don't declare.
+
+2012-12-14 Tom Tromey <tromey@redhat.com>
+
+ * NEWS: Mention "info proc" and core files.
+ * corelow.c (core_info_proc): New function.
+ (init_core_ops): Set to_info_proc.
+ * gdbarch.c, gdbarch.h: Rebuild.
+ * gdbarch.sh (core_info_proc): New method.
+ * infcmd.c (info_proc_cmd_1): Invoke target_info_proc first.
+ * linux-tdep.c (linux_core_info_proc_mappings)
+ (linux_core_info_proc): New functions.
+ (linux_find_memory_region_ftype): New typedef.
+ (linux_find_memory_regions_full): New function, from
+ linux_find_memory_regions.
+ (struct linux_find_memory_regions_data): New.
+ (linux_find_memory_regions_thunk): New function.
+ (linux_find_memory_regions): Rewrite.
+ (struct linux_make_mappings_data): New.
+ (linux_make_mappings_callback)
+ (linux_make_mappings_corefile_notes): New functions.
+ (linux_make_corefile_notes): Call linux_make_mappings_corefile_notes.
+ (linux_init_abi): Call set_gdbarch_core_info_proc.
+ * target.c (target_info_proc): Return 'int'.
+ * target.h (target_info_proc): Update.
+
+2012-12-14 Pierre Muller <muller@sourceware.org>
+
+ * windows-nat.c (windows_xfer_shared_libraries): Avoid
+ memory leak when OFFSET >= LEN_AVAIL.
+
+2012-12-13 Tom Tromey <tromey@redhat.com>
+
+ * solib-svr4.c (enable_break): Use SECT_OFF_TEXT.
+
+2012-12-13 Tom Tromey <tromey@redhat.com>
+
+ * acinclude.m4 (CY_AC_C_WORKS): Remove.
+
+2012-12-13 Pierre Muller <muller@sourceware.org>
+
+ * coff-pe-read.c (pe_text_section_offset): Increase size of sname
+ local variable and zero terminate it to avoid possible problems
+ in strcmp.
+
+2012-12-13 Pedro Alves <palves@redhat.com>
+
+ * coff-pe-read.c: Include coff/internal.h.
+ (read_pe_exported_syms): Use SCNNMLEN instead of hardcoded 8.
+ Null terminate buffer explicitly instead of memset the whole
+ buffer.
+
+2012-12-13 Pierre Muller <muller@sourceware.org>
+
+ * coff-pe-read.c (IMAGE_SCN_CNT_TEXT, IMAGE_SCN_CNT_INITIALIZED_DATA)
+ (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Remove useless checks
+ for already defined macros.
+
+2012-12-13 Pierre Muller <muller@sourceware.org>
+
+ * coff-pe-read.h (pe_text_section_offset): Declare new function.
+ * coff-pe-read.c (debug_coff_pe_read): New static variable.
+ (struct read_pe_section_data): Add section_name field.
+ (IMAGE_SCN_CNT_CODE): New macro, if not already defined.
+ (IMAGE_SCN_CNT_INITIALIZED_DATA): Ditto.
+ (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Ditto.
+ (get_pe_section_index): New function.
+ (struct pe_sections_info): New type.
+ (get_section_vmas): Use new struct pe_sections_info.
+ (add_pe_exported_sym): Handle unnamed exported function.
+ (add_pe_forwarded_sym): New function.
+ (read_pe_truncate_name): Truncate at last dot.
+ (pe_as16): New function.
+ (read_pe_exported_syms): Use ordinal of function to
+ retrieve correct RVA address of function and handle
+ forwarded symbol.
+ (pe_text_section_offset): New function.
+ (show_debug_coff_pe_read): New function.
+ (_initialize_coff_pe_read): New function adding
+ 'set/show debug coff_pe_read' commands.
+
+ * windows-tdep.c (windows_xfer_shared_library): Use
+ pe_text_section_offset function instead of possibly wrong
+ 0x1000 constant for .text sextion offset.
+
+2012-12-13 Pedro Alves <palves@redhat.com>
+
+ * gdbarch.sh (do_read): Set IFS to blank.
+
+2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
+
+ * NEWS: Mention the -catch-load/-catch-unload MI commands.
+
+2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
+
+ * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-catch.o.
+ (SUBDIR_MI_SRCS): Add mi/mi-cmd-catch.c.
+ * breakpoint.c (add_solib_catchpoint): New function that
+ can be used by both CLI and MI, factored out from
+ catch_load_or_unload.
+ (catch_load_or_unload): Strip it down and make it use the
+ new add_solib_catchpoint.
+ * breakpoint.h (add_solib_catchpoint): Declare it.
+ * mi/mi-cmd-break.h: New file.
+ * mi/mi-cmd-break.c: Include mi-cmd-break.h.
+ (setup_breakpoint_reporting): New function used for both
+ catchpoints and breakpoints.
+ (mi_cmd_break_insert): Use setup_breakpoint_reporting.
+ * mi/mi-cmd-catch.c: New file.
+ * mi/mi-cmds.c (mi_cmds): Add the handlers for -catch-load
+ and -catch-unload.
+ * mi/mi-cmds.h: Declare the handlers for -catch-load and
+ -catch-unload.
+
+2012-11-28 Tom Tromey <tromey@redhat.com>
+
+ * dbxread.c (read_dbx_symtab): Update.
+ (end_psymtab, dbx_psymtab_to_symtab_1, dbx_psymtab_to_symtab)
+ (read_ofile_symtab): Add 'objfile' argument.
+ * dwarf2read.c (process_psymtab_comp_unit_reader)
+ (build_type_psymtabs_reader): Update.
+ (dwarf2_psymtab_to_symtab): Add 'objfile' argument.
+ * mdebugread.c (mdebug_psymtab_to_symtab): Add 'objfile'
+ argument.
+ (parse_procedure, parse_partial_symbols): Update.
+ (psymtab_to_symtab_1): Add 'objfile' argument.
+ * psympriv.h (struct partial_symtab) <objfile>: Remove.
+ <read_symtab>: Add 'objfile' argument.
+ (sort_pst_symbols, discard_psymtab): Update.
+ * psymtab.c (partial_map_expand_apply): Update.
+ (find_pc_sect_psymtab_closer): Add 'objfile' argument.
+ (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial): Update.
+ (find_pc_sect_psymbol): Add 'objfile' argument.
+ (lookup_symbol_aux_psymtabs): Update.
+ (match_partial_symbol, lookup_partial_symbol, psymtab_to_symtab):
+ Add 'objfile' argument.
+ (find_last_source_symtab_from_partial, dump_psymtab)
+ (dump_psymtabs_for_objfile, read_symtabs_for_function)
+ (expand_partial_symbol_tables, read_psymtabs_with_filename)
+ (find_symbol_file_from_partial, map_matching_symbols_psymtab)
+ (expand_symtabs_matching_via_partial): Update.
+ (sort_pst_symbols): Add 'objfile' argument.
+ (allocate_psymtab): Update.
+ (discard_psymtab): Add 'objfile' argument.
+ (maintenance_info_psymtabs, maintenance_check_symtabs): Update.
+ * stabsread.h (end_psymtab): Update.
+ * xcoffread.c (this_symtab_objfile): New global.
+ (process_linenos, enter_line_range, xcoff_next_symbol_text):
+ Update.
+ (read_xcoff_symtab): Add 'objfile' argument.
+ (read_symbol, read_symbol_lineno): Update.
+ (xcoff_psymtab_to_symtab_1, xcoff_psymtab_to_symtab)
+ (xcoff_end_psymtab): Add 'objfile' argument.
+ (scan_xcoff_symtab): Update.
+
+2012-12-12 Paul Koning <paul_koning@dell.com>
+
+ Add support for Python 3.
+ * NEWS: Mention Python 3 support.
+ * varobj.c (value_get_print_value): Use
+ python_string_to_target_string.
+ * python/py-block.c: Use PyVarObject_HEAD_INIT in initialization
+ of type objects.
+ * python/py-breakpoint.c: Ditto.
+ * python/py-cmd.c: Ditto.
+ * python/py-event.c: Ditto.
+ * python/py-event.h: Ditto.
+ * python/py-evtregistry.c: Ditto.
+ * python/py-finishbreakpoint.c: Ditto.
+ * python/py-frame.c: Ditto.
+ * python/py-function.c: Ditto.
+ * python/py-infthread.c: Ditto.
+ * python/py-lazy-string.c: Ditto.
+ * python/py-progspace.c: Ditto.
+ * /python/py-symbol.c: Ditto.
+ * python/py-evts.c: (gdbpy_initialize_py_events): Add module
+ initialization for Python 3.
+ * python/py-inferior.c: Use PyVarObject_HEAD_INIT in initialization
+ of type objects.
+ (infpy_read_memory): Return memoryview object if Python 3.
+ (infpy_write_memory): Use "s*" operand parsing code for Python 3.
+ (infpy_search_memory): Ditto.
+ (get_buffer): New function for Python 3.
+ * python/py-objfile.c: Use PyVarObject_HEAD_INIT in initialization
+ of type objects.
+ (objfpy_dealloc): Use Py_TYPE to call tp_free.
+ * python/py-param.c: Use PyVarObject_HEAD_INIT in initialization
+ of type objects.
+ (get_attr): Use PyUnicode_CompareWithASCIIString if Python 3.
+ (set_attr): Ditto.
+ * python/py-prettyprint.c (print_string_repr): use PyBytes methods
+ instead of PyString methods if Python 3.
+ (print_children): Skip push_dummy_python_frame call if Python 3.
+ * python/py-symtab.c: Use PyVarObject_HEAD_INIT in initialization
+ of type objects.
+ (salpy_dealloc): Use Py_TYPE to call tp_free.
+ * python/py-type.c: Use PyVarObject_HEAD_INIT in initialization
+ of type objects.
+ (field_dealloc): Use Py_TYPE to call tp_free.
+ (typy_dealloc): Ditto.
+ (type_object_as_number): Adjust struct initializations for
+ differences in layout for Python 2 vs. Python 3.
+ * python/py-utils.c (python_string_to_unicode): Omit non-Unicode
+ string case for Python 3.
+ (unicode_to_encoded_python_string): Shorten code (no functional
+ change).
+ (python_string_to_target_python_string): Comment that in Python 3
+ returned value is a Python "bytes" type.
+ (gdbpy_is_string): Omit non-Unicode string check in Python 3.
+ (gdb_py_object_from_longest): Omit non-long integer case in Python
+ 3.
+ (gdb_py_object_from_ulongest): Ditto.
+ * python/py-value.c: Use PyVarObject_HEAD_INIT in initialization
+ of type objects.
+ (valpy_dealloc): Use Py_TYPE to call tp_free.
+ (valpy_int): Omit function if Python 3.
+ (convert_value_from_python): Use "%S" format (Python object as a
+ string) if Python 3.
+ (value_object_as_number): Adjust struct initializations for
+ differences in layout for Python 2 vs. Python 3.
+ * python/python-config.py: Adjust syntax for Python 3
+ compatibility.
+ Include "sys.abiflags" string as part of python library name, if
+ that attribute exists (Python 3).
+ * python/python-internal.h (IS_PY3): Define if Python 3.
+ (Py_TPFLAGS_HAVE_ITER, Py_TPFLAGS_CHECKTYPES): Define with
+ placeholder value if Python 3.
+ (PyInt_Check, PyInt_FromLong, PyInt_AsLong, PyString_FromString,
+ PyString_Decode, PyString_FromFormat, PyString_Check): Define as
+ analogous Python 3 API function if Python 3.
+ (PyVarObject_HEAD_INIT): Define if not already defined.
+ (Py_TYPE): Ditto.
+ * python/python.c (eval_python_command): Omit Py_FlushLine call if
+ Python 3.
+ Check return values of all Python API calls for error.
+ Supply dummy "python" and "python-interactive" commands if Python
+ initialization failed.
+ (_initialize_python): Convert argc to wchar_t** if Python 3.
+ Add module initialization for Python 3.
+ (finish_python_initialization): Pass wchar_t * argument to
+ PySys_SetPath if Python 3.
+ * python/lib/gdb/__init__.py: Define "reload" if Python 3.
+ (_GdbFile): New class for common output file behavior.
+ (GdbOutFile): Subclass from _GdbFile.
+ (GdbOutputErrorFile): Ditto.
+ (auto_load_packages): Adjust syntax for Python 3 compatibility.
+ * python/lib/gdb/printing.py: Define basestr and int if Python 3.
+ * python/lib/gdb/prompt.py: Use sorted() function rather than
+ sort() method.
+ * python/lib/gdb/command/explore.py: Define raw_input if Python 3.
+ Adjust syntax for Python 3 compatibility.
+ * python/lib/gdb/command/pretty_printers.py: Use sorted() function
+ rather than sort() method.
+ Adjust syntax for Python 3 compatibility.
+ * python/lib/gdb/command/type_printers.py: Ditto.
+ * doc/gdb.texinfo (Inferior.read_memory): Mention that the return
+ value is a memoryview object if Python 3.
+
+2012-12-12 Tom Tromey <tromey@redhat.com>
+
+ * coffread.c (coff_objfile_data_key): New global.
+ (coff_symfile_init): Use set_objfile_data.
+ (coff_symfile_read): Use objfile_data.
+ (coff_symfile_finish): Don't free deprecated_sym_private.
+ (coff_free_info): New function.
+ (_initialize_coffread): Initialize coff_objfile_data_key.
+ * mdebugread.c (pending_list): Update comment.
+ * objfiles.h (struct objfile) <deprecated_sym_private>: Remove.
+ * symfile.c (reread_symbols): Don't mention
+ deprecated_sym_private.
+ * xcoffread.c (xcoff_objfile_data_key): New global.
+ (XCOFF_DATA): New macro.
+ (process_linenos, enter_line_range, xcoff_next_symbol_text)
+ (read_xcoff_symtab, coff_getfilename, read_symbol_lineno): Use
+ XCOFF_DATA.
+ (xcoff_new_init) Use set_objfile_data.
+ (xcoff_symfile_finish): Don't free deprecated_sym_private.
+ (init_stringtab, swap_sym, scan_xcoff_symtab)
+ (xcoff_get_toc_offset, xcoff_initial_scan): Use XCOFF_DATA.
+ (xcoff_free_info): New function.
+ (_initialize_xcoffread): Initialize xcoff_objfile_data_key.
+
+2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
+
+ * MAINTAINERS (Write After Approval): Add "Mircea Gherzan".
+
+2012-12-12 Tom Tromey <tromey@redhat.com>
+
+ * coffread.c (coff_symfile_init): Use set_objfile_data.
+ (coff_symfile_read): Use DBX_SYMFILE_INFO.
+ * dbxread.c (dbx_objfile_data_key): New global.
+ (dbx_symfile_init): Use set_objfile_data.
+ (dbx_symfile_finish): Don't free deprecated_sym_stab_info.
+ (dbx_free_symfile_info): New function.
+ (coffstab_build_psymtabs, elfstab_build_psymtabs): Use
+ DBX_SYMFILE_INFO.
+ (stabsect_build_psymtabs): Use set_objfile_data.
+ (_initialize_dbxreadb): Initialize dbx_objfile_data_key.
+ * elfread.c (elf_symtab_read): Use DBX_SYMFILE_INFO,
+ set_objfile_data.
+ (free_elfinfo): Use DBX_SYMFILE_INFO.
+ (elf_symfile_finish): Don't free deprecated_sym_stab_info.
+ (elfstab_offset_sections): Use DBX_SYMFILE_INFO.
+ * gdb-stabs.h (dbx_objfile_data_key): Declare.
+ (DBX_SYMFILE_INFO): Rewrite to use objfile_data.
+ * objfiles.h (struct objfile) <deprecated_sym_stab_info>: Remove.
+ * somread.c (som_symfile_finish): Don't free
+ deprecated_sym_stab_info.
+
+2012-12-12 Joel Brobecker <brobecker@adacore.com>
+
+ * gdbarch.sh (software_single_step): Remove trailing space in
+ comment (gdbarch.h is already correct).
+
+2012-12-11 Tom Tromey <tromey@redhat.com>
+
+ * dwarf2read.c (dwarf2_get_dwz_file): Set 'dwz_file'.
+
+2012-12-11 Tom Tromey <tromey@redhat.com>
+
+ * dsrec.c (report_transfer_performance): Don't declare.
+ (load_srec): Use gettimeofday, print_transfer_performance.
+ * symfile.c (report_transfer_performance): Remove.
+
+2012-12-11 Pedro Alves <pedro@codesourcery.com>
+ Pedro Alves <palves@redhat.com>
-2012-11-02 Pedro Alves <palves@redhat.com>
+ * procfs.c (procfs_make_note_section) [NEW_PROC_API]: Output a
+ NT_PSTATUS note.
+ * sol2-tdep.c (sol2_core_pid_to_str): Print process IDs
+ differently from LWP IDs.
+
+2012-12-11 Pedro Alves <palves@redhat.com>
+
+ * configure.ac (detect type of /proc): Remove Unixware handling.
+ * configure: Regenerate.
+ * proc-api.c (ioctl_table) [PIOCLSTATUS]: Don't mention Unixware.
+ (ioctl_table) [PCRESET]: Remove entry.
+ * proc-events.c (SYS_lwp_create, SYS_lwp_exit, SYS_lwp_wait)
+ (SYS_lwp_self, SYS_lwp_info, SYS_lwp_private, SYS_lwp_kill)
+ (SYS_lwp_suspend, SYS_lwp_continue): Don't define.
+ * proc-why.c (pr_why_table) [PR_SUSPENDED]: Don't mention Unixware.
+ * procfs.c: Remove all UNIXWARE guarded code, and all traces of
+ Unixware in comments throughout.
+ * i386-tdep.c (i386_svr4_sigtramp_p): Don't match _sigacthandler,
+ and remove mention of Unixware.
+
+2012-12-10 Doug Evans <dje@google.com>
+
+ * dwarf2read.c (dwarf2_cu): Enhance comment.
+ (dwarf2_get_pc_bounds): Only add ranges_base for DIEs that live in
+ the DWO file.
+ (dwarf2_record_block_ranges): Ditto.
+
+ * dwarf2read.c (create_dwo_in_dwp): Tweak comment.
+
+ * symtab.c (find_pc_sect_symtab): Add comment.
+
+2012-12-10 Tom Tromey <tromey@redhat.com>
+
+ * defs.h: Don't check for definition of LONGEST.
+ (min, max): Remove duplicates.
+
+2012-12-10 Tom Tromey <tromey@redhat.com>
+
+ * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): New function.
+ (dwarf2_fetch_die_loc_cu_off): Rename from
+ dwarf2_fetch_die_location_block. Rewrite to use
+ dwarf2_fetch_die_loc_sect_off.
+ * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Declare.
+ (dwarf2_fetch_die_loc_cu_off): Rename.
+ * dwarf2loc.c (indirect_pieced_value): Use
+ dwarf2_fetch_die_loc_sect_off.
+ * dwarf2expr.h (struct dwarf_expr_context) <len, data>: Update
+ comment.
+ (struct dwarf_expr_piece) <v.ptr.die>: Now a sect_offset.
+ * dwarf2expr.c (add_piece): Update.
+ (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Update comment.
+
+2012-12-10 Tom Tromey <tromey@redhat.com>
+
+ * buildsym.c (struct pending_block): Move from buildsym.h.
+ (pending_blocks): Likewise; now static.
+ (pending_block_obstack): New global.
+ (free_pending_blocks): Free blocks.
+ (record_pending_block): Use pending_block_obstack.
+ * buildsym.h (struct pending_block): Move definition to
+ buildsym.c.
+ (pending_blocks): Don't declare.
+
+2012-12-10 Pedro Alves <palves@redhat.com>
+
+ * solib-svr4.c (svr4_solib_create_inferior_hook) [_SCO_DS]: Remove
+ dead SCO code, and adjust function description comment.
+
+2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * configure.ac (CC_HAS_LONG_LONG): Replace by AC_MSG_ERROR.
+ * defs.h (LONGEST, ULONGEST): Remove conditionalization for
+ CC_HAS_LONG_LONG.
+ * dwarf2-frame.c (DW64_CIE_ID): Likewise.
+ * dwarf2read.c (extract_cu_value): Remove the function.
+ (create_cus_from_index_list): Make the return type void, inline the
+ extract_cu_value caller, include new gdb_static_assert.
+ (create_cus_from_index): Make the return type void, update the function
+ comment, update the create_cus_from_index_list caller.
+ (create_signatured_type_table_from_index): Make the return type void,
+ inline the extract_cu_value caller, include new gdb_static_assert.
+ (dwarf2_read_index): Update the create_cus_from_index and
+ create_signatured_type_table_from_index caller.
+ * printcmd.c (ui_printf): Remove conditionalizations for
+ CC_HAS_LONG_LONG.
+ * config.in: Regenerate.
+ * configure: Regenerate.
+
+2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * dwarf2read.c (struct dwarf2_cu): New field producer_is_gcc_lt_4_3.
+ Update the comment for checked_producer.
+ (check_producer): New forward declaration.
+ (producer_is_gcc_lt_4_3): New function.
+ (find_file_and_directory): Simulate *COMP_DIR only for gcc < 4.3.
+ (check_producer): Initialize also PRODUCER_IS_GCC_LT_4_3.
+
+2012-12-07 Tom Tromey <tromey@redhat.com>
+
+ * ada-lang.c (ada_make_symbol_completion_list): Add 'code'
+ argument, assertion.
+ * c-exp.y (typebase): Add completion productions.
+ * completer.c (expression_completer): Handle tag completion.
+ * expression.h (parse_expression_for_completion): Add argument.
+ * f-lang.c (f_make_symbol_completion_list): Add 'code'
+ argument.
+ * language.h (struct language_defn)
+ <la_make_symbol_completion_list>: Add 'code' argument.
+ * parse.c (expout_tag_completion_type, expout_completion_name):
+ New globals.
+ (mark_struct_expression): Add assertion.
+ (mark_completion_tag): New function.
+ (parse_exp_in_context): Initialize new globals.
+ (parse_expression_for_completion): Add 'code' argument. Handle
+ tag completion.
+ * parser-defs.h (mark_completion_tag): Declare.
+ * symtab.c (default_make_symbol_completion_list_break_on): Add
+ 'code' argument. Update.
+ (default_make_symbol_completion_list): Add 'code' argument.
+ (make_symbol_completion_list): Update.
+ (make_symbol_completion_type): New function.
+ * symtab.h (default_make_symbol_completion_list_break_on)
+ (default_make_symbol_completion_list): Update.
+ (make_symbol_completion_type): Declare.
+
+2012-12-07 Tom Tromey <tromey@redhat.com>
+
+ * expression.h (parse_expression_for_completion): Rename
+ from parse_field_expression.
+ (parse_completion): Rename from in_parse_field.
+ * c-exp.y (lex_one_token): Update.
+ * completer.c (expression_completer): Update.
+ * go-exp.y (lex_one_token): Update.
+ * p-exp.y (yylex): Update.
+ * parse.c (parse_completion): Rename from in_parse_field.
+ (parse_exp_in_context): Update.
+ (parse_expression_for_completion): Rename from
+ parse_field_expression. Update.
+
+2012-12-07 Tom Tromey <tromey@redhat.com>
+
+ * typeprint.c (_initialize_typeprint): Set completer
+ for "whatis" and "ptype".
+
+2012-12-07 Joel Brobecker <brobecker@adacore.com>
+
+ * copyright.py (NOT_FSF_LIST): Remove duplicate entry
+ "sim/common/cgen-fpu.h". Remove invalid entries
+ "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
+ which actually have an FSF copyright header.
+
+2012-12-07 Joel Brobecker <brobecker@adacore.com>
+
+ * osf-share/AT386/cma_thread_io.h: Delete.
+ * osf-share/HP800/cma_thread_io.h: Delete.
+ * osf-share/README: Delete.
+ * osf-share/RIOS/cma_thread_io.h: Delete.
+ * osf-share/cma_attr.h: Delete.
+ * osf-share/cma_deb_core.h: Delete.
+ * osf-share/cma_debug_client.h: Delete.
+ * osf-share/cma_errors.h: Delete.
+ * osf-share/cma_handle.h: Delete.
+ * osf-share/cma_init.h: Delete.
+ * osf-share/cma_list.h: Delete.
+ * osf-share/cma_mutex.h: Delete.
+ * osf-share/cma_sched.h: Delete.
+ * osf-share/cma_semaphore_defs.h: Delete.
+ * osf-share/cma_sequence.h: Delete.
+ * osf-share/cma_stack.h: Delete.
+ * osf-share/cma_stack_int.h: Delete.
+ * osf-share/cma_tcb_defs.h: Delete.
+ * osf-share/cma_util.h: Delete.
+ * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
+ in osf-share.
+ * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
+ * contrib/ari/gdb_find.sh: Remove handling of osf-share.
+ * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
+
+2012-12-06 Pedro Alves <palves@redhat.com>
+ Tom Tromey <tromey@redhat.com>
+
+ * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
+
+2012-12-06 Jens Elmenthaler <jens.elmenthaler@advantest.com>
+
+ PR mi/14741:
+ * mi/mi-cmd-var.c (varobj_update_one): Take value of
+ attribute "dynamic" and "displayhint" from printed child,
+ not the root variable.
+
+2012-12-06 Joel Brobecker <brobecker@adacore.com>
+
+ * aix-thread.c (getthrds): Fix type of 4th parameter.
+ (get_signaled_thread): Change type of variable ktid to tid_t.
+
+2012-12-06 Hui Zhu <hui_zhu@mentor.com>
+
+ * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
+ value of get_frame_block.
+
+2012-12-05 Pierre Muller <muller@sourceware.org>
+
+ Avoid memory leaks on struct cmd_list_element.doc field.
+ * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
+ if flags contains DOC_ALLOCATED.
+ (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
+ flags.
+ (delete_cmd): Handle DOC_ALLOCATED flag.
+ * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
+ in flags filed of struct cmd_list_element.
+ (struct cmd_list_element): Document new flag item.
+
+2012-12-04 Doug Evans <dje@google.com>
+
+ * symmisc.c: Whitespace fixes.
- Modernize.
+2012-12-04 Karthik Bhat <kv.bhat@samsung.com>
- * gdb.base/foll-vfork.exp: Use standard_testfile and
- build_executable. Pass descriptive string to untested.
- (vfork_parent_follow_through_step, vfork_parent_follow_to_bp)
- (vfork_and_exec_child_follow_to_main_bp)
- (vfork_and_exec_child_follow_through_step)
- (tcatch_vfork_then_parent_follow, tcatch_vfork_then_child_follow)
- (do_vfork_and_exec_tests): Use gdb_test/gdb_test_multiple instead
- of send_gdb/gdb_expect.
+ * i386-tdep.c (i386_skip_prologue): Using symbol table
+ to find the end of prologue for clang compiled binaries.
+ * amd64-tdep.c (amd64_skip_prologue): Using symbol table
+ to find the end of prologue for clang compiled binaries.
- (kill_child): New procedure.
- (vfork_and_exec_child_follow_to_main_bp)
- (vfork_and_exec_child_follow_through_step): Use it.
+2012-12-03 Doug Evans <dje@google.com>
+
+ * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
+ (dw2_find_symbol_file): Delete unused local file_data.
+
+2012-12-03 Tom Tromey <tromey@redhat.com>
+
+ * ada-exp.y (write_object_renaming, write_var_or_type)
+ (write_ambiguous_var, write_var_from_sym): Make blocks const.
+ * ada-lang.c (replace_operator_with_call)
+ (find_old_style_renaming_symbol): Make blocks const.
+ * ada-lang.h (ada_find_renaming_symbol): Update.
+ (struct ada_symbol_info) <block>: Now const.
+ * breakpoint.c (watch_command_1): Update.
+ * breakpoint.h (struct watchpoint) <exp_valid_block,
+ cond_exp_valid_block>: Now const.
+ * c-exp.y (classify_inner_name, classify_name): Make block
+ argument const.
+ * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
+ const.
+ * expression.h (innermost_block, parse_exp_1): Update.
+ (union exp_element) <block>: Now const.
+ * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
+ (lookup_struct): Make block argument const.
+ * gdbtypes.h (lookup_template_type): Update.
+ * go-exp.y (classify_name, classify_packaged_name)
+ (package_name_p): Make block argument const.
+ * objc-lang.c (lookup_struct_typedef): Make block argument const.
+ * objc-lang.h (lookup_struct_typedef): Update.
+ * parse.c (parse_exp_in_context, parse_exp_1)
+ (write_exp_elt_block): Make block arguments const.
+ (expression_context_block, innermost_block): Now const.
+ * parser-defs.h (write_exp_elt_block): Update.
+ (expression_context_block, innermost_block, block_found): Now
+ const.
+ * printcmd.c (struct display) <block>: Now const.
+ * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
+ * valops.c (address_of_variable): Make block argument const.
+ * value.h (value_of_variable): Update.
+ * varobj.c (struct varobj_root) <valid_block>: Now const.
+
+2012-11-30 Yao Qi <yao@codesourcery.com>
+
+ * breakpoint.c (print_one_breakpoint_location): Indent code.
+
+2012-11-30 Yao Qi <yao@codesourcery.com>
+
+ * breakpoint.c (print_one_breakpoint_location): Combine two
+ blocks handling 'hit count' together.
+
+2012-11-30 Yao Qi <yao@codesourcery.com>
+
+ * infrun.c (error_is_running, ensure_not_running): Move them
+ to ...
+ * infcmd.c (error_is_running, ensure_not_running): ... here.
+ Make them 'static'.
+ * inferior.h: Remove declarations of error_is_running and
+ ensure_not_running.
+
+2012-11-30 Yao Qi <yao@codesourcery.com>
+
+ * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
+ check REGNUM >= 0.
+
+2012-11-30 Yao Qi <yao@codesourcery.com>
+
+ * infrun.c: Make the declaration of 'init_infwait_state'
+ static.
+ (init_infwait_state): Make it 'static'.
+
+2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * python/python.c (finalize_python): Cast unused PyGILState_Ensure
+ return value to void to avoid compiler warning.
+
+2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * opencl-lang.c (opencl_print_type): New function.
+ (opencl_language_arch_info): Install it.
+
+2012-11-29 Tom Tromey <tromey@redhat.com>
+
+ * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
+ xvasprintf.
+ * common/common-utils.c (xasprintf, xvasprintf): Remove.
+ * common/common-utils.h (xasprintf, xvasprintf): Remove.
+
+2012-11-29 Jerome Guitton <guitton@adacore.com>
+
+ * ada-lang.c (ada_is_interface_tag): New function.
+ (ada_is_ignored_field): Add interface tags to the list
+ of ignored fields.
+
+2012-11-29 Jerome Guitton <guitton@adacore.com>
+
+ * ada-lang.h (ada_tag_value_at_base_address): New function
+ declaration.
+ * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
+ New functions.
+ (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
+ relocate the class-wide value if need be.
+ (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
+ Let ada_tag_value_at_base_address relocate the class-wide access/ref
+ before dereferencing it.
+ * ada-valprint.c (ada_val_print_1): Relocate to base address
+ before displaying the content of an interface-wide ref.
+
+2012-11-29 Jerome Guitton <guitton@adacore.com>
+
+ * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
+
+2012-11-29 Joel Brobecker <brobecker@adacore.com>
+
+ GDB 7.5.1 released.
+
+2012-11-29 Yao Qi <yao@codesourcery.com>
+ Tom Tromey <tromey@redhat.com>
+
+ * eval.c (evaluate_subexp_standard): Get the correct pointer
+ type for TYPE_CODE_MEMBERPTR.
+
+2012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
+
+ * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
+ since now it is being done by binutils' powerpc_init_dialect().
+
+2012-11-28 Tom Tromey <tromey@redhat.com>
+
+ PR gdb/14290:
+ * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
+ (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
+ Use it.
+ * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
+ * gdb_bfd.c (gdb_bfd_mark_parent): New function.
+ (gdb_bfd_openr_next_archived_file): Use it.
+
+2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
+
+ * configure.ac: Check for linux/perf_event.h.
+ * config.in: Regenerated.
+ * configure: Regenerated.
+
+2012-11-28 Yao Qi <yao@codesourcery.com>
+
+ * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
+ abbreviate 'delete tracepoints' to 'delete tr'.
+ * corefile.c (_initialize_core): Call add_alias_cmd to
+ abbreviate 'set gnutarget' to 'set g'.
+ * value.c (_initialize_values): Call add_alias_cmd to abbreviate
+ 'show convenience' to 'show conv'.
+
+2012-11-27 Joel Brobecker <brobecker@adacore.com>
+
+ * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
+ call to sparc_supply_fpregset.
+ (fill_fpregset): Fix first parameter in call to
+ sparc_collect_fpregset.
+
+2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
+ Kazu Hirata <kazu@codesourcery.com>
+ Yao Qi <yao@codesourcery.com>
+
+ * objfiles.c (init_entry_point_info): Call
+ gdbarch_convert_from_func_ptr_addr and
+ gdbarch_addr_bits_remove here ...
+ (entry_point_address_query): ... instead of here.
+ * solib-svr4.c (exec_entry_point): Call
+ gdbarch_addr_bits_remove.
+ * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
+ the entry address.
+
+2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
+ Yao Qi <yao@codesourcery.com>
+
+ * eval.c (evaluate_subexp_standard): Add handling of
+ TYPE_CODE_MEMBERPTR when calling functions. Correct the
+ result of ptype for calling a TYPE_CODE_METHODPTR.
+
+2012-11-27 Yao Qi <yao@codesourcery.com>
+
+ * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
+ warning.
+ Add i18n markup.
+
+2012-11-26 Alexander Larsson <alexl@redhat.com>
+ Jan Kratochvil <jan.kratochvil@redhat.com>
+ Tom Tromey <tromey@redhat.com>
+
+ * NEWS: Mention mini debuginfo feature.
+ * minidebug.c: New file.
+ * configure.ac: Check for lzma.
+ * configure, config.in: Rebuild.
+ * Makefile.in (LIBLZMA): New variable.
+ (CLIBS): Include LIBLZMA.
+ (SFILES): Mention minidebug.c.
+ (COMMON_OBS): Mention minidebug.o.
+ * symfile.c (read_symbols): New function.
+ (syms_from_objfile, reread_symbols): Call it.
+ * symfile.h (find_separate_debug_file_in_section): Declare.
+
+2012-11-26 Keith Seitz <keiths@redhat.com>
+
+ * exec.c (exec_file_attach): Move cleanup after verifying that
+ memory has in fact been allocated.
+
+2012-11-26 Tom Tromey <tromey@redhat.com>
+
+ * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
+ * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
+ SYMBOL_SYMTAB.
+ * skip.c (skip_info): Use SYMBOL_SYMTAB.
+
+2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
+ Pedro Alves <palves@redhat.com>
+
+ * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
+ size parameter passed to readlink by one byte.
+ * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
+ * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
+ * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
+ * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
+ size by one byte.
+
+2012-11-26 Yao Qi <yao@codesourcery.com>
+
+ * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
+ extraneous parentheses.
+
+2012-11-26 Yao Qi <yao@codesourcery.com>
+
+ * remote.c (remote_start_remote): Typo fix.
+
+2012-11-23 David S. Miller <davem@davemloft.net>
+
+ * sparc-tdep.h (struct sparc_fpregset): New data structure.
+ (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
+ sparc32_sol2_fpregset): Declare new globals.
+ (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
+ 'fpregset' argument.
+ * sparc64-tdep.h (sparc64_supply_fpregset,
+ sparc64_collect_fpregset): Likewise.
+ (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
+ globals.
+ * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
+ (sparc_fpregset): Declare new global.
+ (sparc_supply_fpregset, sparc_collect_fpregset): Add new
+ 'fpregset' argument.
+ * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
+ into handler.
+ (fill_fpregset): Likewise.
+ (_initialize_sparc_linux_nat): Set sparc_fpregset to
+ sparc32_bsd_fpregset.
+ * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
+ sparc32_bsd_fpregset down into handler.
+ (sparc32_linux_collect_core_fpregset): Likewise.
+ * sparc-nat.c (sparc_fpregset): Define.
+ (sparc_supply_fpregset): Add 'fpregset' argument.
+ (sparc_collect_fpregset): Likewise.
+ (sparc_fetch_inferior_registers): Pass sparc_fpregset down
+ into fpregset handler.
+ (sparc_store_inferior_registers): Likewise.
+ (_initialize_sparc_nat): Set sparc_fpregset to
+ sparc32_sunos4_fpregset if NULL.
+ * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
+ down into handler.
+ (fill_fpregset): Likewise.
+ * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
+ * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
+ use it to compute offsets.
+ (sparc32_collect_fpregset): Likewise.
+ (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
+ * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
+ down into handler.
+ (fill_fpregset): Likewise.
+ * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
+ Likewise.
+ (sparc64_linux_collect_core_fpregset): Likewise.
+ * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
+ * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
+ use it to compute offsets.
+ (sparc64_collect_fpregset): Likewise.
+ (sparc64_bsd_fpregset): Define.
+ * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
+ sparc64_bsd_fpregset down into handler.
+ (sparc64fbsd_collect_fpregset): Likewise.
+ * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
+ and pass sparc{32,64}_bsd_fpregset down into handler.
+ (sparc64nbsd_collect_fpregset): Likewise.
+ * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
+ sparc64_bsd_fpregset down into handler.
+ * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
+ * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
+ to sparc32_bsd_fpregset.
+ * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
+ sparc32_bsd_fpregset down into sparc32_supply_fpregset.
+ (sparc32nbsd_supply_fpregset): Likewise.
+
+2012-11-21 Tom Tromey <tromey@redhat.com>
+
+ * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
+ field.
+ (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
+ Remove.
+ * c-typeprint.c (c_type_print_base): Update.
+
+2012-11-21 Yao Qi <yao@codesourcery.com>
+
+ PR tdep/7438
+ * gdbarch.sh (smash_text_address): Remove.
+ * gdbarch.c, gdbarch.h: Regenerate.
+ * arm-tdep.c (arm_smash_text_address): Remove.
+ (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
+ * hppa-tdep.c (hppa_smash_text_address): Remove.
+ (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
+ (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
+ Caller update.
+ * coffread.c (coff_symtab_read): Caller update.
+ * dbxread.c (process_one_symbol): Likewise.
+ * elfread.c (record_minimal_symbol): Likewise.
+ * somread.c (som_symtab_read): Likewise.
+
+2012-11-20 Pierre Muller <muller@sourceware.org>
+
+ ARI fixes: sprintf rule.
+ Replace sprintf function calls for char arrays by
+ calls to xsnprintf calls.
+ * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
+ (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
+ (arm_neon_quad_read, arm_pseudo_read): Ditto.
+ (arm_neon_quad_write, arm_pseudo_write): Ditto.
+ * breakpoint.c (condition_completer): Ditto.
+ (create_tracepoint_from_upload): Ditto.
+ * dwarf2read.c (file_full_name): Ditto.
+ * gcore.c (gcore_command): Ditto.
+ * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
+ * go32-nat.c (go32_sysinfo): Ditto.
+ * interps.c (interp_set): Ditto.
+ * m32c-tdep.c (make_types): Ditto.
+ * ppc-linux-nat.c (fetch_register, store_register): Ditto.
+ * remote-m32r-sdi.c (m32r_open): Ditto.
+ * sol-thread.c (td_err_string): Ditto.
+ (td_state_string, solaris_pid_to_str): Ditto.
+ * symtab.c (gdb_mangle_name): Ditto.
+ * cli/cli-script.c (execute_control_command): Ditto.
+ (define_command, document_command): Ditto.
+ * tui/tui-io.c (tui_rl_display_match_list): Ditto.
+ * tui/tui-stack.c (tui_make_status_line): Ditto.
+ * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
+
+2012-11-20 Mike Frysinger <vapier@gentoo.org>
+
+ * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
+ it when looking at ptr->func.
+ * command.h (complete_on_cmdlist): Add a fourth arg.
+ * completer.c (complete_line_internal): Add local ignore_help_classes,
+ and set it to 1 when reason is not handle_help. Pass this down to
+ lookup_cmd_1 and complete_on_cmdlist.
+
+2012-11-20 Tom Tromey <tromey@redhat.com>
+
+ * completer.c (count_struct_fields): Remove.
+ (expression_completer): Don't call count_struct_fields.
+
+2012-11-20 Pedro Alves <palves@redhat.com>
+
+ * annotate.c (breakpoints_changed): Rename to ...
+ (annotate_breakpoints_changed): ... this.
+ (annotate_stopped, breakpoint_changed): Adjust caller.
+ * annotate.h (breakpoints_changed): Rename to ...
+ (annotate_breakpoints_changed): ... this.
+ * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
+ (do_map_commands_command, init_raw_breakpoint, clear_command)
+ (set_ignore_count, enable_breakpoint_disp): Adjust callers.
+
+2012-11-20 David S. Miller <davem@davemloft.net>
+
+ * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
+ (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
+ sysconf.
+ (get_cores_used_by_process): Update comment.
+
+2012-11-20 Yao Qi <yao@codesourcery.com>
+
+ * objfiles.c (init_entry_point_info): Remove trailing spaces.
+
+2012-11-20 Yao Qi <yao@codesourcery.com>
+
+ * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
+ to deprecated_context_hook.
+
+2012-11-19 Yao Qi <yao@codesourcery.com>
+
+ * infrun.c (infwait_state): Add static.
+
+2012-11-16 Keith Seitz <keiths@redhat.com>
+
+ PR c++/13615
+ * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
+ parameter and pass it to lookup_symbol_file.
+ (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
+ to search base classes.
+ (cp_lookup_symbol_namespace): Likewise.
+ (lookup_namespace_scope): Likewise.
+ (lookup_symbol_file): Add SEARCH parameter.
+ If SEARCH is non-zero and no symbol is found, lookup the class
+ and call cp_lookup_nested_symbol.
+ (find_symbol_in_baseclass): New function.
+ (cp_lookup_nested_symbol): Do not let
+ cp_lookup_symbol_in_namespace search through base classes.
+ Do that later when there is no global symbol match.
+
+2012-11-16 Doug Evans <dje@google.com>
+
+ * main.c (gdb_datadir_provided): New static global.
+ (get_init_files): If --data-directory is provided,
+ and SYSTEM_GDBINIT lives in data-directory, look for it there.
+ * NEWS: Mention it.
+
+2012-11-15 Pierre Muller <muller@sourceware.org>
+
+ ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
+ * gdb_stat.h: Delete. Moved to common directory.
+ * common/gdb_stat.h: New file.
+ * gdb_wait.h: Delete. Moved to common directory.
+ * common/gdb_wait.h: New file.
+ * Makefile.in (H_FILES_NO_SRC): Adapt to new header
+ location.
+ * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
+ location.
+ (stat.h rule): Adapt to new gdb_stat.h location.
+ * common/linux-osdata.c: Include "gdb_stat.h" header instead of
+ <sys/stat.h> header.
+ * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
+ <sys/wait.h> header.
+
+2012-11-15 Pierre Muller <muller@sourceware.org>
+
+ * configure.ac (AC_HEADER_STAT): Remove.
+ * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
+ and corresponding code.
+ * configure: Regenerate.
+ * config.in: Regenerate.
+
+2012-11-15 Pierre Muller <muller@sourceware.org>
+
+ ARI xasprintf rule fixes.
+ * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
+ instead of xasprintf.
+ (open_and_init_dwp_file): Ditto.
+
+2012-11-14 Luis Machado <lgustavo@codesourcery.com>
+
+ * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
+ target types.
+
+2012-11-14 Tom Tromey <tromey@redhat.com>
+
+ * configure, config.in: Rebuild.
+ * configure.ac: Don't check for ctype.h, time.h.
+ * expprint.c: Don't use HAVE_CTYPE_H.
+
+2012-11-13 Tom Tromey <tromey@redhat.com>
+
+ * gdbarch.h, gdbarch.c: Rebuild.
+ * gdbarch.sh (set_target_gdbarch): Rename from
+ deprecated_target_gdbarch_select_hack.
+ * arch-utils.c (gdbarch_update_p): Update.
+ (set_gdbarch_from_file): Update.
+
+2012-11-14 Pierre Muller <muller@sourceware.org>
+
+ * MAINTAINERS (Responsible Maintainers/misc): Add myself
+ as responsible of contrib/ari directory.
+
+2012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
+ Yao Qi <yao@codesourcery.com>
+
+ * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
+ bit of EXC_RETURN.
+ (arm_m_exception_cache, arm_m_exception_this_id)
+ (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
+ (arm_m_exception_unwind): New.
+ (arm_gdbarch_init): Register arm_m_exception_unwind.
+
+2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
+
+ * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
+ parameter COUNT, for pattern filling of memory regions.
+ * NEWS: Mention it.
+
+2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
+
+ * disasm.h (DISASSEMBLY_FILENAME): New macro.
+ * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
+ to print_source_lines ().
+ * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
+ flag.
+ * source.c (print_source_lines_base): Prefix source line with
+ filename if PRINT_SOURCE_LINES_FILENAME flag is set.
+
+2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
+
+ * symtab.h (print_source_lines_flags): New enum.
+ * source.c (print_source_lines_base): Change noerror to flags.
+ (print_source_lines): Change noerror to flags.
+
+2012-11-13 Pierre Muller <muller@sourceware.org>
+
+ ARI fixes: Avoid sprintf function use rule.
+ * charset.c (convert_between_encodings): Use xsnprintf.
+ * cli-out.c (cli_field_int): Likewise.
+ * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
+ * expprint.c (op_name_standard): Likewise.
+ * frv-tdep.c (set_variant_num_gprs): Likewise.
+ (set_variant_num_fprs): Likewise.
+ * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
+ * nto-tdep.c (nto_find_and_open_solib): Likewise.
+ (nto_init_solib_absolute_prefix): Likewise.
+ * source.c (init_source_path): Likewise.
+ (print_source_lines_base): Likewise.
+ * valprint.c (print_wchar): Likewise.
+ * mi/mi-out.c (mi_field_int): Likewise.
+ windows-nat.c (windows_pid_to_exec_file): Likewise.
+ (windows_create_inferior): Likewise.
+ (_initialize_check_for_gdb_ini): Likewise.
+
+2012-11-12 Joel Brobecker <brobecker@adacore.com>
+
+ * frame.h (deprecated_frame_register_read): Renames
+ frame_register_read.
+ * frame.c (deprecated_frame_register_read): Renames
+ frame_register_read. Update all callers.
+ * i386-tdep.c: Update all callers of frame_register_read.
+ * infcmd.c: Likewise.
+ * jit.c: Likewise.
+ * mips-tdep.c: Likewise.
+ * mt-tdep.c: Likewise.
+ * sh64-tdep.c: Likewise.
+
+2012-11-12 Joel Brobecker <brobecker@adacore.com>
+
+ * frame.h (frame_register_read): Remove FIXME comment.
+ * frame.c (frame_register_read): Add suggestion explaining
+ which function to use in place of this one.
+
+2012-11-12 Tom Tromey <tromey@redhat.com>
+
+ * python/python.c (start_type_printers): Initialize 'result_obj'.
+
+2012-11-12 Tom Tromey <tromey@redhat.com>
+
+ * NEWS: Update.
+ * data-directory/Makefile.in (PYTHON_FILES): Add
+ type_printers.py.
+ * python/lib/gdb/command/type_printers.py: New file.
+ * python/lib/gdb/command/types.py (TypePrinter): New class.
+ (_get_some_type_recognizers, get_type_recognizers,
+ apply_type_recognizers, register_type_printer): New
+ functions.
+ * python/py-objfile.c (objfile_object) <type_printers>: New
+ field.
+ (objfpy_dealloc): Decref new field.
+ (objfpy_new): Set new field.
+ (objfpy_get_type_printers, objfpy_set_type_printers): New
+ functions.
+ (objfile_to_objfile_object): Set new field.
+ (objfile_getset): Add "type_printers".
+ * python/py-progspace.c (pspace_object) <type_printers>: New
+ field.
+ (pspy_dealloc): Decref new field.
+ (pspy_new): Set new field.
+ (pspy_get_type_printers, pspy_set_type_printers): New functions.
+ (pspace_to_pspace_object): Set new field.
+ (pspace_getset): Add "type_printers".
+ * python/python.c (start_type_printers, apply_type_printers,
+ free_type_printers): New functions.
+ (_initialize_python): Set gdb.type_printers.
+ * python/python.h (start_type_printers, apply_type_printers,
+ free_type_printers): Declare.
+ * typeprint.c (type_print_raw_options, default_ptype_flags):
+ Update for new fields.
+ (do_free_global_table, create_global_typedef_table,
+ find_global_typedef): New functions.
+ (find_typedef_in_hash): Use find_global_typedef.
+ (whatis_exp): Use create_global_typedef_table. Change cleanup
+ handling.
+ * typeprint.h (struct type_print_options) <global_typedefs,
+ global_printers>: New fields.
+
+2012-11-12 Tom Tromey <tromey@redhat.com>
+
+ * c-typeprint.c (find_typedef_for_canonicalize,
+ print_name_maybe_canonical): New functions.
+ (c_print_type): Look up type name.
+ (cp_type_print_derivation_info): Add flags argument. Use
+ print_name_maybe_canonical.
+ (cp_type_print_method_args): Add wrapping.
+ (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
+ (c_type_print_template_args): New function.
+ (c_type_print_base): Change wrapping. Use
+ print_name_maybe_canonical.
+ <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
+ type name lookups.
+ * gdbtypes.c (types_equal): No longer static.
+ * gdbtypes.h (types_equal): Declare.
+ * typeprint.c (type_print_raw_options, default_ptype_flags):
+ Update.
+ (struct typedef_hash_table): New.
+ (hash_typedef_field, eq_typedef_field,
+ recursively_update_typedef_hash, add_template_parameters,
+ create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
+ make_cleanup_free_typedef_hash, copy_typedef_hash_element,
+ copy_typedef_hash, find_typedef_in_hash): New functions.
+ * typeprint.h (struct type_print_options) <local_typedefs>:
+ New field.
+ (recursively_update_typedef_hash, add_template_parameters,
+ create_typedef_hash, free_typedef_hash,
+ make_cleanup_free_typedef_hash, copy_typedef_hash,
+ find_typedef_in_hash): Declare.
+
+2012-11-12 Tom Tromey <tromey@redhat.com>
+
+ * cp-support.c (inspect_type,
+ replace_typedefs_qualified_name, replace_typedefs): Add
+ finder, data arguments. Call as needed.
+ (cp_canonicalize_string_full): New function.
+ (cp_canonicalize_string_no_typedefs): Rewrite.
+ * cp-support.h (canonicalization_ftype): New typedef.
+ (cp_canonicalize_string_full): Declare.
+
+2012-11-12 Tom Tromey <tromey@redhat.com>
+
+ * NEWS: Update.
+ * c-typeprint.c (c_type_print_base): Handle print_method and
+ print_typedefs flags.
+ * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
+ * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
+ options.
+ * typeprint.c (type_print_raw_options, default_ptype_flags):
+ Update for new field.s
+ (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
+ (setprinttypelist, showprinttypelist, print_methods,
+ print_typedefs): New globals.
+ (set_print_type, show_print_type, set_print_type_methods,
+ show_print_type_methods, set_print_type_typedefs,
+ show_print_type_typedefs): New functions.
+ (_initialize_typeprint): Update documentation. Add "print
+ type methods" and "print type typedefs" parameters.
+ * typeprint.h (struct type_print_options) <print_methods,
+ print_typedefs>: New fields.
+
+2012-11-12 Tom Tromey <tromey@redhat.com>
+
+ * c-typeprint.c (cp_type_print_method_args): Add flags
+ argument. Call c_print_type, not type_print.
+ (c_type_print_base): Call c_print_type, not type_print.
+ Update.
+
+2012-11-12 Tom Tromey <tromey@redhat.com>
+
+ * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
+ to type-printing functions.
+ * ada-lang.h (ada_print_type): Add argument.
+ * ada-typeprint.c (print_array_type, print_variant_clauses,
+ print_variant_part, print_selected_record_field_types,
+ print_record_field_types, print_unchecked_union_type,
+ print_func_type, ada_print_type): Add flags argument.
+ (ada_print_typedef): Update.
+ * c-exp.y (OPERATOR conversion_type_id): Update.
+ * c-lang.h (c_print_type, c_type_print_base): Update.
+ * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
+ c_type_print_modifier, c_type_print_args,
+ c_type_print_varspec_suffix, c_type_print_base): Add flags
+ argument.
+ * cp-valprint.c (cp_print_class_member): Update.
+ * dwarf2read.c (dwarf2_compute_name): Update.
+ * f-lang.h (f_print_type): Add argument.
+ * f-typeprint.c (f_print_type): Add flags argument.
+ * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
+ * go-lang.h (go_print_type): Add argument.
+ * go-typeprint.c (go_print_type): Add flags argument.
+ * jv-lang.h (java_print_type): Add argument.
+ * jv-typeprint.c (java_type_print_base, java_print_type): Add
+ flags argument.
+ * language.c (unk_lang_print_type): Add flags argument.
+ * language.h (struct language_defn) <la_print_type>: Add flags
+ argument.
+ (LA_PRINT_TYPE): Likewise.
+ * m2-lang.h (m2_print_type): Add argument.
+ * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
+ m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
+ m2_unbounded_array, m2_record_fields): Add flags argument.
+ * p-lang.h (pascal_print_type, pascal_type_print_base,
+ pascal_type_print_varspec_prefix): Add argument.
+ * p-typeprint.c (pascal_print_type,
+ pascal_type_print_varspec_prefix, pascal_print_func_args,
+ pascal_type_print_varspec_suffix, pascal_type_print_base): Add
+ flags argument.
+ * symmisc.c (print_symbol): Update.
+ * typeprint.c (type_print_raw_options, default_ptype_flags):
+ New globals.
+ (type_print): Update.
+ * typeprint.h (struct type_print_options): New.
+ (type_print_raw_options): Declare.
+ (c_type_print_varspec_suffix, c_type_print_args): Add argument.
+
+2012-11-10 Keith Seitz <keiths@redhat.com>
+
+ * breakpoint.c (clear_command): Add cleanup for
+ sals.sals if an argument is given.
+
+ * linespec.c (parse_linespec): Do cleanups after
+ parsing a convenience variable.
+
+2012-11-10 Keith Seitz <keiths@redhat.com>
+
+ PR gdb/14288
+ * c-valprint.c (c_val_print): For character arrays
+ with "print null" option on, print ellipses if
+ the output is truncated and the next character is not \000.
+ * valprint.c (MAX_WCHARS): Define.
+ (WCHAR_BUFLEN): Likewise.
+ (WCHAR_BUFLEN_MAX): Likewise.
+ (struct converted_character): New structure.
+ (count_next_character): New function.
+ (print_converted_chars_to_obstack): New function.
+ (generic_printstr): Rewrite using count_next_character
+ and print_converted_chars_to_obstack.
+
+2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
+
+ * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
+ while executing the gdb command.
+ (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
+ are called from prompt_for_continue.
+ * tui/tui-io.c (tui_redisplay_readline): Likewise.
+
+2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
+
+ PR tui/9584
+
+ * tui/tui.c (tui_rl_command_key): Do not call execute_command
+ but insert the command to execute in readline's buffer.
+
+2012-11-09 Tom Tromey <tromey@redhat.com>
+
+ * gdbarch.sh (target_gdbarch): Remove macro.
+ (get_target_gdbarch): Rename to target_gdbarch.
+ * gdbarch.c, gdbarch.h: Rebuild.
+ * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
+ arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
+ darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
+ filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
+ ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
+ linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
+ mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
+ mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
+ nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
+ procfs.c, progspace.c, ravenscar-thread.c, record.c,
+ remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
+ rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
+ solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
+ solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
+ solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
+ spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
+ target-descriptions.c, target.c, target.h, tracepoint.c,
+ windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
+ common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
+ python/py-inferior.c, python/python.c: Update.
+
+2012-11-09 Andrew Burgess <aburgess@broadcom.com>
+
+ * source.c (print_source_lines_base): Add fullname field giving
+ full path to file in mi output.
+ * NEWS: Mention the new fullname field.
+
+2012-11-09 Yao Qi <yao@codesourcery.com>
+
+ * NEWS: Mention the fix to the ambiguity of 'fo' command.
+
+2012-11-09 Pedro Alves <palves@redhat.com>
+
+ PR gdb/14306
+
+ * infrun.c: Include target-descriptions.h.
+ (follow_exec): Fetch new target description.
+
+2012-11-09 Yao Qi <yao@codesourcery.com>
+
+ * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
+ 0x8d (lea).
+
+2012-11-09 Yao Qi <yao@codesourcery.com>
+
+ * breakpoint.c: Declare set_tracepoint_count.
+ (install_breakpoint): Call set_tracepoint_count if B is a
+ tracepoint.
+ (trace_command): Don't call set_tracepoint_count. Re-indent.
+ (strace_command, ftrace_command):
+ (create_tracepoint_from_upload): Likewise.
+
+2012-11-09 Pedro Alves <palves@redhat.com>
+
+ * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
+ (get_target_gdbarch) <gdbarch.h>: New function.
+ (startup_gdbarch) <gdbarch.h>: Declare.
+ <gdbarch.c> (target_gdbarch): Delete.
+ <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
+ current inferior's gdbarch.
+ <gdbarch.c> (get_target_gdbarch): New function.
+ * inferior.c: Include target-descriptions.h.
+ (free_inferior): Free target description info.
+ (add_inferior_with_spaces): Set the inferior's initial
+ architecture.
+ (clone_inferior_command): Copy the original inferior's target
+ description if it was user specified.
+ (initialize_inferiors): Add comment.
+ * inferior.h (struct target_desc_info): Forward declare.
+ (struct inferior) <gdbarch>: New field.
+ * linux-nat.c: Include target-descriptions.h.
+ (linux_child_follow_fork): Copy the parent's architecture and
+ target description to the child.
+ * target-descriptions.c: Include inferior.h.
+ (struct target_desc_info): New structure, holding the equivalents
+ of ...
+ (target_desc_fetched, current_target_desc)
+ (target_description_filename): ... these removed globals.
+ (get_tdesc_info, target_desc_info_from_user_p)
+ (copy_inferior_target_desc_info, target_desc_info_free): New.
+ (target_desc_fetched, current_target_desc)
+ (target_description_filename): Reimplemented as convenience
+ macros.
+ (tdesc_filename_cmd_string): New global.
+ (set_tdesc_filename_cmd): Copy the string manipulated by the "set
+ tdescs filename ..." commands to the per-inferior equivalent.
+ (show_tdesc_filename_cmd): Get the value to show from the
+ per-inferior description filename.
+ (_initilize_target_descriptions): Change the "set/show tdesc
+ filename" commands' variable.
+ * target-descriptions.h (struct target_desc, struct target_desc_info)
+ (struct inferior): Forward declare.
+ (target_find_description, target_clear_description)
+ (target_current_description): Adjust comments.
+ (copy_inferior_target_desc_info, target_desc_info_free)
+ (target_desc_info_from_user_p). Declare.
+
+2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
+
+ * tui/tui-hooks.c (tui_about_to_proceed): New function.
+ (tui_target_wait_hook): Remove.
+ (tui_install_hooks): Install the about_to_proceed observer.
+ (tui_remove_hooks): And remove it here.
+
+2012-11-08 Tom Tromey <tromey@redhat.com>
+
+ * linux-tdep.c (linux_make_siginfo_note): New function.
+ (linux_make_corefile_notes): Use it.
+ * corelow.c (get_core_siginfo): New function.
+ (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
+
+2012-11-08 Tom Tromey <tromey@redhat.com>
+
+ PR gdb/14704:
+ * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
+ (zlib_decompress_section): Remove.
+ (gdb_bfd_map_section): Only check for compressed section
+ in mmap case. Use bfd_get_full_section_contents.
+ * osabi.c (check_note): Add 'sectsize' argument. Read
+ section data.
+ (generic_elf_osabi_sniff_abi_tag_sections): Don't read
+ section data. Update for check_note change.
+ * xcoffread.c (xcoff_initial_scan): Use
+ bfd_get_full_section_contents.
+ * py-auto-load.c (auto_load_section_scripts): Use
+ bfd_get_full_section_contents.
+ * contrib/cc-with-tweaks.sh: Add -Z option.
+
+2012-11-08 Tom Tromey <tromey@redhat.com>
+
+ * python/py-bpevent.c: Include defs.h.
+ * python/py-continueevent.c: Include defs.h.
+ * python/py-event.c: Include defs.h.
+ * python/py-event.h: Don't include defs.h.
+ * python/py-events.h: Don't include defs.h.
+ * python/py-evts.c: Include defs.h.
+ * python/py-exitedevent.c: Include defs.h.
+ * python/py-newobjfileevent.c: Include defs.h.
+ * python/py-signalevent.c: Include defs.h.
+ * python/py-stopevent.c: Include defs.h.
+ * python/py-threadevent.c: Include defs.h.
+
+2012-11-08 Pierre Muller <muller@sourceware.org>
+
+ * update-web-ari.sh (print_heading): Add number of files
+ checked.
+ (nb_files): New variable counting the number of sources
+ files found by gdb_find.sh script.
+ (debug_awk): New variable to allow extra debug output.
+ (indexes): Add more information if DEBUG_AWK is set.
+
+2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
+
+ * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
+ ppc64_standard_linkage3): Mark ld r11 instructions as optional,
+ following the change in PLT call stubs on linker.
+
+2012-11-08 Pierre Muller <muller@sourceware.org>
+
+ * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
+ as default language.
+ (AWK): Use = instead of == for sh test to avoid warning.
+ (Linux rule): Correct [:digit] into [[:digit:]].
+ (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
+ (vasprintf rule): Adapt to common subdirectory moves.
+ (xasprintf rule): Idem.
+ (xvasprintf rule): Idem.
+ (var_boolean rule): Accept occurence in == or != test.
+
+ * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
+
+2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
+
+ * tui/tui-hooks.c (tui_inferior_exit): New function.
+ (tui_detach_hook): Remove.
+ (tui_install_hooks): Install the inferior exit observer.
+ (tui_remove_hooks): Remove it.
+
+2012-11-08 Yao Qi <yao@codesourcery.com>
+
+ PR gdb/14777.
+ * source.c (_initialize_source): Call add_com_alias to abbreviate
+ 'forward-search' as 'fo'.
+
+2012-11-07 Pedro Alves <palves@redhat.com>
+
+ * arm-tdep.c: Make defs.h be the first include.
+ * coff-pe-read.c: Ditto.
+ * gnu-nat.c: Ditto.
+ * go32-nat.c: Ditto.
+ * i386-nat.c: Ditto.
+ * ppcnbsd-nat.c: Ditto.
+ * ada-varobj.h: Don't include defs.h.
+ * i386-darwin-tdep.h: Ditto.
+ * i386-nat.h: Ditto.
+
+2012-11-07 Pedro Alves <palves@redhat.com>
+
+ * MAINTAINERS: New FSF-appointed maintainers replace the Steering
+ Committee.
+
+2012-11-07 Pierre Muller <muller@sourceware.org>
+
+ * common/linux-osdata.c (dirent.h): ARI fix: Remove.
+ File already uses "gdb_dirent.h" header.
+
+2012-11-07 Yao Qi <yao@codesourcery.com>
+
+ * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
+ tracepoint_count'.
+
+2012-11-06 Tom Tromey <tromey@redhat.com>
+
+ * target.h (inferior_has_forked, inferior_has_vforked)
+ (inferior_has_execd, inferior_has_called_syscall): Remove
+ declarations.
+
+2012-11-06 Pierre Muller <muller@sourceware.org>
+
+ * remote.c (remote_insert_hw_breakpoint): ARI fix,
+ add missing internalization markup.
+
+2012-11-06 Pedro Alves <palves@redhat.com>
+
+ PR gdb/14810
+
+ * breakpoint.c (bpstat_stop_status): Skip disabled locations.
+
+2012-11-06 Pierre Muller <muller@sourceware.org>
+
+ * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
+ is not executable.
+
+2012-11-05 Joel Brobecker <brobecker@adacore.com>
+
+ * gnulib/update-gnulib.sh: New script.
+
+2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
+
+ * MAINTAINERS: Update my email address.
+
+2012-11-05 Tom Tromey <tromey@redhat.com>
+
+ * frame.c (put_frame_register): Don't use temporary buffer.
+
+2012-11-05 Pedro Alves <palves@redhat.com>
+
+ * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
+ child. Clear 'pending_detach'.
+ * infrun.c (handle_vfork_child_exec_or_exit): Clear
+ 'pending_detach' in the vfork parent.
+
+2012-11-05 Doug Evans <dje@google.com>
+
+ Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
+ * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
+ * dwarf2read.c: #include "elf-bfd.h".
+ (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
+ (dwop_section_names): Renamed from dwo_section names. All uses
+ updated. Add entries for .debug_cu_index, .debug_tu_index.
+ (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
+ All uses updated.
+ (struct dwp_sections): New type.
+ (struct virtual_dwo_sections): New type.
+ (struct dwp_hash_table): New type.
+ (struct dwp_file): New type.
+ (init_cutu_and_read_dies): Ensure DWO info/types section has been
+ read in. Handle DWOs coming from DWP files.
+ (lookup_dwo_file_slot): New function.
+ (dwarf2_locate_dwo_sections): Move definition closer to use.
+ (create_dwo_debug_info_hash_table_reader): Renamed from
+ create_debug_info_hash_table_reader. All callers updated.
+ (create_dwo_debug_info_hash_table): Renamed from
+ create_debug_info_hash_table. All callers updated.
+ (create_dwp_hash_table): New function.
+ (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
+ (lookup_dwo_in_dwp): New function.
+ (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
+ is_dwp. All callers updated.
+ (open_dwop_file): Renamed from open_dwo_file. All callers updated.
+ (open_and_init_dwo_file): Renamed from init_dwo_file.
+ All callers updated.
+ (lookup_dwo_file): Delete.
+ (dwarf2_locate_dwp_sections): New function.
+ (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
+ (allocate_dwp_loaded_cutus_table): New function.
+ (open_and_init_dwp_file): New function.
+ (lookup_dwo_cutu): New function.
+ (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
+
+2012-11-03 Yao Qi <yao@codesourcery.com>
+
+ Fix PR gdb/14617.
+ * breakpoint.c (trace_pass_set_count): Call
+ observer_notify_breakpoint_modified instead of
+ observer_notify_tracepoint_modified.
+ * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
+
+2012-11-02 Tom Tromey <tromey@redhat.com>
+
+ * breakpoint.c (catch_syscall_completer): Pass 'word' as second
+ argument to complete_on_enum.
+
+2012-11-02 Tom Tromey <tromey@redhat.com>
+
+ * configure: Rebuild.
+ * configure.ac (build_warnings): Add -Wempty-body.
+ * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
+ * remote.c (handle_notification): Use braces for empty 'else' body.
+ * s390-tdep.c (s390_analyze_prologue): Use braces for empty
+ 'else' body.
+ * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
+ 'else' body.
+ * solib-som.c (som_relocate_section_addresses): Use braces
+ for empty 'else' body.
+ * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
+ (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
+
+2012-11-02 Pedro Alves <palves@redhat.com>
+
+ PR gdb/14766
+
+ * infrun.c (handle_inferior_event)
+ <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
+ null_ptid before handling a vfork child exec or exit. Switch to
+ the event ptid afterwards.
2012-11-02 Yao Qi <yao@codesourcery.com>
* gdbarch.c: Regenerate.
2012-10-10 Joel Brobecker <brobecker@adacore.com>
- Tom Tromey <tromey@redhat.com>
+ Tom Tromey <tromey@redhat.com>
* rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
inneffective if condition by gdb assertion. Add function
for command 'remotetimeout'.
* command.h (enum var_types): New zuinteger_unlimited. Update comment
to var_integer.
- * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
- for command 'set listsize'.
+ * source.c (_initialize_source): Call
+ add_setshow_zuinteger_unlimited_cmd for command 'set listsize'.
2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
error message from the target.
* breakpoint.c (insert_bp_location, insert_breakpoint_locations):
- Catch this exception and print the error message contained within. Do not
- print the default hardware error breakpoint message in this case.
+ Catch this exception and print the error message contained within.
+ Do not print the default hardware error breakpoint message in this
+ case.
2012-09-12 Doug Evans <dje@google.com>
DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
Update some commands.
* mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
- * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
- to 1.
+ * mi/mi-main.c (mi_cmd_execute): Set
+ '*parse->cmd->suppress_notification' to 1.
2012-08-31 Yao Qi <yao@codesourcery.com>
can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
can_use_displaced_stepping_enum.
Change can_use_displaced_stepping's type to 'enum auto_boolean'.
- (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
+ (show_can_use_displaced_stepping, use_displaced_stepping): Update
+ callers.
(_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
add_setshow_enum_cmd.