+2009-07-20 Pedro Alves <pedro@codesourcery.com>
+
+ * features/gdb-target.dtd (target): Accept an optional 'osabi'
+ element.
+ (osabi): Define element.
+ * features/mips-linux.xml (target): Add an osabi subelement set to
+ GNU/Linux.
+ * regformats/regdat.sh (xmlarch, xmlosabi): New variables. Don't
+ write the architecture into $xmltarget. Store it in $xmlarch.
+ Handle the 'osabi' type. Handle outputting the osabi element of
+ the target description.
+ * regformats/reg-x86-64-linux.dat (osabi): Set to GNU/Linux.
+ * regformats/reg-i386-linux.dat (osabi): Set to GNU/Linux.
+
+ * target-descriptions.h (tdesc_osabi, set_tdesc_osabi): Declare.
+ * target-descriptions.c (struct target_desc) <osabi>: New field.
+ (tdesc_osabi): New function.
+ (set_tdesc_osabi): New function.
+ * xml-tdesc.c: Include osabi.h.
+ (tdesc_end_osabi): New.
+ (target_children): Parse "osabi" elements.
+ * arch-utils.c (gdbarch_info_fill): Try to get the osabi from the
+ target description if the user didn't override it or it is not
+ extractable from the bfd. If that still fails, fallback to the
+ configured in default.
+ * osabi.h (osabi_from_tdesc_string): Declare.
+ * osabi.c (osabi_from_tdesc_string): New.
+ (gdbarch_lookup_osabi): Return GDB_OSABI_UNKNOWN instead of
+ GDB_OSABI_DEFAULT.
+
+ * NEWS: Mention that target descriptions can now describe the
+ target OS ABI.
+
+2009-07-20 Mike Frysinger <vapier@gentoo.org>
+
+ * configure.ac (AC_CHECK_FUNCS): Check for pipe.
+ * config.in, configure: Regenerate.
+ * tui/tui-io.c (TUI_USE_PIPE_FOR_READLINE): Define if HAVE_PIPE.
+
+2009-07-20 Pedro Alves <pedro@codesourcery.com>
+
+ * gnu-nat.c: Include "inf-child.h".
+ (gnu_mourn_inferior): Use the passed in target_ops
+ instead of the gnu_ops global.
+ (gnu_create_inferior): Inline `attach_to_child', use the passed in
+ target_ops instead of the gnu_ops global.
+ (gnu_can_run): Delete.
+ (gnu_attach): Use the passed in target_ops instead of the gnu_ops
+ global.
+ (gnu_detach): Ditto.
+ (gnu_prepare_to_store, gnu_open): Delete.
+ (gnu_store_registers, gnu_fetch_registers): Delete declarations.
+ (gnu_ops): Delete.
+ (init_gnu_ops): Delete.
+ (gnu_target): New.
+ (_initialize_gnu_nat): Don't call init_gnu_ops or add_target here.
+ * gnu-nat.h (gnu_target): Declare.
+ * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Make
+ static.
+ (_initialize_i386gnu_nat): New.
+
+2009-07-20 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * dwarf2loc.c (find_location_expression): Retrieve beginning and
+ ending address offsets in location list entries as integers,
+ not as addresses.
+
+2009-07-20 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * infrun.c (wait_for_inferior): Invalidate registers and overlay
+ cache every time before calling target_wait.
+ (handle_inferior_event): Make static. Always reset waiton_ptid.
+ Never call registers_changed.
+ (prepare_to_wait): Do not invaliate registers or overlay cache
+ (moved to wait_for_inferior). Do not reset waiton_ptid (moved
+ to handle_inferior_event).
+ (fetch_inferior_event): Remove check for always-true condition.
+
+2009-07-20 Thomas Schwinge <tschwinge@gnu.org>
+
+ * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Adjust to
+ 2009-02-23 target_ops changes.
+
+2009-07-18 Michael Snyder <msnyder@vmware.com>
+
+ * infrun.c (handle_inferior_event): Remove an execution_direction
+ check in the "check for subroutine calls" test, and add some
+ additional handling for reverse-stepping through shared libraries.
+
+2009-07-18 Anthony Green <green@moxielogic.com>
+
+ * moxie-tdep.c (moxie_analyze_prologue): Take gdbarch as last
+ parameter instead of frame_info.
+ (moxie_frame_cache): Call moxie_analyze_prologue with different
+ args.
+
+2009-07-17 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * solib.c (solib_bfd_open): Do not call ops->bfd_open.
+ (solib_map_sections): Call ops->bfd_open instead of solib_bfd_open.
+ * solib-frv.c (_initialize_frv_solib): Initialize bfd_open member.
+ * solib-irix.c (_initialize_irix_solib): Likewise.
+ * solib-null.c (_initialize_null_solib): Likewise.
+ * solib-osf.c (_initialize_osf_solib): Likewise.
+ * solib-pa64.c (_initialize_pa64_solib): Likewise.
+ * solib-som.c (_initialize_som_solib): Likewise.
+ * solib-sunos.c (_initialize_sunos_solib): Likewise.
+ * solib-svr4.c (_initialize_svr4_solib): Likewise.
+ * solib-target.c (_initialize_solib_target): Likewise.
+
+2009-07-17 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * mi/mi-cmd-disas.c (mi_cmd_disassemble): Respect mixed_mode flag.
+
+2009-07-16 Doug Evans <dje@google.com>
+
+ * linux-thread.db.c (try_thread_db_load_1): Tweak comment.
+
+2007-07-16 Paul Pluzhnikov <ppluzhnikov@google.com>
+
+ * linux-thread-db.c (thread_db_find_new_threads_silently):
+ New function.
+ (try_thread_db_load_1): Call it.
+
+2009-07-15 Doug Evans <dje@google.com>
+
+ Code reorg in preparation for adding comdat types support.
+ * dwarf2read.c (struct die_reader_specs): New struct.
+ (locate_pdi_sibling): New arg buffer. All callers updated.
+ (load_partial_dies, read_partial_die): Ditto.
+ (read_8_bytes): Change return type to ULONGEST.
+ (read_comp_unit): Delete arg abfd. All callers updated.
+ (read_die_and_children_1): Delete args abfd, cu. New arg reader.
+ All callers updated.
+ (read_die_and_children, read_die_and_siblings): Ditto.
+ (read_full_die): Ditto. Move closer to callers.
+ (skip_one_die): New arg buffer. All callers updated.
+ (load_full_comp_unit): Change return type to void. All callers
+ updated.
+ (partial_read_comp_unit_head): New args buffer, buffer_size.
+ All callers updated.
+ (process_psymtab_comp_unit): New function, split out from
+ dwarf2_build_psymtabs_hard.
+ (dwarf2_build_psymtabs_hard): Call it.
+ (load_partial_comp_unit): Renamed from load_comp_unit.
+ All callers updated.
+ (skip_children): New arg buffer. All callers updated.
+ (init_cu_die_reader): New function.
+ (is_ref_attr): New function.
+ (dwarf2_get_ref_die_offset): Call it.
+ (alloc_one_comp_unit): New function.
+
+2009-07-14 Stan Shebs <stan@codesourcery.com>
+
+ * MAINTAINERS (Global Maintainers): Add Doug Evans.
+
+2009-07-14 Stan Shebs <stan@codesourcery.com>
+
+ Conditional tracepoints.
+ * ax-gdb.h (gen_eval_for_expr): Declare.
+ * ax-gdb.c (gen_expr): Generate bytecodes for BINOP_EQUAL
+ and other comparisons.
+ (gen_eval_for_expr): New function.
+ (agent_eval_command): New maintenance command.
+ (_initialize_ax_gdb): Define the command.
+ * remote.c (struct remote_state): New field cond_tracepoints.
+ (PACKET_ConditionalTracepoints): New packet config type.
+ (remote_cond_tracepoint_feature): New function.
+ (remote_protocol_features): Add ConditionalTracepoints.
+ (remote_supports_cond_tracepoints): New function.
+ (_initialize_remote): Add ConditionalTracepoints.
+ * tracepoint.c (download_tracepoint): Add conditional.
+ * NEWS: Mention conditional tracepoints.
+
+2009-07-14 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * objfiles.c (objfile_relocate): Do not relocate the same
+ BLOCKVECTOR_MAP address map multiple times.
+
+2009-07-14 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * remote.c (process_stop_reply): Access expedited target registers
+ in target_gdbarch.
+
+2009-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix memory access from signed 32bit inferior registers on 64bit GDB.
+ * linux-nat.c (linux_xfer_partial <TARGET_OBJECT_MEMORY>): New variable
+ addr_bit. Mask OFFSET by the ADDR_BIT width.
+
+2009-07-13 Anthony Green <green@moxielogic.com>
+
+ * moxie-tdep.c (moxie_gdbarch_init): Call
+ set_gdbarch_process_record.
+ (moxie_process_record): New.
+ (moxie_process_readu): New.
+
+2009-07-12 Michael Snyder <msnyder@vmware.com>
+
+ * i386-tdep.c: Add a frame unwinder for function epilogues.
+ (i386_in_function_epilogue_p): New function.
+ (i386_epilogue_frame_sniffer): New function.
+ (i386_epilogue_frame_cache): New function.
+ (i386_epilogue_frame_this_id): New function.
+ (i386_epilogue_frame_unwind): New struct frame_unwind.
+ (i386_gdbarch_init): Hook the new unwinder.
+
+2009-07-11 Hui Zhu <teawater@gmail.com>
+
+ * cli/cli-cmds.c (disassemble_command): Add a new modifier /r
+ to "disassemble" command to print the raw instructions in hex as
+ well as in symbolic form.
+ (init_cli_cmds): Ditto.
+ (print_disassembly): Change "mixed" to "flags" to translate
+ the behavior of disassemble.
+ (disassemble_current_function): Ditto.
+ * mi/mi-cmd-disas.c (mi_cmd_disassemble): Ditto.
+ * stack.c (gdb_disassembly_stub): Ditto.
+ * disasm.c (do_mixed_source_and_assembly): Ditto.
+ (do_mixed_source_and_assembly): Ditto.
+ (do_assembly_only): Ditto.
+ (gdb_disassembly): Ditto.
+ (dump_insns): print the raw instructions in hex as well as in
+ symbolic form if DISASSEMBLY_RAW_INSN and flags is true.
+ * disasm.h (DISASSEMBLY_SOURCE): Include source code with the
+ assembly if it and flags is true.
+ (DISASSEMBLY_RAW_INSN): Include the raw instructions in hex with
+ the assembly if it and flags is true.
+ (gdb_disassembly): Update extern.
+ * NEWS: Document disassemble/r support.
+
+2009-07-10 Tom Tromey <tromey@redhat.com>
+
+ * dwarf2-frame.c: Include dwarf2.h, not elf/dwarf2.h.
+ * dwarf2expr.c: Likewise.
+ * dwarf2loc.c: Likewise.
+ * dwarf2read.c: Likewise.
+ * sh-tdep.c: Likewise.
+ * xtensa-tdep.c: Likewise.
+
+2009-07-10 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Tidy up the code.
+ * mi/mi-cmd-var.c (mi_cmd_var_update): Remove variable nv. Move
+ variables var, rootlist and cr to their local sub-block. Move the
+ make_cleanup_ui_out_tuple_begin_end, make_cleanup_ui_out_list_begin_end
+ and do_cleanups calls to the common base block. Remove the zero NV
+ check.
+
+2009-07-10 Phil Muldoon <pmuldoon@redhat.com>
+
+ * python/python-internal.h (apply_varobj_pretty_printer): Update
+ definition.
+ (python_string_to_target_python_string): Add definition.
+ * python/python-utils.c (unicode_to_encoded_python_string)
+ (unicode_to_target_python_string)
+ (python_string_to_target_python_string): New Functions.
+ * python/python-prettyprint.c (pretty_print_one_value): Likewise.
+ (print_string_repr): Refactor to logic to account for PyObject
+ returned strings.
+ (apply_varobj_pretty_printer): Likewise.
+ * python/python-value.c (valpy_string): Parse length keyword. Use
+ length keyword in LA_GET_STRING.
+ * varobj.c (value_get_print_value): Refactor logic to account for
+ PyObject returned strings.
+ * c-lang.c (c_get_string): If the length parameter is specified,
+ use that. Return value in characters. Update comments.
+ * language.h: Update c_get_string prototype comments.
+
+2009-07-09 Doug Evans <dje@google.com>
+
+ * i386-tdep.c (i386_displaced_step_fixup): Fix order of arguments
+ to read_memory_unsigned_integer.
+
+2009-07-09 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Report error on inaccessible memory.
+ * cli/cli-dump.c: Include gdbcore.h.
+ (dump_memory_to_file): Call read_memory instead of target_read_memory.
+
+2009-07-09 Hui Zhu <teawater@gmail.com>
+
+ * solib.c (solib_bfd_open): Output a warning if solib's
+ architecture is not compatible with inferior's architecture.
+
+2009-07-09 Ulrich Weigand <uweigand@de.ibm.com>
+ Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * target.h (struct target_ops <to_thread_architecture>): Describe it.
+ (target_thread_architecture): Refer to to_thread_architecture.
+
+2009-07-08 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ * cli/cli-cmds.c (init_cli_cmds): Add "inf" alias for "info" command.
+
+2009-07-07 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * tui/tui-stack.c (tui_make_status_line): Display PC as ?? if unknown.
+
+2009-07-07 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ * breakpoint.c (set_raw_breakpoint): Remove static modifier.
+
+2009-07-07 Tom Tromey <tromey@redhat.com>
+
+ * c-lang.c (convert_octal): Only allow 3 octal digits.
+ (print_wchar): Prefer 3-digit octal form. Fall back to hex if
+ needed.
+ * c-exp.y (c_parse_escape): Only allow 3 octal digits.
+
2009-07-07 Paul Pluzhnikov <ppluzhnikov@google.com>
* python/python-value.c (valpy_getitem): Remove incorrect assert.
Fix hang in floating varobjs.
- * varob.c (varobj_invalidate): Advance to next
+ * varobj.c (varobj_invalidate): Advance to next
element when processing floating varobj.
2009-07-07 Vladimir Prus <vladimir@codesourcery.com>