* target.c (target_read): Stop if target_read_partial returns 0
[deliverable/binutils-gdb.git] / gdb / sparc-tdep.c
index 797e2400536fe90792e02e1650d31e9b144f55b2..6c6f27692e00fcd52e033913544cddc080b2e311 100644 (file)
@@ -158,7 +158,7 @@ sparc_fetch_wcookie (void)
   gdb_byte buf[8];
   int len;
 
-  len = target_read_partial (ops, TARGET_OBJECT_WCOOKIE, NULL, buf, 0, 8);
+  len = target_read (ops, TARGET_OBJECT_WCOOKIE, NULL, buf, 0, 8);
   if (len == -1)
     return 0;
 
This page took 0.024047 seconds and 4 git commands to generate.