From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9174 invoked by alias); 1 Jul 2003 00:40:40 -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 9155 invoked from network); 1 Jul 2003 00:40:39 -0000 Received: from unknown (HELO takamaka.act-europe.fr) (142.179.108.108) by sources.redhat.com with SMTP; 1 Jul 2003 00:40:39 -0000 Received: by takamaka.act-europe.fr (Postfix, from userid 507) id 978B2D2DAF; Mon, 30 Jun 2003 17:40:39 -0700 (PDT) Date: Tue, 01 Jul 2003 00:40:00 -0000 From: Joel Brobecker To: gdb-patches@sources.redhat.com Subject: Re: [RFA] Fix a compilation failure in rs6000-nat.c Message-ID: <20030701004039.GT26149@gnat.com> References: <20030701003728.GR26149@gnat.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Bu8it7iiRSEf40bY" Content-Disposition: inline In-Reply-To: <20030701003728.GR26149@gnat.com> User-Agent: Mutt/1.4i X-SW-Source: 2003-07/txt/msg00004.txt.bz2 --Bu8it7iiRSEf40bY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 568 [sigh, resending with the patch this time...] A leftover of the SIZEOF_SECTION_OFFSETS removal saga... Not sure how I missed it the last time I tryed building GDB on AiX, but I lack the time to investigate further... 2003-06-30 Joel Brobecker * rs6000-nat.c (vmap_symtab): Fix compilation error. tested on ppc-aix 4.3.2.0. Ok to apply? I think the gdb6 branch has the same problem :-(. I will double-check. If I get the approval for this patch, and it turns out that we need it on gdb6, can I apply it there too? Thanks, -- Joel --Bu8it7iiRSEf40bY Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="rs6000-nat.c.diff" Content-length: 764 Index: rs6000-nat.c =================================================================== RCS file: /cvs/src/src/gdb/rs6000-nat.c,v retrieving revision 1.31 diff -u -p -r1.31 rs6000-nat.c --- rs6000-nat.c 10 Jun 2003 20:34:09 -0000 1.31 +++ rs6000-nat.c 1 Jul 2003 00:31:09 -0000 @@ -664,7 +664,9 @@ vmap_symtab (struct vmap *vp) /* If symbols are not yet loaded, offsets are not yet valid. */ return; - new_offsets = (struct section_offsets *) alloca (SIZEOF_SECTION_OFFSETS); + new_offsets = + (struct section_offsets *) alloca (objfile->num_sections * + sizeof (struct section_offsets)); for (i = 0; i < objfile->num_sections; ++i) new_offsets->offsets[i] = ANOFFSET (objfile->section_offsets, i); --Bu8it7iiRSEf40bY--