+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.
+
+2012-12-15 Joel Brobecker <brobecker@adacore.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>
+
+ * common/queue.h: New.
+
+2012-12-15 Yao Qi <yao@codesourcery.com>
+
+ * 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.
+
+ * NEWS: Mention the change for CLI and MI.
+
+2012-12-15 Yao Qi <yao@codesourcery.com>
+
+ * breakpoint.c (download_tracepoint_locations): Iterate over
+ ALL_TRACEPOINTS first and then iterate over locations of
+ each tracepoint.
+
+2012-12-14 Pierre Muller <muller@sourceware.org>
+ Pedro Alves <palves@redhat.com>
+
+ * 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.