aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-09-22gdb/Jan Kratochvil6-14/+18
Code cleanup. * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove. (free_objfile) <objfile->name != NULL>: Remove the conditional around xfree. * objfiles.h (struct objfile) <name>: New comment it is never NULL. * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>: Remove. * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name> Remove the conditional. * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
2010-09-22gdb/Jan Kratochvil2-2/+10
* main.c: Include objfiles.h. (captured_main): New variable objfile. Call load_auto_scripts_for_objfile for ALL_OBJFILES.
2010-09-22gdb/Jan Kratochvil5-0/+16
* dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also DW_TAG_constant. gdb/testsuite/ * gdb.fortran/module.exp (fully qualified name of DW_TAG_constant): New test. * gdb.fortran/module.f90 (mod1) <var_const>: New constant.
2010-09-22gas: blackfin: allow end-of-line comments via #Mike Frysinger2-2/+6
We don't use the # character in the Blackfin assembly language, so let it start end-of-line comments like most other assemblers. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-09-22[testsuite] dw2-const.S: fix type reference size on 64bit platforms.Joel Brobecker2-1/+6
The testcase was failing on various 64bit platforms, because the debugging info said that the target type for a const type is a 4-byte reference. In the asm file, I used a .long directive, but the size of .long is of course dependent on the platform. This replaces this .long by a .4byte directive. gdb/testsuite/ChangeLog: * gdb.dwarf2/dw2-const.S: Use .4byte to reference the target type of our const type.
2010-09-22DWARF: Add support for DW_TAG_constant DIEsJoel Brobecker5-0/+298
gdb/ChangeLog: * dwarf2read.c (scan_partial_symbols): Add handling of DW_TAG_constant DIEs. (add_partial_symbol, load_partial_dies, new_symbol): Likewise. gdb/testsuite/ChangeLog: * gdb.dwarf2/dw2-const.S, gdb.dwarf2/dw2-const.exp: New files.
2010-09-22Allow disabling of gdbserver build (--enable-gdbserver=yes/no/auto).Joel Brobecker3-4/+47
This patch adds a new --enable-gdbserver=yes/no/auto command-line switch in gdb/configure. The primary purpose is to allow a user to disable the build & install of gdbserver when not desired. It also allows the user to request gdbserver in which case the configure script will abort if automatic building of gdbserver is not supported for that configuration. The default keeps things as is: We automatically build gdbserver if building for a native configuration and if gdbserver is supported for that configuration. gdb/ChangeLog: * configure.ac: Add support for --enable-gdbserver. * configure: Regenerate. At AdaCore, this is mostly intended for ia64-linux, where we currently do not want to distribute gdbserver. This will be useful in the context of I417-033, where we are now using "make install" to determine what needs to be packaged inside the GNAT Pro package.
2010-09-22 * gdb.texinfo (Values From Inferior): Mention Value.__init__.Tom Tromey2-0/+39
2010-09-22Fix PR 12028: "GDB crashes on a double free during overload resolution "Sami Wagiaalla5-1/+62
2010-09-22 Sami Wagiaalla <swagiaal@redhat.com> PR C++/12028 * valops.c (find_oload_champ_namespace_loop): removed incorrect 'old_cleanups' reassignment. 2010-09-22 Sami Wagiaalla <swagiaal@redhat.com> * gdb.cp/pr12028.cc: New. * gdb.cp/pr12028.exp: New.
2010-09-222010-09-22 Kai Tietz <kai.tietz@onevision.com>Kai Tietz3-4/+22
* ldlang.c (lang_add_section): Allow for debugging section to be marked as noload but to keep content. (IGNORE_SECTION): Likewise. (lang_check_section_addresses): Likewise. * ldwrite.c (build_link_order): Likewise.
2010-09-222010-09-22 Kai Tietz <kai.tietz@onevision.com>Kai Tietz2-14/+36
* coffcode.h (sec_to_styp_flags): Adjust debug sections to be conform to pe-coff specification and avoid marking them as excluded. (styp_to_sec_flags): Doing reverse mapping.
2010-09-22 gdb.texinfo (Values From Inferior): Clarify thatEli Zaretskii2-6/+17
value.dynamic_type works only in C++ programs with RTTI.
2010-09-222010-09-22 Kai Tietz <kai.tietz@onevision.com>Kai Tietz6-13/+76
* emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add idata to orphan set. * emultempl/pep.em: Likewise. * scripttempl/armcoff.sc: Separate idata and add __IAT_start__ and __IAT_end__ labels. * scripttempl/pe.sc: Likewise. * scripttempl/pep.sc: Likewise.
2010-09-222010-09-22 Kai Tietz <kai.tietz@onevision.com>Kai Tietz2-0/+48
* peXXigen.c (_bfd_XXi_final_link_postscript): Add handling for setting IAT directory entry.
2010-09-22*** empty log message ***gdbadmin1-1/+1
2010-09-22daily updateAlan Modra1-1/+1
2010-09-21opcodes: blackfin: strip trailing whitespaceMike Frysinger2-71/+75
2010-09-21*** empty log message ***gdbadmin1-1/+1
2010-09-21daily updateAlan Modra1-1/+1
2010-09-20 * emulparams/elf32_sparc.sh: Set NOP to 0x01000000David S. Miller2-0/+5
2010-09-20 * gas/config/tc-arm.c (arm_cpus): Correct canonical names for Cortex CPUs.Matthew Gretton-Dann9-16/+35
* gas/testsuite/gas/arm/attr-cpu-directive.d: Update test for change in canonical CPU name. * gas/testsuite/gas/arm/attr-mcpu.d: Likewise. * ld/testsuite/ld-arm/attr-merge-6.attr: Update tests for change in canonical CPU name. * ld/testsuite/ld-arm/attr-merge-7.attr: Likewise. * ld/testsuite/ld-arm/attr-merge-2.attr: Likewise. * ld/testsuite/ld-arm/attr-merge-arch-2.attr: Likewise.
2010-09-20 * ld/testsuite/ld-arm/script-type.ld: Update to generate symbols in a section.Matthew Gretton-Dann2-5/+11
2010-09-20Use bfd_elf_generic_reloc for alpha-elf.Richard Henderson4-42/+39
2010-09-20 * gas/elf/elf.exp: Disable symtab test for alpha.Richard Henderson2-1/+8
2010-09-20*** empty log message ***gdbadmin1-1/+1
2010-09-20daily updateAlan Modra1-1/+1
2010-09-19bfd/Richard Sandiford2-13/+53
* elfxx-mips.c (mips_elf_link_hash_entry): Add got_only_for_calls. (mips_elf_link_hash_newfunc): Initialize it. (mips_elf_record_global_got_symbol): Add a for_call parameter. (mips_elf_count_got_symbols): Check SYMBOL_CALLS_LOCAL rather than SYMBOL_REFERENCES_LOCAL if the GOT entry is only used for calls. Try to remove .got entries in favour of .got.plt entries on VxWorks. (_bfd_mips_elf_check_relocs): Do not try to avoid allocating a global GOT entry for VxWorks calls. Update uses of mips_elf_record_global_got_symbol. (allocate_dynrelocs): Set got_only_for_calls to false if the GOT entry is used for dynamic relocations.
2010-09-19bfd/Richard Sandiford10-463/+481
* elfxx-mips.c (mips_got_entry): Adjust commentary. (mips_elf_create_local_got_entry): If given a symbol, check that it has been assigned to the local part of the GOT. (mips_elf_count_got_symbols): Take the bfd_link_info as argument instead of the master GOT. Put all locally-binding symbols in the local area. (mips_elf_make_got_per_bfd): Use global_got_area to decide whether a symbol lives in the local or global area. (mips_elf_local_relocation_p): Remove check_forced argument and retain only the !check_forced behavior. (mips_elf_calculate_relocation): Adjust call accordingly. Use global_got_area to decide whether an output relocation should be local or global. Explicitly decay R_MIPS_GOT_PAGE into R_MIPS_GOT_DISP where appropriate. Fix selection of local vs. global semantics for R_MIPS*_26. Remove redundant reevaluation of what is stored in was_local_p. (mips_elf_create_dynamic_relocation): Use global_got_area to decide whether the relocation should be against a global or local symbol. (mips_elf_lay_out_got): Update the GOT traversal after the above change to mips_elf_count_got_symbols. (mips_elf_adjust_addend): Adjust call to mips_elf_local_relocation_p. (_bfd_mips_elf_relocate_section): Likewise. (_bfd_mips_elf_finish_dynamic_symbol): Use global_got_area to decide whether the symbol has a global got entry. (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise. ld/testsuite/ * ld-mips-elf/elf-rel-got-n32.d: Swap two local GOT entries and remove some duplication between the global and local GOT entries. Adjust GP offsets accordingly. * ld-mips-elf/elf-rel-got-n64-linux.d: Likewise. * ld-mips-elf/elf-rel-xgot-n32.d: Reorder GOT entries and update GP offsets accordingly. * ld-mips-elf/elf-rel-xgot-n64-linux.d: Likewise. * ld-mips-elf/mips16-pic-1.gd: Move all global GOT entries to the local GOT. * ld-mips-elf/mips16-pic-1.dd: Update GP offsets accordingly. * ld-mips-elf/multi-got-no-shared.d: Adjust GP setup for smaller GOT sizes.
2010-09-19bfd/Richard Sandiford2-3/+13
* elfxx-mips.c (allocate_dynrelocs): Don't add relocation symbols to the global GOT on VxWorks.
2010-09-19bfd/Richard Sandiford2-0/+10
* elfxx-mips.c (_bfd_mips_elf_check_relocs): On VxWorks, exclude __GOTT_BASE__ and __GOTT_INDEX__ from the warning about HI/LO relocations in shared objects.
2010-09-19*** empty log message ***gdbadmin1-1/+1
2010-09-19daily updateAlan Modra1-1/+1
2010-09-18 * lib/ld-lib.exp (check_gc_sections_available): Fail more targets.Alan Modra34-45/+151
* ld-discard/discard.exp: Move xfails from here.. * ld-discard/extern.d: ..to here. * ld-discard/start.d: ..and here. * ld-discard/static.d: ..and here. * ld-elf/binutils.exp: Don't run tbss1 and tbss2 tests on hppa64. * ld-elf/empty2.d: Remove xfails. * ld-elf/flags1.d: xfail hppa64. * ld-elf/group1.d: Add comment. * ld-elf/group2.d: xfail cr16 and crx. * ld-elf/group3b.d: Correct xfail and add comment. * ld-elf/group4.d: xfail cr16 and crx. * ld-elf/group5.d: Likewise. * ld-elf/group6.d: Likewise. * ld-elf/group7.d: Likewise. * ld-elf/group8a.d: Add more notarget and xfail entries. Comment. * ld-elf/group8b.d: Likewise. * ld-elf/group9a.d: Likewise. * ld-elf/group9b.d: Likewise. * ld-elf/linkonce2.d: Correct notarget and comment. * ld-elf/merge2.d: Remove iq2000 from xfail. * ld-elf/multibss1.d: xfail hppa64. * ld-elf/nobits-1.d: Likewise. * ld-elf/note-1.d: Likewise. * ld-elf/note-2.d: Likewise. * ld-elf/orphan-region.d: Add xfails. * ld-elf/orphan-region.ld: Discard some sections. * ld-elf/orphan.d: Add xfails. * ld-elf/orphan.ld: Discard some sections. * ld-elf/orphan3.d: Replace xfail frv-*-* with frv-*-elf. Remove cr16, crx and d10v. * ld-elf/pr349.d: Add xfails. * ld-elf/warn2.d: Add xfails. Tweak symbol section for hppa64. * ld-scripts/rgn-at5.t: Discard .reginfo.
2010-09-18Fix date.H.J. Lu1-1/+1
2010-09-18Add a target argument.H.J. Lu2-6/+24
2010-09-15 H.J. Lu <hongjiu.lu@intel.com> * emul_aix.c (ar_emul_aix_append): Add a target argument and ignore it if it is set. (ar_emul_aix5_append): Likewise. (ar_emul_aix_replace): Likewise. (ar_emul_aix5_replace): Likewise.
2010-09-18 * testsuite/Makefile.am (memory_test.o): New target.Ian Lance Taylor3-4/+10
(memory_test): Depend on memory_test.o, gcctestdir/ld, and memory_test.t. * testsuite/Makefile.in: Rebuild.
2010-09-18 * testsuite/memory_test.sh: Adjust for change of 2010-09-10.Ian Lance Taylor2-1/+5
2010-09-18daily updateAlan Modra1-1/+1
2010-09-18*** empty log message ***gdbadmin1-1/+1
2010-09-172010-09-17 Doug Kwan <dougkwan@google.com>Doug Kwan4-40/+56
* arm.cc (Target_arm::Relocate::relocate): Ignore symbol type and defintion if relocation uses GOT entries of the symbol. * testsuite/icf_safe_test.sh: Fix test. * testsuite/icf_safe_so_test.sh: Fix test.
2010-09-172010-09-17 Tejas Belagod <tejas.belagod@arm.com>Matthew Gretton-Dann5-21/+83
* config/tc-arm.c (do_t_ldmstm): Add logic to handle single-register list for ldm/stm. 2010-09-17 Tejas Belagod <tejas.belagod@arm.com> * gas/arm/thumb2_ldmstm.d: Change single-register stmia to use 16-bit str encoding instead of str.w. Likewise for ldmia. * gas/arm/thumb2_ldmstm.s: Change stmia comment. Add tests for T1 ldmia-to-ldr.
2010-09-172010-09-17 Tejas Belagod <tejas.belagod@arm.com>Matthew Gretton-Dann14-1/+1038
* config/tc-arm.c (parse_psr): Add condition for matching "APSR" on non-M-arch cpus. (psrs): Add entry for PSR flags, g, nzcvq, nzcvqg. 2010-09-17 Tejas Belagod <tejas.belagod@arm.com> * gas/arm/msr-reg.s: New file. * gas/arm/msr-reg.d: Likewise. * gas/arm/msr-imm.s: Likewise. * gas/arm/msr-imm.d: Likewise. * gas/arm/msr-imm-bad.d: Likewise. * gas/arm/msr-imm-bad.l: Likewise. * gas/arm/msr-reg-bad.d: Likewise. * gas/arm/msr-imm-bad.d: Likewise. * gas/arm/msr-reg-thumb.d: Likewise. * gas/arm/arch7.s: Add tests for xpsr. * gas/arm/arch7.d: Likewise.
2010-09-172010-09-17 Tejas Belagod <tejas.belagod@arm.com>Matthew Gretton-Dann7-2/+22
* config/tc-arm.c (insns): Change MRC entry to accept APSR_RR instead of just RR. 2010-09-17 Tejas Belagod <tejas.belagod@arm.com> * gas/arm/copro.s: Add test for APSR_nzcv as a MRC operand. * gas/arm/copro.d: Change pc in MRC to disassemble as APSR_nzcv. Also add disassembly for test added in copro.s 2010-09-17 Tejas Belagod <tejas.belagod@arm.com> * arm_dis.c (coprocessor_opcodes): Add MRC entry for APSR_nzcv.
2010-09-17*** empty log message ***gdbadmin1-1/+1
2010-09-17daily updateAlan Modra1-1/+1
2010-09-16 PR gas/12011Alan Modra11-7/+30
* config/obj-elf.c (obj_elf_parse_section_letters): Correct test for error return from md_elf_section_letter. * config/tc-alpha.c (alpha_elf_section_letter): Correct error message. * config/tc-i386.c (x86_64_section_letter): Likewise. * config/tc-ia64.c (ia64_elf_section_letter): Likewise. * config/tc-mep.c (mep_elf_section_letter): Likewise. * gas/elf/bad-section-flag.d, * gas/elf/bad-section-flag.err, * gas/elf/bad-section-flag.s: New test. * gas/elf/elf.exp: Run it.
2010-09-16gdb/Jan Kratochvil2-2/+12
* charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted characters.
2010-09-16 * script_sections.cc (class Memory_region): Remove "NULL" fromCary Coutant2-2/+7
vector initializations.
2010-09-162010-09-16 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon7-17/+388
PR mi/11407 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from read_var_value and common_val_print and print a warning. 2010-09-16 Phil Muldoon <pmuldoon@redhat.com> Jan Kratochvil <jan.kratochvil@redhat.com> PR mi/11407 * gdb.mi/dw2-ref-missing-frame-func.c: New File. * gdb.mi/dw2-ref-missing-frame-main.c New File. * gdb.mi/dw2-ref-missing-frame.S New File. * gdb.mi/dw2-ref-missing-frame.exp New File.
2010-09-16 * ld-elf/orphan-region.d: xfail for spu.Alan Modra3-0/+5
* ld-elf/relocatable.d: xfail for hppa.