summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2002-07-16 00:22:45 +0000
committerKevin Buettner <kevinb@redhat.com>2002-07-16 00:22:45 +0000
commit9dbc633a419f11758ed4c9d8d66d622e09a13d53 (patch)
treeafa08e57ee8a4e138855eff26e327098f733ccba
parent1ad1ee800ff1d262b1934062a933b42c3a8ac420 (diff)
downloadgdb-9dbc633a419f11758ed4c9d8d66d622e09a13d53.tar.gz
* aix-thread.c (ptrace_check): Use safe_strerror() instead of
strerror(). (pdc_realloc): Use xrealloc() instead of realloc().
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/aix-thread.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 373ae956c22..13a7b2bce0a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
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.
(ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
(ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
diff --git a/gdb/aix-thread.c b/gdb/aix-thread.c
index 62aa25c5165..a067db370f3 100644
--- a/gdb/aix-thread.c
+++ b/gdb/aix-thread.c
@@ -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;