* python/python.c (gdbpy_decode_line): Move cleanup creation out
[deliverable/binutils-gdb.git] / gdb / ravenscar-sparc-thread.c
index 197b74515f93548cc817a84fd1dc18729834145f..9132109d62bedf6c502837c465ecb5cf00510691 100644 (file)
@@ -1,6 +1,6 @@
 /* Ravenscar SPARC target support.
 
-   Copyright 2004, 2010 Free Software Foundation, Inc.
+   Copyright 2004, 2010-2012 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -33,8 +33,8 @@ static void ravenscar_sparc_store_registers (struct regcache *regcache,
 static void ravenscar_sparc_prepare_to_store (struct regcache *regcache);
 
 /* Register offsets from a referenced address (exempli gratia the
-   Thread_Descriptor). The referenced address depends on the register
-   number. The Thread_Descriptor layout and the stack layout are documented
+   Thread_Descriptor).  The referenced address depends on the register
+   number.  The Thread_Descriptor layout and the stack layout are documented
    in the GNAT sources, in sparc-bb.h.  */
 
 static const int sparc_register_offsets[] =
@@ -69,7 +69,7 @@ supply_register_at_address (struct regcache *regcache, int regnum,
 
   buf = (char *) alloca (buf_size);
   read_memory (register_addr, buf, buf_size);
-  regcache_raw_supply (regcache, regnum, &buf);
+  regcache_raw_supply (regcache, regnum, buf);
 }
 
 /* Return true if, for a non-running thread, REGNUM has been saved on the
@@ -175,6 +175,9 @@ ravenscar_sparc_store_registers (struct regcache *regcache, int regnum)
                 buf_size);
 }
 
+/* Provide a prototype to silence -Wmissing-prototypes.  */
+extern void _initialize_ravenscar_sparc (void);
+
 void
 _initialize_ravenscar_sparc (void)
 {
This page took 0.024127 seconds and 4 git commands to generate.