From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28739 invoked by alias); 22 Apr 2002 15:56:25 -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 28727 invoked from network); 22 Apr 2002 15:56:24 -0000 Received: from unknown (HELO dr-evil.shagadelic.org) (208.176.2.162) by sources.redhat.com with SMTP; 22 Apr 2002 15:56:24 -0000 Received: by dr-evil.shagadelic.org (Postfix, from userid 7518) id DC39B9869; Mon, 22 Apr 2002 08:56:18 -0700 (PDT) Date: Mon, 22 Apr 2002 08:56:00 -0000 From: Jason R Thorpe To: Joel Brobecker Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA] Fix recent compilation errors in alpha-nat.c on alpha-osf Message-ID: <20020422085618.F27275@dr-evil.shagadelic.org> Reply-To: thorpej@wasabisystems.com Mail-Followup-To: Jason R Thorpe , Joel Brobecker , gdb-patches@sources.redhat.com References: <20020422154234.F21070@act-europe.fr> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="4SFOXa2GPu3tIq4H" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020422154234.F21070@act-europe.fr>; from brobecker@ACT-Europe.FR on Mon, Apr 22, 2002 at 03:42:34PM +0200 Organization: Wasabi Systems, Inc. X-SW-Source: 2002-04/txt/msg00798.txt.bz2 --4SFOXa2GPu3tIq4H Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 374 On Mon, Apr 22, 2002 at 03:42:34PM +0200, Joel Brobecker wrote: > Ideas for a better fix are welcome. I'll commit this; it mimmicks what I did in the other Alpha code. * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants where needed. (fetch_osf_core_registers): Likewise. (supply_gregset): Likewise. -- -- Jason R. Thorpe --4SFOXa2GPu3tIq4H Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=alpha-patch Content-length: 1257 Index: alpha-nat.c =================================================================== RCS file: /cvs/src/src/gdb/alpha-nat.c,v retrieving revision 1.9 diff -u -r1.9 alpha-nat.c --- alpha-nat.c 21 Apr 2002 16:52:39 -0000 1.9 +++ alpha-nat.c 22 Apr 2002 15:50:30 -0000 @@ -63,7 +63,7 @@ get_longjmp_target (CORE_ADDR *pc) { CORE_ADDR jb_addr; - char raw_buffer[MAX_REGISTER_RAW_SIZE]; + char raw_buffer[ALPHA_MAX_REGISTER_RAW_SIZE]; jb_addr = read_register (ALPHA_A0_REGNUM); @@ -101,7 +101,7 @@ OSF/1.2 core files. OSF5 uses different names for the register enum list, need to handle two cases. The actual values are the same. */ - static int core_reg_mapping[NUM_REGS] = + static int core_reg_mapping[ALPHA_NUM_REGS] = { #ifdef NCF_REGS #define EFL NCF_REGS @@ -127,7 +127,7 @@ EF_PC, -1 #endif }; - static char zerobuf[MAX_REGISTER_RAW_SIZE] = + static char zerobuf[ALPHA_MAX_REGISTER_RAW_SIZE] = {0}; for (regno = 0; regno < NUM_REGS; regno++) @@ -222,7 +222,7 @@ { register int regi; register long *regp = ALPHA_REGSET_BASE (gregsetp); - static char zerobuf[MAX_REGISTER_RAW_SIZE] = + static char zerobuf[ALPHA_MAX_REGISTER_RAW_SIZE] = {0}; for (regi = 0; regi < 31; regi++) --4SFOXa2GPu3tIq4H--