The branch, master has been updated via 5ac4d4384a16c008944b5d8e21c2de3ee8ac7739 (commit) via 6b2889b9b220f31f0f213c12c0e13749ac8ab0ef (commit) via afcf4b3b52e4f176adf703654c23521339664c7a (commit) via 5a6141003c1f04b7838ee99530f89055af9796ca (commit) via 2df921352070c2c0f7f17158819b1bb1fd1a1705 (commit) via 4a606a5869bee8d22173d97b6812522ab5ecb05d (commit) via e57f43f7c336779d0fd6f4ce392e1db12b9ac85a (commit) via 06633d67db82063034e3cc105fa8b5ffdacce9a2 (commit) via 37bde896562679ba37be73037ed6472d8979c992 (commit) via 85043749c0d9c48a1df339c2abec34666372b926 (commit) via 3dc6acc440f2f2f7591725745d722084af67c4a3 (commit) via f6ead6fc0a658a7afd05ef4ef3a7e87205acb35b (commit) via 5dd9099a78c68ed7236d05bc68577a5add112a94 (commit) via 74b9a75634ec6c99954a12193f069ecc0ae5f0b8 (commit) via 6377a17b8a49ab4b605ba9a2cc98a5d1a2d21554 (commit) via 7a3d60970ab30647c9c764c592cb37f075aef1e6 (commit) via 575d4a276cceae9dca086aced83dece6146a5fe6 (commit) via 9104dec90808466c32a1ad779f5a5f245f37c0aa (commit) via a278b5cd359951f2b3253a959030e0bbf3665c75 (commit) via 7216983b2d30504b9a96a17ace0ea4fee6e1db47 (commit) via 84c6de3ee39304d76c68e1ea88bc6d75b34f8daf (commit) via 20df578ed9d61cc5cd9113f72285e139974a344f (commit) via 33498f80a3a279dce0dbfd724289199ed23e63b8 (commit) via eeadbabcf77257ae60f84ce3184ee0b7b34536a0 (commit) via b649aae600aaf20eeb32a09db2c82b53bb98d1f5 (commit) via cc6120f6a3bc5173c88d544c8a4d0d69dfbb046d (commit) from 11509856353904812db40b3b79c006eb1cf9a96e (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit 5ac4d4384a16c008944b5d8e21c2de3ee8ac7739 Merge: 11509856353904812db40b3b79c006eb1cf9a96e 6b2889b9b220f31f0f213c12c0e13749ac8ab0ef Author: Jan Kratochvil Date: Thu Dec 3 17:31:53 2009 +0100 Merge remote branch 'gdb/master' commit 6b2889b9b220f31f0f213c12c0e13749ac8ab0ef Author: Tristan Gingold Date: Thu Dec 3 14:21:20 2009 +0000 2009-12-03 Tristan Gingold * machoread.c (macho_sym_fns): Set sym_segment routine. commit afcf4b3b52e4f176adf703654c23521339664c7a Author: Tristan Gingold Date: Thu Dec 3 14:14:02 2009 +0000 2009-12-03 Tristan Gingold * mach-o.c (bfd_mach_o_make_bfd_section): Force debug flags for all sections of the __DWARF segment. commit 5a6141003c1f04b7838ee99530f89055af9796ca Author: Jan Kratochvil Date: Thu Dec 3 11:40:17 2009 +0000 gdb/testsuite/ Fix spurious false FAILs. * gdb.base/structs.c (chartest): New. (main): Fill-in chartest. * gdb.base/structs.exp (anychar_re, first): New. (start_structs_test): Import global anychar_re and first. New gdb_test call "set print elements 300; ${testfile}" (start_structs_test <$first>): New block. (any): Import global anychar_re. New variable ac. Use ${ac}. commit 2df921352070c2c0f7f17158819b1bb1fd1a1705 Author: Alan Modra Date: Thu Dec 3 08:31:28 2009 +0000 PR ld/11047 * elf32-ppc.c (ppc_elf_relocate_section): Delete __tls_get_addr symbol reference from relocs belonging to calls that are optimized away. * elf64-ppc.c (ppc64_elf_relocate_section): Likewise. commit 4a606a5869bee8d22173d97b6812522ab5ecb05d Author: gdbadmin Date: Thu Dec 3 00:00:33 2009 +0000 *** empty log message *** commit e57f43f7c336779d0fd6f4ce392e1db12b9ac85a Author: Alan Modra Date: Wed Dec 2 23:00:04 2009 +0000 daily update commit 06633d67db82063034e3cc105fa8b5ffdacce9a2 Author: Nick Clifton Date: Wed Dec 2 20:26:30 2009 +0000 PR gas/11013 * arm-dis.c (thumb32_opc): Adjust disassembly of QADD, QDADD, QSUB and QDSUB. * gas/arm/arch7em.d: Update expected disassembly. * gas/arm/thumb32.d: Likewise. * config/tc-arm.c (do_t_simd2): New function. (insns): Use do_t_simd2 for QADD, QDADD, QSUB and QDSUB. commit 37bde896562679ba37be73037ed6472d8979c992 Author: Paul Pluzhnikov Date: Wed Dec 2 19:29:41 2009 +0000 gdb/ChangeLog: 2009-12-02 Paul Pluzhnikov * ada-lang.c (ada_value_assign): Use observer_notify_memory_changed. * valops.c (value_assign): Likewise. * defs.h (deprecated_memory_changed_hook): Remove. * top.c (deprecated_memory_changed_hook): Likewise. * interps.c (clear_interpreter_hooks): Adjust. gdb/gdbtk/ChangeLog: 2009-12-02 Paul Pluzhnikov * generic/gdbtk-hooks.c (gdbtk_memory_changed): Adjust. (gdbtk_add_hooks): Adjust. gdb/doc/ChangeLog: 2009-12-02 Paul Pluzhnikov * observer.texi: New memory_changed observer. commit 85043749c0d9c48a1df339c2abec34666372b926 Author: Doug Evans Date: Wed Dec 2 17:25:55 2009 +0000 * cgen-engine.h: Remove duplicated comment. commit 3dc6acc440f2f2f7591725745d722084af67c4a3 Author: Nick Clifton Date: Wed Dec 2 14:04:15 2009 +0000 PR binutils/11017 * dlltool.c (PAGE_SIZE): Delete. (PAGE_MASK): Provide default definition based on COFF_PAGE_SIZE. Check for DLLTOOL_DEFAULT_MX86_64 and DLLTOOL_DEFAULT_I386. * coff-i386.h (COFF_PAGE_SIZE): Definition moved to coff/i386.h * i386lh (COFF_PAGE_SIZE): Define. * x86_64.h (COFF_PAGE_SIZE): Define. commit f6ead6fc0a658a7afd05ef4ef3a7e87205acb35b Author: Tristan Gingold Date: Wed Dec 2 11:44:34 2009 +0000 2009-12-02 Tristan Gingold * symfile.h (dwarf2_build_psymtabs): Remove mainline parameter in prototype. * dwarf2read.c (dwarf2_build_psymtabs): Remove mainline paramter in definition, simplify code assuming it is always 0. * coffread.c (coff_symfile_read): Adjust call. * elfread.c (elf_symfile_read): Ditto. * machoread.c (macho_symfile_read): Explicitely calls init_psymbol_list if mainline is set. commit 5dd9099a78c68ed7236d05bc68577a5add112a94 Author: Tristan Gingold Date: Wed Dec 2 11:34:36 2009 +0000 2009-12-02 Tristan Gingold * dwarf2read.c (dwarf2_build_psymtabs_easy): Remove mainline parameter. (dwarf2_build_psymtabs_hard): Ditto. (dwarf2_build_psymtabs): Ajust calls. * stabsread.h (elfstab_build_psymtabs): Remove mainline parameter on the prototype. (coffstab_build_psymtabs): Ditto. (stabsect_build_psymtabs): Ditto. * dbxread.c (coffstab_build_psymtabs): Remove mainline parameter on the definition. (elfstab_build_psymtabs): Ditto. (stabsect_build_psymtabs): Ditto. * coffread.c (coff_symfile_read): Adjust call. * elfread.c (elf_symfile_read): Ditto. * somread.c (som_symfile_read): Ditto. commit 74b9a75634ec6c99954a12193f069ecc0ae5f0b8 Author: Tristan Gingold Date: Wed Dec 2 11:16:40 2009 +0000 2009-10-23 Tristan Gingold * charset.c (_initialize_charset): Set a default value to auto_host_charset_name if empty. commit 6377a17b8a49ab4b605ba9a2cc98a5d1a2d21554 Author: gdbadmin Date: Wed Dec 2 00:00:33 2009 +0000 *** empty log message *** commit 7a3d60970ab30647c9c764c592cb37f075aef1e6 Author: Alan Modra Date: Tue Dec 1 23:00:04 2009 +0000 daily update commit 575d4a276cceae9dca086aced83dece6146a5fe6 Author: Joseph Myers Date: Tue Dec 1 22:46:07 2009 +0000 * gcore.c: Include solib.h. (gcore_create_callback): Call solib_keep_data_in_core when considering not saving memory in core file. * solib-svr4.c (svr4_keep_data_in_core): New. (_initialize_svr4_solib): Initialize svr4_so_ops.keep_data_in_core. * solib.c (solib_keep_data_in_core): New. * solib.h (solib_keep_data_in_core): Declare. * solist.h (struct target_so_ops): Add keep_data_in_core. commit 9104dec90808466c32a1ad779f5a5f245f37c0aa Author: Tom Tromey Date: Tue Dec 1 22:15:27 2009 +0000 * gdb.texinfo (Reverse Execution): Fix typo. commit a278b5cd359951f2b3253a959030e0bbf3665c75 Author: gdbadmin Date: Tue Dec 1 00:00:03 2009 +0000 *** empty log message *** commit 7216983b2d30504b9a96a17ace0ea4fee6e1db47 Author: DJ Delorie Date: Mon Nov 30 23:37:39 2009 +0000 * rx/rx.c (decode_opcode): fix SWHILE logic. commit 84c6de3ee39304d76c68e1ea88bc6d75b34f8daf Author: Alan Modra Date: Mon Nov 30 23:00:04 2009 +0000 daily update commit 20df578ed9d61cc5cd9113f72285e139974a344f Author: Jan Kratochvil Date: Mon Nov 30 22:56:34 2009 +0000 gdb/testsuite/ * gdb.base/bigcore.exp (extract_heap): Set $lim limit to 200. commit 33498f80a3a279dce0dbfd724289199ed23e63b8 Author: Jan Kratochvil Date: Mon Nov 30 22:55:27 2009 +0000 gdb/testsuite/ * gdb.base/foll-fork.exp (unpatch child, breakpoint at exit call): Force $srcfile file. * gdb.base/foll-fork.c (callee): Comment out the printf call. commit eeadbabcf77257ae60f84ce3184ee0b7b34536a0 Author: DJ Delorie Date: Mon Nov 30 21:50:19 2009 +0000 merge from gcc commit b649aae600aaf20eeb32a09db2c82b53bb98d1f5 Author: Joseph Myers Date: Mon Nov 30 16:46:35 2009 +0000 config: * largefile.m4 (ACX_LARGEFILE): Require AC_CANONICAL_HOST and AC_CANONICAL_TARGET. bfd: * configure: Regenerate. binutils: * configure: Regenerate. gas: * configure: Regenerate. gdb: * configure: Regenerate. gprof: * configure: Regenerate. ld: * configure: Regenerate. commit cc6120f6a3bc5173c88d544c8a4d0d69dfbb046d Author: Nick Clifton Date: Mon Nov 30 14:45:29 2009 +0000 PR gas/11030 * m68k-opc.c (m68k_opcodes): Allow the STLDSR instruction on the Coldfire ISA A+. ----------------------------------------------------------------------- Summary of changes: bfd/ChangeLog | 22 +++ bfd/coff-i386.c | 12 +- bfd/configure | 5 + bfd/elf32-ppc.c | 10 +- bfd/elf64-ppc.c | 9 +- bfd/mach-o.c | 9 +- bfd/version.h | 2 +- config/ChangeLog | 5 + config/largefile.m4 | 5 + gdb/ChangeLog | 61 +++++++++ gdb/ada-lang.c | 5 +- gdb/charset.c | 5 +- gdb/coffread.c | 3 +- gdb/configure | 248 +++++++++++++++++++--------------- gdb/dbxread.c | 13 +-- gdb/defs.h | 1 - gdb/doc/ChangeLog | 8 + gdb/doc/gdb.texinfo | 2 +- gdb/doc/observer.texi | 5 + gdb/dwarf2read.c | 18 +-- gdb/elfread.c | 3 +- gdb/gcore.c | 3 +- gdb/interps.c | 1 - gdb/machoread.c | 9 +- gdb/solib-svr4.c | 45 ++++++ gdb/solib.c | 17 +++ gdb/solib.h | 8 + gdb/solist.h | 8 + gdb/somread.c | 2 +- gdb/stabsread.h | 7 +- gdb/symfile.h | 2 +- gdb/testsuite/ChangeLog | 21 +++ gdb/testsuite/gdb.base/bigcore.exp | 2 +- gdb/testsuite/gdb.base/foll-fork.c | 3 +- gdb/testsuite/gdb.base/foll-fork.exp | 3 +- gdb/testsuite/gdb.base/structs.c | 6 + gdb/testsuite/gdb.base/structs.exp | 60 ++++++--- gdb/top.c | 3 - gdb/valops.c | 4 +- gdb/version.in | 2 +- include/coff/ChangeLog | 6 + include/coff/i386.h | 28 ++-- include/coff/x86_64.h | 4 +- libdecnumber/ChangeLog | 5 + libdecnumber/decContext.c | 4 +- opcodes/ChangeLog | 13 ++ opcodes/arm-dis.c | 8 +- opcodes/m68k-opc.c | 2 +- sim/common/ChangeLog | 4 + sim/common/cgen-engine.h | 12 -- sim/rx/ChangeLog | 4 + sim/rx/rx.c | 6 +- 52 files changed, 515 insertions(+), 238 deletions(-) First 500 lines of diff: diff --git a/bfd/ChangeLog b/bfd/ChangeLog index ce9ce06..00ae4cf 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,25 @@ +2009-12-03 Tristan Gingold + + * mach-o.c (bfd_mach_o_make_bfd_section): Force debug flags for + all sections of the __DWARF segment. + +2009-12-03 Alan Modra + + PR ld/11047 + * elf32-ppc.c (ppc_elf_relocate_section): Delete __tls_get_addr + symbol reference from relocs belonging to calls that are + optimized away. + * elf64-ppc.c (ppc64_elf_relocate_section): Likewise. + +2009-12-02 Jerker Bäck + + PR binutils/11017 + * coff-i386.h (COFF_PAGE_SIZE): Definition moved to coff/i386.h + +2009-11-30 Joseph Myers + + * configure: Regenerate. + 2009-11-26 Per Øyvind Karlsen * plugin.c (bfd_plugin_bfd_copy_link_hash_symbol_type): Define. diff --git a/bfd/coff-i386.c b/bfd/coff-i386.c index 9a763d5..e512b3f 100644 --- a/bfd/coff-i386.c +++ b/bfd/coff-i386.c @@ -1,6 +1,6 @@ /* BFD back-end for Intel 386 COFF files. Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, - 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008 + 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009 Free Software Foundation, Inc. Written by Cygnus Support. @@ -44,13 +44,13 @@ #include "libcoff.h" static bfd_reloc_status_type coff_i386_reloc - PARAMS ((bfd *, arelent *, asymbol *, PTR, asection *, bfd *, char **)); + (bfd *, arelent *, asymbol *, PTR, asection *, bfd *, char **); static reloc_howto_type *coff_i386_rtype_to_howto - PARAMS ((bfd *, asection *, struct internal_reloc *, - struct coff_link_hash_entry *, struct internal_syment *, - bfd_vma *)); + (bfd *, asection *, struct internal_reloc *, + struct coff_link_hash_entry *, struct internal_syment *, + bfd_vma *); static reloc_howto_type *coff_i386_reloc_type_lookup - PARAMS ((bfd *, bfd_reloc_code_real_type)); + (bfd *, bfd_reloc_code_real_type); #define COFF_DEFAULT_SECTION_ALIGNMENT_POWER (2) /* The page size is a guess based on ELF. */ diff --git a/bfd/configure b/bfd/configure index d29e79b..d5c3426 100755 --- a/bfd/configure +++ b/bfd/configure @@ -11633,6 +11633,11 @@ CC="$lt_save_CC" # AC_PLUGINS setting $plugins is called by ACX_LARGEFILE. +# The tests for host and target for $enable_largefile require +# canonical names. + + + # As the $enable_largefile decision depends on --enable-plugins we must set it # even in directories otherwise not depending on the $plugins option. diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c index e4fdc1e..976dd37 100644 --- a/bfd/elf32-ppc.c +++ b/bfd/elf32-ppc.c @@ -6929,9 +6929,7 @@ ppc_elf_relocate_section (bfd *output_bfd, insn1 |= 32 << 26; /* lwz */ if (offset != (bfd_vma) -1) { - rel[1].r_info - = ELF32_R_INFO (ELF32_R_SYM (rel[1].r_info), - R_PPC_NONE); + rel[1].r_info = ELF32_R_INFO (STN_UNDEF, R_PPC_NONE); insn2 = 0x7c631214; /* add 3,3,2 */ bfd_put_32 (output_bfd, insn2, contents + offset); } @@ -7005,8 +7003,7 @@ ppc_elf_relocate_section (bfd *output_bfd, bfd_put_32 (output_bfd, insn2, contents + offset); /* Zap the reloc on the _tls_get_addr call too. */ BFD_ASSERT (offset == rel[1].r_offset); - rel[1].r_info = ELF32_R_INFO (ELF32_R_SYM (rel[1].r_info), - R_PPC_NONE); + rel[1].r_info = ELF32_R_INFO (STN_UNDEF, R_PPC_NONE); } break; @@ -7035,8 +7032,7 @@ ppc_elf_relocate_section (bfd *output_bfd, contents + rel->r_offset - d_offset); /* Zap the reloc on the _tls_get_addr call too. */ BFD_ASSERT (rel->r_offset - d_offset == rel[1].r_offset); - rel[1].r_info = ELF32_R_INFO (ELF32_R_SYM (rel[1].r_info), - R_PPC_NONE); + rel[1].r_info = ELF32_R_INFO (STN_UNDEF, R_PPC_NONE); rel--; continue; } diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index e748a41..94f89c5 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -11102,8 +11102,7 @@ ppc64_elf_relocate_section (bfd *output_bfd, insn1 |= 58 << 26; /* ld */ insn2 = 0x7c636a14; /* add 3,3,13 */ if (offset != (bfd_vma) -1) - rel[1].r_info = ELF64_R_INFO (ELF64_R_SYM (rel[1].r_info), - R_PPC64_NONE); + rel[1].r_info = ELF64_R_INFO (STN_UNDEF, R_PPC64_NONE); if ((tls_mask & TLS_EXPLICIT) == 0) r_type = (((r_type - (R_PPC64_GOT_TLSGD16 & 3)) & 3) + R_PPC64_GOT_TPREL16_DS); @@ -11202,8 +11201,7 @@ ppc64_elf_relocate_section (bfd *output_bfd, rel->r_info = ELF64_R_INFO (r_symndx, r_type); /* Zap the reloc on the _tls_get_addr call too. */ BFD_ASSERT (offset == rel[1].r_offset); - rel[1].r_info = ELF64_R_INFO (ELF64_R_SYM (rel[1].r_info), - R_PPC64_NONE); + rel[1].r_info = ELF64_R_INFO (STN_UNDEF, R_PPC64_NONE); insn3 = bfd_get_32 (output_bfd, contents + offset + 4); if (insn3 == NOP @@ -11248,8 +11246,7 @@ ppc64_elf_relocate_section (bfd *output_bfd, rel->r_offset = offset + d_offset; /* Zap the reloc on the _tls_get_addr call too. */ BFD_ASSERT (offset == rel[1].r_offset); - rel[1].r_info = ELF64_R_INFO (ELF64_R_SYM (rel[1].r_info), - R_PPC64_NONE); + rel[1].r_info = ELF64_R_INFO (STN_UNDEF, R_PPC64_NONE); insn2 = 0x38630000; /* addi 3,3,0 */ insn3 = bfd_get_32 (output_bfd, contents + offset + 4); diff --git a/bfd/mach-o.c b/bfd/mach-o.c index 641fd9b..766fb3d 100644 --- a/bfd/mach-o.c +++ b/bfd/mach-o.c @@ -1480,8 +1480,13 @@ bfd_mach_o_make_bfd_section (bfd *abfd, bfd_mach_o_section *section, if (sname == NULL) return NULL; - if (section->flags & BFD_MACH_O_S_ATTR_DEBUG) - flags = SEC_HAS_CONTENTS | SEC_DEBUGGING; + if ((section->flags & BFD_MACH_O_S_ATTR_DEBUG) + || !strcmp (section->segname, "__DWARF")) + { + /* Force flags for dwarf sections. This looks weird but dsym files + have no flags for them and this is important for gdb. */ + flags = SEC_HAS_CONTENTS | SEC_DEBUGGING; + } else { flags = SEC_ALLOC; diff --git a/bfd/version.h b/bfd/version.h index 7acd2db..2711858 100644 --- a/bfd/version.h +++ b/bfd/version.h @@ -1,4 +1,4 @@ -#define BFD_VERSION_DATE 20091130 +#define BFD_VERSION_DATE 20091203 #define BFD_VERSION @bfd_version@ #define BFD_VERSION_STRING @bfd_version_package@ @bfd_version_string@ #define REPORT_BUGS_TO @report_bugs_to@ diff --git a/config/ChangeLog b/config/ChangeLog index aa716ea..9e524fc 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,8 @@ +2009-11-30 Joseph Myers + + * largefile.m4 (ACX_LARGEFILE): Require AC_CANONICAL_HOST and + AC_CANONICAL_TARGET. + 2009-11-24 Joel Brobecker * zlib.m4: New file. diff --git a/config/largefile.m4 b/config/largefile.m4 index 9449b12..4a88fd7 100644 --- a/config/largefile.m4 +++ b/config/largefile.m4 @@ -5,6 +5,11 @@ AC_DEFUN([ACX_LARGEFILE],[dnl +# The tests for host and target for $enable_largefile require +# canonical names. +AC_REQUIRE([AC_CANONICAL_HOST]) +AC_REQUIRE([AC_CANONICAL_TARGET]) + # As the $enable_largefile decision depends on --enable-plugins we must set it # even in directories otherwise not depending on the $plugins option. diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b6c81d1..2175f8c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,64 @@ +2009-12-03 Tristan Gingold + + * machoread.c (macho_sym_fns): Set sym_segment routine. + +2009-12-02 Paul Pluzhnikov + + * ada-lang.c (ada_value_assign): Use observer_notify_memory_changed. + * valops.c (value_assign): Likewise. + * defs.h (deprecated_memory_changed_hook): Remove. + * top.c (deprecated_memory_changed_hook): Likewise. + * interps.c (clear_interpreter_hooks): Adjust. + +2009-12-02 Tristan Gingold + + * symfile.h (dwarf2_build_psymtabs): Remove mainline parameter in + prototype. + * dwarf2read.c (dwarf2_build_psymtabs): Remove mainline paramter in + definition, simplify code assuming it is always 0. + * coffread.c (coff_symfile_read): Adjust call. + * elfread.c (elf_symfile_read): Ditto. + * machoread.c (macho_symfile_read): Explicitely calls + init_psymbol_list if mainline is set. + +2009-12-02 Tristan Gingold + + * dwarf2read.c (dwarf2_build_psymtabs_easy): Remove mainline parameter. + (dwarf2_build_psymtabs_hard): Ditto. + (dwarf2_build_psymtabs): Ajust calls. + * stabsread.h (elfstab_build_psymtabs): Remove mainline parameter on + the prototype. + (coffstab_build_psymtabs): Ditto. + (stabsect_build_psymtabs): Ditto. + * dbxread.c (coffstab_build_psymtabs): Remove mainline parameter on + the definition. + (elfstab_build_psymtabs): Ditto. + (stabsect_build_psymtabs): Ditto. + * coffread.c (coff_symfile_read): Adjust call. + * elfread.c (elf_symfile_read): Ditto. + * somread.c (som_symfile_read): Ditto. + +2009-12-02 Tristan Gingold + + * charset.c (_initialize_charset): Set a default value to + auto_host_charset_name if empty. + +2009-12-01 Joseph Myers + + * gcore.c: Include solib.h. + (gcore_create_callback): Call solib_keep_data_in_core when + considering not saving memory in core file. + * solib-svr4.c (svr4_keep_data_in_core): New. + (_initialize_svr4_solib): Initialize + svr4_so_ops.keep_data_in_core. + * solib.c (solib_keep_data_in_core): New. + * solib.h (solib_keep_data_in_core): Declare. + * solist.h (struct target_so_ops): Add keep_data_in_core. + +2009-11-30 Joseph Myers + + * configure: Regenerate. + 2009-11-28 Vladimir Prus * target.c (target_terminal_inferior): Use target_can_async_p, not diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 9594d6d..599b8d6 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -2289,9 +2289,8 @@ ada_value_assign (struct value *toval, struct value *fromval) move_bits (buffer, value_bitpos (toval), value_contents (fromval), 0, bits, 0); write_memory (to_addr, buffer, len); - if (deprecated_memory_changed_hook) - deprecated_memory_changed_hook (to_addr, len); - + observer_notify_memory_changed (to_addr, len, buffer); + val = value_copy (toval); memcpy (value_contents_raw (val), value_contents (fromval), TYPE_LENGTH (type)); diff --git a/gdb/charset.c b/gdb/charset.c index f5281ed..4bc8894 100644 --- a/gdb/charset.c +++ b/gdb/charset.c @@ -818,8 +818,9 @@ _initialize_charset (void) #ifdef HAVE_LANGINFO_CODESET auto_host_charset_name = nl_langinfo (CODESET); /* Solaris will return `646' here -- but the Solaris iconv then - does not accept this. */ - if (!strcmp (auto_host_charset_name, "646")) + does not accept this. Darwin (and maybe FreeBSD) may return "" here, + which GNU libiconv doesn't like (infinite loop). */ + if (!strcmp (auto_host_charset_name, "646") || !*auto_host_charset_name) auto_host_charset_name = "ASCII"; target_charset_name = auto_host_charset_name; diff --git a/gdb/coffread.c b/gdb/coffread.c index 98c563a..84edfc5 100644 --- a/gdb/coffread.c +++ b/gdb/coffread.c @@ -634,7 +634,6 @@ coff_symfile_read (struct objfile *objfile, int mainline) stabstrsize = bfd_section_size (abfd, info->stabstrsect); coffstab_build_psymtabs (objfile, - mainline, info->textaddr, info->textsize, info->stabsects, info->stabstrsect->filepos, stabstrsize); @@ -642,7 +641,7 @@ coff_symfile_read (struct objfile *objfile, int mainline) if (dwarf2_has_info (objfile)) { /* DWARF2 sections. */ - dwarf2_build_psymtabs (objfile, mainline); + dwarf2_build_psymtabs (objfile); } dwarf2_build_frame_info (objfile); diff --git a/gdb/configure b/gdb/configure index b4492e7..e74b64f 100755 --- a/gdb/configure +++ b/gdb/configure @@ -4087,6 +4087,144 @@ fi +ac_aux_dir= +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do + for ac_t in install-sh install.sh shtool; do + if test -f "$ac_dir/$ac_t"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/$ac_t -c" + break 2 + fi + done +done +if test -z "$ac_aux_dir"; then + as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 +fi + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. + + +# Make sure we can run config.sub. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || + as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +$as_echo_n "checking build system type... " >&6; } +if test "${ac_cv_build+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_build_alias=$build_alias +test "x$ac_build_alias" = x && + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` +test "x$ac_build_alias" = x && + as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || + as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +$as_echo "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +$as_echo_n "checking host system type... " >&6; } +if test "${ac_cv_host+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "x$host_alias" = x; then + ac_cv_host=$ac_cv_build +else + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || + as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +$as_echo "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 +$as_echo_n "checking target system type... " >&6; } +if test "${ac_cv_target+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "x$target_alias" = x; then + ac_cv_target=$ac_cv_host +else + ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || + as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 +$as_echo "$ac_cv_target" >&6; } +case $ac_cv_target in +*-*-*) ;; +*) as_fn_error "invalid value of canonical target" "$LINENO" 5;; +esac +target=$ac_cv_target +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_target +shift +target_cpu=$1 +target_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +target_os=$* +IFS=$ac_save_IFS +case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac + + +# The aliases save the names the user supplied, while $host etc. +# will get canonicalized. +test -n "$target_alias" && + test "$program_prefix$program_suffix$program_transform_name" = \ + NONENONEs,x,x, && + program_prefix=${target_alias}- + +# The tests for host and target for $enable_largefile require +# canonical names. + + # As the $enable_largefile decision depends on --enable-plugins we must set it # even in directories otherwise not depending on the $plugins option. @@ -4423,116 +4561,6 @@ ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. -# Make sure we can run config.sub. -$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || - as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 -$as_echo_n "checking build system type... " >&6; } -if test "${ac_cv_build+set}" = set; then : - $as_echo_n "(cached) " >&6 -else - ac_build_alias=$build_alias -test "x$ac_build_alias" = x && - ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` -test "x$ac_build_alias" = x && - as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 -ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || - as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 -$as_echo "$ac_cv_build" >&6; } hooks/post-receive -- Repository for Project Archer.