* aix-thread.c (ptrace_check): Use safe_strerror() instead of
authorKevin Buettner <kevinb@redhat.com>
Tue, 16 Jul 2002 00:22:45 +0000 (00:22 +0000)
committerKevin Buettner <kevinb@redhat.com>
Tue, 16 Jul 2002 00:22:45 +0000 (00:22 +0000)
strerror().
(pdc_realloc): Use xrealloc() instead of realloc().

gdb/ChangeLog
gdb/aix-thread.c

index 373ae956c22fe0f64f9f88ece45e59d3473284c7..13a7b2bce0af0710b0eea1ccd2dfb32640e27628 100644 (file)
@@ -1,3 +1,9 @@
+2002-07-15  Kevin Buettner  <kevinb@redhat.com>
+
+       * aix-thread.c (ptrace_check): Use safe_strerror() instead of
+       strerror().
+       (pdc_realloc): Use xrealloc() instead of realloc().
+
 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
 
        * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
index 62aa25c51657b10ec00de8ff80fea854f2deb3e6..a067db370f375ebe1bfdaddb88c4e4bc94f6c13f 100644 (file)
@@ -241,7 +241,7 @@ ptrace_check (int req, int id, int ret)
       break;
     }
   error ("aix-thread: ptrace (%d, %d) returned %d (errno = %d %s)",
-        req, id, ret, errno, strerror (errno));
+        req, id, ret, errno, safe_strerror (errno));
   return 0;  /* not reached.  */
 }
 
@@ -507,7 +507,7 @@ pdc_realloc (pthdb_user_t user, void *buf, size_t len, void **bufp)
     fprintf_unfiltered (gdb_stdlog,
       "pdc_realloc (user = %ld, buf = 0x%lx, len = %ld, bufp = 0x%lx)",
       user, (long) buf, len, (long) bufp);
-  *bufp = realloc (buf, len);
+  *bufp = xrealloc (buf, len);
   if (debug_aix_thread)
     fprintf_unfiltered (gdb_stdlog, "  realloc returned 0x%lx", (long) *bufp);
   return *bufp ? PDC_SUCCESS : PDC_FAILURE;
This page took 0.02843 seconds and 4 git commands to generate.