From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24972 invoked by alias); 21 Dec 2002 06:39:43 -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 24964 invoked from network); 21 Dec 2002 06:39:42 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by 209.249.29.67 with SMTP; 21 Dec 2002 06:39:42 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id gBL6D3i29561 for ; Sat, 21 Dec 2002 01:13:04 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id gBL6dU209930 for ; Sat, 21 Dec 2002 01:39:30 -0500 Received: from localhost.localdomain (vpn50-3.rdu.redhat.com [172.16.50.3]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id gBL6dTL12620 for ; Sat, 21 Dec 2002 01:39:29 -0500 Received: (from kev@localhost) by localhost.localdomain (8.11.6/8.11.6) id gBL6dO527493 for gdb-patches@sources.redhat.com; Fri, 20 Dec 2002 23:39:24 -0700 Date: Fri, 20 Dec 2002 22:46:00 -0000 From: Kevin Buettner Message-Id: <1021221063923.ZM27492@localhost.localdomain> To: gdb-patches@sources.redhat.com Subject: [PATCH] mips-tdep.c: Fix bug introduced at time of NUM_REGS multiarch MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-12/txt/msg00602.txt.bz2 I've just committed the patch below. As noted in the subject, it fixes a bug that was introduced when I multiarched NUM_REGS a short time ago. * mips-tdep.c (heuristic_proc_desc): Clear memory associated with ``temp_saved_regs'', not the pointer or other storage contiguous to this pointer. Index: mips-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/mips-tdep.c,v retrieving revision 1.147 diff -u -p -r1.147 mips-tdep.c --- mips-tdep.c 13 Dec 2002 18:09:30 -0000 1.147 +++ mips-tdep.c 21 Dec 2002 06:31:58 -0000 @@ -2142,7 +2142,7 @@ heuristic_proc_desc (CORE_ADDR start_pc, return NULL; memset (&temp_proc_desc, '\0', sizeof (temp_proc_desc)); temp_saved_regs = xrealloc (temp_saved_regs, SIZEOF_FRAME_SAVED_REGS); - memset (&temp_saved_regs, '\0', SIZEOF_FRAME_SAVED_REGS); + memset (temp_saved_regs, '\0', SIZEOF_FRAME_SAVED_REGS); PROC_LOW_ADDR (&temp_proc_desc) = start_pc; PROC_FRAME_REG (&temp_proc_desc) = SP_REGNUM; PROC_PC_REG (&temp_proc_desc) = RA_REGNUM;