From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2875 invoked by alias); 9 Jul 2003 17:25:09 -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 2716 invoked from network); 9 Jul 2003 17:24:58 -0000 Received: from unknown (HELO takamaka.act-europe.fr) (209.53.17.87) by sources.redhat.com with SMTP; 9 Jul 2003 17:24:58 -0000 Received: by takamaka.act-europe.fr (Postfix, from userid 507) id 905BAD2DAF; Wed, 9 Jul 2003 10:24:58 -0700 (PDT) Date: Wed, 09 Jul 2003 17:25:00 -0000 From: Joel Brobecker To: gdb-patches@sources.redhat.com Subject: [RFA] Kill last SECT_OFF_MAX (somread.c) Message-ID: <20030709172458.GC985@gnat.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="2fHTh5uZTiUOsy+g" Content-Disposition: inline User-Agent: Mutt/1.4i X-SW-Source: 2003-07/txt/msg00183.txt.bz2 --2fHTh5uZTiUOsy+g Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 296 This is a patch I forgot to submit. It fixes a compilation error on HP/UX and finally kills the last instance of SECT_OFF_MAX. 2003-07-09 Joel Brobecker * somread.c (som_symfile_offsets): Fix compilation error. Ok to apply mainline and branch? Thanks, -- Joel --2fHTh5uZTiUOsy+g Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="somread.c.diff" Content-length: 1029 Index: somread.c =================================================================== RCS file: /cvs/src/src/gdb/somread.c,v retrieving revision 1.19 diff -c -3 -p -r1.19 somread.c *** somread.c 6 Jun 2003 23:32:59 -0000 1.19 --- somread.c 9 Jul 2003 17:17:44 -0000 *************** som_symfile_offsets (struct objfile *obj *** 453,459 **** /* Note: Here is OK to compare with ".text" because this is the name that gdb itself gives to that section, not the SOM name. */ ! for (i = 0; i < SECT_OFF_MAX && addrs->other[i].name; i++) if (strcmp (addrs->other[i].name, ".text") == 0) break; text_addr = addrs->other[i].addr; --- 453,459 ---- /* Note: Here is OK to compare with ".text" because this is the name that gdb itself gives to that section, not the SOM name. */ ! for (i = 0; i < objfile->num_sections && addrs->other[i].name; i++) if (strcmp (addrs->other[i].name, ".text") == 0) break; text_addr = addrs->other[i].addr; --2fHTh5uZTiUOsy+g--