diff options
author | Kevin Buettner <kevinb@redhat.com> | 2002-07-16 00:22:45 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2002-07-16 00:22:45 +0000 |
commit | be006b8b64ba2c7db3542bf7f08d62ea1e37ce9c (patch) | |
tree | 26d76510e2ab437e739d9760eb653e3227e4c64b /gdb/aix-thread.c | |
parent | b42d80615e5394c8c79704b26178bca15f047bd6 (diff) | |
download | gdb-be006b8b64ba2c7db3542bf7f08d62ea1e37ce9c.zip gdb-be006b8b64ba2c7db3542bf7f08d62ea1e37ce9c.tar.gz gdb-be006b8b64ba2c7db3542bf7f08d62ea1e37ce9c.tar.bz2 |
* aix-thread.c (ptrace_check): Use safe_strerror() instead of
strerror().
(pdc_realloc): Use xrealloc() instead of realloc().
Diffstat (limited to 'gdb/aix-thread.c')
-rw-r--r-- | gdb/aix-thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/aix-thread.c b/gdb/aix-thread.c index 62aa25c..a067db3 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; |