Commit Graph

64667 Commits

Author SHA1 Message Date
H.J. Lu c35bdf6ec6 Don't check STT_GNU_IFUNC on large common symbol.
2010-02-20  H.J. Lu  <hongjiu.lu@intel.com>

	* elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Don't check
	STT_GNU_IFUNC on large common symbol.
2010-02-20 15:47:03 +00:00
gdbadmin bed0165486 *** empty log message *** 2010-02-20 00:00:33 +00:00
Alan Modra 79949350e4 daily update 2010-02-19 23:00:04 +00:00
Doug Kwan f96accdf2b 2010-02-18 Doug Kwan <dougkwan@google.com>
* arm-reloc.def: Mark R_ARM_TLS_GD32, R_ARM_TLS_LDM32,
	R_ARM_TLS_LDO32, R_ARM_TLS_IE32 and R_ARM_TLS_LE32 are implemented.
	* arm.cc (Arm_relocation_functions): New forward declaration.
	(Target_arm::Target_arm): Initialize new data members
	got_mod_index_offset_ and tls_base_symbol_defined_.
	(Target_arm::Relocate::relocate_tls): New method.
	(Target_arm::optimize_tls_reloc, Target_arm::define_tls_base_symbol,
	 Target_arm::got_mod_index_entry, Target_arm::rel_tls_desc_section):
	New methods.
   	(Target_arm::Got_type): Add GOT_TYPE_TLS_NOFFSET, GOT_TYPE_OFFSET,
	GOT_TYPE_TLS_PAIR and GOT_TYPE_TLS_DESC.
	(Target_arm::got_mod_index_offset_,
	Target_arm::tls_base_symbol_defined_): New data members.
	(Target_arm::Scan::local, Target::Scan::global,
	Target_arm::Relocate::relocate): Handle 32-bit initial TLS
	relocations.
2010-02-19 22:53:54 +00:00
Tom Tromey 48ea67a755 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
* m2-typeprint.c (m2_print_type): Update.
	* gdbtypes.c (recursive_dump_type): Update.
	(copy_type_recursive): Update.
	* c-typeprint.c (c_type_print_varspec_prefix): Update.
	(c_type_print_base): Update.
	* gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
	Remove.
	(struct cplus_struct_type) <ntemplate_args>: Remove.
	<struct template_arg>: Remove.
	<is_dynamic>: Move earlier.
	(TYPE_TEMPLATE_ARGS): Remove.
	(TYPE_NTEMPLATE_ARGS): Remove.
	(TYPE_TEMPLATE_ARG): Remove.
2010-02-19 22:22:49 +00:00
Tom Tromey 48e32051ca gdb
PR c++/8693, PR c++/9496:
	* cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
	* c-exp.y (lex_one_token): Rename from yylex.  Don't call
	write_dollar_variable.  Don't try to classify NAME tokens.
	(token_and_value): New type.
	(token_fifo, popping, name_obstack): New globals.
	(classify_name): New function.
	(classify_inner_name): Likewise.
	(yylex): Likewise.
	(VARIABLE): Now has type sval.
	(exp : VARIABLE): Call write_dollar_variable.
	(qualified_name): Use TYPENAME, not typebase.  Add production for
	multiple "::" instances.
	(variable): Use name_not_typename.
	(qualified_type): Remove.
	(typebase): Update.
gdb/testsuite
	PR c++/8693, PR c++/9496:
	* gdb.cp/namespace.exp: Remove some setup_kfail calls.  Added
	regression tests.
2010-02-19 20:22:03 +00:00
Tom Tromey 629d6a470a * gdbint.texinfo (Getting Started): Fix @node.
(Debugging GDB): Likewise.
2010-02-19 19:14:38 +00:00
Jan Kratochvil ac9c004837 gdb/testsuite/
Fix compatibility with m68k as.
	* gdb.dwarf2/member-ptr-forwardref.S: Use .data section.  Use .2byte.
	Use only /* comments */.
2010-02-19 19:14:18 +00:00
Ulrich Weigand 57bb97a492 testsuite/
* configure.ac: Add gdb.multi/Makefile to AC_OUTPUT.
	* configure: Regenerate.
2010-02-19 17:13:21 +00:00
Jan Kratochvil 672d9c23b3 gdb/
* symfile.c (addr_info_make_relative): Extend comment.  Move SECT to
	a more inner block.  Initialize ADDR by LOWER_OFFSET only if it was
	found by bfd_get_section_by_name.
	* symfile.h (struct section_addr_info) <sectindex>: New comment.
2010-02-19 06:19:45 +00:00
H.J. Lu c16153aed7 Don't set ELFOSABI_LINUX in dynamic ifunc-using executable.
bfd/

2010-02-18  H.J. Lu  <hongjiu.lu@intel.com>

	* elf32-i386.c (elf_i386_add_symbol_hook): Don't set
	has_ifunc_symbols if the symbol comes from a shared library.
	* elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
	* elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
	* elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
	* elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
	* elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Likewise.

ld/testsuite/

2010-02-18  H.J. Lu  <hongjiu.lu@intel.com>

	* ld-ifunc/ifunc.exp: Expect System V OSABI in dynamic
	ifunc-using executable.
2010-02-19 05:07:50 +00:00
Alan Modra 487565fe48 * configure.tgt: Whiltespace. Sort moxie entry. 2010-02-19 03:36:06 +00:00
Alan Modra c8c66882e4 * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
* Makefile.in: Regenerate.
2010-02-19 02:59:06 +00:00
Doug Kwan c8761b9af4 2010-02-18 Doug Kwan <dougkwan@google.com>
* arm.cc (Arm_relobj::find_linked_text_section): New method.
	(Arm_relobj::make_exidx_input_section): Pass section index of linked
	text section as a parameter becuase some broken tools may not set
	the link in section header.
	(Target_arm::has_got_section): New method.
	(Target_arm::scan_section_for_cortex_a8_stubs): Treat an input section
	without any mapping symbol as data only.  Remove warning.
	(Arm_relobj::do_read_synbols): If an EXIDX input section has no
	link in its section header, try to discover the link by inspecting the
	REL31 relocation at the beginning of the section.
	(Target_arm::Scan::check_non_pic): Report name of offending relocation
	in error message.
	(Target_arm::Scan::global): Treat any reference to the symbol
	_GLOBAL_OFFSET_TABLE_ as a GOT access.
2010-02-19 02:16:41 +00:00
Alan Modra d0bf826b37 bfd/
* elf.c (_bfd_elf_fixup_group_sections): New function, split out from..
	(_bfd_elf_copy_private_header_data): ..here.
	* elflink.c (_bfd_elf_size_group_sections): New function.
	(bfd_elf_size_dynamic_sections): Call it.
	* elf-bfd.h (_bfd_elf_size_group_sections): Declare.
	(_bfd_elf_fixup_group_sections): Declare.
ld/
	* ldlang.c (unique_section_p): Add os param.  Allow group
	sections to match /DISCARD/.  Update all callers.
	* emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
	(LDEMUL_BEFORE_ALLOCATION): Define.
ld/testsuite/
	* ld-elf/group.ld: Discard .dropme sections.
	* ld-elf/group10.d, * ld-elf/group10.s: New test.
2010-02-19 01:47:16 +00:00
Alan Modra 220453ec97 * readelf.c (get_group_flags): Return empty string when flags zero.
Add space in other returned values.
	(process_section_groups): Adjust format string.
2010-02-19 01:36:39 +00:00
Joel Brobecker bfbf3774fe * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
7.0 section" into "Changes in 7.1".
2010-02-19 00:35:53 +00:00
gdbadmin 6756b09b9d Record GDB 7.1 branch creation. Bump version number to 7.1.50.20100219-cvs. 2010-02-19 00:21:15 +00:00
gdbadmin 016555d1a6 *** empty log message *** 2010-02-19 00:00:02 +00:00
Alan Modra 21e9514afe daily update 2010-02-18 23:00:04 +00:00
Pedro Alves 202b96c1a6 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
* mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
	* symfile.c (symfile_map_offsets_to_segments): Fix assertion.
2010-02-18 19:17:00 +00:00
Matthew Gretton-Dann f421f24f33 * ld-arm/attr-merge-6.attr: Add new test. Missed off last commit. 2010-02-18 17:25:10 +00:00
Tom Tromey de2e518245 * NEWS: Add Python API Improvements section. 2010-02-18 16:36:47 +00:00
Daniel Jacobowitz 7280022eea * NEWS: Correct typo. 2010-02-18 16:04:32 +00:00
Daniel Jacobowitz 7d1bf85cc5 * gdb.python/py-type.exp: Check for Python support. 2010-02-18 15:27:35 +00:00
Matthew Gretton-Dann cd21e5460f * bfd/elf32-arm.c (elf32_arm_merge_eabi_attributes): Add support for
merging Tag_DIV_use, Tag_MPextension_use, and
	Tag_MPextension_use_legacy tags.
	* binutils/readelf.c (arm_attr_tag_Advanced_SIMD_arch): Add
	description of newly permitted attribute values.
	(arm_attr_tag_Virtualization_use): Likewise.
	(arm_attr_tag_DIV_use): Add description of new attribute.
	(arm_attr_tag_MPextension_use_legacy): Likewise.
	* gas/config/tc-arm.c (arm_convert_symbolic_attribute):
	Add Tag_DIV_use.
	* gas/doc/c-arm.texi: Likewise.
	* gas/testsuite/gas/arm/attr-order.d: Fix test for new names for
	attribute values.
	* include/elf/arm.h (Tag_MPextension_use): Renumber.
	(Tag_DIV_use): Add.
	(Tag_MPextension_use_legacy): Likewise.
	* ld/testsuite/ld-arm/attr-merge-3.attr: Fix test for new attribute
	values.
	* ld/testsuite/ld-arm/attr-merge-3b.s: Likewise.
	* ld/testsuite/ld-arm/attr-merge-unknown-1.d: Fix test now that 42
	is a recognised attribute ID.
	* ld/testsuite/ld-arm/attr-merge-unknown-1.s: Likewise.
	* ld/testsuite/ld-arm/attr-merge-6.attr: New test.
	* ld/testsuite/ld-arm/attr-merge-6a.s: Likewise.
	* ld/testsuite/ld-arm/attr-merge-6b.s: Likewise.
	* ld/testsuite/ld-arm/attr-merge-7.attr: Likewise.
	* ld/testsuite/ld-arm/attr-merge-7a.s: Likewise.
	* ld/testsuite/ld-arm/attr-merge-7b.s: Likewise.
	* ld/testsuite/ld-arm/arm-elf.exp: Run the new tests.
2010-02-18 10:56:28 +00:00
Alan Modra b2fc24d469 * binutils-all/group-5.s, * binutils-all/group-5.d: New test.
* binutils-all/objcopy.exp: Run it.
2010-02-18 00:13:30 +00:00
Alan Modra 415f38a6d0 * elf.c (bfd_elf_set_group_contents): Revert accidental 2009-01-15
commit.  Don't write zeros for removed group members.
	(_bfd_elf_copy_private_header_data): Adjust size of group section
	when group members are removed by objcopy.
2010-02-18 00:09:06 +00:00
gdbadmin 9badf1bc6b *** empty log message *** 2010-02-18 00:00:03 +00:00
Pedro Alves 061b528517 * lib/gdb.exp (build_id_debug_filename_get): Don't assume new
`regsub' syntax available.
2010-02-17 23:07:24 +00:00
Alan Modra 51e139990e daily update 2010-02-17 23:00:04 +00:00
Pedro Alves f8a8bc2ce4 * gdb.base/shmain.c (main): Remove printf call.
* gdb.base/sizeof.c (main): Cast return of sizeof to int.
	* gdb.base/unload.c (main): Make format of fprintf a string
	literal.  Add missing endlines to prints to stderr.
	* gdb.base/watchpoint-solib.c (open_shlib): Ditto.
2010-02-17 22:55:40 +00:00
Tom Tromey 6f451e5ec4 gdb
* objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
gdb/testsuite
	* gdb.java/jprint.java (jprint.props): New field.
	* gdb.java/jprint.exp (set_lang_java): Add regression test.
2010-02-17 22:25:05 +00:00
Pedro Alves ef801a0e1d Use tab, not spaces. 2010-02-17 22:09:05 +00:00
Pedro Alves 12d79008ef * gdb.base/charset.exp: Don't assume new `regsub' syntax
available.
2010-02-17 22:05:58 +00:00
Jan Kratochvil 012836ea49 gdb/
* symfile.c (build_section_addr_info_from_objfile): Include sections
	only if they are SEC_ALLOC or SEC_LOAD.
2010-02-17 20:54:52 +00:00
H.J. Lu d182d0578f Use CORE_ADDR instead of ULONGEST on address.
2010-02-17  H.J. Lu  <hongjiu.lu@intel.com>

	PR shlibs/11293
	* solib-svr4.c (enable_break): Check size of CORE_ADDR instead
	of ULONGEST for address size.
2010-02-17 20:47:08 +00:00
Tom Tromey 4eef138c30 * NEWS: Add C++ improvements section. 2010-02-17 20:08:24 +00:00
Ulrich Weigand 548a926afa * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
PyThreadState_Swap): Avoid "statement with no effect" warning.
2010-02-17 14:58:54 +00:00
Jan Kratochvil ad3a0e5b17 gdb/
* solib-svr4.c (enable_break <target_auxv_search>): New variable
	addr_bit.  Adjust LOAD_ADDR sign for cross-arch inferiors.
2010-02-17 11:37:23 +00:00
Nick Clifton 792cdb5065 * Makefile.tpl: Use "-exec rm {}" rather than "-delete" to delete
the config.cache files found by the find command.
2010-02-17 11:02:54 +00:00
Tristan Gingold 243e2c5d0a 2010-02-17 Tristan Gingold <gingold@adacore.com>
Petr Hluzí<petr.hluzin@gmail.com>

	* avr-tdep.c (avr_scan_prologue): Convert an if statement to a
	gdb_assert.  Fix info->size for SIG prologue.
2010-02-17 10:39:10 +00:00
Tristan Gingold 444a144ff4 2010-02-17 Tristan Gingold <gingold@adacore.com>
* dmt.h, dst.h, eeom.h, egps.h, egsd.h, egst.h, egsy.h: New Files.
	* eiaf.h, eicp.h, eiha.h, eihd.h, eihi.h, eihs.h, eihvn.h: Ditto.
	* eisd.h, emh.h, eobjrec.h, esdf.h, esrf.h, etir.h, shl.h: Ditto.
2010-02-17 10:12:48 +00:00
Nick Clifton 3994761f62 PR 11238
* Makefile.tpl (local-distclean): Also remove config.cache files in
        sub-directories as there may not be Makefiles present in the
        sub-directories.
        * Makefile.in: Regenerate.
        * configure.ac: Revert previous delta.
        * configure: Regenerate.
2010-02-17 10:05:51 +00:00
gdbadmin d83a18b6bd *** empty log message *** 2010-02-17 00:00:03 +00:00
Alan Modra f7a1abe637 daily update 2010-02-16 23:00:04 +00:00
Daniel Jacobowitz d252f7e5ab gdb/testsuite/
* gdb.xml/tdesc-arch.exp, gdb.xml/tdesc-regs.exp: Rewrite file
	creation to support remote host testing.
2010-02-16 21:26:48 +00:00
Daniel Jacobowitz 67bdab6cc5 gdb/testsuite/
* gdb.base/valgrind-db-attach.exp: Use unsupported instead of xfail.
	Recognize "command not found".
2010-02-16 21:22:46 +00:00
Daniel Jacobowitz bb3912236d gdb/testsuite/
* gdb.arch/thumb2-it.exp (test_it_break): Handle hardware
	single-stepping.
2010-02-16 21:20:14 +00:00
Daniel Jacobowitz 275f2e57c2 gdb/
* infcmd.c (show_inferior_tty_command): Check for NULL.
	Correct output message.
2010-02-16 21:18:46 +00:00