+2013-04-10 Hui Zhu <hui@codesourcery.com>
+ Yao Qi <yao@codesourcery.com>
+
+ * configure.ac: Check libbabeltrace is installed.
+ * config.in: Regenerate.
+ * configure: Regenerate.
+ * Makefile.in (LIBBABELTRACE): New.
+ (CLIBS): Add LIBBABELTRACE.
+ * ctf.c: Include "exec.h".
+ (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
+ (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
+ (ctf_save_metadata_header): Define new type aliases in
+ metadata.
+ (ctf_write_header): Define event type "tsv_def" and "tp_def"
+ in metadata. Start a new faked packet for trace status.
+ (ctf_write_status): Write trace status to CTF.
+ (ctf_write_uploaded_tsv): Write TSV to CTF.
+ (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
+ (ctf_write_definition_end): End the faked packet.
+
+ (ctx, ctf_iter, trace_dirname): New.
+ (start_pos): New variable.
+ (ctf_destroy, ctf_open_dir, ctf_open): New.
+ (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
+ macros.
+ (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
+ (ctf_fetch_registers, ctf_xfer_partial): New.
+ (ctf_get_trace_state_variable_value): New.
+ (ctf_get_tpnum_from_frame_event): New.
+ (ctf_get_traceframe_address): New.
+ (ctf_trace_find, ctf_has_stack): New.
+ (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
+ (ctf_get_trace_status, ctf_read_status): New.
+ (_initialize_ctf): New.
+ * tracepoint.c (get_tracepoint_number): New
+ (get_uploaded_tsv): Remove 'static'.
+ (struct traceframe_info, trace_regblock_size): Move it to ...
+ * tracepoint.h: ... here.
+ (get_tracepoint_number): Declare it.
+ (get_uploaded_tsv): Declare it.
+
+ * NEWS: Mention new configure option.
+
+2013-04-10 Pedro Alves <palves@redhat.com>
+ Hui Zhu <hui@codesourcery.com>
+
+ * breakpoint.c (dprintf_re_set): New.
+ (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
+ to dprintf_re_set.
+
+2013-04-09 Joel Brobecker <brobecker@adacore.com>
+
+ * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
+ Remove solib-svr4.o from the list.
+
+2013-04-09 Joel Brobecker <brobecker@adacore.com>
+
+ * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
+ Use gdb_assert_not_reached instead of invalid boolean expression.
+
+2013-04-09 Pedro Alves <palves@redhat.com>
+
+ * remote.c (unpush_and_perror): New function.
+ (readchar, remote_serial_write): Use it.
+
+2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
+
+ * NEWS: Mention new btrace RSP packets.
+
+2013-04-08 Tom Tromey <tromey@redhat.com>
+
+ * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
+ long.
+
+2013-04-08 Tom Tromey <tromey@redhat.com>
+
+ * maint.c (print_bfd_section_info): Print the section index.
+ * symmisc.c (dump_msymbols): Print the section index.
+
+2013-04-08 Tom Tromey <tromey@redhat.com>
+
+ PR symtab/8424:
+ * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
+ SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
+ * breakpoint.c (resolve_sal_pc): Update.
+ * elfread.c (elf_gnu_ifunc_record_cache): Update.
+ * findvar.c (struct minsym_lookup_data) <objfile>: New field.
+ (minsym_lookup_iterator_cb): Use it.
+ (default_read_var_value): Update.
+ * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
+ Update.
+ * infcmd.c (jump_command): Update.
+ * linespec.c (minsym_found): Update.
+ * maint.c (maintenance_translate_address): Update.
+ * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
+ (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
+ * parse.c (write_exp_msymbol): Update.
+ * printcmd.c (address_info): Update.
+ * psymtab.c (find_pc_sect_psymbol): Update.
+ (fixup_psymbol_section): Check SYMBOL_SECTION, not
+ SYMBOL_OBJ_SECTION.
+ (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
+ Don't initialize SYMBOL_OBJ_SECTION.
+ * spu-tdep.c (spu_catch_start): Update.
+ * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
+ * symmisc.c (dump_msymbols, print_symbol): Update.
+ * symtab.c (fixup_section): Don't set 'obj_section'. Change
+ how fallback section is computed.
+ (fixup_symbol_section): Update.
+ (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
+ Update.
+ (allocate_symbol, initialize_symbol, allocate_template_symbol):
+ Initialize SYMBOL_SECTION.
+ * symtab.h (struct general_symbol_info) <section>: Update comment.
+ <obj_section>: Remove.
+ (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
+ (SYMBOL_OBJFILE): New macro.
+
+2013-04-08 Tom Tromey <tromey@redhat.com>
+
+ * coffread.c (record_minimal_symbol): Update.
+ * dbxread.c (record_minimal_symbol): Update.
+ * elfread.c (record_minimal_symbol): Update.
+ * machoread.c (macho_symtab_add_minsym): Update.
+ * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
+ Update.
+ * minsyms.c (prim_record_minimal_symbol): Update.
+ (prim_record_minimal_symbol_full): Remove 'bfd_section'
+ argument.
+ (prim_record_minimal_symbol_and_info): Likewise.
+ * minsyms.h (prim_record_minimal_symbol_full)
+ (prim_record_minimal_symbol_and_info): Update.
+ * symtab.c (allocate_symbol, initialize_symbol)
+ (allocate_template_symbol): Initialize SYMBOL_SECTION.
+ * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
+ Update.
+
+2013-04-08 Tom Tromey <tromey@redhat.com>
+
+ PR symtab/8423:
+ * solib-som.c (som_solib_section_offsets): Use BFD section
+ indices. Set offsets for all sections.
+ * somread.c (som_symtab_read): Compute BFD section for
+ symbol. Use prim_record_minimal_symbol_and_info.
+ (som_symfile_read): Fix comment.
+ (struct find_section_offset_arg): New.
+ (find_section_offset, set_section_index): New functions.
+ (som_symfile_offsets): Use set_section_index to compute
+ section indices.
+
+2013-04-08 Tom Tromey <tromey@redhat.com>
+
+ * coffread.c (cs_to_section): Use gdb_bfd_section_index.
+ * elfread.c (record_minimal_symbol, elf_symtab_read): Use
+ gdb_bfd_section_index.
+ * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
+ New functions.
+ * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
+ Declare.
+ * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
+ Update.
+ * objfiles.c (add_to_objfile_sections_full): New function.
+ (add_to_objfile_sections): Use it.
+ (build_section_table): Rewrite.
+ (objfile_relocate1): Use gdb_bfd_section_index. Update.
+ * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
+ (struct objfile) <sections>: Update comment.
+ (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
+ is NULL.
+ (ALL_OBJSECTIONS): Use it.
+ * solib-dsbt.c (dsbt_relocate_main_executable): Update.
+ * solib-frv.c (frv_relocate_main_executable): Update.
+ * solib-target.c (solib_target_relocate_section_addresses):
+ Use gdb_bfd_section_index.
+ * symfile.c (build_section_addr_info_from_section_table):
+ Use gdb_bfd_section_index.
+ (build_section_addr_info_from_bfd, place_section): Likewise.
+ * symtab.c (fixup_section): Update.
+ * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
+
+2013-04-08 Tom Tromey <tromey@redhat.com>
+
+ * minsyms.h (struct bound_minimal_symbol): New.
+ (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
+ Remove objfile argument.
+ (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
+ Return bound_minimal_symbol.
+ * minsyms.c (lookup_minimal_symbol_by_pc_1)
+ (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
+ Return bound_minimal_symbol.
+ (in_gnu_ifunc_stub): Update.
+ (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
+ Remove 'objfile_p' argument.
+ (lookup_solib_trampoline_symbol_by_pc): Update.
+ * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
+ arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
+ c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
+ glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
+ i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
+ linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
+ mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
+ ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
+ stack.c, symtab.c, tui/tui-disasm.c: Update.
+
+2013-04-08 Tom Tromey <tromey@redhat.com>
+
+ * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
+ Use symbol's obstack, not an objfile.
+ * coffread.c (process_coff_symbol): Update.
+ * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
+ * jv-lang.c (add_class_symbol): Update.
+ * mdebugread.c (new_symbol): Update.
+ * minsyms.c (prim_record_minimal_symbol_full)
+ (terminate_minimal_symbol_table): Update.
+ * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
+ * stabsread.c (define_symbol, read_enum_type): Update.
+ * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
+ Handle Ada specially.
+ (symbol_set_language): Add 'obstack' argument.
+ (symbol_set_names): Update.
+ (symbol_natural_name, symbol_demangled_name): Always use
+ ada_decode_symbol.
+ * symtab.h (struct general_symbol_info)
+ <language_specific::obstack>: New field.
+ <ada_mangled>: New field.
+ (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
+ (symbol_set_language): Update.
+
+2013-04-08 Tom Tromey <tromey@redhat.com>
+
+ * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
+ Take an obstack, not an objfile.
+ (symbol_set_names): Update.
+ * symtab.h (symbol_set_demangled_name): Update.
+
+2013-04-08 Tom Tromey <tromey@redhat.com>
+
+ * coffread.c (process_coff_symbol, coff_read_enum_type): Call
+ allocate_symbol.
+ * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
+ (read_func_scope): Call allocate_template_symbol.
+ (new_symbol_full): Call allocate_symbol.
+ * jit.c (finalize_symtab): Call allocate_symbol.
+ * jv-lang.c (add_class_symbol): Call allocate_symbol.
+ * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
+ * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
+ (common_block_end): Call allocate_symbol.
+ * symtab.c (allocate_symbol, initialize_symbol)
+ (allocate_template_symbol): New functions.
+ * symtab.c (allocate_symbol, initialize_symbol)
+ (allocate_template_symbol): Declare.
+ * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
+
+2013-04-08 Pedro Alves <palves@redhat.com>
+ Keith Seitz <keiths@redhat.com>
+
+ * breakpoint.c (create_breakpoint): Rename
+ "parse_condition_and_thread" parameter to "parse_arg". Update
+ describing comment. If !PARSE_ARG, then error out if ARG is not
+ the empty string after extracting the location.
+ * breakpoint.h (create_breakpoint): Rename
+ "parse_condition_and_thread" parameter to "parse_arg".
+
2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
* solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.