public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  archer-keiths-linespec-rewrite:  * gdb.linespec/ls-errs.exp: Add garbage-after-quoting tests.
@ 2012-03-22  0:26 kseitz
  0 siblings, 0 replies; only message in thread
From: kseitz @ 2012-03-22  0:26 UTC (permalink / raw)
  To: archer-commits

The branch, archer-keiths-linespec-rewrite has been updated
       via  044932f583c54d22163fdaa7a477dd3997c3194e (commit)
       via  f857b75be188366201c59d755ff4e921b068c521 (commit)
       via  477fea940a1a82dc1f10a2ec8d19bd76c59f4cb6 (commit)
       via  c99aab9dc7c3a1bf110176158f87a630c08a719f (commit)
       via  fda4b74499e5d26b718a51b84ec637e435997fa6 (commit)
       via  dcda1235bb3a42e8edffdb9a9bf5aa6c5243cf9d (commit)
       via  88a05594363f87bf8fa19b0832c3fa96a61cbcf6 (commit)
       via  7be9989f3742c1a538e5736c86165e1aa03bc563 (commit)
       via  a7f9ca9cb797d653dc7919538e1dfa0c26010331 (commit)
       via  4c128abac9c5ae4c9f11f85d842cdc0c666499dc (commit)
       via  111bb24e08681edb232d7f8b0ac2b8bed3196fad (commit)
       via  442ce9b2cb41503472ed40a869324160b2579d1b (commit)
       via  18e847d87b24578d0972f1db0d968a3bf2cc2766 (commit)
       via  090670303d7de01450f38a906bfe3752f25ba783 (commit)
       via  92ab086d5a3f9dc7e03dfe21c98b70274fc411ea (commit)
       via  6080f942dde1a88ecfa33cead8fad514b87b6d7b (commit)
       via  e9051f959054c7c0e19515f8174d894726d345e9 (commit)
       via  856b6d33858f363c9f7b4f1276ffc1c35f336cf7 (commit)
       via  b878b3dd27664f3c1aea39f6bc5173c6054a0b4b (commit)
       via  b8ccb946064deec565e9649fb1eba34817f5fded (commit)
       via  a653dea6799b8e39d42cb7e133541a69e30cb238 (commit)
       via  9e72663fadc7a3e852da5cecfc042c8a6acfd5fc (commit)
       via  9faa4a2a8ed056f9d999a7f0559e8e581e5a0bbc (commit)
       via  c44fcf813d108cd1e63c067117f72f6cc130ad53 (commit)
       via  23f3d45fa5cccdb7bb331f23484555e662a2ae4a (commit)
      from  380143a6f3b302231b64e104ffbc8725782964ed (commit)

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

- Log -----------------------------------------------------------------
commit 044932f583c54d22163fdaa7a477dd3997c3194e
Author: Keith Seitz <keiths@redhat.com>
Date:   Wed Mar 21 17:21:48 2012 -0700

    	* gdb.linespec/ls-errs.exp: Add garbage-after-quoting tests.

commit f857b75be188366201c59d755ff4e921b068c521
Merge: 477fea9 c99aab9
Author: Keith Seitz <keiths@redhat.com>
Date:   Wed Mar 21 17:09:12 2012 -0700

    Merge remote-tracking branch 'gdb/master' into archer-keiths-linespec-rewrite

commit 477fea940a1a82dc1f10a2ec8d19bd76c59f4cb6
Author: Keith Seitz <keiths@redhat.com>
Date:   Wed Mar 21 17:07:05 2012 -0700

    	* linespec.c (parse_linespec): Throw an unexpected linespec error
    	if the next token is EOI or KEYWORD, but allow STRING in
    	list mode if that string starts with ','.

commit c99aab9dc7c3a1bf110176158f87a630c08a719f
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Wed Mar 21 23:00:05 2012 +0000

    daily update

commit fda4b74499e5d26b718a51b84ec637e435997fa6
Author: Kevin Buettner <kevinb@redhat.com>
Date:   Wed Mar 21 21:59:12 2012 +0000

    	* symtab.c (skip_prologue_sal): Change test to check for "main()"
    	in addition to "main".

commit dcda1235bb3a42e8edffdb9a9bf5aa6c5243cf9d
Author: Keith Seitz <keiths@redhat.com>
Date:   Wed Mar 21 12:56:29 2012 -0700

    	* linespec.c (skip_quote_char): Rewrite using find_toplevel_char.

commit 88a05594363f87bf8fa19b0832c3fa96a61cbcf6
Author: Joel Brobecker <brobecker@gnat.com>
Date:   Wed Mar 21 15:16:19 2012 +0000

    SEGV during AX eval of OP_DOUBLE (unsupported)
    
    To reproduce the problem, simply try the following with any program:
    
        (gdb) maintenance agent-eval 1.0
        Critical error handler: process [...] terminated due to access violation
    
    (this is on Windows; on GNU/Linux, the libc copes better)
    
    The problem is quite simple: gen_expr is given an expression that
    contains an unrecognized operator (OP_DOUBLE in this case). When that
    happens, it tries to report an error with a string image of the operator
    in the error message.  Conversion of the opcode into a string is done
    using op_string which, despite its name, probably is not what the author
    was looking for.  This function returns NULL for a lot of the opcodes,
    thus triggering the crash.
    
    There is a function that corresponds to what we are looking for:
    expprint.c:op_name. It was static, though, so I made it non-static,
    and used it from ax-gdb.c:gen_expr.
    
    gdb/ChangeLog:
    
            * expression.h (op_name): Add declaration.
            * expprint.c (op_name): Remove declaration.  Make non-static.
            * ax-gdb.c (gen_expr): Use op_name instead of op_string.

commit 7be9989f3742c1a538e5736c86165e1aa03bc563
Author: Joseph Myers <jsm@polyomino.org.uk>
Date:   Wed Mar 21 14:55:43 2012 +0000

    2012-03-21  Eliot Dresselhaus  <eliot@sonic.net>
    
    	* elf32-tic6x.c (elf32_tic6x_merge_private_bfd_data): Return TRUE
    	for non-C6X objects.

commit a7f9ca9cb797d653dc7919538e1dfa0c26010331
Author: tschwinge <tschwinge>
Date:   Wed Mar 21 13:43:50 2012 +0000

    struct siginfo vs. siginfo_t
    
    gdb/
    	* amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
    	of struct siginfo.
    	* arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
    	* ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
    	* linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
    	(linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
    	(linux_nat_get_siginfo): Likewise.
    	* linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
    	(linux_nat_get_siginfo): Likewise.
    	* linux-tdep.c (linux_get_siginfo_type): Likewise.
    	* ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
    	* procfs.c (gdb_siginfo_t): Likewise.
    
    gdbserver/
    	* linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
    	struct siginfo.
    	* linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
    	* linux-x86-low.c (x86_siginfo_fixup): Likewise.
    	* linux-low.h: Include <signal.h>.
    	(struct siginfo): Remove forward declaration.
    	(struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
    	struct siginfo.

commit 4c128abac9c5ae4c9f11f85d842cdc0c666499dc
Author: gary <gary>
Date:   Wed Mar 21 10:18:50 2012 +0000

    ChangeLog fix

commit 111bb24e08681edb232d7f8b0ac2b8bed3196fad
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Wed Mar 21 04:53:27 2012 +0000

    gdb: update gitignore

commit 442ce9b2cb41503472ed40a869324160b2579d1b
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Wed Mar 21 04:51:36 2012 +0000

    gdbserver: update gitignore

commit 18e847d87b24578d0972f1db0d968a3bf2cc2766
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Wed Mar 21 04:50:01 2012 +0000

    sim: cris: update testsuite output after strsignal change

commit 090670303d7de01450f38a906bfe3752f25ba783
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Wed Mar 21 04:46:58 2012 +0000

    sim/testsuite/: split up arch-specific changelogs

commit 92ab086d5a3f9dc7e03dfe21c98b70274fc411ea
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Wed Mar 21 00:00:03 2012 +0000

    *** empty log message ***

commit 6080f942dde1a88ecfa33cead8fad514b87b6d7b
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Tue Mar 20 23:00:05 2012 +0000

    daily update

commit e9051f959054c7c0e19515f8174d894726d345e9
Author: Kai Tietz <kai.tietz@onevision.com>
Date:   Tue Mar 20 19:24:27 2012 +0000

            PR ld/12742
            * configure.in (AC_CHECK_HEADERS): Test for windows.h and dlfcn.h.
            * plugin.c: Guard include of dlfcn.h if HAVE_DLFCN_H is defined.
            Add windows.h header include if HAVE_WINDOWS_H is defined.
            (dlerror): New static function if windows variant is used instead
            of dlfcn.h.
            (dlclose): Likewise.
            (dlopen): Likewise.
            (dlsym): Likewise.
            * configure: Regenerated.
            * config.in: Regenerated.

commit 9e72663fadc7a3e852da5cecfc042c8a6acfd5fc
Merge: 380143a c44fcf8
Author: Keith Seitz <keiths@redhat.com>
Date:   Mon Mar 19 16:22:25 2012 -0700

    Merge remote-tracking branch 'gdb/master' into archer-keiths-linespec-rewrite

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

Summary of changes:
 bfd/ChangeLog                           |   30 ++
 bfd/config.in                           |    3 +
 bfd/configure                           |   16 +
 bfd/configure.in                        |    3 +
 bfd/elf32-i386.c                        |    1 +
 bfd/elf32-tic6x.c                       |    3 +
 bfd/elf64-x86-64.c                      |    3 +-
 bfd/plugin.c                            |   37 ++
 bfd/version.h                           |    2 +-
 gdb/.gitignore                          |    2 +
 gdb/ChangeLog                           |   93 +++++-
 gdb/amd64-linux-nat.c                   |    4 +-
 gdb/amd64-tdep.c                        |    2 +-
 gdb/arm-linux-nat.c                     |    2 +-
 gdb/ax-gdb.c                            |    2 +-
 gdb/dwarf2expr.c                        |   52 ++-
 gdb/dwarf2expr.h                        |   25 +-
 gdb/dwarf2loc.c                         |   45 ++-
 gdb/dwarf2loc.h                         |    6 +-
 gdb/dwarf2read.c                        |  365 ++++++++++---------
 gdb/expprint.c                          |    3 +-
 gdb/expression.h                        |    2 +
 gdb/gdbserver/.gitignore                |    8 +
 gdb/gdbserver/ChangeLog                 |   15 +
 gdb/gdbserver/linux-arm-low.c           |    2 +-
 gdb/gdbserver/linux-low.c               |   10 +-
 gdb/gdbserver/linux-low.h               |    5 +-
 gdb/gdbserver/linux-x86-low.c           |    4 +-
 gdb/ia64-linux-nat.c                    |    2 +-
 gdb/linespec.c                          |   45 ++--
 gdb/linux-nat.c                         |   16 +-
 gdb/linux-nat.h                         |    6 +-
 gdb/ppc-linux-nat.c                     |    2 +-
 gdb/procfs.c                            |    2 +-
 gdb/remote.c                            |    2 +
 gdb/symtab.c                            |    2 +-
 gdb/testsuite/ChangeLog                 |    8 +
 gdb/testsuite/gdb.base/auxv.c           |   15 +
 gdb/testsuite/gdb.base/auxv.exp         |    7 +-
 gdb/testsuite/gdb.linespec/ls-errs.exp  |    6 +
 gdb/version.in                          |    2 +-
 sim/testsuite/ChangeLog                 |  613 -------------------------------
 sim/testsuite/sim/arm/ChangeLog         |  117 ++++++
 sim/testsuite/sim/cris/ChangeLog        |  154 ++++++++
 sim/testsuite/sim/cris/asm/addqpc.ms    |    2 +-
 sim/testsuite/sim/cris/asm/boundmv32.ms |    2 +-
 sim/testsuite/sim/cris/asm/fidxd.ms     |    2 +-
 sim/testsuite/sim/cris/asm/fidxi.ms     |    2 +-
 sim/testsuite/sim/cris/asm/ftagd.ms     |    2 +-
 sim/testsuite/sim/cris/asm/ftagi.ms     |    2 +-
 sim/testsuite/sim/cris/asm/halt.ms      |    2 +-
 sim/testsuite/sim/cris/asm/io6.ms       |    2 +-
 sim/testsuite/sim/cris/asm/io7.ms       |    2 +-
 sim/testsuite/sim/cris/asm/io8.ms       |    2 +-
 sim/testsuite/sim/cris/asm/io9.ms       |    2 +-
 sim/testsuite/sim/cris/asm/movecpc.ms   |    2 +-
 sim/testsuite/sim/cris/asm/movempc.ms   |    2 +-
 sim/testsuite/sim/cris/asm/movepcb.ms   |    2 +-
 sim/testsuite/sim/cris/asm/movepcd.ms   |    2 +-
 sim/testsuite/sim/cris/asm/movepcw.ms   |    2 +-
 sim/testsuite/sim/cris/asm/moveqpc.ms   |    2 +-
 sim/testsuite/sim/cris/asm/moverbpc.ms  |    2 +-
 sim/testsuite/sim/cris/asm/moverdpc.ms  |    2 +-
 sim/testsuite/sim/cris/asm/moverpcb.ms  |    2 +-
 sim/testsuite/sim/cris/asm/moverpcw.ms  |    2 +-
 sim/testsuite/sim/cris/asm/moverwpc.ms  |    2 +-
 sim/testsuite/sim/cris/asm/movppc.ms    |    2 +-
 sim/testsuite/sim/cris/asm/movrss.ms    |    2 +-
 sim/testsuite/sim/cris/asm/movscpc.ms   |    2 +-
 sim/testsuite/sim/cris/asm/movsmpc.ms   |    2 +-
 sim/testsuite/sim/cris/asm/movsrpc.ms   |    2 +-
 sim/testsuite/sim/cris/asm/movssr.ms    |    2 +-
 sim/testsuite/sim/cris/asm/movucpc.ms   |    2 +-
 sim/testsuite/sim/cris/asm/movumpc.ms   |    2 +-
 sim/testsuite/sim/cris/asm/movurpc.ms   |    2 +-
 sim/testsuite/sim/cris/asm/msteppc1.ms  |    2 +-
 sim/testsuite/sim/cris/asm/msteppc2.ms  |    2 +-
 sim/testsuite/sim/cris/asm/msteppc3.ms  |    2 +-
 sim/testsuite/sim/cris/asm/rfg.ms       |    2 +-
 sim/testsuite/sim/cris/asm/sbfs.ms      |    2 +-
 sim/testsuite/sim/cris/asm/subqpc.ms    |    2 +-
 sim/testsuite/sim/fr30/ChangeLog        |  112 ++++++
 sim/testsuite/sim/frv/ChangeLog         |   76 ++++
 sim/testsuite/sim/m32r/ChangeLog        |  122 ++++++
 sim/testsuite/sim/v850/ChangeLog        |   19 +
 85 files changed, 1224 insertions(+), 923 deletions(-)
 create mode 100644 sim/testsuite/sim/arm/ChangeLog
 create mode 100644 sim/testsuite/sim/cris/ChangeLog
 create mode 100644 sim/testsuite/sim/fr30/ChangeLog
 create mode 100644 sim/testsuite/sim/frv/ChangeLog
 create mode 100644 sim/testsuite/sim/m32r/ChangeLog
 create mode 100644 sim/testsuite/sim/v850/ChangeLog

First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index b9849f8..da9f409 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,33 @@
+2012-03-21  Eliot Dresselhaus  <eliot@sonic.net>
+
+	* elf32-tic6x.c (elf32_tic6x_merge_private_bfd_data): Return TRUE
+	for non-C6X objects.
+
+2012-03-20  Kai Tietz  <ktietz@redhat.com>
+
+	PR ld/12742
+	* configure.in (AC_CHECK_HEADERS): Test for windows.h and dlfcn.h.
+	* plugin.c: Guard include of dlfcn.h if HAVE_DLFCN_H is defined.
+	Add windows.h header include if HAVE_WINDOWS_H is defined.
+	(dlerror): New static function if windows variant is used instead
+	of dlfcn.h.
+	(dlclose): Likewise.
+	(dlopen): Likewise.
+	(dlsym): Likewise.
+	* configure: Regenerated.
+	* config.in: Regenerated.
+
+2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
+
+	PR ld/13880
+	* elf32-i386.c (elf_i386_relocate_section): Don't issue an error
+	for R_386_GOTOFF relocation against protected function if
+	SYMBOLIC_BIND is true.
+
+	* elf64-x86-64.c (elf_x86_64_relocate_section): Don't issue an
+	error for R_X86_64_GOTOFF64 relocation against protected function
+	when building executable or SYMBOLIC_BIND is true.
+
 2012-03-16  Roland McGrath  <mcgrathr@google.com>
 
 	* config.bfd: Handle x86_64-*-nacl*.
diff --git a/bfd/config.in b/bfd/config.in
index 98157e1..cb53b14 100644
--- a/bfd/config.in
+++ b/bfd/config.in
@@ -245,6 +245,9 @@
 /* Define if <sys/procfs.h> has win32_pstatus_t. */
 #undef HAVE_WIN32_PSTATUS_T
 
+/* Define to 1 if you have the <windows.h> header file. */
+#undef HAVE_WINDOWS_H
+
 /* Define to 1 if you have the <zlib.h> header file. */
 #undef HAVE_ZLIB_H
 
diff --git a/bfd/configure b/bfd/configure
index cff9b26..58a57ba 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -13508,6 +13508,22 @@ fi
 
 fi
 
+
+for ac_header in windows.h dlfcn.h
+do :
+  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
+eval as_val=\$$as_ac_Header
+   if test "x$as_val" = x""yes; then :
+  cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
 if test "${gcc_cv_header_string+set}" = set; then :
diff --git a/bfd/configure.in b/bfd/configure.in
index c40c825..f443915 100644
--- a/bfd/configure.in
+++ b/bfd/configure.in
@@ -190,6 +190,9 @@ AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h sys/stat.h)
 GCC_HEADER_STDINT(bfd_stdint.h)
 AC_HEADER_TIME
 AC_HEADER_DIRENT
+
+AC_CHECK_HEADERS(windows.h dlfcn.h)
+
 ACX_HEADER_STRING
 AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno)
 AC_CHECK_FUNCS(strtoull)
diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c
index 4ae2166..f35e3c2 100644
--- a/bfd/elf32-i386.c
+++ b/bfd/elf32-i386.c
@@ -3503,6 +3503,7 @@ elf_i386_relocate_section (bfd *output_bfd,
 		  return FALSE;
 		}
 	      else if (!info->executable
+		       && !SYMBOLIC_BIND (info, h)
 		       && h->type == STT_FUNC
 		       && ELF_ST_VISIBILITY (h->other) == STV_PROTECTED)
 		{
diff --git a/bfd/elf32-tic6x.c b/bfd/elf32-tic6x.c
index 6d6b59b..8abfdd0 100644
--- a/bfd/elf32-tic6x.c
+++ b/bfd/elf32-tic6x.c
@@ -4011,6 +4011,9 @@ elf32_tic6x_merge_private_bfd_data (bfd *ibfd, bfd *obfd)
   if (!_bfd_generic_verify_endian_match (ibfd, obfd))
     return FALSE;
 
+  if (! is_tic6x_elf (ibfd) || ! is_tic6x_elf (obfd))
+    return TRUE;
+
   if (!elf32_tic6x_merge_attributes (ibfd, obfd))
     return FALSE;
 
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c
index f2f803a..cc5ee42 100644
--- a/bfd/elf64-x86-64.c
+++ b/bfd/elf64-x86-64.c
@@ -3464,8 +3464,9 @@ elf_x86_64_relocate_section (bfd *output_bfd,
 	  /* Check to make sure it isn't a protected function symbol
 	     for shared library since it may not be local when used
 	     as function address.  */
-	  if (info->shared
+	  if (!info->executable
 	      && h
+	      && !SYMBOLIC_BIND (info, h)
 	      && h->def_regular
 	      && h->type == STT_FUNC
 	      && ELF_ST_VISIBILITY (h->other) == STV_PROTECTED)
diff --git a/bfd/plugin.c b/bfd/plugin.c
index 064e273..0a29e37 100644
--- a/bfd/plugin.c
+++ b/bfd/plugin.c
@@ -25,7 +25,13 @@
 #if BFD_SUPPORTS_PLUGINS
 
 #include <assert.h>
+#ifdef HAVE_DLFCN_H
 #include <dlfcn.h>
+#elif defined (HAVE_WINDOWS_H)
+#include <windows.h>
+#else
+#error Unknown how to handle dynamic-load-libraries.
+#endif
 #include <stdarg.h>
 #include "plugin-api.h"
 #include "sysdep.h"
@@ -34,6 +40,37 @@
 #include "libiberty.h"
 #include <dirent.h>
 
+#if !defined (HAVE_DLFCN_H) && defined (HAVE_WINDOWS_H)
+
+#define RTLD_NOW 0      /* Dummy value.  */
+
+static void *
+dlopen (const char *file, int mode ATTRIBUTE_UNUSED)
+{
+  return LoadLibrary (file);
+}
+
+static void *
+dlsym (void *handle, const char *name)
+{
+  return GetProcAddress (handle, name);
+}
+
+static int ATTRIBUTE_UNUSED
+dlclose (void *handle)
+{
+  FreeLibrary (handle);
+  return 0;
+}
+
+static const char *
+dlerror (void)
+{
+  return "Unable to load DLL.";
+}
+
+#endif /* !defined (HAVE_DLFCN_H) && defined (HAVE_WINDOWS_H)  */
+
 #define bfd_plugin_close_and_cleanup                  _bfd_generic_close_and_cleanup
 #define bfd_plugin_bfd_free_cached_info               _bfd_generic_bfd_free_cached_info
 #define bfd_plugin_new_section_hook                   _bfd_generic_new_section_hook
diff --git a/bfd/version.h b/bfd/version.h
index 241c6fe..ace12b2 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20120319
+#define BFD_VERSION_DATE 20120322
 #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/.gitignore b/gdb/.gitignore
index f0cbd8c..7a0dd1a 100644
--- a/gdb/.gitignore
+++ b/gdb/.gitignore
@@ -7,7 +7,9 @@
 /cp-name-parser.c
 /f-exp.c
 /gdb
+/gdbtui
 /init.c
+/jit-reader.h
 /jv-exp.c
 /m2-exp.c
 /objc-exp.c
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 3059d69..000b921 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,94 @@
+2012-03-21  Kevin Buettner  <kevinb@redhat.com>
+
+	* symtab.c (skip_prologue_sal): Change test to check for "main()"
+	in addition to "main".
+
+2012-03-21  Joel Brobecker  <brobecker@adacore.com>
+
+	* expression.h (op_name): Add declaration.
+	* expprint.c (op_name): Remove declaration.  Make non-static.
+	* ax-gdb.c (gen_expr): Use op_name instead of op_string.
+
+2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
+
+	* amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
+	of struct siginfo.
+	* arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
+	* ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
+	* linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
+	(linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
+	(linux_nat_get_siginfo): Likewise.
+	* linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
+	(linux_nat_get_siginfo): Likewise.
+	* linux-tdep.c (linux_get_siginfo_type): Likewise.
+	* ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
+	* procfs.c (gdb_siginfo_t): Likewise.
+
+2012-03-21  Mike Frysinger  <vapier@gentoo.org>
+
+	* .gitignore: Ignore more files.
+
+2012-03-20  Pedro Alves  <palves@redhat.com>
+
+	* remote.c (remote_start_remote): Clear `rs->starting_up' on early
+	returns.
+
+2012-03-20  Yao Qi  <yao@codesourcery.com>
+
+	* amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
+	comment.
+
+2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	Code cleanupp: Use cu_offset and sect_offset compile time type checking.
+	* dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
+	(ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
+	sect_offset.
+	* dwarf2expr.h (cu_offset, sect_offset): New types.
+	(struct dwarf_expr_context_funcs) <dwarf_call>
+	(struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
+	sect_offset.
+	(struct dwarf_expr_context) <len>: Improve the comment.
+	(struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
+	cu_offset and sect_offset.
+	* dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
+	(dwarf_expr_get_base_type, needs_frame_dwarf_call)
+	(dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
+	* dwarf2loc.h: Include dwarf2expr.h.
+	(dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
+	and sect_offset.
+	* dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
+	Improve the comment.
+	(struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
+	(struct signatured_type, struct line_header, struct partial_die_info)
+	(struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
+	(lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
+	(get_die_type_at_offset, create_cus_from_index)
+	(create_signatured_type_table_from_index, dw2_get_file_names)
+	(offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
+	(read_and_check_comp_unit_head, read_and_check_type_unit_head)
+	(create_debug_types_hash_table, process_psymtab_comp_unit)
+	(load_partial_comp_unit, create_all_comp_units)
+	(partial_die_parent_scope, partial_die_full_name, skip_one_die)
+	(load_full_comp_unit, dwarf2_physname, read_import_statement)
+	(inherit_abstract_dies, read_func_scope, read_call_site_scope)
+	(dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
+	(read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
+	(load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
+	(find_partial_die, read_attribute_value, lookup_die_type)
+	(dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
+	(is_ref_attr): New function comment.
+	(dwarf2_get_ref_die_offset): New function comment, new variable retval.
+	Use cu_offset and sect_offset.
+	(follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
+	(dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
+	(load_full_type_unit, read_signatured_type, per_cu_header_read_in)
+	(dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
+	(offset_and_type_hash, offset_and_type_eq, set_die_type)
+	(get_die_type_at_offset, partial_die_hash, partial_die_eq)
+	(write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
+	sect_offset.
+
 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
 	Code cleanup.
@@ -2107,7 +2198,7 @@
 
 2012-02-01  Gary Benson  <gbenson@redhat.com>
 
-	* symtab.h (symbol_name_match_p_ftype): New typedef.
+	* symtab.h (symbol_found_callback_ftype): New typedef.
 	(iterate_over_symbols): Use the above.
 	* symtab.c (iterate_over_symbols): Likewise.
 	* language.h (language_defn->la_iterate_over_symbols): Likewise.
diff --git a/gdb/amd64-linux-nat.c b/gdb/amd64-linux-nat.c
index f954483..5ebba3a 100644
--- a/gdb/amd64-linux-nat.c
+++ b/gdb/amd64-linux-nat.c
@@ -731,13 +731,13 @@ siginfo_from_compat_siginfo (siginfo_t *to, compat_siginfo_t *from)
    INF.  */
 
 static int
-amd64_linux_siginfo_fixup (struct siginfo *native, gdb_byte *inf, int direction)
+amd64_linux_siginfo_fixup (siginfo_t *native, gdb_byte *inf, int direction)
 {
   /* Is the inferior 32-bit?  If so, then do fixup the siginfo
      object.  */
   if (gdbarch_addr_bit (get_frame_arch (get_current_frame ())) == 32)
     {
-      gdb_assert (sizeof (struct siginfo) == sizeof (compat_siginfo_t));
+      gdb_assert (sizeof (siginfo_t) == sizeof (compat_siginfo_t));
 
       if (direction == 0)
 	compat_siginfo_from_siginfo ((struct compat_siginfo *) inf, native);
diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c
index ea65d0d..a193099 100644
--- a/gdb/amd64-tdep.c
+++ b/gdb/amd64-tdep.c
@@ -1258,7 +1258,7 @@ amd64_displaced_step_copy_insn (struct gdbarch *gdbarch,
 				struct regcache *regs)
 {
   int len = gdbarch_max_insn_length (gdbarch);
-  /* Extra space for sentinels so fixup_{riprel,displaced_copy don't have to
+  /* Extra space for sentinels so fixup_{riprel,displaced_copy} don't have to
      continually watch for running off the end of the buffer.  */
   int fixup_sentinel_space = len;
   struct displaced_step_closure *dsc =
diff --git a/gdb/arm-linux-nat.c b/gdb/arm-linux-nat.c
index c5ce21c..f9f6ba5 100644
--- a/gdb/arm-linux-nat.c
+++ b/gdb/arm-linux-nat.c
@@ -1137,7 +1137,7 @@ arm_linux_remove_watchpoint (CORE_ADDR addr, int len, int rw,
 static int
 arm_linux_stopped_data_address (struct target_ops *target, CORE_ADDR *addr_p)
 {
-  struct siginfo *siginfo_p = linux_nat_get_siginfo (inferior_ptid);
+  siginfo_t *siginfo_p = linux_nat_get_siginfo (inferior_ptid);
   int slot = siginfo_p->si_errno;
 
   /* This must be a hardware breakpoint.  */
diff --git a/gdb/ax-gdb.c b/gdb/ax-gdb.c
index a76e781..aaefed6 100644
--- a/gdb/ax-gdb.c
+++ b/gdb/ax-gdb.c
@@ -2217,7 +2217,7 @@ gen_expr (struct expression *exp, union exp_element **pc,
 
     default:
       error (_("Unsupported operator %s (%d) in expression."),
-	     op_string (op), op);
+	     op_name (exp, op), op);
     }
 }
 
diff --git a/gdb/dwarf2expr.c b/gdb/dwarf2expr.c
index 6757204..700d8cc 100644
--- a/gdb/dwarf2expr.c
+++ b/gdb/dwarf2expr.c
@@ -342,7 +342,7 @@ add_piece (struct dwarf_expr_context *ctx, ULONGEST size, ULONGEST offset)
     }
   else if (p->location == DWARF_VALUE_IMPLICIT_POINTER)
     {
-      p->v.ptr.die = ctx->len;
+      p->v.ptr.die.cu_off = ctx->len;
       p->v.ptr.offset = value_as_long (dwarf_expr_fetch (ctx, 0));
     }
   else if (p->location == DWARF_VALUE_REGISTER)
@@ -464,7 +464,7 @@ base_types_equal_p (struct type *t1, struct type *t2)
    size.  */
 
 static struct type *
-dwarf_get_base_type (struct dwarf_expr_context *ctx, ULONGEST die, int size)
+dwarf_get_base_type (struct dwarf_expr_context *ctx, cu_offset die, int size)
 {
   struct type *result;
 
@@ -869,7 +869,7 @@ execute_stack_op (struct dwarf_expr_context *ctx,
 	      error (_("DWARF-2 expression error: DW_OP_GNU_implicit_pointer "
 		       "is not allowed in frame context"));
 
-	    /* The referred-to DIE.  */
+	    /* The referred-to DIE of cu_offset kind.  */
 	    ctx->len = extract_unsigned_integer (op_ptr, ctx->ref_addr_size,
 						 byte_order);
 	    op_ptr += ctx->ref_addr_size;
@@ -1031,9 +1031,10 @@ execute_stack_op (struct dwarf_expr_context *ctx,
 
 	    if (op == DW_OP_GNU_deref_type)
 	      {
-		ULONGEST type_die;
+		cu_offset type_die;
 
-		op_ptr = read_uleb128 (op_ptr, op_end, &type_die);
+		op_ptr = read_uleb128 (op_ptr, op_end, &uoffset);
+		type_die.cu_off = uoffset;
 		type = dwarf_get_base_type (ctx, type_die, 0);
 	      }
 	    else
@@ -1335,15 +1336,23 @@ execute_stack_op (struct dwarf_expr_context *ctx,
 	  goto no_push;
 
 	case DW_OP_call2:
-	  result = extract_unsigned_integer (op_ptr, 2, byte_order);
-	  op_ptr += 2;
-	  ctx->funcs->dwarf_call (ctx, result);
+	  {
+	    cu_offset offset;
+
+	    offset.cu_off = extract_unsigned_integer (op_ptr, 2, byte_order);
+	    op_ptr += 2;
+	    ctx->funcs->dwarf_call (ctx, offset);
+	  }
 	  goto no_push;
 
 	case DW_OP_call4:
-	  result = extract_unsigned_integer (op_ptr, 4, byte_order);
-	  op_ptr += 4;
-	  ctx->funcs->dwarf_call (ctx, result);
+	  {
+	    cu_offset offset;
+
+	    offset.cu_off = extract_unsigned_integer (op_ptr, 4, byte_order);
+	    op_ptr += 4;
+	    ctx->funcs->dwarf_call (ctx, offset);
+	  }
 	  goto no_push;
 	
 	case DW_OP_GNU_entry_value:
@@ -1386,12 +1395,13 @@ execute_stack_op (struct dwarf_expr_context *ctx,
 
 	case DW_OP_GNU_const_type:
 	  {
-	    ULONGEST type_die;
+	    cu_offset type_die;
 	    int n;
 	    const gdb_byte *data;
 	    struct type *type;
 
-	    op_ptr = read_uleb128 (op_ptr, op_end, &type_die);
+	    op_ptr = read_uleb128 (op_ptr, op_end, &uoffset);
+	    type_die.cu_off = uoffset;
 	    n = *op_ptr++;
 	    data = op_ptr;
 	    op_ptr += n;
@@ -1403,11 +1413,12 @@ execute_stack_op (struct dwarf_expr_context *ctx,
 
 	case DW_OP_GNU_regval_type:
 	  {
-	    ULONGEST type_die;
+	    cu_offset type_die;
 	    struct type *type;
 
 	    op_ptr = read_uleb128 (op_ptr, op_end, &reg);
-	    op_ptr = read_uleb128 (op_ptr, op_end, &type_die);
+	    op_ptr = read_uleb128 (op_ptr, op_end, &uoffset);
+	    type_die.cu_off = uoffset;
 
 	    type = dwarf_get_base_type (ctx, type_die, 0);
 	    result = (ctx->funcs->read_reg) (ctx->baton, reg);
@@ -1420,12 +1431,13 @@ execute_stack_op (struct dwarf_expr_context *ctx,
 	case DW_OP_GNU_convert:
 	case DW_OP_GNU_reinterpret:
 	  {
-	    ULONGEST type_die;
+	    cu_offset type_die;
 	    struct type *type;
 
-	    op_ptr = read_uleb128 (op_ptr, op_end, &type_die);
+	    op_ptr = read_uleb128 (op_ptr, op_end, &uoffset);
+	    type_die.cu_off = uoffset;
 
-	    if (type_die == 0)
+	    if (type_die.cu_off == 0)


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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-03-22  0:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-22  0:26 [SCM] archer-keiths-linespec-rewrite: * gdb.linespec/ls-errs.exp: Add garbage-after-quoting tests kseitz

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