public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  archer-sergio-catch-syscall: Merge commit 'gdb/master' into catch-syscall
@ 2008-11-11 18:33 sergio
  0 siblings, 0 replies; 4+ messages in thread
From: sergio @ 2008-11-11 18:33 UTC (permalink / raw)
  To: archer-commits

The branch, archer-sergio-catch-syscall has been updated
       via  95b1172ca749910802eb3953ec518be218ac49e9 (commit)
       via  1d82da27ebbab15fe196e4842a9777b20fb34cd8 (commit)
       via  470a797af9ea10307ee82dcc17fe9e15bef92fa6 (commit)
       via  bd7b05d7c05dc9ad6063f1113b84a8a22189f468 (commit)
       via  0837a3180f4be8a06b4a230e084e675b1f769788 (commit)
       via  539c9e528476b11d53e0c7e543a5a713a1721e96 (commit)
       via  da7fd212a824daf426dd08d07d97630a2a03764e (commit)
       via  5fc1efeb3cf158f711ea78785b377942fa7efc92 (commit)
       via  fc954e97743419bc15e69461fed5fc4b7d7061e3 (commit)
       via  83cf5b6e62f3c84dca7534bc7078e3ed7ab81986 (commit)
       via  2301d0cb9d31763ca28460c9fecc308120149c0a (commit)
       via  fbdc18c6fdc2c2242759db89754880e8e1c2dc3a (commit)
       via  b32a10dff8f05d23a236fb9e6218cdcaa4882d43 (commit)
       via  67259e81f777345c0a57fa1a658cbe76a38074cc (commit)
       via  9a61fea6bb6688fd79be98a3d0a762920c6f82f8 (commit)
       via  1a17e40731a1c5cb5bd1f38188c8ee5d7358144a (commit)
       via  6cef41d170a541a1a0ecd3b4a3fd6604b17441ab (commit)
       via  8c15bd9c35810bd13f3cf76778921c2720381b82 (commit)
       via  6d937320fa6b4c6bab9fecddad029d1154f3ce57 (commit)
       via  a3786d5b56b9e490fcb222534600de3290b32573 (commit)
       via  3ed2b5519dd59243afc2e0247fb1bf2fadccf782 (commit)
       via  34d9a4be735089aff39c0815af785394dc822afa (commit)
       via  a662a231e16ecb97b865e0d13a9f2932abdc0a1e (commit)
       via  502caf701374df2ef550841611071c343740031e (commit)
       via  b4e87467e67a27ad839b4c4a9755804dd8c5003a (commit)
       via  48ceb8d63c54946f3f4d8d3758103c1f7eb5e614 (commit)
       via  6bb8939b7104369c8831d1bbd4a78ee986a9ee93 (commit)
       via  1b4ed564885ab95429ffdfc1d07c849ae6f0347d (commit)
       via  a1b562fc7b79b7352825cad336b424c3193c4583 (commit)
       via  d297acb5d793f7b228a638296cbdf28df13ba27b (commit)
       via  4e87deb1b2bbb9446d99c446ebe092ca9d343ded (commit)
       via  842a1248c74850a500ab465479dfd1c7b4571b6a (commit)
       via  910d63a50e403ea202f85b8b94d2e65980b1f86a (commit)
       via  b9dca975b7d7ea2dfb6298e1cd965119eddd5291 (commit)
       via  b30d4db9c6c02926e2d7c1277a20ea4157947dca (commit)
       via  3ac2a75a00cb17265fe90f06a0a42a97b3d041ee (commit)
       via  583e12aaa9c8dc9101a638732d6674ddf56bc9bd (commit)
       via  d1d203e291e074141bd005494ff3914847ab9633 (commit)
       via  8097dfdc83d8f6571913bb1defc63399f94a976e (commit)
       via  227a0cb2d3e6cd768f4a64f39ead8dd36561af4d (commit)
       via  c8021417b9c425dd1450654df84273497dfbb301 (commit)
      from  0556ccec219d1ee71dd00fc437752571e6c2ddb3 (commit)

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

- Log -----------------------------------------------------------------
commit 95b1172ca749910802eb3953ec518be218ac49e9
Merge: 1d82da27ebbab15fe196e4842a9777b20fb34cd8 470a797af9ea10307ee82dcc17fe9e15bef92fa6
Author: Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
Date:   Tue Nov 11 10:30:05 2008 -0800

    Merge commit 'gdb/master' into catch-syscall

commit 1d82da27ebbab15fe196e4842a9777b20fb34cd8
Author: Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
Date:   Tue Nov 11 10:29:57 2008 -0800

    Separate functions in linux-tdep.c. Also started to fixing
    things for the new version of the patch.

commit 470a797af9ea10307ee82dcc17fe9e15bef92fa6
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Tue Nov 11 04:26:13 2008 +0000

    	* elf.c (assign_file_positions_for_non_load_sections): Consolidate
    	PT_GNU_RELRO handling.

commit bd7b05d7c05dc9ad6063f1113b84a8a22189f468
Author: Doug Evans <dje@google.com>
Date:   Tue Nov 11 01:23:34 2008 +0000

    	* lib/gdb.exp (GDBFLAGS): Move -nx ...
    	(INTERNAL_GDBFLAGS): ... to here.  Move -nw to here as well.
    	(default_gdb_version): Add $INTERNAL_GDBFLAGS to gdb invocations.
    	(default_gdb_start,default_gdb_exit): Ditto.
    	* lib/mi-support.exp (default_mi_gdb_start): Ditto.
    	(mi_uncatched_gdb_exit): Add $INTERNAL_GDBFLAGS to log message.
    	* gdb.base/corefile.exp: Add $INTERNAL_GDBFLAGS to gdb invocations.
    	* gdb.base/dbx.exp (dbx_gdb_start): Ditto.
    	* gdb.base/args.exp (GDBFLAGS): Don't overwrite, append.
    	* gdb.base/remotetimeout.exp (GDBFLAGS): Ditto.

commit 0837a3180f4be8a06b4a230e084e675b1f769788
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Tue Nov 11 00:00:03 2008 +0000

    *** empty log message ***

commit 539c9e528476b11d53e0c7e543a5a713a1721e96
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Mon Nov 10 23:59:04 2008 +0000

    daily update

commit da7fd212a824daf426dd08d07d97630a2a03764e
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Mon Nov 10 23:39:19 2008 +0000

    	PR 7012
    	* dwarf2.c (find_line): Don't keep stale pointers into realloc'd
    	memory.  Return on errors.  Fix memory leak.
    	(_bfd_dwarf2_cleanup_debug_info): Free dwarf_str_buffer.

commit 5fc1efeb3cf158f711ea78785b377942fa7efc92
Author: Andreas Schwab <schwab@suse.de>
Date:   Mon Nov 10 22:47:58 2008 +0000

    	PR 7011
    	* elf.c (assign_file_positions_for_non_load_sections): Handle
    	PT_GNU_RELRO specially.

commit fc954e97743419bc15e69461fed5fc4b7d7061e3
Author: Tom Tromey <tromey@redhat.com>
Date:   Mon Nov 10 20:53:43 2008 +0000

    	* gdbtypes.c (copy_type_recursive): Clear new fields.

commit 83cf5b6e62f3c84dca7534bc7078e3ed7ab81986
Author: Tom Tromey <tromey@redhat.com>
Date:   Mon Nov 10 20:38:24 2008 +0000

    	* cli/cli-cmds.c (source_script): Clean up full_pathname.  Run
    	cleanups on early return.

commit 2301d0cb9d31763ca28460c9fecc308120149c0a
Merge: 0556ccec219d1ee71dd00fc437752571e6c2ddb3 fbdc18c6fdc2c2242759db89754880e8e1c2dc3a
Author: Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
Date:   Mon Nov 10 07:43:32 2008 -0800

    Merge branch 'master' into catch-syscall

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

Summary of changes:
 bfd/ChangeLog                            |   89 ++++++
 bfd/bfdio.c                              |   25 ++-
 bfd/config.bfd                           |    2 +-
 bfd/config.in                            |    3 +
 bfd/configure                            |    3 +-
 bfd/configure.in                         |    2 +-
 bfd/dwarf2.c                             |   69 +++---
 bfd/elf.c                                |  145 +++++------
 bfd/mach-o-target.c                      |   10 +-
 bfd/mach-o.c                             |  444 +++++++++++++++++++++++-------
 bfd/mach-o.h                             |   94 +++++--
 bfd/version.h                            |    2 +-
 gdb/ChangeLog                            |  120 ++++++++-
 gdb/Makefile.in                          |   30 ++-
 gdb/aix-thread.c                         |   12 +-
 gdb/breakpoint.c                         |   14 +-
 gdb/bsd-uthread.c                        |    5 +-
 gdb/cli/cli-cmds.c                       |    6 +-
 gdb/coffread.c                           |    2 +-
 gdb/completer.c                          |    4 +-
 gdb/configure                            |    7 +-
 gdb/configure.ac                         |    8 +-
 gdb/corefile.c                           |    2 +-
 gdb/corelow.c                            |    6 +-
 gdb/dec-thread.c                         |    4 +-
 gdb/defs.h                               |   12 +
 gdb/eval.c                               |    2 +
 gdb/fork-child.c                         |    6 +-
 gdb/gdbarch.c                            |   59 +++--
 gdb/gdbarch.h                            |   16 +-
 gdb/gdbarch.sh                           |    8 +-
 gdb/gdbthread.h                          |    7 -
 gdb/gdbtypes.c                           |    1 +
 gdb/gnu-nat.c                            |    9 +-
 gdb/go32-nat.c                           |   11 +-
 gdb/hpux-thread.c                        |   17 +-
 gdb/i386-dicos-tdep.c                    |    4 +
 gdb/i386-linux-tdep.c                    |    8 +-
 gdb/inf-loop.c                           |   11 +-
 gdb/inf-ptrace.c                         |   44 ++--
 gdb/inf-ttrace.c                         |   10 +-
 gdb/infcmd.c                             |    5 +-
 gdb/inferior.c                           |    1 +
 gdb/inferior.h                           |   11 +-
 gdb/infrun.c                             |   13 +-
 gdb/linux-nat.c                          |   22 +-
 gdb/linux-nat.h                          |    7 +
 gdb/linux-thread-db.c                    |   10 +-
 gdb/monitor.c                            |    8 +-
 gdb/nto-procfs.c                         |   10 +-
 gdb/ppc-linux-tdep.c                     |   76 +-----
 gdb/procfs.c                             |   19 +-
 gdb/remote-m32r-sdi.c                    |    7 +-
 gdb/remote-mips.c                        |    4 +-
 gdb/remote-sim.c                         |    4 +-
 gdb/remote.c                             |   60 ++--
 gdb/rs6000-nat.c                         |    9 +-
 gdb/sol-thread.c                         |   22 +-
 gdb/target.c                             |  114 ++++++--
 gdb/target.h                             |   25 +-
 gdb/testsuite/ChangeLog                  |   13 +
 gdb/testsuite/gdb.base/args.exp          |   11 +-
 gdb/testsuite/gdb.base/corefile.exp      |   13 +-
 gdb/testsuite/gdb.base/dbx.exp           |    6 +-
 gdb/testsuite/gdb.base/remotetimeout.exp |    2 +-
 gdb/testsuite/lib/gdb.exp                |   28 ++-
 gdb/testsuite/lib/mi-support.exp         |   10 +-
 gdb/thread.c                             |   19 +-
 gdb/utils.c                              |   53 ++++
 gdb/version.in                           |    2 +-
 gdb/win32-nat.c                          |   10 +-
 include/opcode/ChangeLog                 |    4 +
 include/opcode/mips.h                    |    3 +-
 opcodes/ChangeLog                        |   12 +
 opcodes/avr-dis.c                        |   10 +-
 opcodes/mips-dis.c                       |    1 +
 opcodes/mips-opc.c                       |    9 +-
 77 files changed, 1335 insertions(+), 631 deletions(-)

First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 9a70d7d..c539cf7 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,92 @@
+2008-11-11  Alan Modra  <amodra@bigpond.net.au>
+
+	* elf.c (assign_file_positions_for_non_load_sections): Consolidate
+	PT_GNU_RELRO handling.
+
+2008-11-11  Alan Modra  <amodra@bigpond.net.au>
+
+	PR 7012
+	* dwarf2.c (find_line): Don't keep stale pointers into realloc'd
+	memory.  Return on errors.  Fix memory leak.
+	(_bfd_dwarf2_cleanup_debug_info): Free dwarf_str_buffer.
+
+2008-11-10  Andreas Schwab  <schwab@suse.de>
+
+	PR 7011
+	* elf.c (assign_file_positions_for_non_load_sections): Handle
+	PT_GNU_RELRO specially.
+
+2008-11-06  Joel Sherrill <joel.sherrill@oarcorp.com>
+
+	* config.bfd: Add m32c-*-rtems* and m32r-*-rtems*.
+
+2008-11-06  Tom Tromey  <tromey@redhat.com>
+
+	* configure, config.in: Rebuild.
+	* configure.in: Check for fileno.
+	* bfdio.c (close_on_exec): New function.
+	(real_fopen): Use it.
+	(FD_CLOEXEC): New define.
+
+2008-11-06  Tristan Gingold  <gingold@adacore.com>
+
+	* mach-o.h (BFD_MACH_O_NO_SECT): Add; reorders the macros.
+	(BFD_MACH_O_SYM_NTYPE, BFD_MACH_O_SYM_NSECT,
+	BFD_MACH_O_SYM_NDESC): New macros.
+	(bfd_mach_o_i386_thread_flavour): Define according to the latest
+	definition from system header.
+	(bfd_mach_o_load_command_type): Add BFD_MACH_O_LC_RPATH,
+	BFD_MACH_O_LC_CODE_SIGNATURE.
+	(BFD_MACH_O_SECTION_TYPE_MASK, BFD_MACH_O_SECTION_ATTRIBUTES_MASK,
+	BFD_MACH_O_SECTION_ATTRIBUTES_SYS, BFD_MACH_O_SECTION_ATTRIBUTES_USR,
+	BFD_MACH_O_S_ATTR_LOC_RELOC, BFD_MACH_O_S_ATTR_EXT_RELOC,
+	BFD_MACH_O_S_ATTR_SOME_INSTRUCTIONS, BFD_MACH_O_S_ATTR_DEBUG,
+	BFD_MACH_O_S_ATTR_PURE_INSTRUCTIONS): Add.
+	(bfd_mach_o_segment_command): Add room for a nul terminator in
+	segname field.
+	(BFD_MACH_O_PROT_READ, BFD_MACH_O_PROT_WRITE,
+	BFD_MACH_O_PROT_EXECUTE): Add.
+	(INDIRECT_SYMBOL_LOCAL): Renames to BFD_MACH_O_INDIRECT_SYMBOL_LOCAL.
+	(INDIRECT_SYMBOL_ABS): Renames to BFD_MACH_O_INDIRECT_SYMBOL_ABS.
+	(bfd_mach_o_uuid_command): Add the structure.
+	(bfd_mach_o_load_command): Add uuid field.
+	(bfd_get_mach_o_data): New macro.
+	* mach-o.c (bfd_mach_o_bfd_print_private_bfd_data): New function which
+	replaces the macro.
+	(SECTION_TYPE, SECTION_ATTRIBUTES, SECTION_ATTRIBUTES_USR,
+	S_ATTR_PURE_INSTRUCTIONS, SECTION_ATTRIBUTES_SYS,
+	S_ATTR_SOME_INSTRUCTIONS, S_ATTR_EXT_RELOC, S_ATTR_LOC_RELOC): Renamed
+	and moved to mach-o.h.
+	(N_STAB, N_TYPE, N_EXT, N_UNDF, N_ABS, N_TEXT, N_DATA, N_BSS,
+	N_SECT, N_INDR): Removed as they duplicated macros in mach-o.h.
+	(bfd_mach_o_print_symbol): Print much more details.
+	(bfd_mach_o_make_bfd_section): Add prot argument, use canonical
+	dwarf name for dwarf sections.  Precisely set section flags.
+	(bfd_mach_o_scan_read_section_32): Add prot argument.
+	(bfd_mach_o_scan_read_section_64): Ditto.
+	(bfd_mach_o_scan_read_section): Ditto.
+	(bfd_mach_o_scan_read_symtab_symbol): Set section for debugging
+	stabs, set BSF_GLOBAL and LOCAL flags correctly.  Fix section
+	for N_SECT symbols.
+	(bfd_mach_o_i386_flavour_string): Reindent and adjust for new
+	names.
+	(bfd_mach_o_scan_read_symtab): Set HAS_SYMS flags on bfd if there
+	are symbols.
+	(bfd_mach_o_scan_read_uuid): New function.
+	(bfd_mach_o_scan_read_segment): Add a trailing nul.  Segments
+	flags are now simply HAS_CONTENTS.  Pass protection to
+	bfd_mach_o_scan_read_section.
+	(bfd_mach_o_scan_read_command): Decode UUID command.
+	(bfd_mach_o_flatten_sections): Add comments.  Fix flavour names.
+	(bfd_mach_o_scan): Set flags according to file type.
+	(mach_o_fat_archentry): Remove abfd field.
+	(bfd_mach_o_archive_p): Remove initialization of abfd field.
+	(bfd_mach_o_openr_next_archived_file): Find previous archive
+	by position and not by bfd (as former bfds may have been freed).
+	Give architecture name to archived file.
+	* mach-o-target.c (TARGET_NAME): Use generic archive for non fat
+	targets.
+
 2008-10-30  Jay Krell  <jay.krell@cornell.edu>
 
 	* cache.c (cache_bread): Cast void * pointer before performing
diff --git a/bfd/bfdio.c b/bfd/bfdio.c
index d8aa1de..cb06453 100644
--- a/bfd/bfdio.c
+++ b/bfd/bfdio.c
@@ -38,6 +38,10 @@
 #define S_IXOTH 0001    /* Execute by others.  */
 #endif
 
+#ifndef FD_CLOEXEC
+#define FD_CLOEXEC 1
+#endif
+
 file_ptr
 real_ftell (FILE *file)
 {
@@ -62,13 +66,30 @@ real_fseek (FILE *file, file_ptr offset, int whence)
 #endif
 }
 
+/* Mark FILE as close-on-exec.  Return FILE.  FILE may be NULL, in
+   which case nothing is done.  */
+static FILE *
+close_on_exec (FILE *file)
+{
+#if defined (HAVE_FILENO) && defined (F_GETFD)
+  if (file)
+    {
+      int fd = fileno (file);
+      int old = fcntl (fd, F_GETFD, 0);
+      if (old >= 0)
+	fcntl (fd, F_SETFD, old | FD_CLOEXEC);
+    }
+#endif
+  return file;
+}
+
 FILE *
 real_fopen (const char *filename, const char *modes)
 {
 #if defined (HAVE_FOPEN64)
-  return fopen64 (filename, modes);
+  return close_on_exec (fopen64 (filename, modes));
 #else
-  return fopen (filename, modes);
+  return close_on_exec (fopen (filename, modes));
 #endif
 }
 
diff --git a/bfd/config.bfd b/bfd/config.bfd
index 9309502..1bc971d 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -721,7 +721,7 @@ case "${targ}" in
     targ_defvec=bfd_elf32_iq2000_vec
     ;;
 
-  m32c-*-elf)
+  m32c-*-elf | m32c-*-rtems*)
     targ_defvec=bfd_elf32_m32c_vec
     ;;
 
diff --git a/bfd/config.in b/bfd/config.in
index f15e4ff..d1797ae 100644
--- a/bfd/config.in
+++ b/bfd/config.in
@@ -78,6 +78,9 @@
 /* Define to 1 if you have the `fdopen' function. */
 #undef HAVE_FDOPEN
 
+/* Define to 1 if you have the `fileno' function. */
+#undef HAVE_FILENO
+
 /* Define to 1 if you have the `fopen64' function. */
 #undef HAVE_FOPEN64
 
diff --git a/bfd/configure b/bfd/configure
index 84ba0f6..5cd7e77 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -17553,7 +17553,8 @@ fi
 
 
 
-for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
+
+for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno
 do
 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 echo "$as_me:$LINENO: checking for $ac_func" >&5
diff --git a/bfd/configure.in b/bfd/configure.in
index 72cefbc..bcc4615 100644
--- a/bfd/configure.in
+++ b/bfd/configure.in
@@ -179,7 +179,7 @@ GCC_HEADER_STDINT(bfd_stdint.h)
 AC_HEADER_TIME
 AC_HEADER_DIRENT
 ACX_HEADER_STRING
-AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen getuid getgid)
+AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno)
 AC_CHECK_FUNCS(strtoull)
 
 AC_CHECK_DECLS(basename)
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
index a4918ac..b53a5d4 100644
--- a/bfd/dwarf2.c
+++ b/bfd/dwarf2.c
@@ -2989,8 +2989,6 @@ find_line (bfd *abfd,
 			      symbols, 0,
 			      &stash->info_ptr_memory, &total_size))
 	    goto done;
-	  stash->info_ptr = stash->info_ptr_memory;
-	  stash->info_ptr_end = stash->info_ptr + total_size;
 	}
       else
 	{
@@ -3008,63 +3006,64 @@ find_line (bfd *abfd,
 	      if (stash->info_ptr_memory == NULL)
 		goto done;
 
-	      stash->info_ptr = stash->info_ptr_memory;
-	      stash->info_ptr_end = stash->info_ptr;
-
+	      total_size = 0;
 	      for (msec = find_debug_info (debug_bfd, NULL);
 		   msec;
 		   msec = find_debug_info (debug_bfd, msec))
 		{
 		  bfd_size_type size;
-		  bfd_size_type start;
 
 		  size = msec->size;
 		  if (size == 0)
 		    continue;
 
-		  start = stash->info_ptr_end - stash->info_ptr;
-
-		  if ((bfd_simple_get_relocated_section_contents
-		       (debug_bfd, msec, stash->info_ptr + start, symbols))
-		      == NULL)
-		    continue;
+		  if (!(bfd_simple_get_relocated_section_contents
+			(debug_bfd, msec, stash->info_ptr_memory + total_size,
+			 symbols)))
+		    goto done;
 
-		  stash->info_ptr_end = stash->info_ptr + start + size;
+		  total_size += size;
 		}
-
-	      BFD_ASSERT (stash->info_ptr_end == stash->info_ptr + total_size);
 	    }
 	  else
 	    {
 	      /* Case 3: multiple sections, some or all compressed.  */
-	      stash->info_ptr_memory = bfd_malloc (1);
-	      stash->info_ptr = stash->info_ptr_memory;
-	      stash->info_ptr_end = stash->info_ptr;
+	      stash->info_ptr_memory = NULL;
+	      total_size = 0;
 	      for (msec = find_debug_info (debug_bfd, NULL);
 		   msec;
 		   msec = find_debug_info (debug_bfd, msec))
 		{
 		  bfd_size_type size = msec->size;
-		  bfd_byte* buffer
-		      = (bfd_simple_get_relocated_section_contents
-			 (debug_bfd, msec, NULL, symbols));
-		  if (! buffer)
+		  bfd_byte* buffer;
+
+		  if (size == 0)
 		    continue;
+
+		  buffer = (bfd_simple_get_relocated_section_contents
+			    (debug_bfd, msec, NULL, symbols));
+		  if (! buffer)
+		    goto done;
+
 		  if (strcmp (msec->name, DWARF2_COMPRESSED_DEBUG_INFO) == 0)
 		    {
 		      if (! bfd_uncompress_section_contents (&buffer, &size))
-			continue;
+			{
+			  free (buffer);
+			  goto done;
+			}
 		    }
-		  stash->info_ptr = bfd_realloc (stash->info_ptr,
-						 stash->info_ptr_end
-						 - stash->info_ptr + size);
-		  memcpy (stash->info_ptr_end, buffer, size);
+		  stash->info_ptr_memory = bfd_realloc (stash->info_ptr_memory,
+							total_size + size);
+		  memcpy (stash->info_ptr_memory + total_size, buffer, size);
 		  free (buffer);
-		  stash->info_ptr_end += size;
+		  total_size += size;
 		}
 	    }
 	}
 
+      stash->info_ptr = stash->info_ptr_memory;
+      stash->info_ptr_end = stash->info_ptr + total_size;
       stash->sec = find_debug_info (debug_bfd, NULL);
       stash->sec_info_ptr = stash->info_ptr;
       stash->syms = symbols;
@@ -3364,8 +3363,14 @@ _bfd_dwarf2_cleanup_debug_info (bfd *abfd)
 	}
     }
 
-  free (stash->dwarf_abbrev_buffer);
-  free (stash->dwarf_line_buffer);
-  free (stash->dwarf_ranges_buffer);
-  free (stash->info_ptr_memory);
+  if (stash->dwarf_abbrev_buffer)
+    free (stash->dwarf_abbrev_buffer);
+  if (stash->dwarf_line_buffer)
+    free (stash->dwarf_line_buffer);
+  if (stash->dwarf_str_buffer)
+    free (stash->dwarf_str_buffer);
+  if (stash->dwarf_ranges_buffer)
+    free (stash->dwarf_ranges_buffer);
+  if (stash->info_ptr_memory)
+    free (stash->info_ptr_memory);
 }
diff --git a/bfd/elf.c b/bfd/elf.c
index ea44f72..054fd2a 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -4631,7 +4631,61 @@ assign_file_positions_for_non_load_sections (bfd *abfd,
        m != NULL;
        m = m->next, p++)
     {
-      if (m->count != 0)
+      if (p->p_type == PT_GNU_RELRO)
+	{
+	  const Elf_Internal_Phdr *lp;
+
+	  BFD_ASSERT (!m->includes_filehdr && !m->includes_phdrs);
+
+	  if (link_info != NULL)
+	    {
+	      /* During linking the range of the RELRO segment is passed
+		 in link_info.  */
+	      for (lp = phdrs; lp < phdrs + count; ++lp)
+		{
+		  if (lp->p_type == PT_LOAD
+		      && lp->p_vaddr >= link_info->relro_start
+		      && lp->p_vaddr < link_info->relro_end
+		      && lp->p_vaddr + lp->p_filesz >= link_info->relro_end)
+		    break;
+		}
+	    }
+	  else
+	    {
+	      /* Otherwise we are copying an executable or shared
+		 library, but we need to use the same linker logic.  */
+	      for (lp = phdrs; lp < phdrs + count; ++lp)
+		{
+		  if (lp->p_type == PT_LOAD
+		      && lp->p_paddr == p->p_paddr)
+		    break;
+		}
+	    }
+
+	  if (lp < phdrs + count)
+	    {
+	      p->p_vaddr = lp->p_vaddr;
+	      p->p_paddr = lp->p_paddr;
+	      p->p_offset = lp->p_offset;
+	      if (link_info != NULL)
+		p->p_filesz = link_info->relro_end - lp->p_vaddr;
+	      else if (m->p_size_valid)
+		p->p_filesz = m->p_size;
+	      else
+		abort ();
+	      p->p_memsz = p->p_filesz;
+	      p->p_align = 1;
+	      p->p_flags = (lp->p_flags & ~PF_W);
+	    }
+	  else if (link_info != NULL)
+	    {
+	      memset (p, 0, sizeof *p);
+	      p->p_type = PT_NULL;
+	    }
+	  else
+	    abort ();
+	}
+      else if (m->count != 0)
 	{
 	  if (p->p_type != PT_LOAD
 	      && (p->p_type != PT_NOTE
@@ -4647,87 +4701,20 @@ assign_file_positions_for_non_load_sections (bfd *abfd,
 	      p->p_filesz = sect->filepos - m->sections[0]->filepos;
 	      if (hdr->sh_type != SHT_NOBITS)
 		p->p_filesz += hdr->sh_size;
-
-	      if (p->p_type == PT_GNU_RELRO)
-		{
-		  /* When we get here, we are copying executable
-		     or shared library. But we need to use the same
-		     linker logic.  */
-		  Elf_Internal_Phdr *lp;
-
-		  for (lp = phdrs; lp < phdrs + count; ++lp)
-		    {
-		      if (lp->p_type == PT_LOAD
-			  && lp->p_paddr == p->p_paddr)
-			break;
-		    }
-	  
-		  if (lp < phdrs + count)
-		    {
-		      /* We should use p_size if it is valid since it
-			 may contain the first few bytes of the next
-			 SEC_ALLOC section.  */
-		      if (m->p_size_valid)
-			p->p_filesz = m->p_size;
-		      else
-			abort ();
-		      p->p_vaddr = lp->p_vaddr;
-		      p->p_offset = lp->p_offset;
-		      p->p_memsz = p->p_filesz;
-		      p->p_align = 1;
-		    }
-		  else
-		    abort ();
-		}
-	      else
-		p->p_offset = m->sections[0]->filepos;
+	      p->p_offset = m->sections[0]->filepos;
 	    }
 	}
-      else
+      else if (m->includes_filehdr)
 	{
-	  if (m->includes_filehdr)
-	    {
-	      p->p_vaddr = filehdr_vaddr;
-	      if (! m->p_paddr_valid)
-		p->p_paddr = filehdr_paddr;
-	    }
-	  else if (m->includes_phdrs)
-	    {
-	      p->p_vaddr = phdrs_vaddr;
-	      if (! m->p_paddr_valid)
-		p->p_paddr = phdrs_paddr;
-	    }
-	  else if (p->p_type == PT_GNU_RELRO)
-	    {
-	      Elf_Internal_Phdr *lp;
-
-	      for (lp = phdrs; lp < phdrs + count; ++lp)
-		{
-		  if (lp->p_type == PT_LOAD
-		      && lp->p_vaddr <= link_info->relro_end
-		      && lp->p_vaddr >= link_info->relro_start
-		      && (lp->p_vaddr + lp->p_filesz
-			  >= link_info->relro_end))
-		    break;
-		}
-
-	      if (lp < phdrs + count
-		  && link_info->relro_end > lp->p_vaddr)
-		{
-		  p->p_vaddr = lp->p_vaddr;
-		  p->p_paddr = lp->p_paddr;
-		  p->p_offset = lp->p_offset;
-		  p->p_filesz = link_info->relro_end - lp->p_vaddr;
-		  p->p_memsz = p->p_filesz;
-		  p->p_align = 1;
-		  p->p_flags = (lp->p_flags & ~PF_W);
-		}
-	      else
-		{
-		  memset (p, 0, sizeof *p);
-		  p->p_type = PT_NULL;
-		}
-	    }
+	  p->p_vaddr = filehdr_vaddr;
+	  if (! m->p_paddr_valid)
+	    p->p_paddr = filehdr_paddr;
+	}
+      else if (m->includes_phdrs)
+	{
+	  p->p_vaddr = phdrs_vaddr;
+	  if (! m->p_paddr_valid)
+	    p->p_paddr = phdrs_paddr;
 	}
     }
 
diff --git a/bfd/mach-o-target.c b/bfd/mach-o-target.c
index fd4d1e1..a435e6e 100644
--- a/bfd/mach-o-target.c
+++ b/bfd/mach-o-target.c
@@ -84,27 +84,31 @@ const bfd_target TARGET_NAME =
 #else
     _bfd_dummy_target,
     bfd_mach_o_object_p,
-    _bfd_dummy_target,
+    bfd_generic_archive_p,
     bfd_mach_o_core_p
 #endif


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [SCM]  archer-sergio-catch-syscall: Merge commit 'gdb/master' into catch-syscall
@ 2008-11-17 17:57 sergio
  0 siblings, 0 replies; 4+ messages in thread
From: sergio @ 2008-11-17 17:57 UTC (permalink / raw)
  To: archer-commits

The branch, archer-sergio-catch-syscall has been updated
       via  01b88af28154a60c8daef238c95d4ccb0552d0ba (commit)
       via  6b3e8b0e7a179e728d896a97c43decc6a12ca5c0 (commit)
       via  0c5574a0fc1b1b66e39bad41eb636efdc674eb05 (commit)
       via  3b2206da375fca94003d4db0f72e1822a4e1f28e (commit)
       via  33869c85b4b6321b1095b662a79fec48fd6fa34a (commit)
       via  e7869269d3657b94d83ea440569ebdcd21c56189 (commit)
       via  c52c9073d08225f822d625a8d76819ba5a0470bf (commit)
       via  3c505739f7646cd155eba4c1246894c7cf3b6eeb (commit)
       via  58748546abbdea125f5983ba745efee1ef896ced (commit)
       via  507dd87fc0367c004892eff4c104cdff063c5ba0 (commit)
       via  1cdf2961f034fc2f933315de34dc939e8d46b462 (commit)
       via  da1b5d9dc941afa45eeb2b126c82f7502cd0525d (commit)
       via  227ad0969c90da67897154b45c19e65583a4bdfb (commit)
       via  08a70260985f89286a7457015055c769f19e1284 (commit)
       via  d54b97879ae4232f0467b94fefbd131439075de8 (commit)
       via  bd98e3b320b7e778efb2fae16cb1ff4cf521a415 (commit)
       via  c67afd861dc3b441e5e32cf1d4cc8f4f1f41fd37 (commit)
       via  4d875ef896905769b46f4e2c09f8567e7d60a62a (commit)
       via  a0f6254235a56c5bd94fded0376a17a3e8ca8291 (commit)
       via  2565f71572160a6a6157ff5528ef9c87534d9ff6 (commit)
       via  48e3b7eaf04d088c42933ccdc59234f60642cdfc (commit)
       via  232efe0b019677c5cb153521d6e65c2d9e8fcda8 (commit)
       via  8d867d71d0d189aeb38e60e2b8a1f1fd7300fcdc (commit)
      from  19b2f7c625ef197434cc49818986cac0af65d0b8 (commit)

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

- Log -----------------------------------------------------------------
commit 01b88af28154a60c8daef238c95d4ccb0552d0ba
Merge: 19b2f7c625ef197434cc49818986cac0af65d0b8 6b3e8b0e7a179e728d896a97c43decc6a12ca5c0
Author: Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
Date:   Mon Nov 17 09:56:51 2008 -0800

    Merge commit 'gdb/master' into catch-syscall
    
    Conflicts:
    
    	gdb/breakpoint.c
    	gdb/breakpoint.h
    	gdb/configure.tgt

commit 6b3e8b0e7a179e728d896a97c43decc6a12ca5c0
Author: Vladimir Prus <vladimir@codesourcery.com>
Date:   Mon Nov 17 16:43:32 2008 +0000

    	Implement =thread-selected notification.
    
            * mi/mi-common.h (struct mi_interp): New, moved from ...
            * mi/mi-interp.c: ...here.
            * mi/mi-main.c (mi_execute_command): If the thread changed
            as result of command, report that.

commit 0c5574a0fc1b1b66e39bad41eb636efdc674eb05
Author: Vladimir Prus <vladimir@codesourcery.com>
Date:   Mon Nov 17 16:39:50 2008 +0000

    	Implement continue/interrupt of thread groups.
    
            * mi/mi-main.c (proceed_thread_callback): New.
            (mi_cmd_exec_continue): If --thread-group is specified, resume all
            threads in that group.
            (interrupt_thread_callback): New.
            (mi_cmd_exec_interrupt): If --thread-group is specified, interrupt
            all threads in that group.

commit 3b2206da375fca94003d4db0f72e1822a4e1f28e
Author: Vladimir Prus <vladimir@codesourcery.com>
Date:   Mon Nov 17 16:37:32 2008 +0000

    	Implement '-target-detach pid'.
    
            * infcmd.c (detach_command): Make nonstatic.
            * inferior.h (detach_command): Declare.
            * mi/mi-cmds.c (mi_cmds): Don't route -target-detach via CLI.
            * mi/mi-cmds.h (mi_cmd_target_detach): Declare.
            * mi/mi-main.c (find_thread_of_process, mi_cmd_target_detach): New.

commit 33869c85b4b6321b1095b662a79fec48fd6fa34a
Author: Vladimir Prus <vladimir@codesourcery.com>
Date:   Mon Nov 17 12:34:18 2008 +0000

    	Include group-id in thread-created notification.
    
            * mi/mi-interp.c (mi_new_thread, mi_thread_exit): Include
            group id in the output.

commit e7869269d3657b94d83ea440569ebdcd21c56189
Author: Vladimir Prus <vladimir@codesourcery.com>
Date:   Mon Nov 17 12:28:05 2008 +0000

    	Notification for attach/detach.
    
            * inferior.c: Call the process observers.
            * mi/mi-interp.c (mi_new_inferior, mi_inferior_exit): New.
            (mi_interpreter_init): Register the above.

commit c52c9073d08225f822d625a8d76819ba5a0470bf
Author: Vladimir Prus <vladimir@codesourcery.com>
Date:   Mon Nov 17 12:13:49 2008 +0000

    	Implement -list-thread-groups.
    
            * thread.c (print_thread_info): New parameter pid, to print
            threads of specific process.
            * gdbthread.h (print_thread_info): New parameter pid.
            * mi/mi-cmds.c (mi_cmds): Register -list-thread-groups.
            * mi/mi-cmds.h (mi_cmd_list_thread_groups): New.
            * mi/mi-main.c (mi_cmd_thread_info): Adjust.
            (print_one_process, mi_cmd_list_thread_groups): New.

commit 3c505739f7646cd155eba4c1246894c7cf3b6eeb
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Mon Nov 17 00:00:33 2008 +0000

    *** empty log message ***

commit 58748546abbdea125f5983ba745efee1ef896ced
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Mon Nov 17 00:00:05 2008 +0000

    daily update

commit 507dd87fc0367c004892eff4c104cdff063c5ba0
Author: Joel Brobecker <brobecker@gnat.com>
Date:   Sun Nov 16 18:05:26 2008 +0000

            Remove some unused macros related to the old load/unload catchpoints.
    
            * breakpoint.c (SOLIB_LOADED_LIBRARY_PATHNAME)
            (SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_CREATE_CATCH_LOAD_HOOK)
            (SOLIB_CREATE_CATCH_UNLOAD_HOOK): Delete. No longer used.

commit 1cdf2961f034fc2f933315de34dc939e8d46b462
Author: Joel Brobecker <brobecker@gnat.com>
Date:   Sun Nov 16 18:03:25 2008 +0000

            * gdb.base/help.exp: Remove the "catch load" and "catch unload"
            commands from the expected output for "help catch".

commit da1b5d9dc941afa45eeb2b126c82f7502cd0525d
Author: Joel Brobecker <brobecker@gnat.com>
Date:   Sun Nov 16 18:01:46 2008 +0000

            Remove support for catch load and catch unload commands.
    
            * breakpoint.h (enum bptype): Remove bp_catch_load and bp_catch_unload.
            (struct breakpoint): Remove fields dll_pathname and
            triggered_dll_pathname.
            (bpstat_get_triggered_catchpoints, ep_is_shlib_catchpoint): Delete.
            * breakpoint.c (ep_is_catchpoint): Remove handling of
            bp_catch_load and bp_catch_unload.
            (print_it_typical, bpstat_check_location, bpstat_what)
            (print_one_breakpoint_location, print_one_breakpoint_location)
            (user_settable_breakpoint, allocate_bp_location)
            (set_raw_breakpoint_without_location, mention, delete_breakpoint,
            (breakpoint_re_set_one, disable_command, enable_command): Likewise.
            (ep_is_shlib_catchpoint, bpstat_get_triggered_catchpoints)
            (catch_load_command_1, catch_unload_command_1): Delete.
            (_initialize_breakpoint): Remove the "catch load" and "catch unload"
            command creation.
            * infrun.c (handle_inferior_event): Remove the handling of
            load/unload catchpoint events.

commit 227ad0969c90da67897154b45c19e65583a4bdfb
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Sun Nov 16 00:00:05 2008 +0000

    daily update

commit 08a70260985f89286a7457015055c769f19e1284
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Sun Nov 16 00:00:03 2008 +0000

    *** empty log message ***

commit d54b97879ae4232f0467b94fefbd131439075de8
Author: Joel Brobecker <brobecker@gnat.com>
Date:   Sat Nov 15 18:49:50 2008 +0000

            From  Jerome Guitton  <guitton@adacore.com>
            * dwarf2read.c (dwarf2_debug_line_missing_end_sequence_complaint):
            New function.
            (dwarf_decode_lines): Detect null file numbers. Detect the end of
            the line program sequence when no end sequence is emitted.

commit bd98e3b320b7e778efb2fae16cb1ff4cf521a415
Author: Joel Brobecker <brobecker@gnat.com>
Date:   Sat Nov 15 18:30:38 2008 +0000

            * gdb.ada/int_deref.exp: New testcase.

commit c67afd861dc3b441e5e32cf1d4cc8f4f1f41fd37
Author: Joel Brobecker <brobecker@gnat.com>
Date:   Sat Nov 15 18:27:27 2008 +0000

    	* ada-lang.c (ada_evaluate_subexp): Improve handling of integer
    	type dereferencing.

commit 4d875ef896905769b46f4e2c09f8567e7d60a62a
Author: Daniel Jacobowitz <dan@debian.org>
Date:   Sat Nov 15 16:09:50 2008 +0000

    	* NEWS: Mention sparc64-linux-gnu gdbserver support.

commit a0f6254235a56c5bd94fded0376a17a3e8ca8291
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Sat Nov 15 00:00:05 2008 +0000

    daily update

commit 2565f71572160a6a6157ff5528ef9c87534d9ff6
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Sat Nov 15 00:00:03 2008 +0000

    *** empty log message ***

commit 48e3b7eaf04d088c42933ccdc59234f60642cdfc
Author: Daniel Jacobowitz <dan@debian.org>
Date:   Fri Nov 14 22:06:41 2008 +0000

    2008-11-14  Daniel Gutson  <dgutson@codesourcery.com>
    
    	* configure.tgt (sparc64-*-linux*): Added gdbserver support.
    	* regformats/reg-sparc64.dat: New file.
    
    gdbserver/
    2008-11-14  Daniel Gutson  <dgutson@codesourcery.com>
    
    	* Makefile.in (SFILES, clean): Added sparc64 files.
    	(reg-sparc64.o, reg-sparc64.c): New.
    	* configure.srv (sparc*-*-linux*): New configuration.
    	* linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
    	syscall arguments for SPARC.
    	(regsets_store_inferior_registers): Likewise.
    	* linux-sparc-low.c: New file.

commit 232efe0b019677c5cb153521d6e65c2d9e8fcda8
Author: Eric B. Weddington <eric.weddington@atmel.com>
Date:   Fri Nov 14 21:37:52 2008 +0000

    /bfd:
    2008-11-14  Eric B. Weddington  <eric.weddington@atmel.com>
    
    	PR 7022
    	* elf32-avr.c (bfd_elf_avr_final_write_processing):
    	Add missing break statements.

commit 8d867d71d0d189aeb38e60e2b8a1f1fd7300fcdc
Author: Tom Tromey <tromey@redhat.com>
Date:   Fri Nov 14 18:38:31 2008 +0000

    gdb
    
    	PR mi/2549:
    	* mi/mi-main.c (get_register): Use get_formatted_print_options.
    
    gdb/testsuite
    
    2008-11-14  Nick Roberts  <nickrob@snap.net.nz>
    
    	* gdb.mi/gdb2549.exp: New file.

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

Summary of changes:
 bfd/ChangeLog                           |    6 +
 bfd/elf32-avr.c                         |    3 +
 bfd/version.h                           |    2 +-
 gdb/ChangeLog                           |  114 +++++++++++
 gdb/NEWS                                |    3 +
 gdb/ada-lang.c                          |   18 +-
 gdb/breakpoint.c                        |  337 +------------------------------
 gdb/breakpoint.h                        |   29 ---
 gdb/configure.tgt                       |    1 +
 gdb/doc/ChangeLog                       |    9 +
 gdb/doc/gdb.texinfo                     |   13 ++
 gdb/doc/observer.texi                   |   10 +
 gdb/dwarf2read.c                        |   35 ++-
 gdb/gdbserver/ChangeLog                 |   10 +
 gdb/gdbserver/Makefile.in               |    8 +-
 gdb/gdbserver/configure.srv             |    5 +
 gdb/gdbserver/linux-low.c               |   14 ++-
 gdb/gdbserver/linux-sparc-low.c         |  287 ++++++++++++++++++++++++++
 gdb/gdbthread.h                         |    3 +-
 gdb/infcmd.c                            |    4 +-
 gdb/inferior.c                          |    5 +
 gdb/inferior.h                          |    2 +
 gdb/infrun.c                            |   37 ----
 gdb/mi/mi-cmds.c                        |    3 +-
 gdb/mi/mi-cmds.h                        |    2 +
 gdb/mi/mi-common.h                      |   15 ++
 gdb/mi/mi-interp.c                      |   48 +++--
 gdb/mi/mi-main.c                        |  192 +++++++++++++++++-
 gdb/regformats/reg-sparc64.dat          |   91 +++++++++
 gdb/testsuite/ChangeLog                 |   26 +++
 gdb/testsuite/gdb.ada/int_deref.exp     |   45 ++++
 gdb/testsuite/gdb.ada/int_deref/foo.adb |   21 ++
 gdb/testsuite/gdb.ada/int_deref/pck.ads |   20 ++
 gdb/testsuite/gdb.base/help.exp         |    2 +-
 gdb/testsuite/gdb.mi/gdb2549.exp        |   85 ++++++++
 gdb/testsuite/gdb.mi/mi-nonstop.exp     |    2 +-
 gdb/testsuite/gdb.mi/mi-pthreads.exp    |    6 +
 gdb/testsuite/lib/mi-support.exp        |   13 +-
 gdb/thread.c                            |   20 ++-
 gdb/version.in                          |    2 +-
 40 files changed, 1086 insertions(+), 462 deletions(-)
 create mode 100644 gdb/gdbserver/linux-sparc-low.c
 create mode 100644 gdb/regformats/reg-sparc64.dat
 create mode 100644 gdb/testsuite/gdb.ada/int_deref.exp
 create mode 100644 gdb/testsuite/gdb.ada/int_deref/foo.adb
 create mode 100644 gdb/testsuite/gdb.ada/int_deref/pck.ads
 create mode 100644 gdb/testsuite/gdb.mi/gdb2549.exp

First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index b44e3ef..2adfb18 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,9 @@
+2008-11-14  Eric B. Weddington  <eric.weddington@atmel.com>
+
+	PR 7022
+	* elf32-avr.c (bfd_elf_avr_final_write_processing):
+	Add missing break statements.
+
 2008-11-14  Bob Wilson  <bob.wilson@acm.org>
 
 	* xtensa-modules.c (xtensa_state_id): New enum, replacing STATE macros.
diff --git a/bfd/elf32-avr.c b/bfd/elf32-avr.c
index fffd040..17e20fa 100644
--- a/bfd/elf32-avr.c
+++ b/bfd/elf32-avr.c
@@ -1298,6 +1298,7 @@ bfd_elf_avr_final_write_processing (bfd *abfd,
 
     case bfd_mach_avr25:
       val = E_AVR_MACH_AVR25;
+      break;
 
     case bfd_mach_avr3:
       val = E_AVR_MACH_AVR3;
@@ -1305,9 +1306,11 @@ bfd_elf_avr_final_write_processing (bfd *abfd,
 
     case bfd_mach_avr31:
       val = E_AVR_MACH_AVR31;
+      break;
 
     case bfd_mach_avr35:
       val = E_AVR_MACH_AVR35;
+      break;
 
     case bfd_mach_avr4:
       val = E_AVR_MACH_AVR4;
diff --git a/bfd/version.h b/bfd/version.h
index 30b71f8..85021a3 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20081114
+#define BFD_VERSION_DATE 20081117
 #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 5b35e05..2327ee1 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,117 @@
+2008-11-17  Vladimir Prus  <vladimir@codesourcery.com>
+
+	Implement =thread-selected notification.
+
+        * mi/mi-common.h (struct mi_interp): New, moved from ...
+        * mi/mi-interp.c: ...here.
+        * mi/mi-main.c (mi_execute_command): If the thread changed
+        as result of command, report that.
+
+2008-11-17  Vladimir Prus  <vladimir@codesourcery.com>
+
+	Implement continue/interrupt of thread groups.
+
+        * mi/mi-main.c (proceed_thread_callback): New.
+        (mi_cmd_exec_continue): If --thread-group is specified, resume all
+        threads in that group.
+        (interrupt_thread_callback): New.
+        (mi_cmd_exec_interrupt): If --thread-group is specified, interrupt
+        all threads in that group.
+
+2008-11-17  Vladimir Prus  <vladimir@codesourcery.com>
+
+	Implement '-target-detach pid'.
+
+        * infcmd.c (detach_command): Make nonstatic.
+        * inferior.h (detach_command): Declare.
+        * mi/mi-cmds.c (mi_cmds): Don't route -target-detach via CLI.
+        * mi/mi-cmds.h (mi_cmd_target_detach): Declare.
+        * mi/mi-main.c (find_thread_of_process, mi_cmd_target_detach): New.
+
+2008-11-17  Vladimir Prus  <vladimir@codesourcery.com>
+
+	Include group-id in thread-created notification.
+
+        * mi/mi-interp.c (mi_new_thread, mi_thread_exit): Include
+        group id in the output.
+
+2008-11-17  Vladimir Prus  <vladimir@codesourcery.com>
+
+	Notification for attach/detach.
+
+        * inferior.c: Call the process observers.
+        * mi/mi-interp.c (mi_new_inferior, mi_inferior_exit): New.
+        (mi_interpreter_init): Register the above.
+
+2008-11-17  Vladimir Prus  <vladimir@codesourcery.com>
+
+	Implement -list-thread-groups.
+
+        * thread.c (print_thread_info): New parameter pid, to print
+        threads of specific process.
+        * gdbthread.h (print_thread_info): New parameter pid.
+        * mi/mi-cmds.c (mi_cmds): Register -list-thread-groups.
+        * mi/mi-cmds.h (mi_cmd_list_thread_groups): New.
+        * mi/mi-main.c (mi_cmd_thread_info): Adjust.
+        (print_one_process, mi_cmd_list_thread_groups): New.
+
+2008-11-16  Joel Brobecker  <brobecker@adacore.com>
+
+	Remove some unused macros related to the old load/unload catchpoints.
+
+	* breakpoint.c (SOLIB_LOADED_LIBRARY_PATHNAME)
+	(SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_CREATE_CATCH_LOAD_HOOK)
+	(SOLIB_CREATE_CATCH_UNLOAD_HOOK): Delete. No longer used.
+
+2008-11-16  Joel Brobecker  <brobecker@adacore.com>
+
+	Remove support for catch load and catch unload commands.
+
+	* breakpoint.h (enum bptype): Remove bp_catch_load and bp_catch_unload.
+	(struct breakpoint): Remove fields dll_pathname and
+	triggered_dll_pathname.
+	(bpstat_get_triggered_catchpoints, ep_is_shlib_catchpoint): Delete.
+	* breakpoint.c (ep_is_catchpoint): Remove handling of
+	bp_catch_load and bp_catch_unload.
+	(print_it_typical, bpstat_check_location, bpstat_what)
+	(print_one_breakpoint_location, print_one_breakpoint_location)
+	(user_settable_breakpoint, allocate_bp_location)
+	(set_raw_breakpoint_without_location, mention, delete_breakpoint,
+	(breakpoint_re_set_one, disable_command, enable_command): Likewise.
+	(ep_is_shlib_catchpoint, bpstat_get_triggered_catchpoints)
+	(catch_load_command_1, catch_unload_command_1): Delete.
+	(_initialize_breakpoint): Remove the "catch load" and "catch unload"
+	command creation.
+	* infrun.c (handle_inferior_event): Remove the handling of
+	load/unload catchpoint events.
+
+2008-11-15  Joel Brobecker  <brobecker@adacore.com>
+
+	From  Jerome Guitton  <guitton@adacore.com>
+	* dwarf2read.c (dwarf2_debug_line_missing_end_sequence_complaint):
+	New function.
+	(dwarf_decode_lines): Detect null file numbers. Detect the end of
+	the line program sequence when no end sequence is emitted.
+
+2008-11-15  Joel Brobecker  <brobecker@adacore.com>
+
+	* ada-lang.c (ada_evaluate_subexp): Improve handling of integer
+	type dereferencing.
+
+2008-11-15  Daniel Jacobowitz  <dan@codesourcery.com>
+
+	* NEWS: Mention sparc64-linux-gnu gdbserver support.
+
+2008-11-14  Daniel Gutson  <dgutson@codesourcery.com>
+
+	* configure.tgt (sparc64-*-linux*): Added gdbserver support.
+	* regformats/reg-sparc64.dat: New file.
+
+2008-11-14  Tom Tromey  <tromey@redhat.com>
+
+	PR mi/2549:
+	* mi/mi-main.c (get_register): Use get_formatted_print_options.
+
 2008-11-13  Joel Brobecker  <brobecker@adacore.com>
 
 	* printcmd.c: define PRINTF_HAS_LONG_LONG only if not yet defined.
diff --git a/gdb/NEWS b/gdb/NEWS
index 6f8fb65..ab94020 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -85,6 +85,9 @@ are treated as the standard definitions, regardless of context.
   - gdbserver uses the new noack protocol mode for TCP connections to
   reduce communications latency, if also supported and enabled in GDB.
 
+  - Support for the sparc64-linux-gnu target is now included in
+  gdbserver.
+
 * Python scripting
 
   GDB now has support for scripting using Python.  Whether this is
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index 9fdd944..2ccba78 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -9204,12 +9204,18 @@ ada_evaluate_subexp (struct type *expect_type, struct expression *exp,
       arg1 = ada_coerce_ref (arg1);     /* FIXME: What is this for?? */
       type = ada_check_typedef (value_type (arg1));
 
-      if (TYPE_CODE (type) == TYPE_CODE_INT && expect_type != NULL)
-	  /* GDB allows dereferencing an int.  We give it the expected
-	     type (which will be set in the case of a coercion or
-	     qualification). */
-	return ada_value_ind (value_cast (lookup_pointer_type (expect_type),
-					  arg1));
+      if (TYPE_CODE (type) == TYPE_CODE_INT)
+          /* GDB allows dereferencing an int.  If we were given
+             the expect_type, then use that as the target type.
+             Otherwise, assume that the target type is an int.  */
+        {
+          if (expect_type != NULL)
+	    return ada_value_ind (value_cast (lookup_pointer_type (expect_type),
+					      arg1));
+	  else
+	    return value_at_lazy (builtin_type (exp->gdbarch)->builtin_int,
+				  (CORE_ADDR) value_as_address (arg1));
+        }
 
       if (ada_is_array_descriptor_type (type))
         /* GDB allows dereferencing GNAT array descriptors.  */
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index ba3292e..4353c47 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -327,59 +327,6 @@ VEC(bp_location_p) *moribund_locations = NULL;
 
 int breakpoint_count;
 
-/* This function returns a pointer to the string representation of the
-   pathname of the dynamically-linked library that has just been
-   loaded.
-
-   This function must be used only when SOLIB_HAVE_LOAD_EVENT is TRUE,
-   or undefined results are guaranteed.
-
-   This string's contents are only valid immediately after the
-   inferior has stopped in the dynamic linker hook, and becomes
-   invalid as soon as the inferior is continued.  Clients should make
-   a copy of this string if they wish to continue the inferior and
-   then access the string.  */
-
-#ifndef SOLIB_LOADED_LIBRARY_PATHNAME
-#define SOLIB_LOADED_LIBRARY_PATHNAME(pid) ""
-#endif
-
-/* This function returns a pointer to the string representation of the
-   pathname of the dynamically-linked library that has just been
-   unloaded.
-
-   This function must be used only when SOLIB_HAVE_UNLOAD_EVENT is
-   TRUE, or undefined results are guaranteed.
-
-   This string's contents are only valid immediately after the
-   inferior has stopped in the dynamic linker hook, and becomes
-   invalid as soon as the inferior is continued.  Clients should make
-   a copy of this string if they wish to continue the inferior and
-   then access the string.  */
-
-#ifndef SOLIB_UNLOADED_LIBRARY_PATHNAME
-#define SOLIB_UNLOADED_LIBRARY_PATHNAME(pid) ""
-#endif
-
-/* This function is called by the "catch load" command.  It allows the
-   debugger to be notified by the dynamic linker when a specified
-   library file (or any library file, if filename is NULL) is loaded.  */
-
-#ifndef SOLIB_CREATE_CATCH_LOAD_HOOK
-#define SOLIB_CREATE_CATCH_LOAD_HOOK(pid,tempflag,filename,cond_string) \
-   error (_("catch of library loads not yet implemented on this platform"))
-#endif
-
-/* This function is called by the "catch unload" command.  It allows
-   the debugger to be notified by the dynamic linker when a specified
-   library file (or any library file, if filename is NULL) is
-   unloaded.  */
-
-#ifndef SOLIB_CREATE_CATCH_UNLOAD_HOOK
-#define SOLIB_CREATE_CATCH_UNLOAD_HOOK(pid, tempflag, filename, cond_string) \
-   error (_("catch of library unloads not yet implemented on this platform"))
-#endif
-
 /* Return whether a breakpoint is an active enabled breakpoint.  */
 static int
 breakpoint_enabled (struct breakpoint *b)
@@ -1951,19 +1898,7 @@ breakpoint_thread_match (CORE_ADDR pc, ptid_t ptid)
 int
 ep_is_catchpoint (struct breakpoint *ep)
 {
-  return (ep->type == bp_catchpoint)
-    || (ep->type == bp_catch_load)
-    || (ep->type == bp_catch_unload);
-
-  /* ??rehrauer: Add more kinds here, as are implemented... */
-}
-
-int
-ep_is_shlib_catchpoint (struct breakpoint *ep)
-{
-  return
-    (ep->type == bp_catch_load)
-    || (ep->type == bp_catch_unload);
+  return (ep->type == bp_catchpoint);
 }
 
 void 
@@ -2343,22 +2278,6 @@ print_it_typical (bpstat bs)
       return PRINT_NOTHING;
       break;
 
-    case bp_catch_load:
-      annotate_catchpoint (b->number);
-      printf_filtered (_("\nCatchpoint %d (loaded %s), "),
-		       b->number,
-		       b->triggered_dll_pathname);
-      return PRINT_SRC_AND_LOC;
-      break;
-
-    case bp_catch_unload:
-      annotate_catchpoint (b->number);
-      printf_filtered (_("\nCatchpoint %d (unloaded %s), "),
-		       b->number,
-		       b->triggered_dll_pathname);
-      return PRINT_SRC_AND_LOC;
-      break;
-
     case bp_watchpoint:
     case bp_hardware_watchpoint:
       annotate_watchpoint (b->number);
@@ -2810,33 +2729,6 @@ bpstat_check_location (const struct bp_location *bl, CORE_ADDR bp_addr)
 	return 0;
     }
 
-  /* Is this a catchpoint of a load or unload?  If so, did we
-     get a load or unload of the specified library?  If not,
-     ignore it. */
-  if ((b->type == bp_catch_load)
-#if defined(SOLIB_HAVE_LOAD_EVENT)
-      && (!SOLIB_HAVE_LOAD_EVENT (PIDGET (inferior_ptid))
-	  || ((b->dll_pathname != NULL)
-	      && (strcmp (b->dll_pathname, 
-			  SOLIB_LOADED_LIBRARY_PATHNAME (
-			    PIDGET (inferior_ptid)))
-		  != 0)))
-#endif
-      )
-    return 0;
-  
-  if ((b->type == bp_catch_unload)
-#if defined(SOLIB_HAVE_UNLOAD_EVENT)
-      && (!SOLIB_HAVE_UNLOAD_EVENT (PIDGET (inferior_ptid))
-	  || ((b->dll_pathname != NULL)
-	      && (strcmp (b->dll_pathname, 
-			  SOLIB_UNLOADED_LIBRARY_PATHNAME (
-			    PIDGET (inferior_ptid)))
-		  != 0)))
-#endif
-      )
-    return 0;
-
   if (b->type == bp_catchpoint)
     {
       gdb_assert (b->ops != NULL && b->ops->breakpoint_hit != NULL);
@@ -3367,16 +3259,6 @@ bpstat_what (bpstat bs)
 	case bp_overlay_event:
 	  bs_class = bp_nostop;
 	  break;
-	case bp_catch_load:
-	case bp_catch_unload:
-	  /* Only if this catchpoint triggered should we cause the
-	     step-out-of-dld behaviour.  Otherwise, we ignore this
-	     catchpoint.  */
-	  if (bs->stop)
-	    bs_class = catch_shlib_event;
-	  else
-	    bs_class = no_effect;
-	  break;
 	case bp_catchpoint:
 	  if (bs->stop)
 	    {
@@ -3425,67 +3307,6 @@ bpstat_should_step (void)
 
 \f
 
-/* Given a bpstat that records zero or more triggered eventpoints, this
-   function returns another bpstat which contains only the catchpoints
-   on that first list, if any. */
-void
-bpstat_get_triggered_catchpoints (bpstat ep_list, bpstat *cp_list)
-{
-  struct bpstats root_bs[1];
-  bpstat bs = root_bs;
-  struct breakpoint *ep;
-  char *dll_pathname;
-
-  bpstat_clear (cp_list);
-  root_bs->next = NULL;
-
-  for (; ep_list != NULL; ep_list = ep_list->next)
-    {
-      /* Is this eventpoint a catchpoint?  If not, ignore it. */
-      ep = ep_list->breakpoint_at->owner;
-      if (ep == NULL)
-	break;
-      if ((ep->type != bp_catch_load) &&
-	  (ep->type != bp_catch_unload))
-	/* pai: (temp) ADD fork/vfork here!!  */
-	continue;
-
-      /* Yes; add it to the list. */
-      bs = bpstat_alloc (ep_list->breakpoint_at, bs);
-      *bs = *ep_list;
-      bs->next = NULL;
-      bs = root_bs->next;
-
-#if defined(SOLIB_ADD)
-      /* Also, for each triggered catchpoint, tag it with the name of
-         the library that caused this trigger.  (We copy the name now,
-         because it's only guaranteed to be available NOW, when the
-         catchpoint triggers.  Clients who may wish to know the name
-         later must get it from the catchpoint itself.) */
-      if (ep->triggered_dll_pathname != NULL)
-	xfree (ep->triggered_dll_pathname);
-      if (ep->type == bp_catch_load)
-	dll_pathname = SOLIB_LOADED_LIBRARY_PATHNAME (
-	                 PIDGET (inferior_ptid));
-      else
-	dll_pathname = SOLIB_UNLOADED_LIBRARY_PATHNAME (
-	                 PIDGET (inferior_ptid));
-#else
-      dll_pathname = NULL;
-#endif
-      if (dll_pathname)
-	{
-	  ep->triggered_dll_pathname = (char *) 
-	    xmalloc (strlen (dll_pathname) + 1);
-	  strcpy (ep->triggered_dll_pathname, dll_pathname);
-	}
-      else
-	ep->triggered_dll_pathname = NULL;
-    }
-
-  *cp_list = bs;
-}
-
 static void print_breakpoint_location (struct breakpoint *b,
 				       struct bp_location *loc,
 				       char *wrap_indent,
@@ -3562,8 +3383,6 @@ print_one_breakpoint_location (struct breakpoint *b,
     {bp_thread_event, "thread events"},
     {bp_overlay_event, "overlay events"},
     {bp_catchpoint, "catchpoint"},
-    {bp_catch_load, "catch load"},
-    {bp_catch_unload, "catch unload"},
     {bp_entry_breakpoint, "entry breakpoint"}
   };
   
@@ -3680,27 +3499,6 @@ print_one_breakpoint_location (struct breakpoint *b,
 	ui_out_field_stream (uiout, "what", stb);
 	break;
 
-      case bp_catch_load:
-      case bp_catch_unload:
-	/* Field 4, the address, is omitted (which makes the columns
-	   not line up too nicely with the headers, but the effect
-	   is relatively readable).  */
-	if (opts.addressprint)
-	  ui_out_field_skip (uiout, "addr");
-	annotate_field (5);
-	if (b->dll_pathname == NULL)
-	  {
-	    ui_out_field_string (uiout, "what", "<any library>");
-	    ui_out_spaces (uiout, 1);
-	  }
-	else
-	  {
-	    ui_out_text (uiout, "library \"");
-	    ui_out_field_string (uiout, "what", b->dll_pathname);
-	    ui_out_text (uiout, "\" ");
-	  }
-	break;
-
       case bp_breakpoint:
       case bp_hardware_breakpoint:
       case bp_until:
@@ -3899,8 +3697,6 @@ user_settable_breakpoint (const struct breakpoint *b)
 {
   return (b->type == bp_breakpoint
 	  || b->type == bp_catchpoint
-	  || b->type == bp_catch_load
-	  || b->type == bp_catch_unload
 	  || b->type == bp_hardware_breakpoint
 	  || b->type == bp_watchpoint
 	  || b->type == bp_read_watchpoint
@@ -4290,8 +4086,6 @@ allocate_bp_location (struct breakpoint *bpt, enum bptype bp_type)
     case bp_entry_breakpoint:
     case bp_thread_event:
     case bp_overlay_event:
-    case bp_catch_load:
-    case bp_catch_unload:
       loc->loc_type = bp_loc_software_breakpoint;
       break;
     case bp_hardware_breakpoint:
@@ -4345,8 +4139,6 @@ set_raw_breakpoint_without_location (enum bptype bptype)
   b->ignore_count = 0;
   b->commands = NULL;
   b->frame_id = null_frame_id;
-  b->dll_pathname = NULL;


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [SCM]  archer-sergio-catch-syscall: Merge commit 'gdb/master' into catch-syscall
@ 2008-11-14 19:04 sergio
  0 siblings, 0 replies; 4+ messages in thread
From: sergio @ 2008-11-14 19:04 UTC (permalink / raw)
  To: archer-commits

The branch, archer-sergio-catch-syscall has been updated
       via  e1f6f05e59910a6f78d2acf01987de6662995058 (commit)
       via  3be140d9e984bebdbdbe9f2510f66031e3c5ee77 (commit)
       via  d16fcbc21ef626b9901ca0d3d0b628106625dab0 (commit)
       via  a71153ce043f52ca363a8035676a90db12f30c2e (commit)
       via  0b807f33b56ef78d63f109ff9a4e3e319eb7e1a2 (commit)
       via  5f46815bbecea439e9d6e3fa83eb7702fb88e922 (commit)
       via  74d79707f40389a05871d03cd15317133499499a (commit)
       via  88265ac9d34f5b1ec2f47ca904b90fcae20f9d38 (commit)
       via  6cfee05ee690924f16e7cb8eda2b22dfefb40847 (commit)
       via  c0cc8543ca517ca66ffc2126f320879d32bdecb1 (commit)
       via  bb98fe7a5f9e0b90b1aaff59fd62cd2dec5eed1b (commit)
       via  08aa4efd40eb14274574e129b0ce8d1756fb741d (commit)
       via  600a41079dc401cd1e4d238791aa3d66b38c8c7b (commit)
       via  ea43dff71db75a21354d8720a58a793dbbf5f5d9 (commit)
       via  3bc893e160cf38a01c0d63a0f0be9f90ef534c1c (commit)
       via  57b38614cf581206f5f72d8cf02cbca2eb76f198 (commit)
       via  707a8605fb43a91a83d8bc49e1acc13132ed2e47 (commit)
       via  8c084693ae0dfa3af45aee58c20bfc6655a7d5b6 (commit)
       via  690aae98587899bf1c419d101bec12d4a250a7d5 (commit)
       via  09e7ed66cf8f63905a65618c82e26bc5577998de (commit)
      from  ccaa0ba4b4077936dfa4a4597ae3f989e55110e7 (commit)

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

- Log -----------------------------------------------------------------
commit e1f6f05e59910a6f78d2acf01987de6662995058
Merge: ccaa0ba4b4077936dfa4a4597ae3f989e55110e7 3be140d9e984bebdbdbe9f2510f66031e3c5ee77
Author: Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
Date:   Fri Nov 14 11:03:54 2008 -0800

    Merge commit 'gdb/master' into catch-syscall

commit 3be140d9e984bebdbdbe9f2510f66031e3c5ee77
Author: Bob Wilson <bob.wilson@acm.org>
Date:   Fri Nov 14 17:37:28 2008 +0000

    	* xtensa-modules.c (xtensa_state_id): New enum, replacing STATE macros.
    	(xtensa_field_id, xtensa_regfile_id, xtensa_operand_id)
    	(xtensa_iclass_id, xtensa_opcode_id): New enums.
    	Replace hardcoded constants throughout this file with enum values.

commit d16fcbc21ef626b9901ca0d3d0b628106625dab0
Author: DJ Delorie <dj@delorie.com>
Date:   Fri Nov 14 16:02:56 2008 +0000

    merge from gcc

commit a71153ce043f52ca363a8035676a90db12f30c2e
Author: Daniel Jacobowitz <dan@debian.org>
Date:   Fri Nov 14 15:10:49 2008 +0000

    	Revert:
    
    	2008-10-24  Daniel Jacobowitz  <dan@codesourcery.com>
    
    	* Makefile.tpl (HOST_EXPORTS): Correct CPPFLAGS typo.
    	* Makefile.in: Regenerated.
    
    	2008-10-22  Daniel Jacobowitz  <dan@codesourcery.com>
    
    	* Makefile.def (flags_to_pass): Add CPPFLAGS_FOR_BUILD and CPPFLAGS.
    	* Makefile.tpl (BUILD_EXPORTS): Set CPPFLAGS.
    	(EXTRA_BUILD_FLAGS): Correct typo.  Pass CPPFLAGS.
    	(HOST_EXPORTS): Pass CPPFLAGS.
    	(CPPFLAGS_FOR_BUILD, CPPFLAGS, CPPFLAGS_FOR_TARGET): Define.
    	(LDFLAGS_FOR_TARGET): Initialize from configure script.
    	(EXTRA_TARGET_FLAGS): Set CPPFLAGS.
    	* Makefile.in, configure: Regenerated.
    	* configure.ac: Set CPPFLAGS_FOR_TARGET, LDFLAGS_FOR_TARGET,
    	and CPPFLAGS_FOR_BUILD.

commit 0b807f33b56ef78d63f109ff9a4e3e319eb7e1a2
Author: Nick Clifton <nickc@redhat.com>
Date:   Fri Nov 14 14:44:08 2008 +0000

            bfd/
            * elf.c (assign_file_positions_for_load_sections): Use header_size
            to avoid moving the load address of file headers.
            (assign_file_positions_for_load_sections): Set header_size for
            segments containing the file header.
    
            include/elf/
            * internal.h (struct elf_segment_map): Add header_size field.

commit 5f46815bbecea439e9d6e3fa83eb7702fb88e922
Author: Tristan Gingold <gingold@adacore.com>
Date:   Fri Nov 14 09:57:33 2008 +0000

    bfd/
    2008-11-14  Tristan Gingold  <gingold@adacore.com>
    
    	* configure.com: Handle bfd_default_target_size, BFD_HOST_LONG_LONG,
    	BFD_HOST_64BIT_LONG_LONG, BFD_HOSTPTR_T, bfd_file_ptr.
    	Generate bfdver.h.
    	* vms-hdr.c (_bfd_vms_write_hdr): Use strdup/free instead of alloca.
    	* hosts/alphavms.h: Defines macros to bypass i18n.
    	* makefile.vms (OBJS): Update file list.
    	(DEFS): Remove VMS_DEBUG, const, add DEBUGDIR.
    	(CFLAGS): Update flags.
    	* bfdio.c (real_fopen): Add code specific to VMS: extract attributes
    	from modes.
    
    binutils/
    2008-11-14  Tristan Gingold  <gingold@adacore.com>
    
    	* configure.com: Get version from configure.in of bfd.
    	* makefile.vms-in (DEBUG_OBJS): Add dwarf.obj.
    	(CFLAGS): Update flags.
    
    include/
    2008-11-14  Tristan Gingold  <gingold@adacore.com>
    
    	* fopen-vms.h (FOPEN_RB): Use a single string to match the
    	standard prototype.
    	(FOPEN_WB): Ditto.
    	(FOPEN_AB): Ditto.
    	(FOPEN_RUB): Ditto.
    	(FOPEN_WUB): Ditto.
    	(FOPEN_AUB): Ditto.
    
    libiberty/
    2008-11-14  Tristan Gingold  <gingold@adacore.com>
    
    	* makefile.vms (OBJS): Update objects list.
    	(CFLAGS): Update.
    	(libiberty.olb): Remove alloca-conf.h dependency.
    	* config.h-vms: Use new macro sets, use builtin alloca.
    
    opcodes/
    2008-11-14  Tristan Gingold  <gingold@adacore.com>
    
    	* makefile.vms (OBJS): Update list of objects.
    	(DEFS): Update
    	(CFLAGS): Update.

commit 74d79707f40389a05871d03cd15317133499499a
Author: Doug Evans <dje@google.com>
Date:   Fri Nov 14 06:55:40 2008 +0000

    (set_lang_c): Delete.
    (runto_main): If it fails, call fail instead of gdb_suppress_tests.

commit 88265ac9d34f5b1ec2f47ca904b90fcae20f9d38
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Fri Nov 14 00:00:09 2008 +0000

    daily update

commit 6cfee05ee690924f16e7cb8eda2b22dfefb40847
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Fri Nov 14 00:00:03 2008 +0000

    *** empty log message ***

commit c0cc8543ca517ca66ffc2126f320879d32bdecb1
Author: Joel Brobecker <brobecker@gnat.com>
Date:   Thu Nov 13 23:09:47 2008 +0000

            * configure.in: Deactivate large-file support on native 32bit
            sparc-solaris unless the user explicitly requested it.
            * configure: Regenerate.

commit bb98fe7a5f9e0b90b1aaff59fd62cd2dec5eed1b
Author: Joel Brobecker <brobecker@gnat.com>
Date:   Thu Nov 13 22:26:15 2008 +0000

            * printcmd.c: define PRINTF_HAS_LONG_LONG only if not yet defined.

commit 08aa4efd40eb14274574e129b0ce8d1756fb741d
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date:   Thu Nov 13 15:07:53 2008 +0000

    gdb/ChangeLog:
    
    	* auxv.c (fprint_target_auxv): Handle AT_BASE_PLATFORM and
    	AT_EXECFN.  Re-sort AT_SECURE.
    
    include/elf/ChangeLog:
    
    	* common.h (AT_BASE_PLATFORM, AT_EXECFN): Define.

commit 600a41079dc401cd1e4d238791aa3d66b38c8c7b
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Nov 13 15:02:12 2008 +0000

    	* monitor.c (monitor_insert_breakpoint): Remove unused variable `bp'.

commit ea43dff71db75a21354d8720a58a793dbbf5f5d9
Author: Joel Brobecker <brobecker@gnat.com>
Date:   Thu Nov 13 05:05:07 2008 +0000

            * ia64-tdep.c: Remove commented out #define.

commit 3bc893e160cf38a01c0d63a0f0be9f90ef534c1c
Author: Hans-Peter Nilsson <hp@axis.com>
Date:   Thu Nov 13 03:01:14 2008 +0000

    	PR ld/7028
    	* elf.c (assign_file_positions_for_load_sections): Allocate phrds
    	with bfd_zalloc2 instead of bfd_alloc2.  For the amount, use
    	the possibly-preset header-size, not the computed one.

commit 57b38614cf581206f5f72d8cf02cbca2eb76f198
Author: Joel Brobecker <brobecker@gnat.com>
Date:   Thu Nov 13 01:26:43 2008 +0000

    	* remote-sim.c (gdbsim_mourn_inferior): Use "target" parameter
    	instead of the "gdbsim_ops" global.

commit 707a8605fb43a91a83d8bc49e1acc13132ed2e47
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Thu Nov 13 00:00:05 2008 +0000

    daily update

commit 8c084693ae0dfa3af45aee58c20bfc6655a7d5b6
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Thu Nov 13 00:00:03 2008 +0000

    *** empty log message ***

commit 690aae98587899bf1c419d101bec12d4a250a7d5
Author: Joel Sherrill <joel@oarcorp.com>
Date:   Wed Nov 12 22:05:17 2008 +0000

    2008-11-12  Joel Sherrill <joel.sherrill@oarcorp.com>
    
    	* aclocal.m4:  Fix underquoting of function names.

commit 09e7ed66cf8f63905a65618c82e26bc5577998de
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Wed Nov 12 22:04:03 2008 +0000

    	PR 7023
    	* elf.c (bfd_section_from_shdr <SHT_SYMTAB>): Fail on invalid sh_info.

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

Summary of changes:
 ChangeLog                           |   30 +
 Makefile.def                        |    2 -
 Makefile.in                         |   13 +-
 Makefile.tpl                        |   11 +-
 bfd/ChangeLog                       |   45 +-
 bfd/bfdio.c                         |   26 +
 bfd/configure                       |   43 +-
 bfd/configure.com                   |   93 ++
 bfd/configure.in                    |   15 +
 bfd/elf.c                           |   39 +-
 bfd/hosts/alphavms.h                |   10 +
 bfd/makefile.vms                    |   19 +-
 bfd/version.h                       |    2 +-
 bfd/vms-hdr.c                       |    4 +-
 bfd/xtensa-modules.c                | 2714 ++++++++++++++++++++++-------------
 configure                           |   13 +-
 configure.ac                        |    8 -
 gdb/ChangeLog                       |   23 +
 gdb/auxv.c                          |    4 +-
 gdb/ia64-tdep.c                     |    3 -
 gdb/monitor.c                       |    3 +-
 gdb/printcmd.c                      |    2 +-
 gdb/remote-sim.c                    |    2 +-
 gdb/testsuite/gdb.base/callexit.exp |   38 +-
 gdb/version.in                      |    2 +-
 include/ChangeLog                   |   10 +
 include/elf/ChangeLog               |    8 +
 include/elf/common.h                |    3 +
 include/elf/internal.h              |    2 +
 include/fopen-vms.h                 |   12 +-
 opcodes/ChangeLog                   |    6 +
 opcodes/makefile.vms                |    8 +-
 sim/common/ChangeLog                |    4 +
 sim/common/aclocal.m4               |   42 +-
 34 files changed, 2079 insertions(+), 1180 deletions(-)

First 500 lines of diff:
diff --git a/ChangeLog b/ChangeLog
index ef8a40a..dcf365a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,33 @@
+2008-11-14  Daniel Jacobowitz  <dan@codesourcery.com>
+
+	PR bootstrap/38014
+	PR bootstrap/37923
+
+	Revert:
+
+	2008-10-24  Daniel Jacobowitz  <dan@codesourcery.com>
+
+	* Makefile.tpl (HOST_EXPORTS): Correct CPPFLAGS typo.
+	* Makefile.in: Regenerated.
+
+	2008-10-22  Daniel Jacobowitz  <dan@codesourcery.com>
+
+	PR gdb/921
+	PR gdb/1646
+	PR gdb/2175
+	PR gdb/2176
+
+	* Makefile.def (flags_to_pass): Add CPPFLAGS_FOR_BUILD and CPPFLAGS.
+	* Makefile.tpl (BUILD_EXPORTS): Set CPPFLAGS.
+	(EXTRA_BUILD_FLAGS): Correct typo.  Pass CPPFLAGS.
+	(HOST_EXPORTS): Pass CPPFLAGS.
+	(CPPFLAGS_FOR_BUILD, CPPFLAGS, CPPFLAGS_FOR_TARGET): Define.
+	(LDFLAGS_FOR_TARGET): Initialize from configure script.
+	(EXTRA_TARGET_FLAGS): Set CPPFLAGS.
+	* Makefile.in, configure: Regenerated.
+	* configure.ac: Set CPPFLAGS_FOR_TARGET, LDFLAGS_FOR_TARGET,
+	and CPPFLAGS_FOR_BUILD.
+
 2008-10-29  Stefan Schulze Frielinghaus  <xxschulz@de.ibm.com>
 
 	* configure.ac [spu-*-*]: Do not set skipdirs.
diff --git a/Makefile.def b/Makefile.def
index 5abc54f..832fc42 100644
--- a/Makefile.def
+++ b/Makefile.def
@@ -208,7 +208,6 @@ flags_to_pass = { flag= target_alias ; };
 flags_to_pass = { flag= BISON ; };
 flags_to_pass = { flag= CC_FOR_BUILD ; };
 flags_to_pass = { flag= CFLAGS_FOR_BUILD ; };
-flags_to_pass = { flag= CPPFLAGS_FOR_BUILD ; };
 flags_to_pass = { flag= CXX_FOR_BUILD ; };
 flags_to_pass = { flag= EXPECT ; };
 flags_to_pass = { flag= FLEX ; };
@@ -233,7 +232,6 @@ flags_to_pass = { flag= BOOT_ADAFLAGS ; optional=true ; };
 flags_to_pass = { flag= BOOT_CFLAGS ; };
 flags_to_pass = { flag= BOOT_LDFLAGS ; };
 flags_to_pass = { flag= CFLAGS ; };
-flags_to_pass = { flag= CPPFLAGS ; };
 flags_to_pass = { flag= CXXFLAGS ; };
 flags_to_pass = { flag= LDFLAGS ; };
 flags_to_pass = { flag= LIBCFLAGS ; };
diff --git a/Makefile.in b/Makefile.in
index e94018b..0305d28 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -137,7 +137,6 @@ BUILD_EXPORTS = \
 	CC="$(CC_FOR_BUILD)"; export CC; \
 	CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
 	CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
-	CPPFLAGS="$(CPPFLAGS_FOR_BUILD)"; export CPPFLAGS; \
 	CXX="$(CXX_FOR_BUILD)"; export CXX; \
 	CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
 	GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
@@ -151,10 +150,9 @@ BUILD_EXPORTS = \
 	WINDMC="$(WINDMC_FOR_BUILD)"; export WINDMC;
 
 # These variables must be set on the make command line for directories
-# built for the build system to override those in BASE_FLAGS_TO_PASS.
+# built for the build system to override those in BASE_FLAGS_TO_PASSS.
 EXTRA_BUILD_FLAGS = \
 	CFLAGS="$(CFLAGS_FOR_BUILD)" \
-	CPPFLAGS="$(CPPFLAGS_FOR_BUILD)" \
 	LDFLAGS="$(LDFLAGS_FOR_BUILD)"
 
 # This is the list of directories to built for the host system.
@@ -174,7 +172,6 @@ HOST_EXPORTS = \
 	ADA_CFLAGS="$(ADA_CFLAGS)"; export ADA_CFLAGS; \
 	CFLAGS="$(CFLAGS)"; export CFLAGS; \
 	CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
-	CPPFLAGS="$(CPPFLAGS)"; export CPPFLAGS; \
 	CXX="$(CXX)"; export CXX; \
 	CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
 	AR="$(AR)"; export AR; \
@@ -278,7 +275,6 @@ AR_FOR_BUILD = @AR_FOR_BUILD@
 AS_FOR_BUILD = @AS_FOR_BUILD@
 CC_FOR_BUILD = @CC_FOR_BUILD@
 CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
-CPPFLAGS_FOR_BUILD = @CPPFLAGS_FOR_BUILD@
 CXXFLAGS_FOR_BUILD = @CXXFLAGS_FOR_BUILD@
 CXX_FOR_BUILD = @CXX_FOR_BUILD@
 DLLTOOL_FOR_BUILD = @DLLTOOL_FOR_BUILD@
@@ -340,7 +336,6 @@ GNATBIND = @GNATBIND@
 GNATMAKE = @GNATMAKE@
 
 CFLAGS = @CFLAGS@
-CPPFLAGS = @CPPFLAGS@
 LDFLAGS = @LDFLAGS@
 LIBCFLAGS = $(CFLAGS)
 CXXFLAGS = @CXXFLAGS@
@@ -404,14 +399,13 @@ COMPILER_LD_FOR_TARGET=@COMPILER_LD_FOR_TARGET@
 COMPILER_NM_FOR_TARGET=@COMPILER_NM_FOR_TARGET@
 
 CFLAGS_FOR_TARGET = @CFLAGS_FOR_TARGET@
-CPPFLAGS_FOR_TARGET = @CPPFLAGS_FOR_TARGET@
 CXXFLAGS_FOR_TARGET = @CXXFLAGS_FOR_TARGET@
 SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
 DEBUG_PREFIX_CFLAGS_FOR_TARGET = @DEBUG_PREFIX_CFLAGS_FOR_TARGET@
 
 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
-LDFLAGS_FOR_TARGET = @LDFLAGS_FOR_TARGET@
+LDFLAGS_FOR_TARGET = 
 
 # ------------------------------------
 # Miscellaneous targets and flag lists
@@ -511,7 +505,6 @@ BASE_FLAGS_TO_PASS = \
 	"BISON=$(BISON)" \
 	"CC_FOR_BUILD=$(CC_FOR_BUILD)" \
 	"CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
-	"CPPFLAGS_FOR_BUILD=$(CPPFLAGS_FOR_BUILD)" \
 	"CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
 	"EXPECT=$(EXPECT)" \
 	"FLEX=$(FLEX)" \
@@ -534,7 +527,6 @@ BASE_FLAGS_TO_PASS = \
 	"BOOT_CFLAGS=$(BOOT_CFLAGS)" \
 	"BOOT_LDFLAGS=$(BOOT_LDFLAGS)" \
 	"CFLAGS=$(CFLAGS)" \
-	"CPPFLAGS=$(CPPFLAGS)" \
 	"CXXFLAGS=$(CXXFLAGS)" \
 	"LDFLAGS=$(LDFLAGS)" \
 	"LIBCFLAGS=$(LIBCFLAGS)" \
@@ -625,7 +617,6 @@ EXTRA_TARGET_FLAGS = \
 	'AS=$(COMPILER_AS_FOR_TARGET)' \
 	'CC=$$(CC_FOR_TARGET)' \
 	'CFLAGS=$$(CFLAGS_FOR_TARGET) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)' \
-	'CPPFLAGS=$$(CPPFLAGS_FOR_TARGET)' \
 	'CXX=$$(CXX_FOR_TARGET)' \
 	'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)' \
 	'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
diff --git a/Makefile.tpl b/Makefile.tpl
index 51f5979..051703e 100644
--- a/Makefile.tpl
+++ b/Makefile.tpl
@@ -140,7 +140,6 @@ BUILD_EXPORTS = \
 	CC="$(CC_FOR_BUILD)"; export CC; \
 	CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
 	CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
-	CPPFLAGS="$(CPPFLAGS_FOR_BUILD)"; export CPPFLAGS; \
 	CXX="$(CXX_FOR_BUILD)"; export CXX; \
 	CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
 	GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
@@ -154,10 +153,9 @@ BUILD_EXPORTS = \
 	WINDMC="$(WINDMC_FOR_BUILD)"; export WINDMC;
 
 # These variables must be set on the make command line for directories
-# built for the build system to override those in BASE_FLAGS_TO_PASS.
+# built for the build system to override those in BASE_FLAGS_TO_PASSS.
 EXTRA_BUILD_FLAGS = \
 	CFLAGS="$(CFLAGS_FOR_BUILD)" \
-	CPPFLAGS="$(CPPFLAGS_FOR_BUILD)" \
 	LDFLAGS="$(LDFLAGS_FOR_BUILD)"
 
 # This is the list of directories to built for the host system.
@@ -177,7 +175,6 @@ HOST_EXPORTS = \
 	ADA_CFLAGS="$(ADA_CFLAGS)"; export ADA_CFLAGS; \
 	CFLAGS="$(CFLAGS)"; export CFLAGS; \
 	CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
-	CPPFLAGS="$(CPPFLAGS)"; export CPPFLAGS; \
 	CXX="$(CXX)"; export CXX; \
 	CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
 	AR="$(AR)"; export AR; \
@@ -281,7 +278,6 @@ AR_FOR_BUILD = @AR_FOR_BUILD@
 AS_FOR_BUILD = @AS_FOR_BUILD@
 CC_FOR_BUILD = @CC_FOR_BUILD@
 CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
-CPPFLAGS_FOR_BUILD = @CPPFLAGS_FOR_BUILD@
 CXXFLAGS_FOR_BUILD = @CXXFLAGS_FOR_BUILD@
 CXX_FOR_BUILD = @CXX_FOR_BUILD@
 DLLTOOL_FOR_BUILD = @DLLTOOL_FOR_BUILD@
@@ -343,7 +339,6 @@ GNATBIND = @GNATBIND@
 GNATMAKE = @GNATMAKE@
 
 CFLAGS = @CFLAGS@
-CPPFLAGS = @CPPFLAGS@
 LDFLAGS = @LDFLAGS@
 LIBCFLAGS = $(CFLAGS)
 CXXFLAGS = @CXXFLAGS@
@@ -407,14 +402,13 @@ COMPILER_LD_FOR_TARGET=@COMPILER_LD_FOR_TARGET@
 COMPILER_NM_FOR_TARGET=@COMPILER_NM_FOR_TARGET@
 
 CFLAGS_FOR_TARGET = @CFLAGS_FOR_TARGET@
-CPPFLAGS_FOR_TARGET = @CPPFLAGS_FOR_TARGET@
 CXXFLAGS_FOR_TARGET = @CXXFLAGS_FOR_TARGET@
 SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
 DEBUG_PREFIX_CFLAGS_FOR_TARGET = @DEBUG_PREFIX_CFLAGS_FOR_TARGET@
 
 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
-LDFLAGS_FOR_TARGET = @LDFLAGS_FOR_TARGET@
+LDFLAGS_FOR_TARGET = 
 
 # ------------------------------------
 # Miscellaneous targets and flag lists
@@ -521,7 +515,6 @@ EXTRA_TARGET_FLAGS = \
 	'AS=$(COMPILER_AS_FOR_TARGET)' \
 	'CC=$$(CC_FOR_TARGET)' \
 	'CFLAGS=$$(CFLAGS_FOR_TARGET) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)' \
-	'CPPFLAGS=$$(CPPFLAGS_FOR_TARGET)' \
 	'CXX=$$(CXX_FOR_TARGET)' \
 	'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)' \
 	'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 0452dbb..b44e3ef 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,6 +1,47 @@
-2008-11-12  Tristan Gingold  <gingold@adacore.com>
+2008-11-14  Bob Wilson  <bob.wilson@acm.org>
 
-	* bfd.c (bfd_get_sign_extend_vma): Return 0 for mach-o.
+	* xtensa-modules.c (xtensa_state_id): New enum, replacing STATE macros.
+	(xtensa_field_id, xtensa_regfile_id, xtensa_operand_id)
+	(xtensa_iclass_id, xtensa_opcode_id): New enums.
+	Replace hardcoded constants throughout this file with enum values.
+
+2008-11-14  Nathan Sidwell  <nathan@codesourcery.com>
+
+	* elf.c (assign_file_positions_for_load_sections): Use header_size
+	to avoid moving the load address of file headers.
+	(assign_file_positions_for_load_sections): Set header_size for
+	segments containing the file header.
+
+2008-11-14  Tristan Gingold  <gingold@adacore.com>
+
+	* configure.com: Handle bfd_default_target_size, BFD_HOST_LONG_LONG, 
+	BFD_HOST_64BIT_LONG_LONG, BFD_HOSTPTR_T, bfd_file_ptr.
+	Generate bfdver.h.
+	* vms-hdr.c (_bfd_vms_write_hdr): Use strdup/free instead of alloca.
+	* hosts/alphavms.h: Defines macros to bypass i18n.
+	* makefile.vms (OBJS): Update file list.
+	(DEFS): Remove VMS_DEBUG, const, add DEBUGDIR.
+	(CFLAGS): Update flags.
+	* bfdio.c (real_fopen): Add code specific to VMS: extract attributes
+	from modes.
+
+2008-11-13  Joel Brobecker  <brobecker@adacore.com>
+
+	* configure.in: Deactivate large-file support on native 32bit
+	sparc-solaris unless the user explicitly requested it.
+	* configure: Regenerate.
+
+2008-11-13  Hans-Peter Nilsson  <hp@axis.com>
+
+	PR ld/7028
+	* elf.c (assign_file_positions_for_load_sections): Allocate phrds
+	with bfd_zalloc2 instead of bfd_alloc2.  For the amount, use
+	the possibly-preset header-size, not the computed one.
+
+2008-11-13  Alan Modra  <amodra@bigpond.net.au>
+
+	PR 7023
+	* elf.c (bfd_section_from_shdr <SHT_SYMTAB>): Fail on invalid sh_info.
 
 2008-11-11  Alan Modra  <amodra@bigpond.net.au>
 
diff --git a/bfd/bfdio.c b/bfd/bfdio.c
index cb06453..7cba51f 100644
--- a/bfd/bfdio.c
+++ b/bfd/bfdio.c
@@ -86,11 +86,37 @@ close_on_exec (FILE *file)
 FILE *
 real_fopen (const char *filename, const char *modes)
 {
+#ifdef VMS
+  char vms_modes[4];
+  char *vms_attr;
+
+  /* On VMS, fopen allows file attributes as optionnal arguments.
+     We need to use them but we'd better to use the common prototype.
+     In fopen-vms.h, they are separated from the mode with a comma.
+     Split here.  */
+  vms_attr = strchr (modes, ',');
+  if (vms_attr == NULL)
+    {
+      /* No attributes.  */
+      return close_on_exec (fopen (filename, modes));
+    }
+  else
+    {
+      /* Attribute found - rebuild modes.  */
+      size_t modes_len = vms_attr - modes;
+
+      BFD_ASSERT (modes_len < sizeof (vms_modes));
+      memcpy (vms_modes, modes, modes_len);
+      vms_modes[modes_len] = 0;
+      return close_on_exec (fopen (filename, vms_modes, vms_attr + 1));
+    }
+#else /* !VMS */
 #if defined (HAVE_FOPEN64)
   return close_on_exec (fopen64 (filename, modes));
 #else
   return close_on_exec (fopen (filename, modes));
 #endif
+#endif /* !VMS */
 }
 
 /*
diff --git a/bfd/configure b/bfd/configure
index 5cd7e77..9827e6c 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -4934,6 +4934,21 @@ _ACEOF
 _ACEOF
 
 
+
+case "${target}" in
+  sparc-*-solaris*)
+    # On native 32bit sparc-solaris, large-file and procfs support are
+    # mutually exclusive; and without procfs support, the elf module
+    # cannot provide certain routines such as elfcore_write_prpsinfo
+    # or elfcore_write_prstatus.  So unless the user explicitly requested
+    # large-file support through the --enable-largefile switch, disable
+    # large-file support in favor of procfs support.
+    if test "${target}" = "${host}" -a "$enable_largefile" != 'yes'; then
+      enable_largefile="no"
+    fi
+    ;;
+esac
+
 # Check whether --enable-largefile or --disable-largefile was given.
 if test "${enable_largefile+set}" = set; then
   enableval="$enable_largefile"
@@ -5705,13 +5720,13 @@ if test "${lt_cv_nm_interface+set}" = set; then
 else
   lt_cv_nm_interface="BSD nm"
   echo "int some_variable = 0;" > conftest.$ac_ext
-  (eval echo "\"\$as_me:5708: $ac_compile\"" >&5)
+  (eval echo "\"\$as_me:5723: $ac_compile\"" >&5)
   (eval "$ac_compile" 2>conftest.err)
   cat conftest.err >&5
-  (eval echo "\"\$as_me:5711: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
+  (eval echo "\"\$as_me:5726: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
   cat conftest.err >&5
-  (eval echo "\"\$as_me:5714: output\"" >&5)
+  (eval echo "\"\$as_me:5729: output\"" >&5)
   cat conftest.out >&5
   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
     lt_cv_nm_interface="MS dumpbin"
@@ -6868,7 +6883,7 @@ ia64-*-hpux*)
   ;;
 *-*-irix6*)
   # Find out which ABI we are using.
-  echo '#line 6871 "configure"' > conftest.$ac_ext
+  echo '#line 6886 "configure"' > conftest.$ac_ext
   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   (eval $ac_compile) 2>&5
   ac_status=$?
@@ -8144,11 +8159,11 @@ else
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:8147: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:8162: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:8151: \$? = $ac_status" >&5
+   echo "$as_me:8166: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings other than the usual output.
@@ -8483,11 +8498,11 @@ else
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:8486: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:8501: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:8490: \$? = $ac_status" >&5
+   echo "$as_me:8505: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings other than the usual output.
@@ -8588,11 +8603,11 @@ else
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:8591: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:8606: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>out/conftest.err)
    ac_status=$?
    cat out/conftest.err >&5
-   echo "$as_me:8595: \$? = $ac_status" >&5
+   echo "$as_me:8610: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    then
      # The compiler can only warn and ignore the option if not recognized
@@ -8643,11 +8658,11 @@ else
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:8646: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:8661: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>out/conftest.err)
    ac_status=$?
    cat out/conftest.err >&5
-   echo "$as_me:8650: \$? = $ac_status" >&5
+   echo "$as_me:8665: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    then
      # The compiler can only warn and ignore the option if not recognized
@@ -11440,7 +11455,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11443 "configure"
+#line 11458 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -11536,7 +11551,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11539 "configure"
+#line 11554 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
diff --git a/bfd/configure.com b/bfd/configure.com
index 929977c..de44dfc 100644
--- a/bfd/configure.com
+++ b/bfd/configure.com
@@ -49,12 +49,30 @@ $DECK
       ERASE(match_pos);
       COPY_TEXT('64');
    ENDIF;
+   match_pos := SEARCH_QUIETLY('@bfd_default_target_size@', FORWARD, EXACT, rang);
+   IF match_pos <> 0 THEN;
+      POSITION(BEGINNING_OF(match_pos));
+      ERASE(match_pos);
+      COPY_TEXT('64');
+   ENDIF;
    match_pos := SEARCH_QUIETLY('@BFD_HOST_64BIT_LONG@', FORWARD, EXACT, rang);
    IF match_pos <> 0 THEN;
       POSITION(BEGINNING_OF(match_pos));
       ERASE(match_pos);
       COPY_TEXT('0');
    ENDIF;
+   match_pos := SEARCH_QUIETLY('@BFD_HOST_LONG_LONG@', FORWARD, EXACT, rang);
+   IF match_pos <> 0 THEN;
+      POSITION(BEGINNING_OF(match_pos));
+      ERASE(match_pos);
+      COPY_TEXT('0');
+   ENDIF;
+   match_pos := SEARCH_QUIETLY('@BFD_HOST_64BIT_LONG_LONG@', FORWARD, EXACT, rang);
+   IF match_pos <> 0 THEN;
+      POSITION(BEGINNING_OF(match_pos));
+      ERASE(match_pos);
+      COPY_TEXT('0');
+   ENDIF;
    match_pos := SEARCH_QUIETLY('@BFD_HOST_64_BIT_DEFINED@', FORWARD, EXACT, rang);
    IF match_pos <> 0 THEN;
       POSITION(BEGINNING_OF(match_pos));
@@ -75,6 +93,24 @@ $DECK
       ERASE(match_pos);
       COPY_TEXT('uint64');
    ENDIF;
+   match_pos := SEARCH_QUIETLY('@BFD_HOSTPTR_T@', FORWARD, EXACT, rang);
+   IF match_pos <> 0 THEN;
+      POSITION(BEGINNING_OF(match_pos));
+      ERASE(match_pos);
+      COPY_TEXT('uint64');
+   ENDIF;
+   match_pos := SEARCH_QUIETLY('@bfd_file_ptr@', FORWARD, EXACT, rang);
+   IF match_pos <> 0 THEN;
+      POSITION(BEGINNING_OF(match_pos));
+      ERASE(match_pos);
+      COPY_TEXT('bfd_signed_vma');
+   ENDIF;
+   match_pos := SEARCH_QUIETLY('unsigned @bfd_file_ptr@ ufile_ptr', FORWARD, EXACT, rang);
+   IF match_pos <> 0 THEN;
+      POSITION(BEGINNING_OF(match_pos));
+      ERASE(match_pos);
+      COPY_TEXT('bfd_vma ufile_ptr');
+   ENDIF;
    WRITE_FILE(file, GET_INFO(COMMAND_LINE, "output_file"));
    QUIT
 $  EOD


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [SCM]  archer-sergio-catch-syscall: Merge commit 'gdb/master' into catch-syscall
@ 2008-11-12 17:40 sergio
  0 siblings, 0 replies; 4+ messages in thread
From: sergio @ 2008-11-12 17:40 UTC (permalink / raw)
  To: archer-commits

The branch, archer-sergio-catch-syscall has been updated
       via  c7c93be2ade609b28ac7131f4885d1e2f25e7f92 (commit)
       via  c219a7436c70547cae2b9fd04c6753f8b5413eb4 (commit)
       via  8c3691546a6d49856ae77ef3ad7a082edff27e29 (commit)
       via  9f0175f8f67ad30d74e31ecefa8bb97823bd48fa (commit)
       via  77bb678838103017a6bfc64e3c5f7bc3d1c2bd54 (commit)
       via  548f2726ce84ff4fc97fed6824faaa1745520a37 (commit)
       via  bf0c6dc1673d8bbdc899edb7086f1d99949b97aa (commit)
       via  ee3b086123639ba7c4e345f9d36be66cf1f5edfd (commit)
      from  505a054d0c8817668cc30397690ad75fe1204113 (commit)

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

- Log -----------------------------------------------------------------
commit c7c93be2ade609b28ac7131f4885d1e2f25e7f92
Merge: 505a054d0c8817668cc30397690ad75fe1204113 c219a7436c70547cae2b9fd04c6753f8b5413eb4
Author: Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
Date:   Wed Nov 12 09:40:02 2008 -0800

    Merge commit 'gdb/master' into catch-syscall

commit c219a7436c70547cae2b9fd04c6753f8b5413eb4
Author: Tristan Gingold <gingold@adacore.com>
Date:   Wed Nov 12 10:27:57 2008 +0000

    2008-11-12  Tristan Gingold  <gingold@adacore.com>
    
    	* bfd.c (bfd_get_sign_extend_vma): Return 0 for mach-o.

commit 8c3691546a6d49856ae77ef3ad7a082edff27e29
Author: Doug Evans <dje@google.com>
Date:   Wed Nov 12 00:39:27 2008 +0000

    	* infcall.c (call_function_by_hand): Handle inferior exit.
    
    	* gdb.base/callexit.exp: New file.
    	* gdb.base/callexit.c: New file.

commit 9f0175f8f67ad30d74e31ecefa8bb97823bd48fa
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Wed Nov 12 00:00:33 2008 +0000

    *** empty log message ***

commit 77bb678838103017a6bfc64e3c5f7bc3d1c2bd54
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Tue Nov 11 23:58:59 2008 +0000

    daily update

commit 548f2726ce84ff4fc97fed6824faaa1745520a37
Author: Joel Sherrill <joel@oarcorp.com>
Date:   Tue Nov 11 22:20:54 2008 +0000

    2008-11-10  Joel Sherrill <joel.sherrill@oarcorp.com>
    
    	* erc32.c, exec.c: Fix warnings.

commit bf0c6dc1673d8bbdc899edb7086f1d99949b97aa
Author: Thiago Jung Bauermann <bauerman@br.ibm.com>
Date:   Tue Nov 11 22:07:40 2008 +0000

    	* remote-sim.c (gdbsim_create_inferior, gdbsim_mourn_inferior): Add
    	missing struct target_ops argument.

commit ee3b086123639ba7c4e345f9d36be66cf1f5edfd
Author: Joel Sherrill <joel@oarcorp.com>
Date:   Tue Nov 11 22:05:44 2008 +0000

    2008-11-11  Joel Sherrill <joel.sherrilL@oarcorp.com>
    
    	* MAINTAINERS: Add myself for write after approval privileges.

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

Summary of changes:
 bfd/ChangeLog                       |    4 ++
 bfd/bfd.c                           |    3 +
 bfd/version.h                       |    2 +-
 gdb/ChangeLog                       |   13 +++++
 gdb/MAINTAINERS                     |    1 +
 gdb/infcall.c                       |   10 ++++
 gdb/remote-sim.c                    |    7 ++-
 gdb/testsuite/ChangeLog             |    5 ++
 gdb/testsuite/gdb.base/callexit.c   |   33 +++++++++++++
 gdb/testsuite/gdb.base/callexit.exp |   90 +++++++++++++++++++++++++++++++++++
 gdb/version.in                      |    2 +-
 sim/erc32/ChangeLog                 |    4 ++
 sim/erc32/erc32.c                   |    5 +-
 sim/erc32/exec.c                    |    4 +-
 14 files changed, 174 insertions(+), 9 deletions(-)
 create mode 100644 gdb/testsuite/gdb.base/callexit.c
 create mode 100644 gdb/testsuite/gdb.base/callexit.exp

First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index c539cf7..0452dbb 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2008-11-12  Tristan Gingold  <gingold@adacore.com>
+
+	* bfd.c (bfd_get_sign_extend_vma): Return 0 for mach-o.
+
 2008-11-11  Alan Modra  <amodra@bigpond.net.au>
 
 	* elf.c (assign_file_positions_for_non_load_sections): Consolidate
diff --git a/bfd/bfd.c b/bfd/bfd.c
index 1ffd7d0..1900c14 100644
--- a/bfd/bfd.c
+++ b/bfd/bfd.c
@@ -1001,6 +1001,9 @@ bfd_get_sign_extend_vma (bfd *abfd)
       || strcmp (name, "pei-arm-wince-little") == 0)
     return 1;
 
+  if (CONST_STRNEQ (name, "mach-o"))
+    return 0;
+
   bfd_set_error (bfd_error_wrong_format);
   return -1;
 }
diff --git a/bfd/version.h b/bfd/version.h
index 6d90504..ec8acbc 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20081111
+#define BFD_VERSION_DATE 20081112
 #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 b2d74fc..3f04ade 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,16 @@
+2008-11-11  Doug Evans  <dje@google.com>
+
+	* infcall.c (call_function_by_hand): Handle inferior exit.
+
+2008-11-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
+
+	* remote-sim.c (gdbsim_create_inferior, gdbsim_mourn_inferior): Add
+	missing struct target_ops argument.
+
+2008-11-11  Joel Sherrill <joel.sherrilL@oarcorp.com>
+
+	* MAINTAINERS: Add myself for write after approval privileges.
+
 2008-11-10  Tom Tromey  <tromey@redhat.com>
 
 	* gdbtypes.c (copy_type_recursive): Clear new fields.
diff --git a/gdb/MAINTAINERS b/gdb/MAINTAINERS
index 754d1cd..150b6e4 100644
--- a/gdb/MAINTAINERS
+++ b/gdb/MAINTAINERS
@@ -568,6 +568,7 @@ Thomas Schwinge					tschwinge@gnu.org
 Keith Seitz					keiths@redhat.com
 Carlos Eduardo Seo				cseo@linux.vnet.ibm.com
 Stan Shebs					stan@codesourcery.com
+Joel Sherrill					joel.sherrill@oarcorp.com
 Mark Shinwell					shinwell@codesourcery.com
 Craig Silverstein				csilvers@google.com
 Aidan Skinner					aidan@velvet.net
diff --git a/gdb/infcall.c b/gdb/infcall.c
index 5cc068a..aa3bee0 100644
--- a/gdb/infcall.c
+++ b/gdb/infcall.c
@@ -699,6 +699,16 @@ call_function_by_hand (struct value *function, int nargs, struct value **args)
     discard_cleanups (old_cleanups);
   }
 
+  if (! target_has_execution)
+    {
+      /* If we try to restore the inferior status (via the cleanup),
+	 we'll crash as the inferior is no longer running.  */
+      discard_cleanups (inf_status_cleanup);
+      discard_inferior_status (inf_status);
+      error (_("\
+The program being debugged exited while in a function called from GDB."));
+    }
+
   if (stopped_by_random_signal || !stop_stack_dummy)
     {
       /* Find the name of the function we're about to complain about.  */
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c
index 62f9cb1..6f92ad8 100644
--- a/gdb/remote-sim.c
+++ b/gdb/remote-sim.c
@@ -94,7 +94,7 @@ static void gdbsim_prepare_to_store (struct regcache *regcache);
 
 static void gdbsim_files_info (struct target_ops *target);
 
-static void gdbsim_mourn_inferior (void);
+static void gdbsim_mourn_inferior (struct target_ops *target);
 
 static void gdbsim_stop (ptid_t ptid);
 
@@ -445,7 +445,8 @@ gdbsim_load (char *args, int fromtty)
    user types "run" after having attached.  */
 
 static void
-gdbsim_create_inferior (char *exec_file, char *args, char **env, int from_tty)
+gdbsim_create_inferior (struct target_ops *target, char *exec_file, char *args,
+			char **env, int from_tty)
 {
   int len;
   char *arg_buf, **argv;
@@ -822,7 +823,7 @@ gdbsim_files_info (struct target_ops *target)
 /* Clear the simulator's notion of what the break points are.  */
 
 static void
-gdbsim_mourn_inferior (void)
+gdbsim_mourn_inferior (struct target_ops *target)
 {
   if (remote_debug)
     printf_filtered ("gdbsim_mourn_inferior:\n");
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 2e739d7..0da2e5f 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2008-11-11  Doug Evans  <dje@google.com>
+
+	* gdb.base/callexit.exp: New file.
+	* gdb.base/callexit.c: New file.
+
 2008-11-10  Doug Evans  <dje@google.com>
 
 	* lib/gdb.exp (GDBFLAGS): Move -nx ...
diff --git a/gdb/testsuite/gdb.base/callexit.c b/gdb/testsuite/gdb.base/callexit.c
new file mode 100644
index 0000000..f08d800
--- /dev/null
+++ b/gdb/testsuite/gdb.base/callexit.c
@@ -0,0 +1,33 @@
+/* This testcase is part of GDB, the GNU debugger.
+
+   Copyright 2008 Free Software Foundation, Inc.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 3 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
+
+/* Support program for testing gdb's ability to handle an
+   inferior function call that terminates the program.  */
+
+#include <stdlib.h>
+
+void
+callexit ()
+{
+  exit (0);
+}
+
+int
+main ()
+{
+  return 0;
+}
diff --git a/gdb/testsuite/gdb.base/callexit.exp b/gdb/testsuite/gdb.base/callexit.exp
new file mode 100644
index 0000000..6d4149b
--- /dev/null
+++ b/gdb/testsuite/gdb.base/callexit.exp
@@ -0,0 +1,90 @@
+# Copyright 2008 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+if $tracelevel then {
+	strace $tracelevel
+}
+
+set prms_id 0
+set bug_id 0
+
+set testfile "callexit"
+set srcfile ${testfile}.c
+set binfile ${objdir}/${subdir}/${testfile}
+
+if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
+     untested callexit.exp
+     return -1
+}
+
+# Some targets can't do function calls, so don't even bother with this
+# test.
+if [target_info exists gdb,cannot_call_functions] {
+    setup_xfail "*-*-*" 2416
+    fail "This target can not call functions"
+    continue
+}
+
+# Set the current language to C.  This counts as a test.  If it
+# fails, then we skip the other tests.
+
+proc set_lang_c {} {
+    global gdb_prompt
+
+    send_gdb "set language c\n"
+    gdb_expect {
+	-re ".*$gdb_prompt $" {}
+	timeout { fail "set language c (timeout)" ; return 0; }
+    }
+
+    send_gdb "show language\n"
+    gdb_expect {
+	-re ".* source language is \"c\".*$gdb_prompt $" {
+	    pass "set language to \"c\""
+	    return 1
+	}
+	-re ".*$gdb_prompt $" {
+	    fail "setting language to \"c\""
+	    return 0
+	}
+	timeout {
+	    fail "can't show language (timeout)"
+	    return 0
+	}
+    }
+}
+
+# Start with a fresh gdb.
+
+gdb_exit
+gdb_start
+gdb_reinitialize_dir $srcdir/$subdir
+gdb_load ${binfile}
+
+if { ![set_lang_c] } {
+    gdb_suppress_tests;
+} else {
+    if { ![runto_main] } {
+	gdb_suppress_tests;
+    }
+}
+
+# Call function (causing the program to exit), and see if gdb handles
+# it properly.
+gdb_test "call callexit()" \
+	"The program being debugged exited.*" \
+	"inferior function call terminated program"
+
+return 0
diff --git a/gdb/version.in b/gdb/version.in
index 408f520..7682c58 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-6.8.50.20081111-cvs
+6.8.50.20081112-cvs
diff --git a/sim/erc32/ChangeLog b/sim/erc32/ChangeLog
index 27d99f5..c4a3db5 100644
--- a/sim/erc32/ChangeLog
+++ b/sim/erc32/ChangeLog
@@ -1,3 +1,7 @@
+2008-11-10  Joel Sherrill <joel.sherrill@oarcorp.com>
+
+	* erc32.c, exec.c: Fix warnings.
+
 2008-07-11  Hans-Peter Nilsson  <hp@axis.com>
 
 	* configure: Regenerate to track ../common/common.m4 changes.
diff --git a/sim/erc32/erc32.c b/sim/erc32/erc32.c
index 0b3f3ac..c79dfd6 100644
--- a/sim/erc32/erc32.c
+++ b/sim/erc32/erc32.c
@@ -24,6 +24,7 @@
 
 #include <sys/types.h>
 #include <stdio.h>
+#include <string.h>
 #include <termios.h>
 #include <sys/fcntl.h>
 #include <sys/file.h>
@@ -1659,7 +1660,7 @@ memory_read(asi, addr, data, sz, ws)
 	errmec = 0;
 	return(1);
     }
-#endif;
+#endif
 
     if ((addr >= mem_ramstart) && (addr < (mem_ramstart + mem_ramsz))) {
 	fetch_bytes (asi, &ramb[addr & mem_rammask], data, sz);
@@ -1736,7 +1737,7 @@ memory_write(asi, addr, data, sz, ws)
 	errmec = 0;
 	return(1);
     }
-#endif;
+#endif
 
     if ((addr >= mem_ramstart) && (addr < (mem_ramstart + mem_ramsz))) {
 	if (mem_accprot) {
diff --git a/sim/erc32/exec.c b/sim/erc32/exec.c
index c9765d9..0aca49e 100644
--- a/sim/erc32/exec.c
+++ b/sim/erc32/exec.c
@@ -1713,7 +1713,7 @@ fpexec(op3, rd, rs1, rs2, sregs)
     	    sregs->fdp[rs2 | 1] = sregs->fs[rs2 & ~1];
     	    sregs->fdp[rs2 & ~1] = sregs->fs[rs2 | 1];
     default:
-      ;
+      break;
     }
 #endif
 
@@ -1886,7 +1886,7 @@ fpexec(op3, rd, rs1, rs2, sregs)
 	sregs->fs[rd & ~1] = sregs->fdp[rd | 1];
 	sregs->fs[rd | 1] = sregs->fdp[rd & ~1];
     default:
-      ;
+      break;
     }
 #endif
     if (sregs->fpstate == FP_EXC_PE) {


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-11-17 17:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-11 18:33 [SCM] archer-sergio-catch-syscall: Merge commit 'gdb/master' into catch-syscall sergio
2008-11-12 17:40 sergio
2008-11-14 19:04 sergio
2008-11-17 17:57 sergio

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).