Share regcache function regcache_raw_read_unsigned
[deliverable/binutils-gdb.git] / gdb / gdbserver / tdesc.c
index 971012803370b2e2223401b2923a3dea178af590..1263efe4d7fcbf62854b18628f9bb61832057e58 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2012-2014 Free Software Foundation, Inc.
+/* Copyright (C) 2012-2015 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -35,13 +35,12 @@ init_target_desc (struct target_desc *tdesc)
 
   /* Make sure PBUFSIZ is large enough to hold a full register
      packet.  */
-  if (2 * tdesc->registers_size + 32 > PBUFSIZ)
-    fatal ("Register packet size exceeds PBUFSIZ.");
+  gdb_assert (2 * tdesc->registers_size + 32 <= PBUFSIZ);
 }
 
 #ifndef IN_PROCESS_AGENT
 
-static const struct target_desc default_description;
+static const struct target_desc default_description = { 0 };
 
 void
 copy_target_description (struct target_desc *dest,
@@ -57,7 +56,7 @@ copy_target_description (struct target_desc *dest,
 const struct target_desc *
 current_target_desc (void)
 {
-  if (current_inferior == NULL)
+  if (current_thread == NULL)
     return &default_description;
 
   return current_process ()->tdesc;
This page took 0.029265 seconds and 4 git commands to generate.