Nick Clifton [Thu, 23 Jul 2009 10:19:20 +0000 (10:19 +0000)]
PR binutils/10379
* doc/c-mips.texi (MIPS insn): Document the special behaviour of
the .global directive for MIPS ports.
H.J. Lu [Thu, 23 Jul 2009 00:08:22 +0000 (00:08 +0000)]
2009-07-22 H.J. Lu <hongjiu.lu@intel.com>
PR ld/10429
* ldlang.c (insert_os_after): Tie assignments to non-alloc
output sections if there is no-input section.
Alan Modra [Thu, 23 Jul 2009 00:00:05 +0000 (00:00 +0000)]
daily update
gdbadmin [Thu, 23 Jul 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
H.J. Lu [Wed, 22 Jul 2009 23:55:54 +0000 (23:55 +0000)]
2009-07-22 H.J. Lu <hongjiu.lu@intel.com>
* elflink.c (elf_link_output_extsym): Revert the last change.
H.J. Lu [Wed, 22 Jul 2009 21:30:30 +0000 (21:30 +0000)]
2009-07-22 H.J. Lu <hongjiu.lu@intel.com>
PR ld/10433
* elflink.c (elf_link_output_extsym): Special case ifunc syms
when ref_regular, not def_regular.
Paul Pluzhnikov [Wed, 22 Jul 2009 20:00:34 +0000 (20:00 +0000)]
2009-07-22 Paul Pluzhnikov <ppluzhnikov@google.com>
* symfile.c (symbol_file_add_with_addrs_or_offsets): Call observer.
Paul Pluzhnikov [Wed, 22 Jul 2009 19:21:31 +0000 (19:21 +0000)]
2009-07-22 Paul Pluzhnikov <ppluzhnikov@google.com>
* objfiles.h (objfiles_changed): New prototype.
* objfiles.c (objfiles_updated_p): Rename to objfiles_changed_p.
(allocate_objfile, free_objfile): Must rebuild section map.
(objfile_relocate): Likewise.
(update_section_map, find_pc_section): Adjust.
(set_objfiles_updated_on_exe_change): Remove.
(set_objfiles_updated_on_solib_activity): Remove.
(_initialize_objfiles): Remove.
(objfiles_changed): New function.
* symfile.c (reread_symbols): Call objfiles_changed.
Hui Zhu [Wed, 22 Jul 2009 05:31:26 +0000 (05:31 +0000)]
2009-07-22 Hui Zhu <teawater@gmail.com>
* record.c (record_xfer_partial): Call error When nquery
return "n".
Alan Modra [Wed, 22 Jul 2009 00:00:04 +0000 (00:00 +0000)]
daily update
gdbadmin [Wed, 22 Jul 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
H.J. Lu [Tue, 21 Jul 2009 21:37:26 +0000 (21:37 +0000)]
bfd/
2009-07-21 H.J. Lu <hongjiu.lu@intel.com>
PR ld/10426
* elflink.c (elf_link_add_object_symbols): Turn an IFUNC symbol
from a DSO into a normal FUNC symbol.
(elf_link_output_extsym): Turn an undefined IFUNC symbol into
a normal FUNC symbol.
ld/testsuite/
2009-07-21 H.J. Lu <hongjiu.lu@intel.com>
PR ld/10426
* ld-ifunc/ifunc.exp: Check test-1 and libtest-2.so. Updated.
* ld-ifunc/test-1.c: New.
* ld-ifunc/test-2.c: Likewise.
Paul Pluzhnikov [Tue, 21 Jul 2009 20:57:20 +0000 (20:57 +0000)]
Corrected date on '2009-06-26 Michael Eager <eager@eagercon.com>' entry
Paul Pluzhnikov [Tue, 21 Jul 2009 20:54:30 +0000 (20:54 +0000)]
2009-07-21 Paul Pluzhnikov <ppluzhnikov@google.com>
* objfiles.c (objfiles_updated_p): New variable.
(qsort_cmp, bsearch_cmp, update_section_map): New function.
(find_pc_section): Use bsearch.
(set_objfiles_updated_on_exe_change): New function.
(set_objfiles_updated_on_solib_activity): New function.
(_initialize_objfiles): New function.
Michael Snyder [Tue, 21 Jul 2009 20:21:20 +0000 (20:21 +0000)]
2009-06-26 Michael Eager <eager@eagercon.com>
* features/rs6000/powerpc-405.xml: New.
* rs6000-tdep.c: Add include & initialize for
powerpc-405.c, add 405 to variants.
* features/rs6000/powerpc-405.c: Generate.
Doug Evans [Tue, 21 Jul 2009 19:06:39 +0000 (19:06 +0000)]
Add ccoutant to previous dwarf4 entry.
Paul Pluzhnikov [Tue, 21 Jul 2009 18:23:28 +0000 (18:23 +0000)]
Oops. s/util.c/utils.c/
Paul Pluzhnikov [Tue, 21 Jul 2009 18:21:02 +0000 (18:21 +0000)]
2009-07-21 Paul Pluzhnikov <ppluzhnikov@google.com>
* util.c (internal_vproblem): Always print failure message.
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.
Daniel Jacobowitz [Tue, 21 Jul 2009 18:12:40 +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.
H.J. Lu [Tue, 21 Jul 2009 17:50:21 +0000 (17:50 +0000)]
gas/
2009-07-21 H.J. Lu <hongjiu.lu@intel.com>
PR gas/10420
* config/tc-i386.c (i386_align_code): Tune for 32bit nops in
64bit.
(i386_target_format): Set cpu_arch_isa_flags.bitfield.cpulm
for 64bit.
gas/testsuite/
2009-07-21 H.J. Lu <hongjiu.lu@intel.com>
PR gas/10420
* gas/i386/i386.exp: Run x86-64-nops-1-pentium.
* gas/i386/x86-64-nops-1-pentium.d: New.
Ian Lance Taylor [Tue, 21 Jul 2009 05:22:54 +0000 (05:22 +0000)]
PR 10419
* x86_64.cc (Target_x86_64::do_code_fill): Correct nop sequences.
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.
Alan Modra [Tue, 21 Jul 2009 00:00:08 +0000 (00:00 +0000)]
daily update
gdbadmin [Tue, 21 Jul 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
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.
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.
Ulrich Weigand [Mon, 20 Jul 2009 19:41:34 +0000 (19:41 +0000)]
* arch-utils.c (gdbarch_info_fill): Only reference GDB_OSABI_DEFAULT
if the macro is defined.
Pedro Alves [Mon, 20 Jul 2009 18:51:42 +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.
Mike Frysinger [Mon, 20 Jul 2009 15:24:55 +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.
Pedro Alves [Mon, 20 Jul 2009 15:18:24 +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.
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.
Ulrich Weigand [Mon, 20 Jul 2009 15:05:12 +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.
H.J. Lu [Mon, 20 Jul 2009 13:40:48 +0000 (13:40 +0000)]
2009-07-20 H.J. Lu <hongjiu.lu@intel.com>
* NEWS: Mention --insn-width.
* objdump.c (insn_width): New.
(usage): Display --insn-width.
(option_values): Add OPTION_INSN_WIDTH.
(long_options): Add --insn-width.
(disassemble_bytes): Handle insn_width.
(main): Handle OPTION_INSN_WIDTH.
* doc/binutils.texi: Document --insn-width.
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.
Thomas Schwinge [Mon, 20 Jul 2009 09:51:01 +0000 (09:51 +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.
gdbadmin [Mon, 20 Jul 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Mon, 20 Jul 2009 00:00:07 +0000 (00:00 +0000)]
daily update
Alan Modra [Sun, 19 Jul 2009 00:00:04 +0000 (00:00 +0000)]
daily update
gdbadmin [Sun, 19 Jul 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Michael Snyder [Sat, 18 Jul 2009 23:35:31 +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.
Anthony Green [Sat, 18 Jul 2009 13:52:02 +0000 (13:52 +0000)]
Fix prologue analysis for moxie.
gdbadmin [Sat, 18 Jul 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sat, 18 Jul 2009 00:00:05 +0000 (00:00 +0000)]
daily update
DJ Delorie [Fri, 17 Jul 2009 20:20:45 +0000 (20:20 +0000)]
merge from gcc
H.J. Lu [Fri, 17 Jul 2009 17:54:51 +0000 (17:54 +0000)]
2009-07-17 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (md_assemble): Update operand types.
(update_imm): Updated.
(finalize_imm): Update the first 2 immediate operands only
for instructions with 2 operands or more.
H.J. Lu [Fri, 17 Jul 2009 17:08:34 +0000 (17:08 +0000)]
2009-07-17 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (md_assemble): Check implicit registers
only for instructions with 3 operands or less.
Ulrich Weigand [Fri, 17 Jul 2009 17:08:23 +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.
Ulrich Weigand [Fri, 17 Jul 2009 15:55:54 +0000 (15:55 +0000)]
* mi/mi-cmd-disas.c (mi_cmd_disassemble): Respect mixed_mode flag.
Nick Clifton [Fri, 17 Jul 2009 15:22:11 +0000 (15:22 +0000)]
* config/tc-avr.c (md_apply_fix): Cast fixup reloc type to avoid
compile time warning.
Nick Clifton [Fri, 17 Jul 2009 15:19:21 +0000 (15:19 +0000)]
* dwarf.c (display_debug_lines): If do_debug_lines has not been
set then default to displaying raw .debug_line section contents.
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.
Nick Clifton [Fri, 17 Jul 2009 13:36:16 +0000 (13:36 +0000)]
* ld-mips-elf/pic-and-nonpic-3b.dd: Updated to use new PLT
entries.
* ld-mips-elf/pic-and-nonpic-5b.dd: Likewise.
* ld-mips-elf/pic-and-nonpic-6-o32.dd: Likewise.
* ld-mips-elf/pic-and-nonpic-6-n32.dd: Likewise.
* ld-mips-elf/pic-and-nonpic-6-n64.dd: Likewise.
Nick Clifton [Fri, 17 Jul 2009 09:46:00 +0000 (09:46 +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.
Ian Lance Taylor [Fri, 17 Jul 2009 01:07:33 +0000 (01:07 +0000)]
PR 10400
* layout.h: #include <map>.
(class Kept_section): Change from struct to class. Add accessors
and setters. Add section size to Comdat_group mapping. Change
Comdat_group to std::map. Add is_comdat_ field. Add
linkonce_size field in union.
(class Layout): Update declaration of find_or_add_kept_section.
Don't declare find_kept_object.
* layout.cc (Layout::find_or_add_kept_section): Remove candidate
parameter. Add object, shndx, is_comdat, and is_group_name
parameters. Change all callers. Adjust for new Kept_section.
(Layout::find_kept_object): Remove.
* object.cc (Sized_relobj::include_section_group): Update use of
Kept_section. Rename secnum to shndx. Only record
Kept_comdat_section if sections are the same size.
(Sized_relobj::include_linkonce_section): Update use of
Kept_section. Only record Kept_comdat_section if sections are the
same size. Set size of linkonce section.
(Sized_relobj::map_to_kept_section): Update call to
get_kept_comdat_section.
* object.h (class Sized_relobj): Rename fields in
Kept_comdat_section to drop trailing underscores; change object
field to Relobj*. Change Kept_comdat_section_table to store
struct rather than pointer.
(Sized_relobj::set_kept_comdat_section): Remove kept parameter.
Add kept_object and kept_shndx parameters. Change all callers.
(Sized_relobj::get_kept_comdat_section): Change return type to
bool. Add kept_object and kept_shndx parameters. Change all
callers.
* plugin.cc (Pluginobj::include_comdat_group): Update call to
Layout::find_or_add_kept_section.
Alan Modra [Fri, 17 Jul 2009 00:00:05 +0000 (00:00 +0000)]
daily update
gdbadmin [Fri, 17 Jul 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
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.
H.J. Lu [Thu, 16 Jul 2009 21:10:49 +0000 (21:10 +0000)]
2009-07-16 Dave Korn <dave.korn.cygwin@gmail.com>
H.J. Lu <hongjiu.lu@intel.com>
* binutils-all/objcopy.exp: Run testranges and testranges-ia64
for ELF targets only.
H.J. Lu [Thu, 16 Jul 2009 21:00:09 +0000 (21:00 +0000)]
2009-07-16 H.J. Lu <hongjiu.lu@intel.com>
* binutils-all/objcopy.exp; Run testranges-ia64.
* binutils-all/testranges.d: Don't run for ia64.
* binutils-all/testranges-ia64.d: New.
* binutils-all/testranges-ia64.s: Likewise.
Doug Evans [Thu, 16 Jul 2009 20:45:17 +0000 (20:45 +0000)]
* linux-thread.db.c (try_thread_db_load_1): Tweak comment.
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.
Doug Evans [Thu, 16 Jul 2009 17:53:25 +0000 (17:53 +0000)]
* cpu/simplify.inc (*): One line doc strings don't need \n.
(df): Invoke define-full-ifield instead of claiming it's an alias.
(dno): Define.
(dnop): Mark as deprecated.
H.J. Lu [Thu, 16 Jul 2009 17:37:26 +0000 (17:37 +0000)]
gas/
2009-07-16 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (md_assemble): Only check i.operands for AX.
(md_estimate_size_before_relax): Don't relax IFUNC symbols.
gas/testsuite/
2009-07-16 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/i386.exp: Run ifunc and x86-64-ifunc.
* gas/i386/ifunc.d: New,
* gas/i386/ifunc.s: Likewise.
* gas/i386/x86-64-ifunc.d: Likewise.
H.J. Lu [Thu, 16 Jul 2009 14:23:12 +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.
Nathan Sidwell [Thu, 16 Jul 2009 13:18:52 +0000 (13:18 +0000)]
gas/
* config/tc-arm.c (md_apply_fix <BFD_RELOC_ARM_TARGET2>): Write
the offset for REL targets here.
gas/testsuite/
* gas/arm/target-reloc-1.s: New.
* gas/arm/target-reloc-1.d: New.
ld/testsuite/
* ld-arm/arm-target2.s: Add addend cases.
* ld-arm/arm-target2-rel.d: Adjust.
* ld-arm/arm-target2-abs.d: Adjust.
* ld-arm/arm-target2-got-rel.d: Adjust.
H.J. Lu [Thu, 16 Jul 2009 00:37:28 +0000 (00:37 +0000)]
2009-07-15 Kai Tietz <kai.tietz@onevision.com>
* listing.c (print_source): Initialize cache by NULL.
gdbadmin [Thu, 16 Jul 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Thu, 16 Jul 2009 00:00:05 +0000 (00:00 +0000)]
daily update
Doug Evans [Wed, 15 Jul 2009 22:17:10 +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.
Nick Clifton [Wed, 15 Jul 2009 15:08:55 +0000 (15:08 +0000)]
* doc/c-arm.texi (mauto-it): Removed old option.
(mimplicit-it): Added right option.
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.
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.
gdbadmin [Wed, 15 Jul 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Wed, 15 Jul 2009 00:00:05 +0000 (00:00 +0000)]
daily update
Stan Shebs [Tue, 14 Jul 2009 22:56:30 +0000 (22:56 +0000)]
* MAINTAINERS (Global Maintainers): Add Doug Evans.
Stan Shebs [Tue, 14 Jul 2009 21:40:34 +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.
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.
Jan Kratochvil [Tue, 14 Jul 2009 16:57:18 +0000 (16:57 +0000)]
binutils/
Support unordered .debug_info references to .debug_ranges.
* dwarf.c (struct range_entry, range_entry_compar): New.
(display_debug_ranges): Remove variables last_offset, first, j,
seen_first_offset, use_debug_info and next. New variables
range_entries and range_entry_fill. Create the sorted copy
range_entries. Remove the FIXME error on detected unordered references.
* dwarf.h (debug_info <range_lists>): New comment.
binutils/testsuite/
* binutils-all/objcopy.exp (testranges): New test.
* binutils-all/testranges.d, binutils-all/testranges.s: New files.
Nick Clifton [Tue, 14 Jul 2009 15:47:13 +0000 (15:47 +0000)]
* config/tc-arm.h (MAX_MEM_ALIGNMENT_BYTES): Define.
(MAX_MEM_FOR_RS_ALIGN_CODE): Define in terms of
MAX_MEM_ALIGNMENT_BYTES.
* config/tc-arm.c (arm_frag_align_code): Replace hard coded
constant with MAX_MEM_FOR_RS_ALIGN_CODE.
* gas/arm/align64.s: New test case.
* gas/arm/align64.d: Expected disassembly.
Nick Clifton [Tue, 14 Jul 2009 15:38:20 +0000 (15:38 +0000)]
PR 10387
* config/tc-arm.h (THUMB_IS_FUNC): Handle a NULL pointer.
(ARM_IS_FUNC): Likewise.
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.
Ulrich Weigand [Tue, 14 Jul 2009 14:53:41 +0000 (14:53 +0000)]
* remote.c (process_stop_reply): Access expedited target registers
in target_gdbarch.
Nick Clifton [Tue, 14 Jul 2009 14:16:34 +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.
Nick Clifton [Tue, 14 Jul 2009 12:54:47 +0000 (12:54 +0000)]
gas/
* config/tc-arm.c (md_assemble): Added validation.
gas/testsuite
* gas/arm/thumb-w-bad.d: New test case.
* gas/arm/thumb-w-bad.l: New file.
* gas/arm/thumb-w-bad.s: New file.
* gas/arm/thumb-w-good.d: New test case.
* gas/arm/thumb-w-good.s: New file.
Nick Clifton [Tue, 14 Jul 2009 07:43:18 +0000 (07:43 +0000)]
PR 10380
* README: Document use of LDFLAGS="--static".
Alan Modra [Tue, 14 Jul 2009 00:00:05 +0000 (00:00 +0000)]
daily update
gdbadmin [Tue, 14 Jul 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Jan Kratochvil [Mon, 13 Jul 2009 20:16:48 +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.
Jan Kratochvil [Mon, 13 Jul 2009 19:24:18 +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.
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.
H.J. Lu [Mon, 13 Jul 2009 16:55:09 +0000 (16:55 +0000)]
Fix a typo.
H.J. Lu [Mon, 13 Jul 2009 16:52:37 +0000 (16:52 +0000)]
2009-07-13 H.J. Lu <hongjiu.lu@intel.com>
* ld-ifunc/ifunc.exp: Don't use -shared/-static to build object
files. Use ld_simple_link to build static non-ifunc-using
executable. Re-enable static non-ifunc-using executable check.
Anthony Green [Mon, 13 Jul 2009 04:56:14 +0000 (04:56 +0000)]
Add process recording support to the moxie gdb port.
Alan Modra [Mon, 13 Jul 2009 00:00:05 +0000 (00:00 +0000)]
daily update
gdbadmin [Mon, 13 Jul 2009 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
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.
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.
Alan Modra [Sun, 12 Jul 2009 00:00:05 +0000 (00:00 +0000)]
daily update
gdbadmin [Sun, 12 Jul 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***