+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.
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. */
}
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;