public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
From: swagiaal@sourceware.org
To: archer-commits@sourceware.org
Subject: [SCM]  master: Merge remote branch 'gdb/master'
Date: Wed, 01 Sep 2010 15:29:00 -0000	[thread overview]
Message-ID: <20100901152919.1495.qmail@sourceware.org> (raw)

The branch, master has been updated
       via  11e5303a1692a63cd2e17604abc7742561388af6 (commit)
       via  704aecbf881712c85309380d667f1efbb2382d2b (commit)
       via  5199ead275c904353432135fbb07c7ecafe8e9a5 (commit)
       via  2a8dee40e26adadd6565a0b046ae89b1d59cb8eb (commit)
       via  ee6f8e04736482d5a77b9b03b53e523e76b44563 (commit)
       via  881fc314b01fe886c0642a0cbb1a09f78d85e1cf (commit)
       via  92a09fd6ac19834a5f7c6b1b952beda46c725f0d (commit)
       via  abd0f09d595b12d4b7fd6912d307ec2bf31abdbc (commit)
       via  5205a74e90b0a2df6371e33039f908e0cc65a101 (commit)
       via  3cf2892284020e27403d7e60cee9b2654a154cc4 (commit)
       via  2aff8d5fea40a80b77a1c26e866170c7acdf2051 (commit)
       via  a5c45328d359d9c2f67b19618b7e3b8634d5777e (commit)
       via  acf64e9e66d9ee7fd0cb1536fd8c9940c6728112 (commit)
       via  2d1d4ca5791875896194f625d7be0261353b8730 (commit)
       via  0f12b4e58217ed2d8c085cf3a0328d1d8e014e9d (commit)
       via  fb846e72510040325bffd8f755180ea0025108dc (commit)
       via  45663fac93d772deb093c3332bb8f2486713ec06 (commit)
       via  cc2b6369c797e6f13b0c757a9663d591a408ea8f (commit)
       via  ff30927367850cba3d7cc7a061acf74c72c1fc79 (commit)
       via  0c69efc4cc258a5ac7e5eae58d740cd265d45831 (commit)
       via  b92971c9821da313730ccdcf75cb73633f041e4d (commit)
       via  c74224bac8b9a09261c38227ad89db82943e61ab (commit)
       via  94573bb92d84fcd2a7197eaa28ad287a63a9050f (commit)
       via  906fff3db29ecc9d0ed78a5df7caa1b95eb22792 (commit)
       via  18a6250849038236a8ac938dff2babf1d9b5084e (commit)
       via  65bc9f860f7c7fd3f1b502a794e14f3bc4ccf5c9 (commit)
       via  ec4723c73bb1432c5f00453f85e4175dafae21b9 (commit)
       via  e4f80798d60e87ac96ad560095112670e9b301ab (commit)
       via  c09f2e4670399aff5b8477bf71e297de96a918df (commit)
       via  c77a1a1c33daca25fd78559d0235851b2d92e301 (commit)
       via  2331390497b6478e779b54d1733fadd9d1b92fb8 (commit)
       via  a9f7dcd03f0f5914d4b30d8dd49628166e9bbe80 (commit)
       via  6d770a24a208212ba657a578f0ebf0b0729d44f5 (commit)
       via  ed16bf299a53c403d53c35a34335495b412a01bd (commit)
       via  938e334dd2164687fdfc4c6ca7269c488bf68329 (commit)
       via  c4fecec8501952baaa43bd270d22eb44dfa90155 (commit)
       via  428448a778dec10affa5dc60f511185f5e6c5d0a (commit)
       via  e9b58810822847b48c0dc6e20e3c9fbe86df2c3c (commit)
       via  70bcf84f9f23e660efadcb2326b3ba44864a3763 (commit)
       via  9a636a895cc433584d90515e57142c5d29fd7492 (commit)
       via  ceb2066155b8706520e380f2c97badbef68b97ba (commit)
       via  ecf04df8cde7ab1a0fd92a0379640b479feb99d4 (commit)
       via  529df7aae72eac86e1d5372046ec56ec6cc33145 (commit)
       via  782a8d5b4b4bb12b46db983d5fe5c8950a51ab4f (commit)
       via  29807fceccfd80ae6567634dfabfcd814383693e (commit)
       via  11653928654450f7773cf69b7f636aba94d57a39 (commit)
       via  b8bf95f37125d189cd4554dfeabc331dddc907a2 (commit)
       via  77164cf356e522ffa80fc3d85de62355d3feaf65 (commit)
       via  e52a28b29c8fe95a13a0b7a58d8e3a880ba21155 (commit)
       via  8cc55d978e6804f76e49d4b1acd7d45d817155bf (commit)
       via  2291236d08ee9692fd0611ee1321c309ef241f9e (commit)
       via  864973e52f730c54999fabe9276f6f0b05bd4720 (commit)
       via  5dc21937d50c07ec53a800a23ff5a9903c2d36ed (commit)
       via  6ff6829cdd4567d4fa8e03375aa3b706ae906718 (commit)
       via  f69a4d66715f75f8401571c4d9a2d584edf0a8f0 (commit)
       via  99bcc6f7301d7f65f6eb97b6381eeb885c7b9528 (commit)
       via  937cb923ef520b63aeff0d4b971abb29af05d5b0 (commit)
       via  b1f8e8c83102322b4f0a234499c9849708129d9b (commit)
       via  948adb64dd234f84cd29e965d5fdb048255f6ef5 (commit)
       via  4751ac68d82def483f8b35eca133da78db09a12a (commit)
       via  ef1627ca9c43016d2da071ed5ba61fc1299505dc (commit)
       via  72c9a2fc4ef8ea42ac73847865c46bae583c1c88 (commit)
       via  57c1cfefed9d946b9bf5849587cca013c644ddff (commit)
       via  e87d6c313d172c51a3e9fb11120924ca55d4b0d7 (commit)
       via  fdf9046b682ee56a8f079ac0f11a31934b50f111 (commit)
       via  74c37a5632d5473c7e76d73e9b6440d477e248f0 (commit)
       via  53ac205615a3d401754ca890cdb88e7a26b239db (commit)
       via  ea31146e178b2351acba56bf3585fcd9b89456db (commit)
       via  38f11f42e673260f2f3fc34746f76a45accd279c (commit)
       via  62c7b831f7e55a5c3689209f65d80d119794b7e2 (commit)
       via  0c069cacfdf534dc23c8b43d60364bee267e802d (commit)
       via  fbcdb325484fb52ccedd03b65603c3f01a0783a2 (commit)
       via  d0883c92e9558e179f737a08e7648ad0ab4881fe (commit)
       via  908f6fdbadc2a5c22d48d350aa8799bfe4439b3d (commit)
       via  de14cf56e232421829aa0eddeec5cb0b12fa7eb6 (commit)
       via  6a4e2f261b6af21cf465e203e2b098aba650bdb5 (commit)
       via  935370feb01920208ec5c099f3130d3f1a30bbeb (commit)
       via  5ffbb8cc56028dd2e4fbfff44a35e07b592b5b09 (commit)
       via  815ca023125e4dc2e90938816c56e7ea1089191a (commit)
       via  ebc2a8081dfb5113218d1d46e74d0325988f8744 (commit)
       via  90f5af282d2955c84854332e42653d5e7c26bb7f (commit)
       via  bae23351f8599a031ac17a6aebf44ef87038b269 (commit)
       via  f3e7fc895444d040bfe19f001e96bf54b753253b (commit)
      from  82a33011e68dd5e799925f98b5552ac14e152fc6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit 11e5303a1692a63cd2e17604abc7742561388af6
Merge: 82a3301 704aecb
Author: Sami Wagiaalla <swagiaal@redhat.com>
Date:   Wed Sep 1 11:29:22 2010 -0400

    Merge remote branch 'gdb/master'

commit 704aecbf881712c85309380d667f1efbb2382d2b
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Wed Sep 1 13:51:34 2010 +0000

    	* netbsd-core.c (netbsd_core_core_file_pid): Renamed to ...
    	(netbsd_core_file_pid): ... this.

commit 5199ead275c904353432135fbb07c7ecafe8e9a5
Author: Tristan Gingold <gingold@adacore.com>
Date:   Wed Sep 1 07:50:47 2010 +0000

    2010-09-01  Tristan Gingold  <gingold@adacore.com>
    
    	* coffcode.h (coff_slurp_line_table): Add a cast.
    	(coff_slurp_reloc_table): Ditto.

commit 2a8dee40e26adadd6565a0b046ae89b1d59cb8eb
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Wed Sep 1 01:56:04 2010 +0000

    Compile memmem.o without -Werror.
    
    This reproduces the same approach as in GDB to allow us to build
    specific files without -Werror.
    
    gdb/gdbserver/ChangeLog:
    
            * Makefile.in (INTERNAL_CFLAGS_BASE): New variable. Extracted
            from INTERNAL_CFLAGS.
            (INTERNAL_WARN_CFLAGS): New variable.
            (INTERNAL_CFLAGS): Adjust, using INTERNAL_WARN_CFLAGS.

commit ee6f8e04736482d5a77b9b03b53e523e76b44563
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Wed Sep 1 01:53:42 2010 +0000

    use xsnprintf instead of snprintf.
    
    snprintf is not available on LynxOS, so I changed the calls to snprintf
    to calls to xsnprintf, which should be strictly equivalent.
    
    gdb/gdbserver/ChangeLog:
    
            * utils.c (xsnprintf): Make non-static.
            * server.h: Add xsnprintf declaration.
            * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
            replace calls to snprintf by calls to xsnprintf throughout.

commit 881fc314b01fe886c0642a0cbb1a09f78d85e1cf
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Wed Sep 1 01:51:05 2010 +0000

    include alloca.h if available.
    
    On LynxOS, alloca is defined in allocal.h.  This fixes one warning that
    occurs when building GDBserver for LynxOS.
    
    gdb/gdbserver/ChangeLog:
    
            * configure.ac: Add configure check for alloca.
            * configure, config.in: Regenerate.
            * server.h: Include alloca.h if it exists.
            * gdbreplay.c: Include alloca.h if it exists.

commit 92a09fd6ac19834a5f7c6b1b952beda46c725f0d
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Wed Sep 1 00:00:34 2010 +0000

    *** empty log message ***

commit abd0f09d595b12d4b7fd6912d307ec2bf31abdbc
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Wed Sep 1 00:00:05 2010 +0000

    daily update

commit 5205a74e90b0a2df6371e33039f908e0cc65a101
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Tue Aug 31 21:56:57 2010 +0000

    Fix "pushw imm16" for x86-64 disassembler.
    
    gas/testsuite/
    
    2010-08-31  H.J. Lu  <hongjiu.lu@intel.com>
    
    	PR binutils/11960
    	* gas/i386/opcode-intel.d: Updated.
    	* gas/i386/x86-64-opcode.d: Likewise.
    
    	* gas/i386/x86-64-opcode.s: Add a "pushw imm16" test.
    
    opcodes/
    
    2010-08-31  H.J. Lu  <hongjiu.lu@intel.com>
    
    	PR binutils/11960
    	* i386-dis.c (sIv): New.
    	(dis386): Replace Iq with sIv on "pushT".
    	(reg_table): Replace T with {T|} on callT, JcallT, jmpT and JjmpT.
    	(x86_64_table): Replace {T|}/{P|} with P.
    	(putop): Add 'w' to 'T'/'P' if needed for Intel syntax.
    	(OP_sI): Update v_mode.  Remove w_mode.

commit 3cf2892284020e27403d7e60cee9b2654a154cc4
Author: swagiaal <swagiaal>
Date:   Tue Aug 31 20:10:42 2010 +0000

    Create and use a specialized bcache type for psymbols
    
    2010-08-31  Sami Wagiaalla  <swagiaal@redhat.com>
    
    	* symfile.c (reread_symbols): Use psymbol_bcache_free, and
    	psymbol_bcache_init.
    	* psymtab.h (psymbol_bcache_init): New function prototype.
    	(psymbol_bcache_free): New function prototype.
    	(psymbol_bcache_get_bcache): New function prototype.
    	* psymtab.c (psymbol_bcache_init): New function.
    	(psymbol_bcache_free): New function.
    	(psymbol_bcache_full): New function.
    	(psymbol_bcache_get_bcache): New function.
    	(add_psymbol_to_bcache): use psymbol_bcache_full.
    	* objfiles.h (psymbol_cache): Change type of psymbol_cache to
    	psymbol_bcache.
    	* symmisc.c (print_symbol_bcache_statistics): Updated.
    	(print_objfile_statistics): Updated.
    	* objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
    	psymbol_cache.
    	(free_objfile): Use psymbol_bcache_free.

commit 2aff8d5fea40a80b77a1c26e866170c7acdf2051
Author: Tom Tromey <tromey@redhat.com>
Date:   Tue Aug 31 20:03:20 2010 +0000

    	PR c++/11961:
    	* dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
    	Don't set TYPE_NAME on the type.

commit a5c45328d359d9c2f67b19618b7e3b8634d5777e
Author: Michael Snyder <msnyder@specifix.com>
Date:   Tue Aug 31 19:31:00 2010 +0000

    2010-08-31  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>
    
    	* infrun.c (set_exec_direction_func): Error out if target does not
    	support reverse execution.

commit acf64e9e66d9ee7fd0cb1536fd8c9940c6728112
Author: Doug Evans <dje@google.com>
Date:   Tue Aug 31 18:40:09 2010 +0000

    	* gdb.dwarf2/dw4-sig-types.exp: Use .x for executable name.

commit 2d1d4ca5791875896194f625d7be0261353b8730
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Aug 31 18:11:48 2010 +0000

    gdb/
    	Make linux_get_siginfo_type `type *' unique.
    	* linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
    	(init_linux_gdbarch_data, get_linux_gdbarch_data): New.
    	(linux_get_siginfo_type): New variable linux_gdbarch_data.  Initialize
    	it.  Use linux_gdbarch_data->siginfo_type as a persistent storage.
    	(_initialize_linux_tdep): New.

commit 0f12b4e58217ed2d8c085cf3a0328d1d8e014e9d
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Aug 31 18:08:42 2010 +0000

    gdb/
    	Code cleanup.
    	* defs.h (find_memory_region_ftype): New typedef.
    	(exec_set_find_memory_regions): Use it.
    	* exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
    	* fbsd-nat.c (fbsd_find_memory_regions): Likewise.
    	* gcore.c (objfile_find_memory_regions): Likewise.
    	* gnu-nat.c (gnu_find_memory_regions): Likewise.
    	* linux-nat.c (linux_nat_find_memory_regions): Likewise.
    	* procfs.c (iterate_over_mappings_cb_ftype): Remove.
    	(iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
    	find_memory_region_ftype.
    	(insert_dbx_link_bpt_in_region): Likewise.
    	(iterate_over_mappings): Likewise.  Drop the comment part about the
    	function prototype.
    	(find_memory_regions_callback): Use find_memory_region_ftype.
    	(proc_find_memory_regions): Likewise.
    	(info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
    	find_memory_region_ftype.
    	* target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
    	* target.h (struct target_ops) <to_find_memory_regions>: Likewise.

commit fb846e72510040325bffd8f755180ea0025108dc
Author: swagiaal <swagiaal>
Date:   Tue Aug 31 17:26:06 2010 +0000

    Enable custom bcache hash function.
    
    2010-08-25  Sami Wagiaalla  <swagiaal@redhat.com>
    
    	* psymtab.c (add_psymbol_to_bcache): Remove 'static' from
    	'static partial_symbol psymbol'.
    	(psymbol_hash): New function.
    	(psymbol_compare): New function.
    	* bcache.c (hash_continue): New.
    	(hash): Use hash_continue.
    	* bcache.c: Add hash_function and compare_function
    	pointers to bcache struct.
    	(bcache_full): Use bcache->hash_function, and
    	bcache->compare_function.
    	(bcache_compare): New function.
    	(bcache_xmalloc): Take hash_function and
    	compare_function arguments and initialize the
    	bcach's pointers.
    	Updated comment.
    	* objfiles.c (allocate_objfile): Updated.
    	* symfile.c (reread_symbols): Updated.
    	* python/py-type.c (typy_richcompare): Updated.

commit 45663fac93d772deb093c3332bb8f2486713ec06
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Tue Aug 31 14:45:41 2010 +0000

    Remove an extra "@item".
    
    2010-08-31  H.J. Lu  <hongjiu.lu@intel.com>
    
    	* gdb.texinfo (i386 Features): Remove an extra "@item".

commit cc2b6369c797e6f13b0c757a9663d591a408ea8f
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Tue Aug 31 00:00:34 2010 +0000

    *** empty log message ***

commit ff30927367850cba3d7cc7a061acf74c72c1fc79
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Tue Aug 31 00:00:05 2010 +0000

    daily update

commit 0c69efc4cc258a5ac7e5eae58d740cd265d45831
Author: Tom Tromey <tromey@redhat.com>
Date:   Mon Aug 30 20:28:27 2010 +0000

    gdb
    2010-08-30  Andre Poenitz  <andre.poenitz@nokia.com>
    	    Tom Tromey  <tromey@redhat.com>
    
    	PR python/11792:
    	* python/py-value.c (valpy_get_dynamic_type): New function.
    	(value_object_getset): Add "dynamic_type".
    	(valpy_get_type): Fail on error.
    gdb/doc
    	PR python/11792:
    	* gdb.texinfo (Values From Inferior): Document dynamic_type.
    gdb/testsuite
    	PR python/11792:
    	* gdb.python/py-value.exp (test_subscript_regression): Add
    	dynamic_type test.

commit b92971c9821da313730ccdcf75cb73633f041e4d
Author: Daniel Jacobowitz <dan@debian.org>
Date:   Mon Aug 30 17:38:10 2010 +0000

    	* gdb.cp/cpexprs.exp (test_breakpoint): Continue to test_function
    	instead of running to main.  Do not test the main function.
    	* gdb/testsuite/gdb.cp/cpexprs.cc (main): Rename to test_function.
    	Add new main.

commit c74224bac8b9a09261c38227ad89db82943e61ab
Author: qiyao <qiyao>
Date:   Mon Aug 30 15:26:28 2010 +0000

    2010-08-30  Yao Qi  <yao@codesourcery.com>
    
    	* arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
    	(arm_linux_syscall_next_pc): New.
    	(arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
    	(arm_linux_init_abi): Initialize syscall_next_pc.
    	* arm-tdep.c (thumb_get_next_pc_raw):  Get next pc of SWI in Thumb mode.
    	(arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
    	* arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
    	Declare arm_frame_is_thumb.

commit 94573bb92d84fcd2a7197eaa28ad287a63a9050f
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Aug 30 09:49:11 2010 +0000

    gdb/
    	Code cleanup.
    	* breakpoint.c (bpstat_alloc): Remove unused prototype.
    	(bpstat_alloc): Change parameters cbs to bs_link_pointer.  Adjust the
    	code.
    	(bpstat_stop_status): Change root_bs into bs_head and bs_link.  Adjust
    	calls of bpstat_alloc.  Remove explicit bs chain termination.

commit 906fff3db29ecc9d0ed78a5df7caa1b95eb22792
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Mon Aug 30 09:35:25 2010 +0000

    	* cisco-core.c (cisco_core_file_pid): Define.

commit 18a6250849038236a8ac938dff2babf1d9b5084e
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Mon Aug 30 06:01:19 2010 +0000

    	PR binutils/11953
    	* elf.c (copy_elf_program_header): Calculate map->header_size
    	from lowest_section, not first_section.  Validate program
    	header p_paddr against section lma.  Find lowest_section in
    	second loop over headers.

commit 65bc9f860f7c7fd3f1b502a794e14f3bc4ccf5c9
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Mon Aug 30 00:00:34 2010 +0000

    *** empty log message ***

commit ec4723c73bb1432c5f00453f85e4175dafae21b9
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Mon Aug 30 00:00:05 2010 +0000

    daily update

commit e4f80798d60e87ac96ad560095112670e9b301ab
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Sun Aug 29 00:00:06 2010 +0000

    daily update

commit c09f2e4670399aff5b8477bf71e297de96a918df
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Sun Aug 29 00:00:03 2010 +0000

    *** empty log message ***

commit c77a1a1c33daca25fd78559d0235851b2d92e301
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Sat Aug 28 14:51:29 2010 +0000

    	* linux-low.c (__SIGRTMIN): Define if not already defined.
    	(linux_create_inferior): Check for __ANDROID__ rather than
    	__SIGRTMIN.
    	(enqueue_one_deferred_signal): Don't requeue non-RT signals that
    	are already deferred.
    	(linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
    	(linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
    	stopped and already has a pending signal to report.
    	(proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
    	a pending signal to report or is moving out of a jump pad.
    	(linux_init_signals): Check for __ANDROID__ rather than
    	__SIGRTMIN.

commit 2331390497b6478e779b54d1733fadd9d1b92fb8
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Sat Aug 28 14:03:27 2010 +0000

    	* linux-low.c (linux_stabilize_threads): Wrap debug output in a
    	debug_threads check.  Avoid a linear search when not doing debug
    	output.

commit a9f7dcd03f0f5914d4b30d8dd49628166e9bbe80
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sat Aug 28 08:38:24 2010 +0000

    gdb/
    	Code cleanup.
    	* linux-nat.c (pull_pid_from_list): Rename status to statusp.
    	(my_waitpid): Likewise.

commit 6d770a24a208212ba657a578f0ebf0b0729d44f5
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Sat Aug 28 04:04:15 2010 +0000

    	* elflink.c (_bfd_elf_dynamic_symbol_p): Rename param.  Make
    	common syms local.
    	(_bfd_elf_symbol_refs_local_p): Expand comment.
    	(elf_link_output_extsym): Fix style nit.

commit ed16bf299a53c403d53c35a34335495b412a01bd
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Sat Aug 28 00:00:05 2010 +0000

    daily update

commit 938e334dd2164687fdfc4c6ca7269c488bf68329
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Sat Aug 28 00:00:03 2010 +0000

    *** empty log message ***

commit c4fecec8501952baaa43bd270d22eb44dfa90155
Author: Doug Evans <dje@google.com>
Date:   Fri Aug 27 23:09:58 2010 +0000

    	* dwarf2read.c (dw2_require_line_header): Read from .debug_types
    	as appropriate.

commit 428448a778dec10affa5dc60f511185f5e6c5d0a
Author: Tom Tromey <tromey@redhat.com>
Date:   Fri Aug 27 21:03:39 2010 +0000

    	* dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
    	TYPE_FIELD_IGNORE_BITS.

commit e9b58810822847b48c0dc6e20e3c9fbe86df2c3c
Author: Doug Evans <dje@google.com>
Date:   Fri Aug 27 16:36:58 2010 +0000

    	* dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
    	the order they're defined in.  munmap .debug_types buffer.

commit 70bcf84f9f23e660efadcb2326b3ba44864a3763
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Fri Aug 27 16:02:48 2010 +0000

    	* event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
    	(struct gdb_event) <fd>: Change type to gdb_fildes_t.
    	(struct file_handler) <fd>: Change type to gdb_fildes_t.
    	(process_event): Change local fd's type to gdb_fildes_t.
    	(create_file_handler): Adjust prototype.
    	(delete_file_handler): Adjust prototype.
    	(handle_file_event): Adjust prototype.  Use pfildes.
    	(create_file_event): Adjsut prototype.
    	* remote-utils.c (remote_desc, listen_desc): Change type to
    	gdb_fildes_t.
    	* server.h: New gdb_fildes_t typedef.
    	[USE_WIN32API]: Include winsock2.h.
    	(delete_file_handler, add_file_handler): Adjust prototypes.
    	(pfildes): Declare.
    	* utils.c (pfildes): New.

commit 9a636a895cc433584d90515e57142c5d29fd7492
Author: Nathan Froyd <froydnj@codesourcery.com>
Date:   Fri Aug 27 13:59:55 2010 +0000

    opcodes/
    	* ppc-opc.c (powerpc_opcodes) [lswx,lswi,stswx,stswi]: Deprecate
    	on E500 and E500MC.

commit ceb2066155b8706520e380f2c97badbef68b97ba
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Fri Aug 27 12:02:17 2010 +0000

    Fix whitespace, tabs/spaces.

commit ecf04df8cde7ab1a0fd92a0379640b479feb99d4
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Fri Aug 27 10:20:07 2010 +0000

    	* configure.ac (build_warnings): Add -Wno-char-subscripts.
    	* configure: Regenerate.

commit 529df7aae72eac86e1d5372046ec56ec6cc33145
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Fri Aug 27 00:16:48 2010 +0000

    	* linux-low.c (linux_unprepare_to_access_memory): Rename to ...
    	(linux_done_accessing_memory): ... this.
    	(linux_target_ops): Adjust.
    	* linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
    	* nto-low.c (nto_target_ops): Adjust comment.
    	* server.c (gdb_read_memory, gdb_write_memory): Adjust.
    	* spu-low.c (spu_target_ops): Adjust comment.
    	* target.h (target_ops): Rename unprepare_to_access_memory field
    	to done_accessing_memory.
    	(unprepare_to_access_memory): Rename to ...
    	(done_accessing_memory): ... this.

commit 782a8d5b4b4bb12b46db983d5fe5c8950a51ab4f
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Fri Aug 27 00:00:05 2010 +0000

    daily update

commit 29807fceccfd80ae6567634dfabfcd814383693e
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Fri Aug 27 00:00:02 2010 +0000

    *** empty log message ***

commit 11653928654450f7773cf69b7f636aba94d57a39
Author: Doug Evans <dje@google.com>
Date:   Thu Aug 26 23:36:53 2010 +0000

    	* dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
    	(dw2_forget_cached_source_info): Rename local cu to per_cu.
    	(dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
    	(dw2_print_stats, dw2_expand_all_symtabs): Ditto.
    	(dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
    	(dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
    	(dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
    	(dwarf2_free_objfile, write_one_signatured_type): Ditto.
    	(write_psymtabs_to_index): Ditto.

commit b8bf95f37125d189cd4554dfeabc331dddc907a2
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Thu Aug 26 23:17:21 2010 +0000

    	* linux-low.c (linux_prepare_to_access_memory): New.
    	(linux_unprepare_to_access_memory): New.
    	(linux_target_ops): Install them.
    	* server.c (read_memory): Rename to ...
    	(gdb_read_memory): ... this.  Use
    	prepare_to_access_memory/prepare_to_access_memory.
    	(write_memory): Rename to ...
    	(gdb_write_memory): ... this.  Use
    	prepare_to_access_memory/prepare_to_access_memory.
    	(handle_search_memory_1): Adjust.
    	(process_serial_event): Adjust.
    	* target.h (struct target_ops): New fields
    	prepare_to_access_memory and unprepare_to_access_memory.
    	(prepare_to_access_memory, unprepare_to_access_memory): New.
    	* linux-x86-low.c (x86_insert_point, x86_remove_point): Use
    	prepare_to_access_memory/prepare_to_access_memory.
    	* nto-low.c (nto_target_ops): Adjust.
    	* spu-low.c (spu_target_ops): Adjust.
    	* win32-low.c (win32_target_ops): Adjust.

commit 77164cf356e522ffa80fc3d85de62355d3feaf65
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Thu Aug 26 19:47:22 2010 +0000

    	* NEWS: Mention libthread_db debugging with core files.

commit e52a28b29c8fe95a13a0b7a58d8e3a880ba21155
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Thu Aug 26 18:36:28 2010 +0000

    	* Makefile.in (WARN_CFLAGS): Get it from configure.
    	(WERROR_CFLAGS): New.
    	(INTERNAL_CFLAGS): Add WERROR_CFLAGS.
    	* configure.ac: Introduce --enable-werror, which adds -Werror to
    	the compiler command line.  Enabled by default.  Disable with
    	--disable-werror.  Add -Wdeclaration-after-statement
    	Wpointer-arith and -Wformat-nonliteral to warning flags.
    	* configure: Regenerate.

commit 8cc55d978e6804f76e49d4b1acd7d45d817155bf
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Thu Aug 26 18:03:02 2010 +0000

    	* Makefile.in (WARN_CFLAGS): Get it from configure.
    	(WERROR_CFLAGS): New.
    	(INTERNAL_CFLAGS): Add WERROR_CFLAGS.
    	* configure.ac: Introduce --enable-werror, which adds -Werror to
    	the compiler command line.  Enabled by default.  Disable with
    	--disable-werror.  Add -Wdeclaration-after-statement
    	Wpointer-arith and -Wformat-nonliteral to warning flags.
            * configure: Regenerate.

commit 2291236d08ee9692fd0611ee1321c309ef241f9e
Author: Doug Evans <dje@google.com>
Date:   Thu Aug 26 16:47:54 2010 +0000

    	* dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
    	forward decl.  Pass pst->dirname to dwarf_decode_lines.
    	(psymtab_include_file_name): New function.
    	(dwarf_decode_lines): Call it.  Update comments.

commit 864973e52f730c54999fabe9276f6f0b05bd4720
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Thu Aug 26 16:47:05 2010 +0000

    	* mem-break.c [HAVE_MALLOC_H]: Include malloc.h.

commit 5dc21937d50c07ec53a800a23ff5a9903c2d36ed
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Thu Aug 26 16:24:41 2010 +0000

    	* gdbreplay.c (remote_error): New.
    	(gdbchar): New.
    	(expect): Use gdbchar.  Check for error reading from GDB.
    	Clarify sync error output.
    	(play): Check for errors writing to GDB.
    	* linux-low.c (sigchld_handler): Really ignore `write' errors.
    	* remote-utils.c (getpkt): Check for errors writing to the remote
    	descriptor.

commit 6ff6829cdd4567d4fa8e03375aa3b706ae906718
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Thu Aug 26 14:53:44 2010 +0000

    	* gdb.mi/mi-nsmoribund.exp: Revert back to send_gdb/gdb_expect in
    	one test.

commit f69a4d66715f75f8401571c4d9a2d584edf0a8f0
Author: Nathan Sidwell <nathan@codesourcery.com>
Date:   Thu Aug 26 10:32:25 2010 +0000

    	* elf32-arm.c (elf32_arm_final_link): Process stub sections
    	exactly once.

commit 99bcc6f7301d7f65f6eb97b6381eeb885c7b9528
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Thu Aug 26 00:00:05 2010 +0000

    daily update

commit 937cb923ef520b63aeff0d4b971abb29af05d5b0
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Thu Aug 26 00:00:03 2010 +0000

    *** empty log message ***

commit b1f8e8c83102322b4f0a234499c9849708129d9b
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Aug 25 20:35:58 2010 +0000

    Don't set unique_global for non-ELF hash link table.
    
    2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
    
    	PR ld/11939
    	* elflink.c (elf_link_add_object_symbols): Don't set
    	unique_global for non-ELF hash link table.

commit 948adb64dd234f84cd29e965d5fdb048255f6ef5
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Wed Aug 25 18:20:04 2010 +0000

    	* dwarf2read.c (inherit_abstract_dies): Handle origin die's
    	compilation unit being different from target die's.

commit 4751ac68d82def483f8b35eca133da78db09a12a
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Wed Aug 25 16:49:04 2010 +0000

    	* linux-low.c (linux_wait_1): Move non-debugging code out of
    	`debug_threads' control.

commit ef1627ca9c43016d2da071ed5ba61fc1299505dc
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Wed Aug 25 16:27:05 2010 +0000

    	* linux-low.c (linux_wait_1): Don't set last_status here.
    	* server.c (push_event, queue_stop_reply_callback): Assert we're
    	not pushing a TARGET_WAITKIND_IGNORE event.
    	(start_inferior, start_inferior, attach_inferior, handle_v_cont)
    	(myresume, handle_target_event): Set the thread's last_resume_kind
    	and last_status from the target returned status.

commit 72c9a2fc4ef8ea42ac73847865c46bae583c1c88
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Aug 25 14:53:37 2010 +0000

    Add target_id to elf_backend_data.
    
    2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
    
    	PR ld/11944
    	* elf-bfd.h (elf_backend_data): Add target_id.
    	(bfd_elf_make_generic_object): Renamed to ...
    	(bfd_elf_make_object): This.
    
    	* elf.c (bfd_elf_make_generic_object): Removed.
    	(bfd_elf_make_object): New.
    	(bfd_elf_mkcorefile): Really treat it as an object file.
    
    	* elf-m10300.c (ELF_TARGET_ID): New.
    	* elf32-arm.c (ELF_TARGET_ID): Likewise.
    	* elf32-bfin.c (ELF_TARGET_ID): Likewise.
    	* elf32-cris.c (ELF_TARGET_ID): Likewise.
    	* elf32-frv.c (ELF_TARGET_ID): Likewise.
    	* elf32-i386.c (ELF_TARGET_ID): Likewise.
    	* elf32-lm32.c (ELF_TARGET_ID): Likewise.
    	* elf32-m32r.c (ELF_TARGET_ID): Likewise.
    	* elf32-m68hc11.c (ELF_TARGET_ID): Likewise.
    	* elf32-m68hc12.c (ELF_TARGET_ID): Likewise.
    	* elf32-m68k.c (ELF_TARGET_ID): Likewise.
    	* elf32-microblaze.c (ELF_TARGET_ID): Likewise.
    	* elf32-ppc.c (ELF_TARGET_ID): Likewise.
    	* elf32-s390.c (ELF_TARGET_ID): Likewise.
    	* elf32-sh.c (ELF_TARGET_ID): Likewise.
    	* elf32-sparc.c (ELF_TARGET_ID): Likewise.
    	* elf32-spu.c (ELF_TARGET_ID): Likewise.
    	* elf32-tic6x.c (ELF_TARGET_ID): Likewise.
    	* elf32-xtensa.c (ELF_TARGET_ID): Likewise.
    	* elf64-alpha.c (ELF_TARGET_ID): Likewise.
    	* elf64-hppa.c (ELF_TARGET_ID): Likewise.
    	* elf64-ppc.c (ELF_TARGET_ID): Likewise.
    	* elf64-s390.c (ELF_TARGET_ID): Likewise.
    	* elf64-x86-64.c (ELF_TARGET_ID): Likewise.
    	* elfxx-ia64.c (ELF_TARGET_ID): Likewise.
    
    	* elf32-hppa.c (elf32_hppa_mkobject): Removed.
    	(bfd_elf32_mkobject): Likewise.
    	(ELF_TARGET_ID): New.
    
    	* elf32-mips.c (ELF_TARGET_ID): New.
    	(bfd_elf32_mkobject): Removed.
    
    	* elf64-mips.c (ELF_TARGET_ID): New.
    	(bfd_elf64_mkobject): Removed.
    
    	* elfn32-mips.c (ELF_TARGET_ID): New.
    	(bfd_elf32_mkobject): Removed.
    
    	* elfxx-mips.c (_bfd_mips_elf_mkobject): Removed.
    	* elfxx-mips.h (_bfd_mips_elf_mkobject): Likewise.
    
    	* elfxx-target.h (bfd_elfNN_mkobject): Default to
    	bfd_elf_make_object.
    	(ELF_TARGET_ID): New.  Default to GENERIC_ELF_DATA.
    	(elfNN_bed): Initialize target_id.

commit 57c1cfefed9d946b9bf5849587cca013c644ddff
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Wed Aug 25 14:40:21 2010 +0000

    	PR threads/10729
    
    	* linux-x86-low.c (update_debug_registers_callback): New.
    	(i386_dr_low_set_addr): Use it.
    	(i386_dr_low_get_addr): New.
    	(i386_dr_low_set_control): Use update_debug_registers_callback.
    	(i386_dr_low_get_control): New.
    	(i386_dr_low_get_status): Adjust.
    	* linux-low.c (linux_stop_lwp): New.
    	* linux-low.h (linux_stop_lwp): Declare.
    
    	* i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
    	argument instead of a i386_debug_reg_state.
    	(I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
    	a i386_debug_reg_state.
    	(i386_insert_aligned_watchpoint): Adjust.
    	(i386_remove_aligned_watchpoint): Adjust.
    	(i386_low_stopped_data_address): Read the debug registers from the
    	inferior instead of from the mirrors.
    	* i386-low.h (struct i386_debug_reg_state): Extend comment.
    	(i386_dr_low_get_addr): Declare.
    	(i386_dr_low_get_control): Declare.
    	(i386_dr_low_get_status): Change prototype.
    
    	* win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
    	(i386_dr_low_get_addr): New.
    	(i386_dr_low_get_control): New.
    	(i386_dr_low_get_status): Adjust prototype.  Return
    	dr_status_mirror.
    	(i386_initial_stuff): Clear dr_status_mirror and
    	dr_control_mirror.
    	(i386_get_thread_context): Adjust.
    	(i386_set_thread_context): Adjust.
    	(i386_thread_added): Adjust.

commit e87d6c313d172c51a3e9fb11120924ca55d4b0d7
Author: Julian Brown <julian@codesourcery.com>
Date:   Wed Aug 25 12:37:27 2010 +0000

        bfd/
        * elf32-arm.c (arm_stub_required_alignment): New.
        (arm_build_one_stub): Use above to partition stubs.
        (make_branch_to_a8_stub): Use arm_stub_a8_veneer_lwm not
        arm_stub_a8_veneer_b_cond.
    
        ld/testsuite/
        * ld-arm/arm-elf.exp (armelftests): Add cortex-a8-fix-blx-bcond.s.
        * ld-arm/cortex-a8-fix-blx-bcond.s: New.
        * ld-arm/cortex-a8-fix-blx-bcond.d: New.

commit fdf9046b682ee56a8f079ac0f11a31934b50f111
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Wed Aug 25 07:02:40 2010 +0000

    	* aout-arm.c (MY(bfd_reloc_type_lookup)): Use bfd_arch_bits_per_address.
    	* aout-ns32k.c (MY(bfd_reloc_type_lookup)): Likewise.
    	* aoutx.h (NAME(aout,reloc_type_lookup)): Likewise.
    	* coff-arm.c (coff_arm_reloc_type_lookup): Likewise.
    	* elf-hppa.h (elf_hppa_reloc_final_type): Likewise.
    	* reloc.c (bfd_default_reloc_type_lookup): Likewise.
    	* riscix.c (riscix_reloc_type_lookup): Likewise.

commit 74c37a5632d5473c7e76d73e9b6440d477e248f0
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Wed Aug 25 06:49:54 2010 +0000

    	* elf.c (_bfd_elf_map_sections_to_segments): Don't load program
    	headers if any loaded section wraps the address space.  Simplify
    	~(m-1) to -m.  Use lma rather than vma when determining whether
    	note sections are adjacent.

commit 53ac205615a3d401754ca890cdb88e7a26b239db
Author: Doug Evans <dje@google.com>
Date:   Wed Aug 25 00:09:11 2010 +0000

    	PR symtab/11942
    	* dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
    	debug_types_type_hash.
    	(dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
    	All uses updated.
    	(lookup_die_type): Renamed from tag_type_to_tag.  First look in
    	appropriate type_hash table.  All callers updated.
    	(allocate_signatured_type_table): Renamed from
    	allocate_signatured_type_hash_table.  All callers updated.
    	(create_signatured_type_table_from_index): Renamed from
    	create_signatured_type_hash_from_index.  All callers updated.
    	(read_die_type): Add comment.  Move actual reading to ...
    	(read_die_type_1): ... here.  New function.
    	(follow_die_ref_or_sig): Tweak comment.
    	(set_die_type): Rewrite to use appropriate choice of
    	debug_info_type_hash or debug_types_type_hash.
    	(get_die_type_at_offset): New function.
    	(get_die_type): Call it.
    
    	testsuite/
    	PR symtab/11942
    	* gdb.dwarf2/dw4-sig-types.cc: New file.
    	* gdb.dwarf2/dw4-sig-types.h: New file.
    	* gdb.dwarf2/dw4-sig-types-b.cc: New file.
    	* gdb.dwarf2/dw4-sig-types.exp: New file.

commit ea31146e178b2351acba56bf3585fcd9b89456db
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Wed Aug 25 00:00:34 2010 +0000

    *** empty log message ***

commit 38f11f42e673260f2f3fc34746f76a45accd279c
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Wed Aug 25 00:00:05 2010 +0000

    daily update

commit 62c7b831f7e55a5c3689209f65d80d119794b7e2
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Tue Aug 24 20:13:15 2010 +0000

    	* linux-low.h (linux_thread_area): Delete declaration.

commit 0c069cacfdf534dc23c8b43d60364bee267e802d
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Aug 24 17:24:24 2010 +0000

    gdb/
    	* python/py-type.c (typy_richcompare): Initialize worklist.

commit fbcdb325484fb52ccedd03b65603c3f01a0783a2
Author: Daniel Jacobowitz <dan@debian.org>
Date:   Tue Aug 24 15:56:12 2010 +0000

    	* arm-tdep.c: Include features/arm-with-m.c.
    	(arm_psr_thumb_bit): New.  Update all uses of CPSR_T to
    	call this function.
    	(arm_pc_is_thumb): Add a gdbarch argument.  Update all callers.
    	Check is_m after force-mode.
    	(arm_gdbarch_init): Check the binary before the target description.
    	Add check for M profile attribute.  If we have an M-profile device,
    	but no target register description, use arm-with-m.  Recognize the
    	new org.gnu.gdb.arm.m-profile feature and its xpsr register.
    	(_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
    	* arm-tdep.h (XPSR_T): Define.
    	(struct gdbarch_tdep): Add is_m member.
    	* features/arm-m-profile.xml, features/arm-with-m.c,
    	features/arm-with-m.xml: New files.
    
    	doc/
    	* gdb.texinfo (ARM Features): Document
    	org.gnu.gdb.arm.m-profile.

commit d0883c92e9558e179f737a08e7648ad0ab4881fe
Author: Hans-Peter Nilsson <hp@axis.com>
Date:   Tue Aug 24 01:14:37 2010 +0000

    	* sim/cris/asm/nonvcv32.ms: Neutralize changed &&-in-macro gas syntax.

commit 908f6fdbadc2a5c22d48d350aa8799bfe4439b3d
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Tue Aug 24 00:00:06 2010 +0000

    daily update

commit de14cf56e232421829aa0eddeec5cb0b12fa7eb6
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Tue Aug 24 00:00:03 2010 +0000

    *** empty log message ***

commit 6a4e2f261b6af21cf465e203e2b098aba650bdb5
Author: Doug Evans <dje@google.com>
Date:   Mon Aug 23 21:49:26 2010 +0000

    	* dwarf2read.c (set_die_type): Fix typo in comment.

commit 935370feb01920208ec5c099f3130d3f1a30bbeb
Author: Doug Evans <dje@google.com>
Date:   Mon Aug 23 21:44:36 2010 +0000

    	* dwarf2read.c (read_structure_type): Add comment.
    	(read_enumeration_type): Add comment.
    	(process_enumeration_scope): Move definition of some locals
    	closer to their use.
    	(read_namespace_type): Add comment.

commit 5ffbb8cc56028dd2e4fbfff44a35e07b592b5b09
Author: Tom Tromey <tromey@redhat.com>
Date:   Mon Aug 23 20:29:19 2010 +0000

    gdb
    	PR python/11145:
    	* python/py-value.c: Include expression.h.
    	(valpy_do_cast): New function.
    	(valpy_cast): Use it.
    	(valpy_dynamic_cast): New function.
    	(valpy_reinterpret_cast): Likewise.
    	(value_object_methods): Add dynamic_cast, reinterpret_cast.
    gdb/doc
    	PR python/11145:
    	* gdb.texinfo (Values From Inferior): Document dynamic_cast and
    	reinterpret_cast methods.
    gdb/testsuite
    	PR python/11145:
    	* gdb.python/py-value.c (Base, Derived): New types.
    	(base): New global.
    	* gdb.python/py-value.exp (test_subscript_regression): Add
    	dynamic_cast test.

commit 815ca023125e4dc2e90938816c56e7ea1089191a
Author: Tom Tromey <tromey@redhat.com>
Date:   Mon Aug 23 20:27:48 2010 +0000

    	PR python/11391:
    	* python/py-value.c (valpy_nonzero): Don't throw error for other
    	Value types.

commit ebc2a8081dfb5113218d1d46e74d0325988f8744
Author: Tom Tromey <tromey@redhat.com>
Date:   Mon Aug 23 20:26:09 2010 +0000

    gdb
    	PR python/10676:
    	* python/py-type.c: Include bcache.h, vec.h.
    	(struct type_equality_entry): New.
    	(compare_strings): New function.
    	(check_types_equal): Likewise.
    	(check_types_worklist): Likewise.
    	(typy_richcompare): Likewise.
    	(type_object_type): Set tp_richcompare field.
    gdb/testsuite
    	PR python/10676:
    	* gdb.python/py-type.exp (test_fields): Add tests for type
    	equality.

commit 90f5af282d2955c84854332e42653d5e7c26bb7f
Author: Tom Tromey <tromey@redhat.com>
Date:   Mon Aug 23 20:23:54 2010 +0000

    	PR python/10953:
    	* python/py-type.c (typy_fields): Call check_typedef.
    	(typy_template_argument): Add TRY_CATCH.

commit bae23351f8599a031ac17a6aebf44ef87038b269
Author: Tom Tromey <tromey@redhat.com>
Date:   Mon Aug 23 20:21:11 2010 +0000

    gdb
    	PR python/11915:
    	* python/py-type.c (typy_array): New function.
    	(type_object_methods): Add "array".
    gdb/doc
    	PR python/11915:
    	* gdb.texinfo (Types In Python): Document array method.
    gdb/testsuite
    	PR python/11915:
    	* gdb.python/py-type.exp (test_fields): Add tests for array.

commit f3e7fc895444d040bfe19f001e96bf54b753253b
Author: Keith Seitz <keiths@redhat.com>
Date:   Mon Aug 23 19:12:52 2010 +0000

    	* gdb.dwarf2/dw2-double-set-die-type.S: DIE 0x51f does not
    	have any children. Create a new abbrev for it.
    	Add missing terminal sequence to .debug_abbrev.

-----------------------------------------------------------------------

Summary of changes:
 bfd/ChangeLog                                      |  124 +++-
 bfd/aout-arm.c                                     |    4 +-
 bfd/aout-ns32k.c                                   |    4 +-
 bfd/aoutx.h                                        |    2 +-
 bfd/cisco-core.c                                   |    3 +-
 bfd/coff-arm.c                                     |    4 +-
 bfd/coffcode.h                                     |    4 +-
 bfd/elf-bfd.h                                      |    6 +-
 bfd/elf-hppa.h                                     |    5 +-
 bfd/elf-m10300.c                                   |    1 +
 bfd/elf.c                                          |   81 ++-
 bfd/elf32-arm.c                                    |   59 ++-
 bfd/elf32-avr.c                                    |    1 +
 bfd/elf32-bfin.c                                   |    1 +
 bfd/elf32-cris.c                                   |    1 +
 bfd/elf32-frv.c                                    |    1 +
 bfd/elf32-hppa.c                                   |   11 +-
 bfd/elf32-i386.c                                   |    1 +
 bfd/elf32-lm32.c                                   |    1 +
 bfd/elf32-m32r.c                                   |    1 +
 bfd/elf32-m68hc11.c                                |    1 +
 bfd/elf32-m68hc12.c                                |    1 +
 bfd/elf32-m68k.c                                   |    1 +
 bfd/elf32-microblaze.c                             |    1 +
 bfd/elf32-mips.c                                   |    2 +-
 bfd/elf32-ppc.c                                    |    1 +
 bfd/elf32-s390.c                                   |    1 +
 bfd/elf32-sh.c                                     |    1 +
 bfd/elf32-sparc.c                                  |    1 +
 bfd/elf32-spu.c                                    |    1 +
 bfd/elf32-tic6x.c                                  |    1 +
 bfd/elf32-xtensa.c                                 |    1 +
 bfd/elf64-alpha.c                                  |    1 +
 bfd/elf64-hppa.c                                   |    1 +
 bfd/elf64-mips.c                                   |    2 +-
 bfd/elf64-ppc.c                                    |    1 +
 bfd/elf64-s390.c                                   |    1 +
 bfd/elf64-x86-64.c                                 |    1 +
 bfd/elflink.c                                      |   21 +-
 bfd/elfn32-mips.c                                  |    2 +-
 bfd/elfxx-ia64.c                                   |    1 +
 bfd/elfxx-mips.c                                   |    9 -
 bfd/elfxx-mips.h                                   |    2 -
 bfd/elfxx-target.h                                 |    7 +-
 bfd/netbsd-core.c                                  |    2 +-
 bfd/reloc.c                                        |    2 +-
 bfd/riscix.c                                       |    4 +-
 bfd/version.h                                      |    2 +-
 gdb/ChangeLog                                      |  298 +++++++-
 gdb/NEWS                                           |   25 +
 gdb/arm-linux-tdep.c                               |   94 ++-
 gdb/arm-tdep.c                                     |  414 ++++++----
 gdb/arm-tdep.h                                     |    8 +
 gdb/bcache.c                                       |   49 +-
 gdb/bcache.h                                       |    8 +-
 gdb/breakpoint.c                                   |   31 +-
 gdb/defs.h                                         |   11 +-
 gdb/doc/ChangeLog                                  |  201 +++---
 gdb/doc/gdb.texinfo                                |   38 +-
 gdb/dwarf2read.c                                   |  587 +++++++++-----
 gdb/exec.c                                         |    6 +-
 gdb/fbsd-nat.c                                     |    4 +-
 gdb/features/arm-m-profile.xml                     |   27 +
 gdb/features/arm-with-m.c                          |   35 +
 gdb/features/arm-with-m.xml                        |   11 +
 gdb/gcore.c                                        |    4 +-
 gdb/gdbserver/ChangeLog                            |  297 ++++++--
 gdb/gdbserver/Makefile.in                          |   14 +-
 gdb/gdbserver/config.in                            |   23 +
 gdb/gdbserver/configure                            |  260 ++++++
 gdb/gdbserver/configure.ac                         |   43 +
 gdb/gdbserver/event-loop.c                         |   23 +-
 gdb/gdbserver/gdbreplay.c                          |   39 +-
 gdb/gdbserver/i386-low.c                           |   25 +-
 gdb/gdbserver/i386-low.h                           |   16 +-
 gdb/gdbserver/linux-low.c                          |  113 +++-
 gdb/gdbserver/linux-low.h                          |    2 +-
 gdb/gdbserver/linux-x86-low.c                      |  101 ++-
 gdb/gdbserver/mem-break.c                          |    3 +
 gdb/gdbserver/nto-low.c                            |    4 +-
 gdb/gdbserver/remote-utils.c                       |   10 +-
 gdb/gdbserver/server.c                             |   81 ++-
 gdb/gdbserver/server.h                             |   18 +-
 gdb/gdbserver/spu-low.c                            |    2 +
 gdb/gdbserver/target.c                             |   16 +-
 gdb/gdbserver/target.h                             |   29 +
 gdb/gdbserver/thread-db.c                          |    4 +-
 gdb/gdbserver/tracepoint.c                         |    8 +-
 gdb/gdbserver/utils.c                              |   14 +-
 gdb/gdbserver/win32-i386-low.c                     |   35 +-
 gdb/gdbserver/win32-low.c                          |    2 +
 gdb/gnu-nat.c                                      |    6 +-
 gdb/infrun.c                                       |    5 +
 gdb/linux-nat.c                                    |   12 +-
 gdb/linux-tdep.c                                   |   33 +
 gdb/objfiles.c                                     |    8 +-
 gdb/objfiles.h                                     |    2 +-
 gdb/procfs.c                                       |   43 +-
 gdb/psymtab.c                                      |  107 +++-
 gdb/psymtab.h                                      |    8 +
 gdb/python/py-type.c                               |  266 +++++++-
 gdb/python/py-value.c                              |  137 +++-
 gdb/symfile.c                                      |   14 +-
 gdb/symmisc.c                                      |    6 +-
 gdb/target.c                                       |    2 +-
 gdb/target.h                                       |    6 +-
 gdb/testsuite/ChangeLog                            |  825 +++++++++++---------
 gdb/testsuite/gdb.cp/cpexprs.cc                    |   18 +-
 gdb/testsuite/gdb.cp/cpexprs.exp                   |   17 +-
 gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.S |   22 +-
 gdb/testsuite/gdb.dwarf2/dw4-sig-types-b.cc        |   16 +
 gdb/testsuite/gdb.dwarf2/dw4-sig-types.cc          |   12 +
 gdb/testsuite/gdb.dwarf2/dw4-sig-types.exp         |   43 +
 gdb/testsuite/gdb.dwarf2/dw4-sig-types.h           |   15 +
 gdb/testsuite/gdb.mi/mi-nsmoribund.exp             |   22 +-
 gdb/testsuite/gdb.python/py-type.exp               |   11 +
 gdb/testsuite/gdb.python/py-value.c                |   10 +
 gdb/testsuite/gdb.python/py-value.exp              |   12 +
 gdb/version.in                                     |    2 +-
 opcodes/ChangeLog                                  |   15 +
 opcodes/i386-dis.c                                 |   68 +-
 opcodes/ppc-opc.c                                  |    8 +-
 sim/testsuite/ChangeLog                            |    4 +
 sim/testsuite/sim/cris/asm/nonvcv32.ms             |    8 +-
 124 files changed, 3855 insertions(+), 1348 deletions(-)
 create mode 100644 gdb/features/arm-m-profile.xml
 create mode 100644 gdb/features/arm-with-m.c
 create mode 100644 gdb/features/arm-with-m.xml
 create mode 100644 gdb/testsuite/gdb.dwarf2/dw4-sig-types-b.cc
 create mode 100644 gdb/testsuite/gdb.dwarf2/dw4-sig-types.cc
 create mode 100644 gdb/testsuite/gdb.dwarf2/dw4-sig-types.exp
 create mode 100644 gdb/testsuite/gdb.dwarf2/dw4-sig-types.h

First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 7ae8300..7edf390 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,125 @@
+2010-09-01  Pedro Alves  <pedro@codesourcery.com>
+
+	* netbsd-core.c (netbsd_core_core_file_pid): Renamed to ...
+	(netbsd_core_file_pid): ... this.
+
+2010-09-01  Tristan Gingold  <gingold@adacore.com>
+
+	* coffcode.h (coff_slurp_line_table): Add a cast.
+	(coff_slurp_reloc_table): Ditto.
+
+2010-08-30  Gunther Nikl  <gnikl@users.sourceforge.net>
+
+	* cisco-core.c (cisco_core_file_pid): Define.
+
+2010-08-30  Alan Modra  <amodra@gmail.com>
+
+	PR binutils/11953
+	* elf.c (copy_elf_program_header): Calculate map->header_size
+	from lowest_section, not first_section.  Validate program
+	header p_paddr against section lma.  Find lowest_section in
+	second loop over headers.
+
+2010-08-28  Alan Modra  <amodra@gmail.com>
+
+	* elflink.c (_bfd_elf_dynamic_symbol_p): Rename param.  Make
+	common syms local.
+	(_bfd_elf_symbol_refs_local_p): Expand comment.
+	(elf_link_output_extsym): Fix style nit.
+
+2010-08-26  Nathan Sidwell  <nathan@codesourcery.com>
+
+	* elf32-arm.c (elf32_arm_final_link): Process stub sections
+	exactly once.
+
+2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
+
+	PR ld/11939
+	* elflink.c (elf_link_add_object_symbols): Don't set
+	unique_global for non-ELF hash link table.
+
+2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
+
+	PR ld/11944
+	* elf-bfd.h (elf_backend_data): Add target_id.
+	(bfd_elf_make_generic_object): Renamed to ...
+	(bfd_elf_make_object): This.
+
+	* elf.c (bfd_elf_make_generic_object): Removed.
+	(bfd_elf_make_object): New.
+	(bfd_elf_mkcorefile): Really treat it as an object file.
+
+	* elf-m10300.c (ELF_TARGET_ID): New.
+	* elf32-arm.c (ELF_TARGET_ID): Likewise.
+	* elf32-bfin.c (ELF_TARGET_ID): Likewise.
+	* elf32-cris.c (ELF_TARGET_ID): Likewise.
+	* elf32-frv.c (ELF_TARGET_ID): Likewise.
+	* elf32-i386.c (ELF_TARGET_ID): Likewise.
+	* elf32-lm32.c (ELF_TARGET_ID): Likewise.
+	* elf32-m32r.c (ELF_TARGET_ID): Likewise.
+	* elf32-m68hc11.c (ELF_TARGET_ID): Likewise.
+	* elf32-m68hc12.c (ELF_TARGET_ID): Likewise.
+	* elf32-m68k.c (ELF_TARGET_ID): Likewise.
+	* elf32-microblaze.c (ELF_TARGET_ID): Likewise.
+	* elf32-ppc.c (ELF_TARGET_ID): Likewise.
+	* elf32-s390.c (ELF_TARGET_ID): Likewise.
+	* elf32-sh.c (ELF_TARGET_ID): Likewise.
+	* elf32-sparc.c (ELF_TARGET_ID): Likewise.
+	* elf32-spu.c (ELF_TARGET_ID): Likewise.
+	* elf32-tic6x.c (ELF_TARGET_ID): Likewise.
+	* elf32-xtensa.c (ELF_TARGET_ID): Likewise.
+	* elf64-alpha.c (ELF_TARGET_ID): Likewise.
+	* elf64-hppa.c (ELF_TARGET_ID): Likewise.
+	* elf64-ppc.c (ELF_TARGET_ID): Likewise.
+	* elf64-s390.c (ELF_TARGET_ID): Likewise.
+	* elf64-x86-64.c (ELF_TARGET_ID): Likewise.
+	* elfxx-ia64.c (ELF_TARGET_ID): Likewise.
+
+	* elf32-hppa.c (elf32_hppa_mkobject): Removed.
+	(bfd_elf32_mkobject): Likewise.
+	(ELF_TARGET_ID): New.
+
+	* elf32-mips.c (ELF_TARGET_ID): New.
+	(bfd_elf32_mkobject): Removed.
+
+	* elf64-mips.c (ELF_TARGET_ID): New.
+	(bfd_elf64_mkobject): Removed.
+
+	* elfn32-mips.c (ELF_TARGET_ID): New.
+	(bfd_elf32_mkobject): Removed.
+
+	* elfxx-mips.c (_bfd_mips_elf_mkobject): Removed.
+	* elfxx-mips.h (_bfd_mips_elf_mkobject): Likewise.
+
+	* elfxx-target.h (bfd_elfNN_mkobject): Default to
+	bfd_elf_make_object.
+	(ELF_TARGET_ID): New.  Default to GENERIC_ELF_DATA.
+	(elfNN_bed): Initialize target_id.
+
+2010-08-25  Julian Brown  <julian@codesourcery.com>
+
+	* elf32-arm.c (arm_stub_required_alignment): New.
+	(arm_build_one_stub): Use above to partition stubs.
+	(make_branch_to_a8_stub): Use arm_stub_a8_veneer_lwm not
+	arm_stub_a8_veneer_b_cond.
+
+2010-08-25  Alan Modra  <amodra@gmail.com>
+
+	* aout-arm.c (MY(bfd_reloc_type_lookup)): Use bfd_arch_bits_per_address.
+	* aout-ns32k.c (MY(bfd_reloc_type_lookup)): Likewise.
+	* aoutx.h (NAME(aout,reloc_type_lookup)): Likewise.
+	* coff-arm.c (coff_arm_reloc_type_lookup): Likewise.
+	* elf-hppa.h (elf_hppa_reloc_final_type): Likewise.
+	* reloc.c (bfd_default_reloc_type_lookup): Likewise.
+	* riscix.c (riscix_reloc_type_lookup): Likewise.
+
+2010-08-25  Alan Modra  <amodra@gmail.com>
+
+	* elf.c (_bfd_elf_map_sections_to_segments): Don't load program
+	headers if any loaded section wraps the address space.  Simplify
+	~(m-1) to -m.  Use lma rather than vma when determining whether
+	note sections are adjacent.
+
 2010-08-22  H.J. Lu  <hongjiu.lu@intel.com>
 
 	PR ld/11933
@@ -91,7 +213,7 @@
 	elf_tdata's core_lwpid instead of to core_pid.
 	* elfn32-mips.c (elf32_mips_grok_prstatus): Write the LWPID to
 	elf_tdata's core_lwpid instead of to core_pid.
-	
+
 	* plugin.c (bfd_plugin_core_file_pid): New function.
 	* aout-target.h (MY_core_file_pid): Define.
 	* aout-tic30.c (MY_core_file_pid, MY_core_file_p): New defines.
diff --git a/bfd/aout-arm.c b/bfd/aout-arm.c
index 6e99b2e..9a5d155 100644
--- a/bfd/aout-arm.c
+++ b/bfd/aout-arm.c
@@ -1,6 +1,6 @@
 /* BFD back-end for raw ARM a.out binaries.
    Copyright 1994, 1995, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005,
-   2007, 2009 Free Software Foundation, Inc.
+   2007, 2009, 2010 Free Software Foundation, Inc.
    Contributed by Richard Earnshaw (rwe@pegasus.esprit.ec.org)
 
    This file is part of BFD, the Binary File Descriptor library.
@@ -296,7 +296,7 @@ MY (bfd_reloc_type_lookup) (bfd *abfd,
 #define ASTD(i,j)       case i: return & MY (howto_table)[j]
 
   if (code == BFD_RELOC_CTOR)
-    switch (bfd_get_arch_info (abfd)->bits_per_address)
+    switch (bfd_arch_bits_per_address (abfd))
       {
       case 32:
         code = BFD_RELOC_32;
diff --git a/bfd/aout-ns32k.c b/bfd/aout-ns32k.c
index ea7d8f4..9a0737d 100644
--- a/bfd/aout-ns32k.c
+++ b/bfd/aout-ns32k.c
@@ -1,6 +1,6 @@
 /* BFD back-end for ns32k a.out-ish binaries.
    Copyright 1990, 1991, 1992, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
-   2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
+   2002, 2003, 2005, 2006, 2007, 2010 Free Software Foundation, Inc.
    Contributed by Ian Dall (idall@eleceng.adelaide.edu.au).
 
    This file is part of BFD, the Binary File Descriptor library.
@@ -214,7 +214,7 @@ MY (bfd_reloc_type_lookup) (bfd *abfd, bfd_reloc_code_real_type code)
 
   BFD_ASSERT (ext == 0);
   if (code == BFD_RELOC_CTOR)
-    switch (bfd_get_arch_info (abfd)->bits_per_address)
+    switch (bfd_arch_bits_per_address (abfd))
       {
       case 32:
 	code = BFD_RELOC_32;
diff --git a/bfd/aoutx.h b/bfd/aoutx.h
index c632722..11598a0 100644
--- a/bfd/aoutx.h
+++ b/bfd/aoutx.h
@@ -269,7 +269,7 @@ NAME (aout, reloc_type_lookup) (bfd *abfd, bfd_reloc_code_real_type code)
   int ext = obj_reloc_entry_size (abfd) == RELOC_EXT_SIZE;
 
   if (code == BFD_RELOC_CTOR)
-    switch (bfd_get_arch_info (abfd)->bits_per_address)
+    switch (bfd_arch_bits_per_address (abfd))
       {
       case 32:
 	code = BFD_RELOC_32;
diff --git a/bfd/cisco-core.c b/bfd/cisco-core.c
index 9169ed5..29a7423 100644
--- a/bfd/cisco-core.c
+++ b/bfd/cisco-core.c
@@ -1,5 +1,5 @@
 /* BFD back-end for CISCO crash dumps.
-   Copyright 1994, 1997, 1999, 2000, 2001, 2002, 2004, 2005, 2006, 2007
+   Copyright 1994, 1997, 1999, 2000, 2001, 2002, 2004, 2005, 2006, 2007, 2010
    Free Software Foundation, Inc.
 
    This file is part of BFD, the Binary File Descriptor library.
@@ -77,6 +77,7 @@ static const bfd_target *cisco_core_file_p PARAMS ((bfd *));
 char *cisco_core_file_failing_command PARAMS ((bfd *));
 int cisco_core_file_failing_signal PARAMS ((bfd *));
 #define cisco_core_file_matches_executable_p generic_core_file_matches_executable_p
+#define cisco_core_file_pid _bfd_nocore_core_file_pid
 \f
 /* Examine the file for a crash info struct at the offset given by
    CRASH_INFO_LOC.  */
diff --git a/bfd/coff-arm.c b/bfd/coff-arm.c
index 2e0110a..bdadfb2 100644
--- a/bfd/coff-arm.c
+++ b/bfd/coff-arm.c
@@ -1,6 +1,6 @@
 /* BFD back-end for ARM COFF files.
    Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
+   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
    Free Software Foundation, Inc.
    Written by Cygnus Support.
 
@@ -817,7 +817,7 @@ coff_arm_reloc_type_lookup (bfd * abfd, bfd_reloc_code_real_type code)
 #define ASTD(i,j)       case i: return aoutarm_std_reloc_howto + j
 
   if (code == BFD_RELOC_CTOR)
-    switch (bfd_get_arch_info (abfd)->bits_per_address)
+    switch (bfd_arch_bits_per_address (abfd))
       {
       case 32:
         code = BFD_RELOC_32;
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index ad35e32..790908a 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -4487,7 +4487,7 @@ coff_slurp_line_table (bfd *abfd, asection *asect)
 	    {
 	      (*_bfd_error_handler)
 		(_("%B: warning: illegal symbol index %ld in line numbers"),
-		 abfd, dst.l_addr.l_symndx);
+		 abfd, (long) symndx);
 	      symndx = 0;
 	      warned = TRUE;
 	    }
@@ -5123,7 +5123,7 @@ coff_slurp_reloc_table (bfd * abfd, sec_ptr asect, asymbol ** symbols)
 	    {
 	      (*_bfd_error_handler)
 		(_("%B: warning: illegal symbol index %ld in relocs"),
-		 abfd, dst.r_symndx);
+		 abfd, (long) dst.r_symndx);
 	      cache_ptr->sym_ptr_ptr = bfd_abs_section_ptr->symbol_ptr_ptr;
 	      ptr = NULL;
 	    }
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index 2220d4d..dbcebd2 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -689,6 +689,10 @@ struct elf_backend_data
   /* The architecture for this backend.  */
   enum bfd_architecture arch;
 
+  /* An identifier used to distinguish different target specific
+     extensions to elf_obj_tdata and elf_link_hash_table structures.  */
+  enum elf_target_id target_id;
+
   /* The ELF machine code (EM_xxxx) for this backend.  */
   int elf_machine_code;
 
@@ -1739,7 +1743,7 @@ extern bfd_reloc_status_type bfd_elf_generic_reloc
   (bfd *, arelent *, asymbol *, void *, asection *, bfd *, char **);
 extern bfd_boolean bfd_elf_allocate_object
   (bfd *, size_t, enum elf_target_id);
-extern bfd_boolean bfd_elf_make_generic_object
+extern bfd_boolean bfd_elf_make_object
   (bfd *);
 extern bfd_boolean bfd_elf_mkcorefile
   (bfd *);
diff --git a/bfd/elf-hppa.h b/bfd/elf-hppa.h
index 51a9484..3fa9ded 100644
--- a/bfd/elf-hppa.h
+++ b/bfd/elf-hppa.h
@@ -1,5 +1,6 @@
 /* Common code for PA ELF implementations.
-   Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
+   Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
+   2009, 2010
    Free Software Foundation, Inc.
 
    This file is part of BFD, the Binary File Descriptor library.
@@ -678,7 +679,7 @@ elf_hppa_reloc_final_type (bfd *abfd,
 	      /* When in 64bit mode, a 32bit relocation is supposed to
 		 be a section relative relocation.  Dwarf2 (for example)
 		 uses 32bit section relative relocations.  */
-	      if (bfd_get_arch_info (abfd)->bits_per_address != 32)
+	      if (bfd_arch_bits_per_address (abfd) != 32)
 		final_type = R_PARISC_SECREL32;
 	      break;
 	    case e_psel:
diff --git a/bfd/elf-m10300.c b/bfd/elf-m10300.c
index f151c21..a4da9d5 100644
--- a/bfd/elf-m10300.c
+++ b/bfd/elf-m10300.c
@@ -4893,6 +4893,7 @@ _bfd_mn10300_elf_reloc_type_class (const Elf_Internal_Rela *rela)
 #define TARGET_LITTLE_SYM	bfd_elf32_mn10300_vec
 #define TARGET_LITTLE_NAME	"elf32-mn10300"
 #define ELF_ARCH		bfd_arch_mn10300
+#define ELF_TARGET_ID		MN10300_ELF_DATA
 #define ELF_MACHINE_CODE	EM_MN10300
 #define ELF_MACHINE_ALT1	EM_CYGNUS_MN10300
 #define ELF_MAXPAGESIZE		0x1000
diff --git a/bfd/elf.c b/bfd/elf.c
index f9f2dad..c9e9fab 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -250,17 +250,18 @@ bfd_elf_allocate_object (bfd *abfd,
 
 
 bfd_boolean
-bfd_elf_make_generic_object (bfd *abfd)
+bfd_elf_make_object (bfd *abfd)
 {
+  const struct elf_backend_data *bed = get_elf_backend_data (abfd);
   return bfd_elf_allocate_object (abfd, sizeof (struct elf_obj_tdata),
-				  GENERIC_ELF_DATA);
+				  bed->target_id);
 }
 
 bfd_boolean
 bfd_elf_mkcorefile (bfd *abfd)
 {
   /* I think this can be done just like an object file.  */
-  return bfd_elf_make_generic_object (abfd);
+  return abfd->xvec->_bfd_set_format[(int) bfd_object] (abfd);
 }
 
 static char *
@@ -3624,6 +3625,7 @@ _bfd_elf_map_sections_to_segments (bfd *abfd, struct bfd_link_info *info)
       asection *first_tls = NULL;
       asection *dynsec, *eh_frame_hdr;
       bfd_size_type amt;
+      bfd_vma addr_mask, wrap_to = 0;
 
       /* Select the allocated sections, and sort them.  */
 
@@ -3632,6 +3634,12 @@ _bfd_elf_map_sections_to_segments (bfd *abfd, struct bfd_link_info *info)
       if (sections == NULL)
 	goto error_return;
 
+      /* Calculate top address, avoiding undefined behaviour of shift
+	 left operator when shift count is equal to size of type
+	 being shifted.  */
+      addr_mask = ((bfd_vma) 1 << (bfd_arch_bits_per_address (abfd) - 1)) - 1;
+      addr_mask = (addr_mask << 1) + 1;
+
       i = 0;
       for (s = abfd->sections; s != NULL; s = s->next)
 	{
@@ -3639,6 +3647,9 @@ _bfd_elf_map_sections_to_segments (bfd *abfd, struct bfd_link_info *info)
 	    {
 	      sections[i] = s;
 	      ++i;
+	      /* A wrapping section potentially clashes with header.  */
+	      if (((s->lma + s->size) & addr_mask) < (s->lma & addr_mask))
+		wrap_to = (s->lma + s->size) & addr_mask;
 	    }
 	}
       BFD_ASSERT (i <= bfd_count_sections (abfd));
@@ -3708,8 +3719,10 @@ _bfd_elf_map_sections_to_segments (bfd *abfd, struct bfd_link_info *info)
 	  if (phdr_size == (bfd_size_type) -1)
 	    phdr_size = get_program_header_size (abfd, info);
 	  if ((abfd->flags & D_PAGED) == 0
-	      || sections[0]->lma < phdr_size
-	      || sections[0]->lma % maxpagesize < phdr_size % maxpagesize)
+	      || (sections[0]->lma & addr_mask) < phdr_size
+	      || ((sections[0]->lma & addr_mask) % maxpagesize
+		  < phdr_size % maxpagesize)
+	      || (sections[0]->lma & addr_mask & -maxpagesize) < wrap_to)
 	    phdr_in_segment = FALSE;
 	}
 
@@ -3774,9 +3787,8 @@ _bfd_elf_map_sections_to_segments (bfd *abfd, struct bfd_link_info *info)
 	    }
 	  else if (! writable
 		   && (hdr->flags & SEC_READONLY) == 0
-		   && (((last_hdr->lma + last_size - 1)
-			& ~(maxpagesize - 1))
-		       != (hdr->lma & ~(maxpagesize - 1))))
+		   && (((last_hdr->lma + last_size - 1) & -maxpagesize)
+		       != (hdr->lma & -maxpagesize)))
 	    {
 	      /* We don't want to put a writable section in a read only
 		 segment, unless they are on the same page in memory
@@ -3883,8 +3895,8 @@ _bfd_elf_map_sections_to_segments (bfd *abfd, struct bfd_link_info *info)
 		    if (s2->next->alignment_power == 2
 			&& (s2->next->flags & SEC_LOAD) != 0
 			&& CONST_STRNEQ (s2->next->name, ".note")
-			&& align_power (s2->vma + s2->size, 2)
-			   == s2->next->vma)
+			&& align_power (s2->lma + s2->size, 2)
+			   == s2->next->lma)
 		      count++;
 		    else
 		      break;
@@ -5858,7 +5870,7 @@ copy_elf_program_header (bfd *ibfd, bfd *obfd)
       bfd_size_type amt;
       Elf_Internal_Shdr *this_hdr;
       asection *first_section = NULL;
-      asection *lowest_section = NULL;
+      asection *lowest_section;
 
       /* Compute how many sections are in this segment.  */
       for (section = ibfd->sections, section_count = 0;
@@ -5868,10 +5880,8 @@ copy_elf_program_header (bfd *ibfd, bfd *obfd)
 	  this_hdr = &(elf_section_data(section)->this_hdr);
 	  if (ELF_SECTION_IN_SEGMENT (this_hdr, segment))
 	    {
-	      if (!first_section)
-		first_section = lowest_section = section;
-	      if (section->lma < lowest_section->lma)
-		lowest_section = section;
+	      if (first_section == NULL)
+		first_section = section;
 	      section_count++;
 	    }
 	}
@@ -5925,17 +5935,7 @@ copy_elf_program_header (bfd *ibfd, bfd *obfd)
 	    phdr_included = TRUE;
 	}
 
-      if (map->includes_filehdr && first_section)
-	/* We need to keep the space used by the headers fixed.  */
-	map->header_size = first_section->vma - segment->p_vaddr;
-      
-      if (!map->includes_phdrs
-	  && !map->includes_filehdr
-	  && map->p_paddr_valid)
-	/* There is some other padding before the first section.  */
-	map->p_vaddr_offset = ((lowest_section ? lowest_section->lma : 0)
-			       - segment->p_paddr);
-
+      lowest_section = first_section;
       if (section_count != 0)
 	{
 	  unsigned int isec = 0;
@@ -5948,12 +5948,41 @@ copy_elf_program_header (bfd *ibfd, bfd *obfd)
 	      if (ELF_SECTION_IN_SEGMENT (this_hdr, segment))
 		{
 		  map->sections[isec++] = section->output_section;
+		  if (section->lma < lowest_section->lma)
+		    lowest_section = section;
+		  if ((section->flags & SEC_ALLOC) != 0)
+		    {
+		      bfd_vma seg_off;
+
+		      /* Section lmas are set up from PT_LOAD header
+			 p_paddr in _bfd_elf_make_section_from_shdr.
+			 If this header has a p_paddr that disagrees
+			 with the section lma, flag the p_paddr as
+			 invalid.  */
+		      if ((section->flags & SEC_LOAD) != 0)
+			seg_off = this_hdr->sh_offset - segment->p_offset;
+		      else
+			seg_off = this_hdr->sh_addr - segment->p_vaddr;
+		      if (section->lma - segment->p_paddr != seg_off)
+			map->p_paddr_valid = FALSE;
+		    }
 		  if (isec == section_count)
 		    break;
 		}
 	    }
 	}
 
+      if (map->includes_filehdr && lowest_section != NULL)
+	/* We need to keep the space used by the headers fixed.  */
+	map->header_size = lowest_section->vma - segment->p_vaddr;
+      
+      if (!map->includes_phdrs
+	  && !map->includes_filehdr
+	  && map->p_paddr_valid)
+	/* There is some other padding before the first section.  */
+	map->p_vaddr_offset = ((lowest_section ? lowest_section->lma : 0)
+			       - segment->p_paddr);
+
       map->count = section_count;
       *pointer_to_map = map;
       pointer_to_map = &map->next;
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index 0cd1e64..74fb855 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -3475,6 +3475,36 @@ static bfd_reloc_status_type elf32_arm_final_link_relocate
    Elf_Internal_Rela *, bfd_vma, struct bfd_link_info *, asection *,
    const char *, int, struct elf_link_hash_entry *, bfd_boolean *, char **);
 
+static unsigned int
+arm_stub_required_alignment (enum elf32_arm_stub_type stub_type)
+{


hooks/post-receive
--
Repository for Project Archer.


             reply	other threads:[~2010-09-01 15:29 UTC|newest]

Thread overview: 120+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-01 15:29 swagiaal [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-02-01 19:25 jkratoch
2011-01-29 16:44 jkratoch
2011-01-25 12:53 pmuldoon
2011-01-25  9:10 jkratoch
2011-01-17 13:31 pmuldoon
2011-01-15 11:35 jkratoch
2011-01-14  8:04 jkratoch
2011-01-10 12:00 pmuldoon
2011-01-10  9:10 jkratoch
2011-01-07  5:57 jkratoch
2011-01-06 12:22 pmuldoon
2011-01-04  4:59 jkratoch
2010-12-31 22:30 jkratoch
2010-12-30  7:22 jkratoch
2010-12-22 20:11 swagiaal
2010-12-14 17:13 jkratoch
2010-12-14  8:27 pmuldoon
2010-12-10 17:16 jkratoch
2010-12-08 15:55 pmuldoon
2010-12-06  6:40 jkratoch
2010-12-04  1:03 jkratoch
2010-12-02 15:47 pmuldoon
2010-11-30  0:15 jkratoch
2010-11-28 18:02 jkratoch
2010-11-28  5:41 jkratoch
2010-11-16  5:04 jkratoch
2010-11-12 11:47 pmuldoon
2010-11-11 11:39 pmuldoon
2010-11-10  9:09 pmuldoon
2010-11-08  9:34 pmuldoon
2010-11-07 18:15 jkratoch
2010-10-22 14:28 pmuldoon
2010-10-20 12:48 pmuldoon
2010-10-19 16:01 pmuldoon
2010-10-17 20:27 jkratoch
2010-10-15 17:07 jkratoch
2010-10-14 20:55 jkratoch
2010-10-13 15:06 jkratoch
2010-10-12 16:45 jkratoch
2010-10-11  9:21 jkratoch
2010-10-11  8:47 pmuldoon
2010-10-06  9:00 pmuldoon
2010-09-30  8:56 pmuldoon
2010-09-27  9:48 jkratoch
2010-09-20 12:34 pmuldoon
2010-09-16 20:49 ratmice
2010-09-04 19:59 jkratoch
2010-09-03  7:26 jkratoch
2010-09-02 15:04 jkratoch
2010-08-23 13:54 jkratoch
2010-08-20 17:49 jkratoch
2010-08-12 15:19 swagiaal
2010-08-06 15:32 jkratoch
2010-07-29 19:17 swagiaal
2010-07-22 16:57 jkratoch
2010-07-22 16:26 jkratoch
2010-07-20 18:51 jkratoch
2010-07-09  8:09 jkratoch
2010-06-24  8:55 jkratoch
2010-06-23 20:56 jkratoch
2010-06-17 12:53 jkratoch
2010-06-07  8:14 jkratoch
2010-06-02 19:03 jkratoch
2010-05-28 21:27 jkratoch
2010-05-26 18:36 swagiaal
2010-05-17 18:02 jkratoch
2010-05-17  1:04 jkratoch
2010-05-10 19:30 swagiaal
2010-05-05 14:24 swagiaal
2010-05-03 13:49 jkratoch
2010-05-03  8:48 jkratoch
2010-05-02 23:10 jkratoch
2010-05-02 15:54 jkratoch
2010-04-30  7:11 jkratoch
2010-04-28 11:44 jkratoch
2010-04-25 20:22 jkratoch
2010-04-09 20:37 jkratoch
2010-04-07  1:41 jkratoch
2010-04-05 10:11 jkratoch
2010-04-04 11:58 jkratoch
2010-03-22 23:58 jkratoch
2010-03-20 17:23 jkratoch
2010-03-18 10:01 jkratoch
2010-03-17 18:04 jkratoch
2010-03-12 18:35 jkratoch
2010-03-04 22:28 jkratoch
2010-03-01 22:16 jkratoch
2010-02-26 22:16 jkratoch
2010-02-26 17:50 jkratoch
2010-02-17 16:01 swagiaal
2010-02-13 22:51 jkratoch
2010-02-11 12:51 jkratoch
2010-02-09 19:01 jkratoch
2010-02-08 21:46 jkratoch
2010-02-03  4:38 jkratoch
2010-01-31 17:25 jkratoch
2010-01-28 19:17 swagiaal
2010-01-28 10:56 jkratoch
2010-01-27 19:21 swagiaal
2010-01-27  8:08 jkratoch
2010-01-26 18:58 swagiaal
2010-01-20 21:48 jkratoch
2010-01-15  2:09 jkratoch
2010-01-15  0:52 jkratoch
2010-01-14 22:23 jkratoch
2010-01-13 20:53 jkratoch
2010-01-10 20:47 jkratoch
2010-01-09 10:03 jkratoch
2010-01-09  8:41 jkratoch
2010-01-08 19:16 jkratoch
2009-12-06 17:43 jkratoch
2009-12-03 16:32 jkratoch
2009-11-30 13:59 jkratoch
2009-11-24 21:21 jkratoch
2009-11-21  9:24 jkratoch
2009-11-20 21:06 jkratoch
2009-11-20 15:57 jkratoch
2009-11-17 19:59 jkratoch
2009-11-16  2:22 jkratoch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100901152919.1495.qmail@sourceware.org \
    --to=swagiaal@sourceware.org \
    --cc=archer-commits@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).