public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
From: jkratoch@sourceware.org
To: archer-commits@sourceware.org
Subject: [SCM]  master: Merge remote branch 'gdb/master'
Date: Sat, 20 Mar 2010 17:23:00 -0000	[thread overview]
Message-ID: <20100320172354.1617.qmail@sourceware.org> (raw)

The branch, master has been updated
       via  7726c14b2b55c88218cc622bd3629c05238ba648 (commit)
       via  403b00d53bbb55160acc789a5221d92baaf9fba4 (commit)
       via  f46c1895c13607eec2dbb614e368938bd3cb958f (commit)
       via  ab4a27848e235e08d16c1f3067cf6efa7c3775e5 (commit)
       via  d8e4cc35d768efb16a7175c58e9dbcc363606cad (commit)
       via  7681473b359bcaf543fbe8a27451741fafa69572 (commit)
       via  7374133f755918dd0933502abc8c4e915b8e4cb7 (commit)
       via  58521a5d58a51f258e44267e7388bfc741776805 (commit)
       via  609bf01b52df2370256e870e8e1701126e05fb15 (commit)
       via  fc1c5dc9208297f79e1459d0697872b699c248f2 (commit)
       via  cac8d8783acf3401a8ff30f2803936c5bb2fd998 (commit)
       via  c0d0f337070b16f366840164860667654684defa (commit)
       via  59da13e09bd259b4b0fab96258f139ff006f252a (commit)
       via  175ca91d848088ffa726d1893e373fb6c22b28ec (commit)
       via  824eed9133dacbdeadbdd89621306c8172855b6c (commit)
       via  c1b2dfc6d628431b37ecc57511c77015b05c832c (commit)
       via  9996828e666a4a9c3947a1971e5cc3f80fb3d170 (commit)
       via  f9237cb4c91c6f7c1cf34129c95e73f9b57103ae (commit)
       via  5ec0df9d361446395ef3b31f14ce7867443a665f (commit)
       via  4826048a48f3e0b7b9f2bf243d4e104b33f0bc77 (commit)
       via  1195a74372b34eb9acc86122537fef1a7bb5053c (commit)
       via  fe46fadfa1c830b1a20f222b9189b1b223cf1690 (commit)
      from  f3b002fc7b744d9be2395b48843742b96bb90c56 (commit)

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

- Log -----------------------------------------------------------------
commit 7726c14b2b55c88218cc622bd3629c05238ba648
Merge: f3b002fc7b744d9be2395b48843742b96bb90c56 403b00d53bbb55160acc789a5221d92baaf9fba4
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sat Mar 20 18:23:45 2010 +0100

    Merge remote branch 'gdb/master'

commit 403b00d53bbb55160acc789a5221d92baaf9fba4
Author: Daniel Jacobowitz <dan@debian.org>
Date:   Sat Mar 20 05:17:10 2010 +0000

    	* tui/tui-disasm.c (tui_get_begin_asm_address): Default to
    	get_current_arch.
    	* tui/tui-layout.c (extract_display_start_addr): Likewise.

commit f46c1895c13607eec2dbb614e368938bd3cb958f
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Sat Mar 20 00:00:04 2010 +0000

    *** empty log message ***

commit ab4a27848e235e08d16c1f3067cf6efa7c3775e5
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Fri Mar 19 23:01:24 2010 +0000

    daily update

commit d8e4cc35d768efb16a7175c58e9dbcc363606cad
Author: Stan Shebs <shebs@apple.com>
Date:   Fri Mar 19 22:00:16 2010 +0000

    2010-03-19  Stan Shebs  <stan@codesourcery.com>
    
    	* ax-gdb.c (gen_fetch): Handle bool.
    	(gen_usual_unary): Ditto.
    	(gen_cast): Ditto.
    	(gen_equal): New function.
    	(gen_less): New function.
    	(gen_expr_binop_rest): Call them, also return integer type from
    	logical operations.
    	(gen_expr): Ditto.
    
    	* gdb.trace/ax.exp: New file.

commit 7681473b359bcaf543fbe8a27451741fafa69572
Author: Tom Tromey <tromey@redhat.com>
Date:   Fri Mar 19 19:08:40 2010 +0000

    	* jv-lang.c (jv_dynamics_objfile_data_key)
    	(jv_type_objfile_data_key): New globals.
    	(class_symtab): Move earlier.
    	(jv_per_objfile_free): New function.
    	(get_dynamics_objfile): Call set_objfile_data.  Add 'gdbarch'
    	parameter.
    	Remove ancient #if 1.
    	(add_class_symbol): Remove redundant declaration.
    	(java_lookup_class): Use alloc_type, not alloc_type_arch.
    	(java_link_class_type): Mark as static.  Update.
    	(jv_clear_object_type): New function.
    	(set_java_object_type): Likewise.
    	(get_java_object_type): Use set_java_object_type.
    	(is_object_type): Likewise.
    	(_initialize_java_language): Register new objfile keys.
    	(get_java_class_symtab): Add 'gdbarch' parameter.
    	(add_class_symtab_symbol): Update.
    	(type_from_class): Update.

commit 7374133f755918dd0933502abc8c4e915b8e4cb7
Author: Stan Shebs <shebs@apple.com>
Date:   Fri Mar 19 18:21:01 2010 +0000

    2010-03-19  Stan Shebs  <stan@codesourcery.com>
    
    	* ax-general.c (ax_const_l): Fix a sizing bug.

commit 58521a5d58a51f258e44267e7388bfc741776805
Author: Doug Evans <dje@google.com>
Date:   Fri Mar 19 17:59:37 2010 +0000

    	* lib/gdb.exp (gdb_compile_test): Watch for "compiler not installed"
    	output from gcc.

commit 609bf01b52df2370256e870e8e1701126e05fb15
Author: Doug Evans <dje@google.com>
Date:   Fri Mar 19 17:57:17 2010 +0000

    	* gdb.base/break-interp.exp (prelinkNO): Handle prelink binaries
    	named /usr/sbin/prelink<foo>.

commit fc1c5dc9208297f79e1459d0697872b699c248f2
Author: Jie Zhang <jie.zhang@analog.com>
Date:   Fri Mar 19 17:04:15 2010 +0000

    	* elf32-arm.c (struct section_list): Remove.
    	(section_list): Remove typedef.
    	(record_section_with_arm_elf_section_data): Remove.
    	(find_arm_elf_section_entry): Remove.
    	(get_arm_elf_section_data): Use is_arm_elf.
    	(unrecord_section_with_arm_elf_section_data): Remove.
    	(elf32_arm_new_section_hook): Don't call
    	record_section_with_arm_elf_section_data.
    	(elf32_arm_write_section): Set mapcount to -1 when
    	the map has been used. Don't call
    	unrecord_section_with_arm_elf_section_data.
    	(unrecord_section_via_map_over_sections): Remove.
    	(elf32_arm_close_and_cleanup): Remove.
    	(elf32_arm_bfd_free_cached_info): Remove.
    	(bfd_elf32_close_and_cleanup): Don't define.
    	(bfd_elf32_bfd_free_cached_info): Don't define.

commit cac8d8783acf3401a8ff30f2803936c5bb2fd998
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Fri Mar 19 00:00:03 2010 +0000

    *** empty log message ***

commit c0d0f337070b16f366840164860667654684defa
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Thu Mar 18 23:01:18 2010 +0000

    daily update

commit 59da13e09bd259b4b0fab96258f139ff006f252a
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Thu Mar 18 22:25:24 2010 +0000

    GDB 7.1 released.

commit 175ca91d848088ffa726d1893e373fb6c22b28ec
Author: Stan Shebs <shebs@apple.com>
Date:   Thu Mar 18 21:23:32 2010 +0000

    2010-03-18  Stan Shebs  <stan@codesourcery.com>
    	    Pedro Alves  <pedro@codesourcery.com>
    
    	* target.h (struct target_ops): New method
    	to_set_circular_trace_buffer.
    	(target_set_circular_trace_buffer): New macro.
    	* target.c (update_current_target): Add
    	to_set_circular_trace_buffer, fix to_set_disconnected_tracing
    	default behavior.
    	* remote.c (remote_set_circular_trace_buffer): New function.
    	(init_remote_ops): Add it to vector.
    	* tracepoint.h (struct trace_status): New field traceframes_created,
    	change buffer_size and buffer_free to int.
    	* tracepoint.c (circular_trace_buffer): New global.
    	(start_tracing): Send values of disconnected tracing and circular
    	trace buffer settings.
    	(set_circular_trace_buffer): New function.
    	(parse_trace_state): Handle total space and frames created.
    	(trace_status_command): Display total space and total frames
    	created.
    	(trace_save): Write out new status values.
    	(parse_trace_status): Set traceframe_count, traceframes_created,
    	buffer_free and buffer_size to -1 by default.
    	(_initialize_tracepoint): New setshow for circular-trace-buffer.
    	* NEWS: Mention the circular trace buffer option.
    
    	* gdb.texinfo (Starting and Stopping Trace Experiments): Describe
    	circular-trace-buffer.
    	(Tracepoint Packets): Describe QTBuffer, and details of the
    	qTStatus reply.
    
    	* gdb.trace/circ.exp: Test circular-trace-buffer.
    	* gdb.trace/tfile.exp: Update tstatus test.

commit 824eed9133dacbdeadbdd89621306c8172855b6c
Author: Joel Brobecker <brobecker@gnat.com>
Date:   Thu Mar 18 18:35:52 2010 +0000

    [dwarf] Anonymous nested function causes SEGV during psymbol read
    
    According to the DWARF3 standard, a function always has a name attribute
    (Section 3.3 - Subroutine and Entry Point Entries).  The only exception
    is when a DW_AT_abstract_origin attribute is provided, in which case
    the name may be inherited from the referenced DIE.
    
    The problem occured because our compiler generated a subprogram DIE
    for a nested function where the name attribute was missing (and no
    abstract-origin either).  Our code in add_partial_symbol is not
    prepared to deal with the situation, and happily just tries  to compute
    the length of the (NULL) function name.
    
    This normally cannot happen, because there is already a guard in
    scan_partial_symbols, where we (silently!) ignore anonymous dies,
    including anonymous subprograms. Unfortunately, there is a flaw that
    affects Ada and other languages that allow nested subprograms. For
    nested subprograms, we do not go through scan_partial_symbols and
    thus we are missing the name check.
    
    This patch adds the name check in the nested subprogram case. It also
    adds a complaint which is emitted during the psymtab->symtab conversion
    phase.
    
    gdb/ChangeLog:
    
            * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
            DIE has a name before creating the associated partial symbol.
            (read_func_scope): Emit a complaint if the subprogram does not
            have a name or when we can't extract the subprogram PC bounds.
    
    gdb/testsuite/ChangeLog:
    
            * gdb.dwarf2/dw2-anonymous-func.S: New file.
            * gdb.dwarf2/dw2-anonymous-func.exp: New testcase.
    
    Tested on x86_64-linux, no regression.  Note that the testcase also
    verifies that the psymtab->symtab conversion does not crash (this is
    the purpose of the "list file1.txt:1" test.

commit c1b2dfc6d628431b37ecc57511c77015b05c832c
Author: Tom Tromey <tromey@redhat.com>
Date:   Thu Mar 18 18:01:58 2010 +0000

    	* infcmd.c (finish_command_continuation): Wrap print_return_value
    	in TRY_CATCH.

commit 9996828e666a4a9c3947a1971e5cc3f80fb3d170
Author: Stan Shebs <shebs@apple.com>
Date:   Thu Mar 18 16:01:29 2010 +0000

    Fix last checkin

commit f9237cb4c91c6f7c1cf34129c95e73f9b57103ae
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Thu Mar 18 14:44:44 2010 +0000

    Move ChangeLog entries to proper place.

commit 5ec0df9d361446395ef3b31f14ce7867443a665f
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date:   Thu Mar 18 13:25:17 2010 +0000

    ChangeLog:
    
    	* mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
    	instead of selected frame architecture.
    
    testsuite/ChangeLog:
    
    	* gdb.mi/gdb680.exp: Revert 2009-06-17 change.

commit 4826048a48f3e0b7b9f2bf243d4e104b33f0bc77
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Thu Mar 18 13:21:33 2010 +0000

    	gdb/
    	* infcmd.c (until_command): Use ERROR_NO_INFERIOR.  Ensure there's
    	a valid selected thread, and that it is not running.
    	(advance_command): Ditto.
    	(finish_command): Ditto.
    
    	gdb/testsuite/
    	* gdb.base/default.exp: Adjust.

commit 1195a74372b34eb9acc86122537fef1a7bb5053c
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Thu Mar 18 12:27:14 2010 +0000

    Don't add IMAGE_FILE_RELOCS_STRIPPED for PIE.
    
    2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
    
    	PR binutils/11396
    	* libcoff-in.h (pe_tdata): Add dont_strip_reloc.
    	* libcoff.h: Regenerated.
    
    	* peXXigen.c (_bfd_XXi_only_swap_filehdr_out): Clear F_RELFLG
    	if dont_strip_reloc is set.
    	(_bfd_XX_bfd_copy_private_bfd_data_common): Set
    	dont_strip_reloc on output if there is no .reloc and
    	IMAGE_FILE_RELOCS_STRIPPED isn't set in input.

commit fe46fadfa1c830b1a20f222b9189b1b223cf1690
Author: Nick Clifton <nickc@redhat.com>
Date:   Thu Mar 18 11:22:43 2010 +0000

    bfd/
    2010-03-15  Wei Guozhi  <carrot@google.com>
    
           PR gas/11323
           * bfd-in2.h (enum bfd_reloc_code_real): New BFD_RELOC_GOT_PREL type.
           * elf32-arm.c (elf32_arm_reloc_map): BFD_RELOC_GOT_PREL to
           R_ARM_GOT_PREL map.
           * libbfd.h (bfd_reloc_code_real_names): BFD_RELOC_GOT_PREL name.
           * reloc.c (comments): Document the new relocation.
    
    gas/
    2010-03-15  Wei Guozhi  <carrot@google.com>
    
           PR gas/11323
           * config/tc-arm.c (reloc_names): New relocation names.
           (md_apply_fix): New case for BFD_RELOC_ARM_GOT_PREL.
           (tc_gen_reloc): New case for BFD_RELOC_ARM_GOT_PREL.
           * doc/c-arm.texi (ARM-Relocations): Document the new relocation.
    
    gas/testsuite
    2010-03-15  Wei Guozhi  <carrot@google.com>
    
           PR gas/11323
           * gas/arm/got_prel.s: New test case.
           * gas/arm/got_prel.d: Likewise.

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

Summary of changes:
 bfd/ChangeLog                                   |   40 ++++
 bfd/bfd-in2.h                                   |    1 +
 bfd/elf32-arm.c                                 |  135 +------------
 bfd/libbfd.h                                    |    1 +
 bfd/libcoff-in.h                                |    1 +
 bfd/libcoff.h                                   |    1 +
 bfd/peXXigen.c                                  |   11 +-
 bfd/reloc.c                                     |    2 +
 bfd/version.h                                   |    2 +-
 gdb/ChangeLog                                   |   96 +++++++++
 gdb/NEWS                                        |   19 ++-
 gdb/ax-gdb.c                                    |   77 +++++---
 gdb/ax-general.c                                |    2 +-
 gdb/doc/ChangeLog                               |    7 +
 gdb/doc/gdb.texinfo                             |   96 +++++++++-
 gdb/dwarf2read.c                                |   27 ++-
 gdb/infcmd.c                                    |   31 ++-
 gdb/jv-lang.c                                   |   92 +++++++--
 gdb/mi/mi-main.c                                |    4 +-
 gdb/remote.c                                    |   13 ++
 gdb/target.c                                    |    6 +-
 gdb/target.h                                    |    4 +
 gdb/testsuite/ChangeLog                         |   31 +++
 gdb/testsuite/gdb.base/break-interp.exp         |    2 +-
 gdb/testsuite/gdb.base/default.exp              |    6 +-
 gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.S   |  248 +++++++++++++++++++++++
 gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.exp |   53 +++++
 gdb/testsuite/gdb.mi/gdb680.exp                 |    2 +-
 gdb/testsuite/gdb.trace/ax.exp                  |  138 +++++++++++++
 gdb/testsuite/gdb.trace/circ.exp                |    9 +
 gdb/testsuite/gdb.trace/tfile.exp               |    4 +-
 gdb/testsuite/lib/gdb.exp                       |    2 +
 gdb/tracepoint.c                                |   86 +++++++-
 gdb/tracepoint.h                                |   14 +-
 gdb/tui/tui-disasm.c                            |    3 +-
 gdb/tui/tui-layout.c                            |    3 +-
 gdb/version.in                                  |    2 +-
 include/ChangeLog                               |    9 -
 include/elf/ChangeLog                           |    9 +
 39 files changed, 1049 insertions(+), 240 deletions(-)
 create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.S
 create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.exp
 create mode 100644 gdb/testsuite/gdb.trace/ax.exp

First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 0172fdf..1558883 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,43 @@
+2010-03-19  Jie Zhang  <jie@codesourcery.com>
+
+	* elf32-arm.c (struct section_list): Remove.
+	(section_list): Remove typedef.
+	(record_section_with_arm_elf_section_data): Remove.
+	(find_arm_elf_section_entry): Remove.
+	(get_arm_elf_section_data): Use is_arm_elf.
+	(unrecord_section_with_arm_elf_section_data): Remove.
+	(elf32_arm_new_section_hook): Don't call
+	record_section_with_arm_elf_section_data.
+	(elf32_arm_write_section): Set mapcount to -1 when
+	the map has been used. Don't call
+	unrecord_section_with_arm_elf_section_data.
+	(unrecord_section_via_map_over_sections): Remove.
+	(elf32_arm_close_and_cleanup): Remove.
+	(elf32_arm_bfd_free_cached_info): Remove.
+	(bfd_elf32_close_and_cleanup): Don't define.
+	(bfd_elf32_bfd_free_cached_info): Don't define.
+
+2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
+
+	PR binutils/11396
+	* libcoff-in.h (pe_tdata): Add dont_strip_reloc.
+	* libcoff.h: Regenerated.
+
+	* peXXigen.c (_bfd_XXi_only_swap_filehdr_out): Clear F_RELFLG
+	if dont_strip_reloc is set.
+	(_bfd_XX_bfd_copy_private_bfd_data_common): Set
+	dont_strip_reloc on output if there is no .reloc and
+	IMAGE_FILE_RELOCS_STRIPPED isn't set in input.
+
+2010-03-18  Wei Guozhi  <carrot@google.com>
+
+	PR gas/11323
+	* elf32-arm.c (elf32_arm_reloc_map): Map BFD_RELOC_ARM_GOT_PREL to
+	R_ARM_GOT_PREL.
+	* reloc.c (BFD_RELOC_ARM_GOT_PREL): New ARM relocation.
+	* bfd-in2.h: Regenerate.
+	* libbfd.h: Regenerate.
+
 2010-03-17  H.J. Lu  <hongjiu.lu@intel.com>
 
 	* reloc.c (BFD_RELOC_SPU_PIC18): Removed.
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index c90ac2d..31af74f 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -3114,6 +3114,7 @@ pc-relative or some form of GOT-indirect relocation.  */
   BFD_RELOC_ARM_RELATIVE,
   BFD_RELOC_ARM_GOTOFF,
   BFD_RELOC_ARM_GOTPC,
+  BFD_RELOC_ARM_GOT_PREL,
 
 /* ARM thread-local storage relocations.  */
   BFD_RELOC_ARM_TLS_GD32,
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index eede7ec..565861e 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -1721,6 +1721,7 @@ static const struct elf32_arm_reloc_map elf32_arm_reloc_map[] =
     {BFD_RELOC_ARM_RELATIVE,         R_ARM_RELATIVE},
     {BFD_RELOC_ARM_GOTOFF,           R_ARM_GOTOFF32},
     {BFD_RELOC_ARM_GOTPC,            R_ARM_GOTPC},
+    {BFD_RELOC_ARM_GOT_PREL,         R_ARM_GOT_PREL},
     {BFD_RELOC_ARM_GOT32,            R_ARM_GOT32},
     {BFD_RELOC_ARM_PLT32,            R_ARM_PLT32},
     {BFD_RELOC_ARM_TARGET1,	     R_ARM_TARGET1},
@@ -12786,108 +12787,15 @@ elf32_arm_section_from_shdr (bfd *abfd,
   return TRUE;
 }
 
-/* A structure used to record a list of sections, independently
-   of the next and prev fields in the asection structure.  */
-typedef struct section_list
-{
-  asection * sec;
-  struct section_list * next;
-  struct section_list * prev;
-}
-section_list;
-
-/* Unfortunately we need to keep a list of sections for which
-   an _arm_elf_section_data structure has been allocated.  This
-   is because it is possible for functions like elf32_arm_write_section
-   to be called on a section which has had an elf_data_structure
-   allocated for it (and so the used_by_bfd field is valid) but
-   for which the ARM extended version of this structure - the
-   _arm_elf_section_data structure - has not been allocated.  */
-static section_list * sections_with_arm_elf_section_data = NULL;
-
-static void
-record_section_with_arm_elf_section_data (asection * sec)
-{
-  struct section_list * entry;
-
-  entry = (struct section_list *) bfd_malloc (sizeof (* entry));
-  if (entry == NULL)
-    return;
-  entry->sec = sec;
-  entry->next = sections_with_arm_elf_section_data;
-  entry->prev = NULL;
-  if (entry->next != NULL)
-    entry->next->prev = entry;
-  sections_with_arm_elf_section_data = entry;
-}
-
-static struct section_list *
-find_arm_elf_section_entry (asection * sec)
-{
-  struct section_list * entry;
-  static struct section_list * last_entry = NULL;
-
-  /* This is a short cut for the typical case where the sections are added
-     to the sections_with_arm_elf_section_data list in forward order and
-     then looked up here in backwards order.  This makes a real difference
-     to the ld-srec/sec64k.exp linker test.  */
-  entry = sections_with_arm_elf_section_data;
-  if (last_entry != NULL)
-    {
-      if (last_entry->sec == sec)
-	entry = last_entry;
-      else if (last_entry->next != NULL
-	       && last_entry->next->sec == sec)
-	entry = last_entry->next;
-    }
-
-  for (; entry; entry = entry->next)
-    if (entry->sec == sec)
-      break;
-
-  if (entry)
-    /* Record the entry prior to this one - it is the entry we are most
-       likely to want to locate next time.  Also this way if we have been
-       called from unrecord_section_with_arm_elf_section_data() we will not
-       be caching a pointer that is about to be freed.  */
-    last_entry = entry->prev;
-
-  return entry;
-}
-
 static _arm_elf_section_data *
 get_arm_elf_section_data (asection * sec)
 {
-  struct section_list * entry;
-
-  entry = find_arm_elf_section_entry (sec);
-
-  if (entry)
-    return elf32_arm_section_data (entry->sec);
+  if (sec && sec->owner && is_arm_elf (sec->owner))
+    return elf32_arm_section_data (sec);
   else
     return NULL;
 }
 
-static void
-unrecord_section_with_arm_elf_section_data (asection * sec)
-{
-  struct section_list * entry;
-
-  entry = find_arm_elf_section_entry (sec);
-
-  if (entry)
-    {
-      if (entry->prev != NULL)
-	entry->prev->next = entry->next;
-      if (entry->next != NULL)
-	entry->next->prev = entry->prev;
-      if (entry == sections_with_arm_elf_section_data)
-	sections_with_arm_elf_section_data = entry->next;
-      free (entry);
-    }
-}
-
-
 typedef struct
 {
   void *finfo;
@@ -13312,8 +13220,6 @@ elf32_arm_new_section_hook (bfd *abfd, asection *sec)
       sec->used_by_bfd = sdata;
     }
 
-  record_section_with_arm_elf_section_data (sec);
-
   return _bfd_elf_new_section_hook (abfd, sec);
 }
 
@@ -13744,44 +13650,13 @@ elf32_arm_write_section (bfd *output_bfd,
     }
 
   free (map);
-  arm_data->mapcount = 0;
+  arm_data->mapcount = -1;
   arm_data->mapsize = 0;
   arm_data->map = NULL;
-  unrecord_section_with_arm_elf_section_data (sec);
 
   return FALSE;
 }
 
-static void
-unrecord_section_via_map_over_sections (bfd * abfd ATTRIBUTE_UNUSED,
-					asection * sec,
-					void * ignore ATTRIBUTE_UNUSED)
-{
-  unrecord_section_with_arm_elf_section_data (sec);
-}
-
-static bfd_boolean
-elf32_arm_close_and_cleanup (bfd * abfd)
-{
-  if (abfd->sections)
-    bfd_map_over_sections (abfd,
-			   unrecord_section_via_map_over_sections,
-			   NULL);
-
-  return _bfd_elf_close_and_cleanup (abfd);
-}
-
-static bfd_boolean
-elf32_arm_bfd_free_cached_info (bfd * abfd)
-{
-  if (abfd->sections)
-    bfd_map_over_sections (abfd,
-			   unrecord_section_via_map_over_sections,
-			   NULL);
-
-  return _bfd_free_cached_info (abfd);
-}
-
 /* Display STT_ARM_TFUNC symbols as functions.  */
 
 static void
@@ -13968,8 +13843,6 @@ const struct elf_size_info elf32_arm_size_info =
 #define bfd_elf32_find_inliner_info	        elf32_arm_find_inliner_info
 #define bfd_elf32_new_section_hook		elf32_arm_new_section_hook
 #define bfd_elf32_bfd_is_target_special_symbol	elf32_arm_is_target_special_symbol
-#define bfd_elf32_close_and_cleanup             elf32_arm_close_and_cleanup
-#define bfd_elf32_bfd_free_cached_info          elf32_arm_bfd_free_cached_info
 #define bfd_elf32_bfd_final_link		elf32_arm_final_link
 
 #define elf_backend_get_symbol_type             elf32_arm_get_symbol_type
diff --git a/bfd/libbfd.h b/bfd/libbfd.h
index fa9d187..65cfccf 100644
--- a/bfd/libbfd.h
+++ b/bfd/libbfd.h
@@ -1330,6 +1330,7 @@ static const char *const bfd_reloc_code_real_names[] = { "@@uninitialized@@",
   "BFD_RELOC_ARM_RELATIVE",
   "BFD_RELOC_ARM_GOTOFF",
   "BFD_RELOC_ARM_GOTPC",
+  "BFD_RELOC_ARM_GOT_PREL",
   "BFD_RELOC_ARM_TLS_GD32",
   "BFD_RELOC_ARM_TLS_LDO32",
   "BFD_RELOC_ARM_TLS_LDM32",
diff --git a/bfd/libcoff-in.h b/bfd/libcoff-in.h
index cf0a319..e2b60c5 100644
--- a/bfd/libcoff-in.h
+++ b/bfd/libcoff-in.h
@@ -118,6 +118,7 @@ typedef struct pe_tdata
   struct internal_extra_pe_aouthdr pe_opthdr;
   int dll;
   int has_reloc_section;
+  int dont_strip_reloc;
   bfd_boolean (*in_reloc_p) (bfd *, reloc_howto_type *);
   flagword real_flags;
 } pe_data_type;
diff --git a/bfd/libcoff.h b/bfd/libcoff.h
index db5e290..966f71e 100644
--- a/bfd/libcoff.h
+++ b/bfd/libcoff.h
@@ -122,6 +122,7 @@ typedef struct pe_tdata
   struct internal_extra_pe_aouthdr pe_opthdr;
   int dll;
   int has_reloc_section;
+  int dont_strip_reloc;
   bfd_boolean (*in_reloc_p) (bfd *, reloc_howto_type *);
   flagword real_flags;
 } pe_data_type;
diff --git a/bfd/peXXigen.c b/bfd/peXXigen.c
index 87e66d7..8f56f21 100644
--- a/bfd/peXXigen.c
+++ b/bfd/peXXigen.c
@@ -740,7 +740,8 @@ _bfd_XXi_only_swap_filehdr_out (bfd * abfd, void * in, void * out)
   struct internal_filehdr *filehdr_in = (struct internal_filehdr *) in;
   struct external_PEI_filehdr *filehdr_out = (struct external_PEI_filehdr *) out;
 
-  if (pe_data (abfd)->has_reloc_section)
+  if (pe_data (abfd)->has_reloc_section
+      || pe_data (abfd)->dont_strip_reloc)
     filehdr_in->f_flags &= ~F_RELFLG;
 
   if (pe_data (abfd)->dll)
@@ -2206,6 +2207,14 @@ _bfd_XX_bfd_copy_private_bfd_data_common (bfd * ibfd, bfd * obfd)
       pe_data (obfd)->pe_opthdr.DataDirectory[PE_BASE_RELOCATION_TABLE].VirtualAddress = 0;
       pe_data (obfd)->pe_opthdr.DataDirectory[PE_BASE_RELOCATION_TABLE].Size = 0;
     }
+
+  /* For PIE, if there is .reloc, we won't add IMAGE_FILE_RELOCS_STRIPPED.
+     But there is no .reloc, we make sure that IMAGE_FILE_RELOCS_STRIPPED
+     won't be added.  */
+  if (! pe_data (ibfd)->has_reloc_section
+      && ! (pe_data (ibfd)->real_flags & IMAGE_FILE_RELOCS_STRIPPED))
+    pe_data (obfd)->dont_strip_reloc = 1;
+
   return TRUE;
 }
 
diff --git a/bfd/reloc.c b/bfd/reloc.c
index 1974851..cacd0de 100644
--- a/bfd/reloc.c
+++ b/bfd/reloc.c
@@ -2936,6 +2936,8 @@ ENUMX
   BFD_RELOC_ARM_GOTOFF
 ENUMX
   BFD_RELOC_ARM_GOTPC
+ENUMX
+  BFD_RELOC_ARM_GOT_PREL
 ENUMDOC
   Relocations for setting up GOTs and PLTs for shared libraries.
 
diff --git a/bfd/version.h b/bfd/version.h
index c9fbf2d..8fe0c65 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100318
+#define BFD_VERSION_DATE 20100320
 #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/gdb/ChangeLog b/gdb/ChangeLog
index f961562..6507b66 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,99 @@
+2010-03-20  Daniel Jacobowitz  <dan@codesourcery.com>
+
+	* tui/tui-disasm.c (tui_get_begin_asm_address): Default to
+	get_current_arch.
+	* tui/tui-layout.c (extract_display_start_addr): Likewise.
+
+2010-03-19  Stan Shebs  <stan@codesourcery.com>
+
+	* ax-gdb.c (gen_fetch): Handle bool.
+	(gen_usual_unary): Ditto.
+	(gen_cast): Ditto.
+	(gen_equal): New function.
+	(gen_less): New function.
+	(gen_expr_binop_rest): Call them, also return integer type from
+	logical operations.
+	(gen_expr): Ditto.
+
+2010-03-19  Tom Tromey  <tromey@redhat.com>
+
+	* jv-lang.c (jv_dynamics_objfile_data_key)
+	(jv_type_objfile_data_key): New globals.
+	(class_symtab): Move earlier.
+	(jv_per_objfile_free): New function.
+	(get_dynamics_objfile): Call set_objfile_data.  Add 'gdbarch'
+	parameter.
+	Remove ancient #if 1.
+	(add_class_symbol): Remove redundant declaration.
+	(java_lookup_class): Use alloc_type, not alloc_type_arch.
+	(java_link_class_type): Mark as static.  Update.
+	(jv_clear_object_type): New function.
+	(set_java_object_type): Likewise.
+	(get_java_object_type): Use set_java_object_type.
+	(is_object_type): Likewise.
+	(_initialize_java_language): Register new objfile keys.
+	(get_java_class_symtab): Add 'gdbarch' parameter.
+	(add_class_symtab_symbol): Update.
+	(type_from_class): Update.
+
+2010-03-19  Stan Shebs  <stan@codesourcery.com>
+
+	* ax-general.c (ax_const_l): Fix a sizing bug. 
+
+2010-03-18  Joel Brobecker  <brobecker@adacore.com>
+
+	GDB 7.1 released.
+
+2010-03-18  Stan Shebs  <stan@codesourcery.com>
+	    Pedro Alves  <pedro@codesourcery.com>
+
+	* target.h (struct target_ops): New method
+	to_set_circular_trace_buffer.
+	(target_set_circular_trace_buffer): New macro.
+	* target.c (update_current_target): Add
+	to_set_circular_trace_buffer, fix to_set_disconnected_tracing
+	default behavior.
+	* remote.c (remote_set_circular_trace_buffer): New function.
+	(init_remote_ops): Add it to vector.
+	* tracepoint.h (struct trace_status): New field traceframes_created,
+	change buffer_size and buffer_free to int.
+	* tracepoint.c (circular_trace_buffer): New global.
+	(start_tracing): Send values of disconnected tracing and circular
+	trace buffer settings.
+	(set_circular_trace_buffer): New function.
+	(parse_trace_state): Handle total space and frames created.
+	(trace_status_command): Display total space and total frames
+	created.
+	(trace_save): Write out new status values.
+	(parse_trace_status): Set traceframe_count, traceframes_created,
+	buffer_free and buffer_size to -1 by default.
+	(_initialize_tracepoint): New setshow for circular-trace-buffer.
+	* NEWS: Mention the circular trace buffer option.
+
+2010-03-18  Tom Tromey  <tromey@redhat.com>
+
+	* infcmd.c (finish_command_continuation): Wrap print_return_value
+	in TRY_CATCH.
+
+2010-03-18  Joel Brobecker  <brobecker@adacore.com>
+
+	* dwarf2read.c (add_partial_subprogram): Make sure the subprogram
+	DIE has a name before creating the associated partial symbol.
+	(read_func_scope): Emit a complaint if the subprogram does not
+	have a name or when we can't extract the subprogram PC bounds.
+
+2010-03-18  Ulrich Weigand  <uweigand@de.ibm.com>
+
+	* mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
+	instead of selected frame architecture.
+
+2010-03-18  Pedro Alves  <pedro@codesourcery.com>
+
+	* infcmd.c (until_command): Use ERROR_NO_INFERIOR.  Ensure there's
+	a valid selected thread, and that it is not running.
+	(advance_command): Ditto.
+	(finish_command): Ditto.
+
 2010-03-17 Stan Shebs  <stan@codesourcery.com>
 
 	* ax-gdb.c (require_rvalue): Disallow non-scalars.
diff --git a/gdb/NEWS b/gdb/NEWS
index 64c48f6..ff4e4af 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -114,7 +114,14 @@ Renesas RX			rx
   tracing run at the moment that it was saved.  To create a trace
   file, use "tsave <filename>", and to use it, do "target tfile
   <name>".
-  
+
+  ** Circular trace buffer
+
+  You can ask the target agent to handle the trace buffer as a
+  circular buffer, discarding the oldest trace frames to make room for
+  newer ones, by setting circular-trace-buffer to on.  This feature may
+  not be available for all target agents.
+
 * Changed commands
 
 disassemble
@@ -215,6 +222,13 @@ show disconnected-tracing
    loses its connection to GDB.  If 0, the target is to stop tracing
    upon disconnection.
 
+set circular-trace-buffer
+show circular-trace-buffer
+   If set to on, the target is instructed to use a circular trace buffer
+   and discard the oldest trace frames instead of stopping the trace due
+   to a full trace buffer.  If set to off, the trace stops when the buffer
+   fills up.  Some targets may not support this.
+
 set script-extension off|soft|strict
 show script-extension
    If set to "off", the debugger does not perform any script language
@@ -258,6 +272,9 @@ qTV
 QTDisconnected
    Set desired tracing behavior upon disconnection.
 
+QTBuffer:circular
+   Set the trace buffer to be linear or circular.
+
 qTfP, qTsP
    Get data about the tracepoints currently in use.
 
diff --git a/gdb/ax-gdb.c b/gdb/ax-gdb.c
index 4307de3..e79fe38 100644
--- a/gdb/ax-gdb.c
+++ b/gdb/ax-gdb.c
@@ -478,6 +478,7 @@ gen_fetch (struct agent_expr *ax, struct type *type)
     case TYPE_CODE_ENUM:
     case TYPE_CODE_INT:
     case TYPE_CODE_CHAR:
+    case TYPE_CODE_BOOL:
       /* It's a scalar value, so we know how to dereference it.  How
          many bytes long is it?  */
       switch (TYPE_LENGTH (type))
@@ -752,7 +753,7 @@ require_rvalue (struct agent_expr *ax, struct axs_value *value)
       || TYPE_CODE (value->type) == TYPE_CODE_STRUCT
       || TYPE_CODE (value->type) == TYPE_CODE_UNION
       || TYPE_CODE (value->type) == TYPE_CODE_FUNC)
-    error ("Value not scalar: cannot be an rvalue.");


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


             reply	other threads:[~2010-03-20 17:23 UTC|newest]

Thread overview: 120+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-20 17:23 jkratoch [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-09-01 15:29 swagiaal
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-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=20100320172354.1617.qmail@sourceware.org \
    --to=jkratoch@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).