From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29799 invoked by alias); 16 Jul 2002 00:27:51 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 29792 invoked from network); 16 Jul 2002 00:27:50 -0000 Received: from unknown (HELO potter.sfbay.redhat.com) (205.180.83.107) by sources.redhat.com with SMTP; 16 Jul 2002 00:27:50 -0000 Received: from romulus.sfbay.redhat.com (IDENT:sq5l7MzpS3dEXBUjQc9H3m/xhGuvQPhc@romulus.sfbay.redhat.com [172.16.27.251]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id g6G0SRQ17872 for ; Mon, 15 Jul 2002 17:28:27 -0700 Received: (from kev@localhost) by romulus.sfbay.redhat.com (8.11.6/8.11.6) id g6G0Rli06670 for gdb-patches@sources.redhat.com; Mon, 15 Jul 2002 17:27:47 -0700 Date: Tue, 16 Jul 2002 00:43:00 -0000 From: Kevin Buettner Message-Id: <1020716002747.ZM6669@localhost.localdomain> To: gdb-patches@sources.redhat.com Subject: [PATCH] aix-thread.c: Don't use strerror() or realloc() MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-07/txt/msg00345.txt.bz2 I've just committed the following changes... * aix-thread.c (ptrace_check): Use safe_strerror() instead of strerror(). (pdc_realloc): Use xrealloc() instead of realloc(). Index: aix-thread.c =================================================================== RCS file: /cvs/src/src/gdb/aix-thread.c,v retrieving revision 1.4 diff -u -p -r1.4 aix-thread.c --- aix-thread.c 15 Jul 2002 23:33:09 -0000 1.4 +++ aix-thread.c 16 Jul 2002 00:20:36 -0000 @@ -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 *bu 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;