From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7877 invoked by alias); 9 Sep 2003 03:30: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 7870 invoked from network); 9 Sep 2003 03:30:43 -0000 Received: from unknown (HELO localhost.redhat.com) (65.49.0.121) by sources.redhat.com with SMTP; 9 Sep 2003 03:30:43 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 9C1E62B7F; Mon, 8 Sep 2003 23:30:41 -0400 (EDT) Message-ID: <3F5D4961.4010407@redhat.com> Date: Tue, 09 Sep 2003 03:30:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jim Blandy Cc: gdb-patches@sources.redhat.com Subject: Re: PATCH: read stabs from files with no .data section References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-09/txt/msg00146.txt.bz2 > + /* If the objfile has no .data section, try using the .bss section. */ > + data_sect_index = objfile->sect_index_data; > + if (data_sect_index == -1) > + data_sect_index = SECT_OFF_BSS (objfile); > + gdb_assert (data_sect_index != -1); > + So what happens if there is no .data and no .bss? Andrew