OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
15 years ago gdb/
Daniel Jacobowitz [Tue, 21 Jul 2009 18:15:32 +0000 (18:15 +0000)]
gdb/
* valops.c (value_fetch_lazy): Handle bitfields explicitly.
(value_assign): Remove unnecessary FIXME.  Honor the container
type of bitfields if possible.
* value.c (struct value): Add parent field.
(value_parent): New function.
(value_free): Free the parent also.
(value_copy): Copy the parent also.
(value_primitive_field): Do not read the contents of a lazy
value to create a child bitfield value.  Set bitpos and offset
according to the container type if possible.
(unpack_bits_as_long): Rename from unpack_field_as_long.  Take
field_type, bitpos, and bitsize instead of type and fieldno.
(unpack_field_as_long): Use unpack_bits_as_long.
* value.h (value_parent, unpack_bits_as_long): New prototypes.

15 years ago gdb/
Daniel Jacobowitz [Tue, 21 Jul 2009 18:12:39 +0000 (18:12 +0000)]
gdb/
* value.c (struct value): Add reference_count field.
(allocate_value_lazy): Initialize reference_count.
(value_incref): New function.
(value_free): Check the reference count.
* value.h (value_incref): New prototype.

15 years ago2009-07-20 Marc Khouzam <marc.khouzam@ericsson.com>
Marc Khouzam [Tue, 21 Jul 2009 03:31:18 +0000 (03:31 +0000)]
2009-07-20  Marc Khouzam  <marc.khouzam@ericsson.com>

    * utils.c (defaulted_query): Update comment and remove dead code.

15 years agodaily update
Alan Modra [Tue, 21 Jul 2009 00:00:08 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Tue, 21 Jul 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago Add support for "comdat types" from DWARF4.
Doug Evans [Mon, 20 Jul 2009 21:21:17 +0000 (21:21 +0000)]
Add support for "comdat types" from DWARF4.
* dwarf2read.c (dwarf2_per_objfile): New member types,
signatured_types.
(TYPES_SECTION): New macro.
(dwarf2_per_cu_data): Change size of length field from 30 bits
to 29 bits.  New member from_debug_types.
(signatured_type): New struct.
(struct attribute): New union member signatured_type.
(DW_SIGNATURED_TYPE): New macro.
(dwarf2_attr_no_follow): New function.
(read_type_unit_scope): New function.
(follow_die_ref_or_sig, follow_die_sig): New functions.
(dwarf2_locate_sectoins): Handle .debug_types.
(dwarf2_build_psymtabs): Read .debug_types.
(read_type_comp_unit_head): New function.
(hash_type_signature, eq_type_signature): New functions.
(create_debug_types_hash_table): New function.
(lookup_signatured_type): New function.
(process_psymtab_comp_unit): Handle type units too.
(process_type_comp_unit, build_type_psymtabs): New functions.
(dwarf2_build_psymtabs_hard): Call build_type_psymtabs.
(load_partial_comp_unit): Assert not called for a type unit.
(skip_one_die): Handle DW_FORM_sig8.
(queue_comp_unit): Don't call load_full_comp_unit here, or
update read_in_chain.
(psymtab_to_symtab_1): Call read_signatured_type_at_offset for
type units, or load_full_comp_unit for comp units after
queue_comp_unit returns.
(load_full_comp_unit): Assert not called for type units.
(load_full_comp_unit): Update read_in_chain here.
(process_die): Handle DW_TAG_type_unit.
(read_structure_type): Look for signatured types.
(read_enumeration_type): Ditto.
(init_cu_die_reader): Handle .debug_types.
(read_comp_unit): Assert hash not computed yet.
(read_die_and_children): Expand debugging printf to handle .debug_types.
(read_partial_die): Handle DW_TAG_type_unit:
(find_patial_die): Handle .debug_types.
(read_attribute_value): Handle DW_FORM_sig8.
(die_type): Call follow_die_ref_or_sig instead of follow_die_ref.
(die_containing_type): Ditto.
(dwarf_tag_name): Handle DW_TAG_type_unit.
(dwarf_attr_name): Handle DW_AT_signature.
(dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
DW_FORM_flag_present, DW_FORM_sig8.
(dump_die_shallow): Handlel DW_FORM_sig8.
(maybe_queue_comp_unit): Change return type to int from void.
All callers updated.
(follow_die_ref): Handle .debug_types.
(lookup_signatured_type_at_offset): New function.
(read_signatured_type_at_offset): New function.
(read_signatured_type): New function.

15 years ago Add some dwarf4 values.
Doug Evans [Mon, 20 Jul 2009 20:57:39 +0000 (20:57 +0000)]
Add some dwarf4 values.
* dwarf2.h (enum dwarf_tag): Add DW_TAG_type_unit.
(enum dwarf_form): Add DW_FORM_sec_offset, DW_FORM_exprloc,
DW_FORM_flag_present, DW_FORM_sig8.
(enum dwarf_attribute): Add DW_AT_signature.

15 years ago * arch-utils.c (gdbarch_info_fill): Only reference GDB_OSABI_DEFAULT
Ulrich Weigand [Mon, 20 Jul 2009 19:41:29 +0000 (19:41 +0000)]
* arch-utils.c (gdbarch_info_fill): Only reference GDB_OSABI_DEFAULT
if the macro is defined.

15 years ago2009-07-20 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Mon, 20 Jul 2009 18:51:40 +0000 (18:51 +0000)]
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  Pedro Alves  <pedro@codesourcery.com>

* gdb.texinfo (Target Description Format): Mention the new <osabi>
optional element.
(subsection OS ABI): New subsection.

15 years agofix gdbtui build errors when pipe() is not available (e.g. mingw targets)
Mike Frysinger [Mon, 20 Jul 2009 15:24:50 +0000 (15:24 +0000)]
fix gdbtui build errors when pipe() is not available (e.g. mingw targets)

* 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.

15 years ago * gnu-nat.c: Include "inf-child.h".
Pedro Alves [Mon, 20 Jul 2009 15:18:22 +0000 (15:18 +0000)]
* 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.

15 years ago * dwarf2loc.c (find_location_expression): Retrieve beginning and
Ulrich Weigand [Mon, 20 Jul 2009 15:06:13 +0000 (15:06 +0000)]
* dwarf2loc.c (find_location_expression): Retrieve beginning and
ending address offsets in location list entries as integers,
not as addresses.

15 years ago * infrun.c (wait_for_inferior): Invalidate registers and overlay
Ulrich Weigand [Mon, 20 Jul 2009 15:05:10 +0000 (15:05 +0000)]
* 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.

15 years ago PR 10288
Nick Clifton [Mon, 20 Jul 2009 12:11:18 +0000 (12:11 +0000)]
    PR 10288
        * arm-dis.c (arm_opcodes): Catch non-zero bits 8-11 in register
        offset or indexed based addressing mode 3.

15 years ago2009-07-20 Thomas Schwinge <tschwinge@gnu.org>
tschwinge [Mon, 20 Jul 2009 09:50:59 +0000 (09:50 +0000)]
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.

15 years ago*** empty log message ***
gdbadmin [Mon, 20 Jul 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Mon, 20 Jul 2009 00:00:07 +0000 (00:00 +0000)]
daily update

15 years agodaily update
Alan Modra [Sun, 19 Jul 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Sun, 19 Jul 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago2009-07-18 Michael Snyder <msnyder@vmware.com>
Michael Snyder [Sat, 18 Jul 2009 23:35:30 +0000 (23:35 +0000)]
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.

15 years agoFix prologue analysis for moxie.
Anthony Green [Sat, 18 Jul 2009 13:52:02 +0000 (13:52 +0000)]
Fix prologue analysis for moxie.

15 years ago*** empty log message ***
gdbadmin [Sat, 18 Jul 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Sat, 18 Jul 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years agomerge from gcc
DJ Delorie [Fri, 17 Jul 2009 20:20:39 +0000 (20:20 +0000)]
merge from gcc

15 years ago * solib.c (solib_bfd_open): Do not call ops->bfd_open.
Ulrich Weigand [Fri, 17 Jul 2009 17:08:22 +0000 (17:08 +0000)]
* 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.

15 years ago * mi/mi-cmd-disas.c (mi_cmd_disassemble): Respect mixed_mode flag.
Ulrich Weigand [Fri, 17 Jul 2009 15:55:53 +0000 (15:55 +0000)]
* mi/mi-cmd-disas.c (mi_cmd_disassemble): Respect mixed_mode flag.

15 years ago PR other/40784
Joseph Myers [Fri, 17 Jul 2009 15:11:33 +0000 (15:11 +0000)]
PR other/40784
* tls.m4 (GCC_CHECK_TLS): Add extra quoting around argument to
AC_LINK_IFELSE.

15 years ago * elfxx-mips.c (LOAD_INTERLOCKS_P): New define.
Nick Clifton [Fri, 17 Jul 2009 09:45:59 +0000 (09:45 +0000)]
    * elfxx-mips.c (LOAD_INTERLOCKS_P): New define.
        (_bfd_mips_elf_size_dynamic_sections): For CPUs without load
        interlocking, the last PLT entry needs a nop in the branch delay slot.
        (_bfd_mips_elf_finish_dynamic_symbol): For CPUs with load itnerlocking,
        output the last two PLT entries in reverse order.

        * ld-mips-elf/pic-and-nonpic-3b.dd,
        ld-mips-elf/pic-and-nonpic-5b.dd,
        ld-mips-elf/pic-and-nonpic-6-o32.dd: Updated to use new PLT entries.

15 years agodaily update
Alan Modra [Fri, 17 Jul 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Fri, 17 Jul 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago * tls.m4 (GCC_CHECK_TLS): Also test TLS in a shared library when
Joseph Myers [Thu, 16 Jul 2009 23:21:15 +0000 (23:21 +0000)]
* tls.m4 (GCC_CHECK_TLS): Also test TLS in a shared library when
cross-compiling.

15 years ago * linux-thread.db.c (try_thread_db_load_1): Tweak comment.
Doug Evans [Thu, 16 Jul 2009 20:45:16 +0000 (20:45 +0000)]
* linux-thread.db.c (try_thread_db_load_1): Tweak comment.

15 years ago2007-07-16 Paul Pluzhnikov <ppluzhnikov@google.com>
Paul Pluzhnikov [Thu, 16 Jul 2009 19:47:43 +0000 (19:47 +0000)]
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.

15 years agobfd/
H.J. Lu [Thu, 16 Jul 2009 14:23:09 +0000 (14:23 +0000)]
bfd/

2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>

* elf32-i386.c (elf_i386_relocate_section): Don't get local
STT_GNU_IFUNC symbol for relocatable link.
* elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.

ld/testsuite/

2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>

* ld-ifunc/ifunc-5r-local-i386.d: New.
* ld-ifunc/ifunc-5r-local-x86-64.d: Likewise.

15 years ago*** empty log message ***
gdbadmin [Thu, 16 Jul 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Thu, 16 Jul 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago Code reorg in preparation for adding comdat types support.
Doug Evans [Wed, 15 Jul 2009 22:17:07 +0000 (22:17 +0000)]
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.

15 years ago2009-07-14 Michael Snyder <msnyder@vmware.com>
Michael Snyder [Wed, 15 Jul 2009 01:18:58 +0000 (01:18 +0000)]
2009-07-14  Michael Snyder  <msnyder@vmware.com>

* gdb.reverse/finish-reverse.exp: Do not expect reverse-finish
to bring gdb to the beginning of the calling line.

15 years ago2009-07-14 Michael Snyder <msnyder@vmware.com>
Michael Snyder [Wed, 15 Jul 2009 01:12:16 +0000 (01:12 +0000)]
2009-07-14  Michael Snyder  <msnyder@vmware.com>

* gdb.arch/i386-signal.c (sigframe): Add a nop to avoid
confusing the i386 epilogue unwinder.

15 years ago*** empty log message ***
gdbadmin [Wed, 15 Jul 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Wed, 15 Jul 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago * MAINTAINERS (Global Maintainers): Add Doug Evans.
Stan Shebs [Tue, 14 Jul 2009 22:56:28 +0000 (22:56 +0000)]
* MAINTAINERS (Global Maintainers): Add Doug Evans.

15 years ago gdb/
Stan Shebs [Tue, 14 Jul 2009 21:40:28 +0000 (21:40 +0000)]
gdb/
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.

gdb/doc/
* gdb.texinfo (Tracepoint Conditions): New section.
(General Query Packets): Describe ConditionalTracepoints.
(Tracepoint Packets): Describe condition field.
(Maintenance Commands): Describe maint agent-eval.
* agentexpr.texi (Using Agent Expressions): Mention eval usage.

gdb/testsuite/
* gdb.trace/tracecmd.exp: Add basic test of tracepoint conditions.

15 years ago2009-07-14 Michael Snyder <msnyder@vmware.com>
Michael Snyder [Tue, 14 Jul 2009 20:17:26 +0000 (20:17 +0000)]
2009-07-14  Michael Snyder  <msnyder@vmware.com>

* gdb.reverse/step-reverse.exp (stepi into function call):
Call instruction may not be first instruction in the line.
(reverse stepi from a function call): Used wrong line number.

15 years ago * objfiles.c (objfile_relocate): Do not relocate the same
Ulrich Weigand [Tue, 14 Jul 2009 14:55:06 +0000 (14:55 +0000)]
* objfiles.c (objfile_relocate): Do not relocate the same
BLOCKVECTOR_MAP address map multiple times.

15 years ago * remote.c (process_stop_reply): Access expedited target registers
Ulrich Weigand [Tue, 14 Jul 2009 14:53:40 +0000 (14:53 +0000)]
* remote.c (process_stop_reply): Access expedited target registers
in target_gdbarch.

15 years ago PR 10288
Nick Clifton [Tue, 14 Jul 2009 14:16:33 +0000 (14:16 +0000)]
    PR 10288
        * arm-dis.c (arm_opcodes): Catch illegal Addressing Mode 1
        patterns.
        (arm_decode_shift): Catch illegal register based shifts.
        (print_insn_arm): Properly handle negative register r0
        post-indexed addressing.

15 years agodaily update
Alan Modra [Tue, 14 Jul 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Tue, 14 Jul 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years agogdb/
Jan Kratochvil [Mon, 13 Jul 2009 20:16:46 +0000 (20:16 +0000)]
gdb/
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.

gdb/testsuite/
* gdb.arch/amd64-i386-address.exp, gdb.arch/amd64-i386-address.S: New.

15 years agogdb/testsuite/
Jan Kratochvil [Mon, 13 Jul 2009 19:24:17 +0000 (19:24 +0000)]
gdb/testsuite/
Fix gdb.base/macscp.exp when using custom inputrc.
* gdb.base/completion.exp: Remove env(INPUTRC) set and restore.
* gdb.base/readline.exp: Remove env(INPUTRC) set and restore.  Remove
env(TERM) set.
* gdb.cp/cpcompletion.exp: Remove env(INPUTRC) set.
* lib/gdb.exp (default_gdb_start): Add env(INPUTRC) and env(TERM) set.

15 years agogdb/testsuite/
Jan Kratochvil [Mon, 13 Jul 2009 19:20:39 +0000 (19:20 +0000)]
gdb/testsuite/
Fix racy clashing of output files for gdb.base{1,2}/ parallel run.
* gdb.base/annota1.exp (thread_test): Import global $testfile.
Change the compilation target to match the testcase name.
* gdb.base/sect-cmd.exp: Change the compilation target to match the
testcase name.
* a2-run.exp: Use for setup prepare_for_testing.  Change the
compilation target to match the testcase name.
* gdb.base/commands.exp: Likewise.
* gdb.base/finish.exp: Likewise.
* gdb.base/float.exp: Likewise.
* gdb.base/info-target.exp: Likewise.
* gdb.base/relational.exp: Likewise.
* gdb.base/term.exp: Likewise.
* gdb.base/until.exp: Likewise.
* gdb.base/volatile.exp: Likewise.
* gdb.base/whatis-exp.exp: Likewise.

15 years agoAdd process recording support to the moxie gdb port.
Anthony Green [Mon, 13 Jul 2009 04:56:12 +0000 (04:56 +0000)]
Add process recording support to the moxie gdb port.

15 years agodaily update
Alan Modra [Mon, 13 Jul 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Mon, 13 Jul 2009 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago2009-07-12 Michael Snyder <msnyder@vmware.com>
Michael Snyder [Sun, 12 Jul 2009 17:46:21 +0000 (17:46 +0000)]
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.

15 years ago* common/Make-common.in (CPU_DIR): Define.
Doug Evans [Sun, 12 Jul 2009 16:59:34 +0000 (16:59 +0000)]
* common/Make-common.in (CPU_DIR): Define.
* iq2000/Makefile.in (stamp-arch): Use $(CPU_DIR) instead of $(CGEN_CPU_DIR).
(stamp-cpu): Ditto.
* m32r/Makefile.in (stamp-arch): Use $(CPU_DIR) instead of $(CGEN_CPU_DIR).
(stamp-cpu, stamp-xcpu, stamp-2cpu): Ditto.

15 years agodaily update
Alan Modra [Sun, 12 Jul 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Sun, 12 Jul 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years agoThis is the part of prev commit.
Hui Zhu [Sat, 11 Jul 2009 14:41:38 +0000 (14:41 +0000)]
This is the part of prev commit.

15 years ago2009-07-11 Hui Zhu <teawater@gmail.com>
Hui Zhu [Sat, 11 Jul 2009 14:11:24 +0000 (14:11 +0000)]
2009-07-11  Hui Zhu  <teawater@gmail.com>

* gdb.base/help.exp (disassemble): Update expected help text.

15 years ago2009-07-11 Hui Zhu <teawater@gmail.com>
Hui Zhu [Sat, 11 Jul 2009 14:09:16 +0000 (14:09 +0000)]
2009-07-11  Hui Zhu  <teawater@gmail.com>

* gdb.texinfo (disassemble): Add a new modifier /r
to "disassemble" command to make it print the raw instructions
in hex as well as in symbolic form.

15 years ago2009-07-11 Hui Zhu <teawater@gmail.com>
Hui Zhu [Sat, 11 Jul 2009 14:04:22 +0000 (14:04 +0000)]
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.

15 years agodaily update
Alan Modra [Sat, 11 Jul 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Sat, 11 Jul 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago * gdbint.texinfo (Testsuite): Document parallel make check.
Tom Tromey [Fri, 10 Jul 2009 19:38:00 +0000 (19:38 +0000)]
* gdbint.texinfo (Testsuite): Document parallel make check.

15 years agogdb/doc
Tom Tromey [Fri, 10 Jul 2009 18:48:40 +0000 (18:48 +0000)]
gdb/doc
* gdbint.texinfo (Testsuite): Document test transcripts.
gdb/testsuite
* lib/gdb.exp: Handle TRANSCRIPT.
(remote_spawn, remote_close, send_gdb): New procs.

15 years ago2009-07-10 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 10 Jul 2009 18:38:26 +0000 (18:38 +0000)]
2009-07-10  H.J. Lu  <hongjiu.lu@intel.com>

* bfdio.c (bfd_iovec): Add comments for bmmap.
* bfd-in2.h: Regenerated.

15 years agobfd/
H.J. Lu [Fri, 10 Jul 2009 18:26:57 +0000 (18:26 +0000)]
bfd/

2009-07-10  H.J. Lu  <hongjiu.lu@intel.com>

* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerated.

binutils/

2009-07-10  H.J. Lu  <hongjiu.lu@intel.com>

* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerated.

gas/

2009-07-10  H.J. Lu  <hongjiu.lu@intel.com>

* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerated.

15 years ago2009-07-10 Doug Kwan <dougkwan@google.com>
dougkwan [Fri, 10 Jul 2009 16:58:53 +0000 (16:58 +0000)]
2009-07-10  Doug Kwan  <dougkwan@google.com>

* arm-disc.c (print_insn_coprocessor, print_insn_arm):  Print only
lower 32 bits of long types to make hexadecimal output consistent
on both 32-bit and 64-bit hosts.

15 years ago2009-07-10 Doug Kwan <dougkwan@google.com>
dougkwan [Fri, 10 Jul 2009 16:56:15 +0000 (16:56 +0000)]
2009-07-10  Doug Kwan  <dougkwan@google.com>

* elf32-arm.c (stub_hash_newfunc): Initialize fields
target_addend and orig_insn.

15 years agobfd
Tom Tromey [Fri, 10 Jul 2009 15:26:55 +0000 (15:26 +0000)]
bfd
* Makefile.am (dwarf2.lo): Use dwarf2.h, not elf/dwarf2.h.
(elf-eh-frame.lo): Likewise.
(elf32-bfin.lo): Likewise.
(elf32-frv.lo): Likewise.
(elf32-xc16x.lo): Likewise.
* Makefile.in: Rebuild.
* dwarf2.c: Included dwarf.h, not elf/dwarf2.h.
* elf-eh-frame.c: Likewise.
* elf32-bfin.c: Likewise.
* elf32-frv.c: Likewise.
* elf32-xc16x.c: Likewise.
binutils
* Makefile.am (dwarf.o): Refer to dwarf2.h, not elf/dwarf2.h.
* Makefile.in: Rebuild.
* dwarf.c: Include dwarf2.h, not elf/dwarf2.h.
gas
* Makefile.am (DEPTC_alpha_ecoff): Refer to dwarf2.h, not
elf/dwarf2.h.
(DEPTC_alpha_elf): Likewise.
(DEPTC_alpha_evax): Likewise.
(DEPTC_arm_elf): Likewise.
(DEPTC_hppa_elf): Likewise.
(DEPTC_i386_aout): Likewise.
(DEPTC_i386_coff): Likewise.
(DEPTC_i386_elf): Likewise.
(DEPTC_m68k_aout): Likewise.
(DEPTC_m68k_coff): Likewise.
(DEPTC_m68k_elf): Likewise.
(DEPTC_mips_coff): Likewise.
(DEPTC_mips_ecoff): Likewise.
(DEPTC_mips_elf): Likewise.
(DEPTC_ppc_coff): Likewise.
(DEPTC_ppc_elf): Likewise.
(DEPTC_s390_elf): Likewise.
(DEPTC_sh_coff): Likewise.
(DEPTC_sh_elf): Likewise.
(DEPTC_sh64_elf): Likewise.
(DEPTC_sparc_aout): Likewise.
(DEPTC_sparc_coff): Likewise.
(DEPTC_sparc_elf): Likewise.
(as.o): Likewise.
(dwarf2dbg.o): Likewise.
(dw2gencfi.o): Likewise.
(ehopt.o): Likewise.
(read.o): Likewise.
* Makefile.in: Rebuild.
* dw2gencfi.h: Include dwarf2.h, not elf/dwarf2.h.
* dwarf2dbg.c: Likewise.
* ehopt.c: Likewise.
gdb
* 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.
include
* dwarf2.h: New file, moved from elf/.
include/elf

* dwarf2.h: Move to `..'.

15 years ago * elf32-arm.c (arm_build_one_stub): Use the hash entry of the
Julian Brown [Fri, 10 Jul 2009 14:57:00 +0000 (14:57 +0000)]
* elf32-arm.c (arm_build_one_stub): Use the hash entry of the
symbol a stub entry is derived from, not the entry for the stub
itself, in call to elf32_arm_final_link_relocate.

15 years ago2009-07-10 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 10 Jul 2009 14:47:16 +0000 (14:47 +0000)]
2009-07-10  H.J. Lu  <hongjiu.lu@intel.com>

* dwarf2.h: Just include ../dwarf2.h.

15 years agoRegenerate.
Alan Modra [Fri, 10 Jul 2009 14:20:38 +0000 (14:20 +0000)]
Regenerate.

15 years agogdb/
Jan Kratochvil [Fri, 10 Jul 2009 14:18:12 +0000 (14:18 +0000)]
gdb/
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.

15 years agobfd/
H.J. Lu [Fri, 10 Jul 2009 14:03:01 +0000 (14:03 +0000)]
bfd/

2009-07-10  H.J. Lu  <hongjiu.lu@intel.com>

* elf.c (_bfd_elf_get_synthetic_symtab): Remove leading zeros
when reporting  addends.

ld/testsuite/

2009-07-10  H.J. Lu  <hongjiu.lu@intel.com>

* ld-ifunc/ifunc-1-local-x86.d: Updated.
* ld-ifunc/ifunc-1-x86.d: Likewise.Likewise.
* ld-ifunc/ifunc-2-local-x86-64.d: Likewise.Likewise.
* ld-ifunc/ifunc-2-x86-64.d: Likewise.
* ld-ifunc/ifunc-3a-x86.d: Likewise.Likewise.

15 years ago * elf32-spu.c (spu_elf_size_stubs): Do set up soft-icache manager
Alan Modra [Fri, 10 Jul 2009 14:00:37 +0000 (14:00 +0000)]
* elf32-spu.c (spu_elf_size_stubs): Do set up soft-icache manager
data even when no stubs.
(spu_elf_place_overlay_data, spu_elf_build_stubs): Adjust.

15 years agoSTT_GNU_IFUNC support for PowerPC.
Alan Modra [Fri, 10 Jul 2009 12:19:55 +0000 (12:19 +0000)]
STT_GNU_IFUNC support for PowerPC.

15 years ago2009-07-10 Phil Muldoon <pmuldoon@redhat.com>
pmuldoon [Fri, 10 Jul 2009 10:35:15 +0000 (10:35 +0000)]
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-10  Phil Muldoon  <pmuldoon@redhat.com>

* gdb.texinfo (Values From Inferior): Add length parameter
description.

2009-07-10 Phil Muldoon  <pmuldoon@redhat.com>

* gdb.python/python-prettyprint.c: Add counted null string
structure.
* gdb.python/python-prettyprint.exp: Print null string. Test for
embedded nulls.
* gdb.python/python-prettyprint.py (pp_ns): New Function.
* gdb.python/python-value.exp (test_value_in_inferior): Add
variable length string fetch tests.
* gdb.python/python-value.c (main): Add strings for string fetch tests.

15 years ago * elf.c (_bfd_elf_get_synthetic_symtab): Report addends.
Alan Modra [Fri, 10 Jul 2009 10:33:18 +0000 (10:33 +0000)]
* elf.c (_bfd_elf_get_synthetic_symtab): Report addends.

15 years ago * elf-bfd.h (struct elf_link_hash_entry): Clarify ref_regular
Alan Modra [Fri, 10 Jul 2009 10:04:18 +0000 (10:04 +0000)]
* elf-bfd.h (struct elf_link_hash_entry): Clarify ref_regular
and ref_regular_nonweak comment.
* elflink.c (elf_link_output_extsym): Special case ifunc syms
when def_regular, not ref_regular.
(elf_link_add_object_symbols): Don't set needs_plt on ifunc syms,..
* elf32-i386.c (elf_i386_check_relocs): ..set it here instead..
* elf64-x86-64.c (elf64_x86_64_check_relocs): ..and here.

15 years agodaily update
Alan Modra [Fri, 10 Jul 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Fri, 10 Jul 2009 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago * i386-tdep.c (i386_displaced_step_fixup): Fix order of arguments
Doug Evans [Thu, 9 Jul 2009 23:27:07 +0000 (23:27 +0000)]
* i386-tdep.c (i386_displaced_step_fixup): Fix order of arguments
to read_memory_unsigned_integer.

15 years agomerge from gcc
DJ Delorie [Thu, 9 Jul 2009 21:01:15 +0000 (21:01 +0000)]
merge from gcc

15 years agogdb/
Jan Kratochvil [Thu, 9 Jul 2009 20:30:58 +0000 (20:30 +0000)]
gdb/
Report error on inaccessible memory.
* cli/cli-dump.c: Include gdbcore.h.
(dump_memory_to_file): Call read_memory instead of target_read_memory.

gdb/testsuite/
* gdb.base/dump.exp (inaccessible memory is reported): New test.

15 years agomerge from gcc
DJ Delorie [Thu, 9 Jul 2009 20:02:41 +0000 (20:02 +0000)]
merge from gcc

15 years ago2009-07-09 Hui Zhu <teawater@gmail.com>
Hui Zhu [Thu, 9 Jul 2009 13:39:17 +0000 (13:39 +0000)]
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.

15 years agogdb/
Jan Kratochvil [Thu, 9 Jul 2009 12:50:46 +0000 (12:50 +0000)]
gdb/
* target.h (struct target_ops <to_thread_architecture>): Describe it.
(target_thread_architecture): Refer to to_thread_architecture.

15 years ago * elf32-spu.c (mark_functions_via_relocs): Init broken_cycle field
Alan Modra [Thu, 9 Jul 2009 10:58:05 +0000 (10:58 +0000)]
* elf32-spu.c (mark_functions_via_relocs): Init broken_cycle field
of malloc'd struct call_info.
(pasted_function): Likewise, priority too.

15 years ago * cli/cli-cmds.c (init_cli_cmds): Add "inf" alias for "info" command.
Pierre Muller [Thu, 9 Jul 2009 07:23:31 +0000 (07:23 +0000)]
* cli/cli-cmds.c (init_cli_cmds): Add "inf" alias for "info" command.

15 years ago*** empty log message ***
gdbadmin [Thu, 9 Jul 2009 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Thu, 9 Jul 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago * tui/tui-stack.c (tui_make_status_line): Display PC as ?? if unknown.
Ulrich Weigand [Wed, 8 Jul 2009 12:02:57 +0000 (12:02 +0000)]
* tui/tui-stack.c (tui_make_status_line): Display PC as ?? if unknown.

15 years ago * Makefile.in (traps.o): Add dependency on targ-vals.h to fix
Doug Evans [Wed, 8 Jul 2009 06:16:46 +0000 (06:16 +0000)]
* Makefile.in (traps.o): Add dependency on targ-vals.h to fix
parallel makes.

15 years ago * Makefile.in (stamp-arch): Pass archfile to cgen-arch.
Doug Evans [Wed, 8 Jul 2009 05:38:01 +0000 (05:38 +0000)]
* Makefile.in (stamp-arch): Pass archfile to cgen-arch.
(stamp-cpu): Pass archfile to cgen-cpu-decode.

15 years agodaily update
Alan Modra [Wed, 8 Jul 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Wed, 8 Jul 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago * breakpoint.c (set_raw_breakpoint): Remove static modifier.
Pierre Muller [Tue, 7 Jul 2009 22:21:09 +0000 (22:21 +0000)]
* breakpoint.c (set_raw_breakpoint): Remove static modifier.