From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26826 invoked by alias); 12 Sep 2003 22:51: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 26808 invoked from network); 12 Sep 2003 22:51:08 -0000 Received: from unknown (HELO zenia.home) (12.223.225.216) by sources.redhat.com with SMTP; 12 Sep 2003 22:51:08 -0000 Received: by zenia.home (Postfix, from userid 5433) id 37C4620758; Fri, 12 Sep 2003 17:49:11 -0500 (EST) To: gdb-patches@sources.redhat.com Subject: PATCH: N_DATA symbols are always in the .data section From: Jim Blandy Date: Fri, 12 Sep 2003 22:51:00 -0000 Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-09/txt/msg00278.txt.bz2 This reverts part of my last patch to dbxread.c. 2003-09-09 Jim Blandy * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT symbol types are, by definition, in the .data section, so it is correct to use SECT_OFF_DATA (objfile) here, not data_sect_index. If there is no .data section, there should be no N_DATA or N_DATA | N_EXT symbols. *** dbxread.c.~1.49.~ 2003-09-08 14:03:37.000000000 -0500 --- dbxread.c 2003-09-09 14:54:34.000000000 -0500 *************** *** 1409,1415 **** case N_DATA | N_EXT: case N_NBDATA | N_EXT: ! nlist.n_value += ANOFFSET (objfile->section_offsets, data_sect_index); goto record_it; case N_BSS: --- 1409,1415 ---- case N_DATA | N_EXT: case N_NBDATA | N_EXT: ! nlist.n_value += ANOFFSET (objfile->section_offsets, SECT_OFF_DATA (objfile)); goto record_it; case N_BSS: *************** *** 1476,1482 **** continue; case N_DATA: ! nlist.n_value += ANOFFSET (objfile->section_offsets, data_sect_index); goto record_it; case N_UNDF | N_EXT: --- 1476,1482 ---- continue; case N_DATA: ! nlist.n_value += ANOFFSET (objfile->section_offsets, SECT_OFF_DATA (objfile)); goto record_it; case N_UNDF | N_EXT: