From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26628 invoked by alias); 9 Jul 2003 17:56:10 -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 26617 invoked from network); 9 Jul 2003 17:56:10 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 9 Jul 2003 17:56:10 -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 h69HuAH15084 for ; Wed, 9 Jul 2003 13:56:10 -0400 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 h69Hu5I05196 for ; Wed, 9 Jul 2003 13:56:05 -0400 Received: from localhost.redhat.com (romulus-int.sfbay.redhat.com [172.16.27.46]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h69Hu4g18809 for ; Wed, 9 Jul 2003 13:56:04 -0400 Received: by localhost.redhat.com (Postfix, from userid 469) id 2EE912CA3A; Wed, 9 Jul 2003 14:03:06 -0400 (EDT) From: Elena Zannoni MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16140.22745.807273.756977@localhost.redhat.com> Date: Wed, 09 Jul 2003 17:56:00 -0000 To: Joel Brobecker Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA] Kill last SECT_OFF_MAX (somread.c) In-Reply-To: <20030709172458.GC985@gnat.com> References: <20030709172458.GC985@gnat.com> X-SW-Source: 2003-07/txt/msg00184.txt.bz2 Joel Brobecker writes: > 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? > yes, thanks elena > Thanks, > -- > Joel > 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;