aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-09-09merge from gccDJ Delorie2-500/+625
2009-09-09config:Paolo Bonzini4-501/+1126
2009-09-09 Paolo Bonzini <bonzini@gnu.org> * stdint.m4 (GCC_HEADER_STDINT): Revert changes to this macro in the previous two patches. bfd: 2009-09-09 Paolo Bonzini <bonzini@gnu.org> * configure: Regenerate.
2009-09-09 bfd/Daniel Jacobowitz4-19/+38
* elf32-arm.c (elf32_arm_final_link_relocate): Set sym_flags for the mode of target PLT entries. (allocate_dynrelocs): Only adjust symbol type if setting its value. ld/testsuite/ * ld-arm/farcall-mixed-lib.d: Update.
2009-09-09 Fix a build failure on AIX.Joel Brobecker2-14/+20
* rs6000-nat.c (vmap_exec): Rewrite using target_get_section_table instead of relying on the to_sections/to_section_end target_ops field, since the latter have been removed in a previous patch.
2009-09-09Checking in this patch for Thiago: Rename python-* files into py-*,Joel Brobecker24-39/+82
more 8+3 friendly. gdb/ * Makefile.in (py-cmd.o): Renamed from python-cmd.o. Updated references. (py-frame.o): Renamed from python-frame.o. Updated references. (py-function.o): Renamed from python-function.o. Updated references. (py-objfile.o): Renamed from python-objfile.o. Updated references. (py-prettyprint.o): Renamed from python-prettyprint.o. Updated +references. (py-type.o): Renamed from python-type.o. Updated references. (py-utils.o): Renamed from python-utils.o. Updated references. (py-value.o): Renamed from python-value.o. Updated references. * py-cmd.o: Renamed from python-cmd.o. * py-frame.o: Renamed from python-frame.o. * py-function.o: Renamed from python-function.o. * py-objfile.o: Renamed from python-objfile.o. * py-prettyprint.o: Renamed from python-prettyprint.o. * py-type.o: Renamed from python-type.o. * py-utils.o: Renamed from python-utils.o. * py-value.o: Renamed from python-value.o. gdb/testsuite/ * gdb.python/Makefile.in (EXECUTABLES): Adjust to new executable names, add missing ones. * gdb.python/py-cmd.exp: Rename from python-cmd.exp. * gdb.python/py-frame.c: Rename from python-frame.c. * gdb.python/py-frame.exp: Rename from python-frame.exp. Adjust testfile name. * gdb.python/py-function.exp: Rename from python-function.exp. * gdb.python/py-mi.exp: Rename from python-mi.exp. Adjust testfile name. * gdb.python/py-prettyprint.c: Rename from python-prettyprint.c. * gdb.python/py-prettyprint.exp: Rename from python-prettyprint.exp. Adjust testfile name. * gdb.python/py-prettyprint.py: Rename from python-prettyprint.py. * gdb.python/py-template.cc: Rename from python-template.cc. * gdb.python/py-template.exp: Rename from python-template.exp. Adjust testfile name. * gdb.python/py-value.c: Rename from python-value.c. * gdb.python/py-value.exp: Rename from python-value.exp. Adjust testfile name.
2009-09-09 Avoid quadratic behavior when computing the value of a register.Joel Brobecker2-3/+63
* frame.c (frame_stash): New static constant. (frame_stash_add, frame_stash_find, frame_stash_invalidate): New functions. (get_frame_id): Minor reformatting. Add the frame to the frame stash. (frame_find_by_id): Search the frame stash first before walking all frames starting from te current_frame. (reinit_frame_stash): Add call to frame_stash_invalidate ();
2009-09-092009-09-09 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-2/+7
* i386-dis.c (vex_len_table): Change VEX_LEN_AE_R_X_M0 to VEX_LEN_AE_R_X_M_0 in comments.
2009-09-09 * block.c (contained_in): Return zero for nested functions.Joel Brobecker3-1/+10
* blockframe.c (block_innermost_frame): Delete unreferenced local variable.
2009-09-09merge from gccDJ Delorie2-621/+504
2009-09-09config:Paolo Bonzini4-1115/+525
2009-09-09 Paolo Bonzini <bonzini@gnu.org> * stdint.m4: Store temporary file in $tmp/_GCC_STDINT_H. bfd: 2009-09-09 Paolo Bonzini <bonzini@gnu.org> * configure: Regnerate.
2009-09-09 PR 10478:Nick Clifton5-31/+130
* elf.c (bfd_section_from_shdr): Do not reject sparc binaries with section headers containing sh_link values of SHN_BEFORE or SHN_AFTER. * elfcode.h (elf_object_p): Likewise. readelf.c (get_elf_section_flags): Add support for SHF_EXCLUDE and SHF_ORDERED. (process_section_headers): Warn about out of range sh_link values. When displaying detailed section header information annote the SHN_BEFORE and SHN_AFTER values.
2009-09-092009-09-09 Tristan Gingold <gingold@adacore.com>Tristan Gingold3-2/+93
Handle DYLD_INFO introduced by Darwin10. * mach-o.h (bfd_mach_o_load_command_type): Add BFD_MACH_O_LC_DYLD_INFO. (bfd_mach_o_dyld_info_command): New type. (bfd_mach_o_load_command): Add dyld_info field. * mach-o.c (bfd_mach_o_scan_read_str): Reduce size of buf. (bfd_mach_o_scan_read_dyld_info): New function. (bfd_mach_o_scan_read_command): Handle BFD_MACH_O_LC_DYLD_INFO. (bfd_mach_o_bfd_print_private_bfd_data): Ditto. (bfd_mach_o_load_command_name): AddB FD_MACH_O_LC_DYLD_INFO. (bfd_mach_o_print_dyld_info): New function.
2009-09-09 * config/obj-coff.h (USE_UNIQUE): Don't define.Alan Modra5-7/+10
* config/obj-coff.c (weak_uniquify): Use an_external_name when TE_PE. * symbols.c (an_external_name): Define when TE_PE. (S_SET_EXTERNAL): Assign an_external_name when TE_PE. * tc.h (an_external_name): Declare when TE_PE.
2009-09-09 * ld-elf/sec64k.exp: For frv-linux use "aw" sections.Alan Modra28-4/+188
* ld-elf/seg.d: Cater for GNU_STACK segment. * ld-elf/symbol1ref.s: Use data section. * ld-elf/symbol2ref.s: Likewise. * ld-scripts/empty-address-1.d: Don't run on frv-linux. * ld-scripts/empty-address-2a.d: Likewise. * ld-scripts/empty-address-2b.d: Likewise. * ld-scripts/empty-aligned.d: Likewise. * ld-elf/extract-symbol-1sym.d: Tolerate extra target supplied syms. * ld-scripts/sort_b_a-1.d: Likewise. * ld-scripts/sort_b_a.d: Likewise. * ld-scripts/sort_b_a_a-1.d: Likewise. * ld-scripts/sort_b_a_a-2.d: Likewise. * ld-scripts/sort_b_a_a-3.d: Likewise. * ld-scripts/sort_b_a_n-1.d: Likewise. * ld-scripts/sort_b_a_n-2.d: Likewise. * ld-scripts/sort_b_a_n-3.d: Likewise. * ld-scripts/sort_b_n-1.d: Likewise. * ld-scripts/sort_b_n.d: Likewise. * ld-scripts/sort_b_n_a-1.d: Likewise. * ld-scripts/sort_b_n_a-2.d: Likewise. * ld-scripts/sort_b_n_a-3.d: Likewise. * ld-scripts/sort_b_n_n-1.d: Likewise. * ld-scripts/sort_b_n_n-2.d: Likewise. * ld-scripts/sort_b_n_n-3.d: Likewise. * ld-scripts/sort_no-1.d: Likewise. * ld-scripts/sort_no-2.d: Likewise.
2009-09-09Only provide ENTRY on final link.Alan Modra36-35/+73
2009-09-09 * config/tc-i386.c (i386_target_format): Avoid duplicate case label.Alan Modra2-7/+12
2009-09-092009-09-09 M R Swami Reddy <MR.Swami.Reddy@nsc.com>M R Swami Reddy2-0/+19
* elf32-cr16.c (elf32_cr16_relocate_section): Add code to discard the linkonce or linker script discarded section.
2009-09-09 * elf32-xtensa.c (elf_xtensa_relax_section): Delete -r check.Alan Modra2-4/+4
2009-09-09daily updateAlan Modra1-1/+1
2009-09-09*** empty log message ***gdbadmin1-1/+1
2009-09-08 * target.c (initialize_targets): Fix thinko in stack_cache_enabled_p.Doug Evans2-1/+5
2009-09-08* cpu/mep.opc (mep_cgen_insn_supported_asm): Change the test to aDJ Delorie2-1/+5
preprocessor macro, not an enum.
2009-09-082009-09-08 Michael Snyder <msnyder@vmware.com>Michael Snyder6-1812/+1890
* amd64-linux-tdep.h (enum amd64_syscall): New enum consts, to replace literal consts used in amd64-linux-tdep.c * linux-record.h (enum gdb_syscall): New enum consts, to replace literal consts used in amd64-linux-tdep.c and linux-record.c. * amd64-linux-tdep.c (amd64_canonicalize_syscall): New function, translate from native amd64 Linux syscall id to internal gdb id. (amd64_linux_syscall_record): Switch statement abstracted out and replaced with a call to amd64_canonicalize_syscall. * linux-record.c (record_linux_system_call): Replace literal consts with enum consts. * i386-linux-tdep.c (i386_canonicalize_syscall): New function, trivially translate from native i386 Linux syscalls to gdb syscalls. (i386_linux_intx80_sysenter_record):
2009-09-08 * output.cc (Output_file::open): Add execute permission to empty file.Cary Coutant4-13/+69
* testsuite/Makefile.am (permission_test): New test. * testsuite/Makefile.in: Regenerate.
2009-09-08Fix parallel check//% rule in gdb for non-VPATH build.Ralf Wildenhues2-8/+17
gdb/: * gdb/Makefile.in (check//%): Parse 'config.status --version' output to recreate the configuration from the testsuite directory, rather than running 'config.status --recheck' from a different build directory. Let configure do the recursion rather than doing it manually.
2009-09-08gdb/Jan Kratochvil2-0/+6
* ia64-tdep.c (ia64_memory_remove_breakpoint): Call do_cleanups before a return.
2009-09-08Fix toplevel config.status for HP-UX sed.Ralf Wildenhues3-21/+62
/: * configure.ac: Do not use $extrasub for replacing @if/@endif parts in Makefile; instead, use additional arguments to AC_CONFIG_COMMANDS to do the replacement manually, with several sed invocations, to avoid HP-UX sed command limits. * configure: Regenerate.
2009-09-08gdb/Jan Kratochvil2-6/+25
* ia64-tdep.c (ia64_memory_insert_breakpoint) (ia64_memory_remove_breakpoint): Return immediately if any of memory reads fail. Do not combine the VAL values.
2009-09-08gdb/Jan Kratochvil4-12/+61
Fix ia64 shadowing of breakpoints in multiple slots of a single bundle. * ia64-tdep.c (ia64_memory_insert_breakpoint): New call of make_show_memory_breakpoints_cleanup with parameter 0. Move the reading of SHADOW_CONTENTS to this memory state point of code. Update comment for the memory re-read. gdb/testsuite/ * gdb.base/breakpoint-shadow.exp (Second breakpoint placed): Initialize $bpt2address. (Second breakpoint address is valid on ia64) (Third breakpoint on ia64 in the Second breakpoint's bundle): New.
2009-09-08 * configure.tgt (sh*-*-netbsdelf*): Set endian according to cpu.Kaz Kojima4-2/+14
* gas/sh/basic.exp: Add -big to ASFLAGS for sh*l*-*-netbsdelf*.
2009-09-08 * gas/d30v/serial2.l: Adjust position of page break.Alan Modra5-3/+14
* gas/lns/lns-common-1-alt.d: Match 2009-04-24 change. * gas/mt/ms1-16-003.d: Correct reloc name. * gas/mt/relocs.d: Elide incorrect file format strings.
2009-09-08 * read.c (emit_expr_fix): Handle size 3.Alan Modra9-1/+29
* config/tc-avr.c (md_assemble): Call dwarf2_emit_insn. * config/tc-d30v.c (write_long, write_1_short, write_2_short, md_assemble): Likewise. * config/tc-dlx.c (md_assemble): Likewise. * config/tc-i860.c (md_assemble): Likewise. * config/tc-mn10200.c (md_assemble): Likewise. * config/tc-pj.c (md_assemble): Likewise. * config/tc-vax.c (md_assemble): Likewise.
2009-09-08 * binutils-all/objdump.exp (cpus_expected): Add ms1.Alan Modra2-1/+5
2009-09-08 * dwarf.c (byte_get_little_endian): Handle size of 3.Alan Modra3-7/+61
(byte_get_big_endian): Likewise. * readelf.c (byte_put_little_endian): Likewise. (byte_put_big_endian): Likewise. (is_24bit_abs_reloc): New function. (is_none_reloc): Formatting. (apply_relocations): Use is_24bit_abs_reloc. Handle pj and xtensa reloc peculiarity.
2009-09-082009-09-08 M R Swami Reddy <MR.Swami.Reddy@nsc.com>M R Swami Reddy2-1/+5
* ld-elf/merge.d: xfail cr16-*-*.
2009-09-08* z8kgen.c (struct op): Replace unused flavor with id.Andreas Schwab3-21/+37
(opt): Remove extra xorb entry. (func): Use id field as fallback. (sub): Return new string, caller changed. (internal): Allocate end marker. Assign unique id before sorting. (gas): Likewise. Fix loop end condition. * z8k-opc.h: Regenerate.
2009-09-08 * ppc-opc.c (powerpc_macros <extrdi>): Allow n+b of 64.Alan Modra2-2/+6
2009-09-08 * gas/all/gas.exp (do_comment): Don't run on m32c.Alan Modra6-1/+19
* gas/all/align.d: Likewise. * gas/all/incbin.d: Likewise. * gas/macros/semi.d: Likewise. * gas/elf/ifunc-1.d: Don't run on alpha.
2009-09-08 * ld-elf/eh5.d: Don't run on hppa64. Allow non-pcrel encoding.Alan Modra2-11/+17
Skip extra CIEs emitted on embedded targets and adjust FDE matches to suit.
2009-09-082009-09-07 Michael Snyder <msnyder@vmware.com>Michael Snyder2-10/+16
* record.c: Minor comment and white space fix-ups.
2009-09-08daily updateAlan Modra1-1/+1
2009-09-08*** empty log message ***gdbadmin1-1/+1
2009-09-07binutils/Jan Kratochvil2-0/+11
* readelf.c (is_none_reloc <EM_XTENSA_OLD>, is_none_reloc <EM_XTENSA>): New.
2009-09-07binutils/Jan Kratochvil4-1/+26
* dwarf.c (process_debug_info): Support section padding abbrev codes. binutils/testsuite/ * binutils-all/testranges.s (.debug_info): Pad the only CU.
2009-09-07binutils/testsuite/Jan Kratochvil2-8/+12
* binutils-all/testranges.s: Replace all .long by .4byte.
2009-09-07gdb/Jan Kratochvil3-7/+8
* m68k-tdep.c (m68k_gdbarch_init): Allocate TDEP as cleared. * sparc-tdep.c (sparc32_gdbarch_init): Allocate TDEP as cleared. Remove explicit clearing of TDEP fields.
2009-09-079-09-07 Daniel Gutson <dgutson@codesourcery.com>Daniel Gutson3-0/+7
* config/tc-arm.c (arm_cpus): cortex-r4f CPU added. * doc/c-arm.texi: cortex-r4f CPU added.
2009-09-07* elf32-m68k.c (rtype_to_howto): If the reloc index is out ofAndreas Schwab2-6/+15
range call the bfd error hander and use R_68K_NONE instead.
2009-09-07 * z8kgen.c (func): Fix thinko last patch.Alan Modra2-1/+5
2009-09-07 * z8kgen.c (func): Stabilize qsort of identically named entries.Alan Modra3-12/+22
* z8k-opc.h: Regenerate.