]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* gdbarch.c: Rebuild.
authorTom Tromey <tromey@redhat.com>
Wed, 31 Oct 2012 14:29:10 +0000 (14:29 +0000)
committerTom Tromey <tromey@redhat.com>
Wed, 31 Oct 2012 14:29:10 +0000 (14:29 +0000)
* gdbarch.sh: Remove references to gdbarch_swap.
* corelow.c (core_open): Remove obsolete comment.

gdb/ChangeLog
gdb/corelow.c
gdb/gdbarch.c
gdb/gdbarch.sh

index d234e6f5c231ae101a82b4b655c2cf764989f62f..4b84096a073ab7400cd25b4653a515c33595d878 100644 (file)
@@ -1,3 +1,9 @@
+2012-10-31  Tom Tromey  <tromey@redhat.com>
+
+       * gdbarch.c: Rebuild.
+       * gdbarch.sh: Remove references to gdbarch_swap.
+       * corelow.c (core_open): Remove obsolete comment.
+
 2012-10-31  Andrew Burgess  <aburgess@broadcom.com>
 
        PR cli/14772
index 340b149c2e81b873b2e02a9b3196cdca55e81c58..2080068e51493bccaa32a271d55adbad35ff129d 100644 (file)
@@ -344,12 +344,6 @@ core_open (char *filename, int from_tty)
   core_bfd = temp_bfd;
   old_chain = make_cleanup (core_close_cleanup, 0 /*ignore*/);
 
-  /* FIXME: kettenis/20031023: This is very dangerous.  The
-     CORE_GDBARCH that results from this call may very well be
-     different from CURRENT_GDBARCH.  However, its methods may only
-     work if it is selected as the current architecture, because they
-     rely on swapped data (see gdbarch.c).  We should get rid of that
-     swapped data.  */
   core_gdbarch = gdbarch_from_bfd (core_bfd);
 
   /* Find a suitable core file handler to munch on core_bfd */
index c920682074477654a2455dd29c81958929c9bdc3..6bc57afa69e6dcd8b56f643c1b6716e3da83c475 100644 (file)
@@ -113,9 +113,6 @@ struct gdbarch
   unsigned nr_data;
   void **data;
 
-  /* per-architecture swap-regions.  */
-  struct gdbarch_swap *swap;
-
   /* Multi-arch values.
 
      When extending this structure you must:
@@ -308,8 +305,8 @@ struct gdbarch startup_gdbarch =
   0,  /* target_desc */
   /* target specific vector and its dump routine.  */
   NULL, NULL,
-  /*per-architecture data-pointers and swap regions.  */
-  0, NULL, NULL,
+  /*per-architecture data-pointers.  */
+  0, NULL,
   /* Multi-arch values */
   1,  /* bits_big_endian */
   8 * sizeof (short),  /* short_bit */
index 95355f964da5a9a8a6e0c3ca4380214cd98d84f3..e3e6329151c9c0c6a686fc6de2e275b31a054e91 100755 (executable)
@@ -1479,9 +1479,6 @@ printf "  /* per-architecture data-pointers.  */\n"
 printf "  unsigned nr_data;\n"
 printf "  void **data;\n"
 printf "\n"
-printf "  /* per-architecture swap-regions.  */\n"
-printf "  struct gdbarch_swap *swap;\n"
-printf "\n"
 cat <<EOF
   /* Multi-arch values.
 
@@ -1547,8 +1544,8 @@ done
 cat <<EOF
   /* target specific vector and its dump routine.  */
   NULL, NULL,
-  /*per-architecture data-pointers and swap regions.  */
-  0, NULL, NULL,
+  /*per-architecture data-pointers.  */
+  0, NULL,
   /* Multi-arch values */
 EOF
 function_list | while do_read