From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10537 invoked by alias); 17 May 2002 13:14:52 -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 10477 invoked from network); 17 May 2002 13:14:46 -0000 Received: from unknown (HELO kerberos.suse.cz) (195.47.106.10) by sources.redhat.com with SMTP; 17 May 2002 13:14:46 -0000 Received: from chimera.suse.cz (chimera.suse.cz [10.20.0.2]) by kerberos.suse.cz (SuSE SMTP server) with ESMTP id 6EECF59D380; Fri, 17 May 2002 15:14:46 +0200 (CEST) Received: from suse.cz (naga.suse.cz [10.20.1.16]) by chimera.suse.cz (8.11.0/8.11.0/SuSE Linux 8.11.0-0.4) with ESMTP id g4HDEkT06158; Fri, 17 May 2002 15:14:46 +0200 X-Authentication-Warning: chimera.suse.cz: Host naga.suse.cz [10.20.1.16] claimed to be suse.cz Message-ID: <3CE50246.1050903@suse.cz> Date: Fri, 17 May 2002 06:14:00 -0000 From: Michal Ludvig Organization: SuSE CR User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc2) Gecko/20020510 X-Accept-Language: cs, cz, en MIME-Version: 1.0 To: Elena Zannoni Cc: GDB Patches Subject: [RFA] dwarf2cfi cleanup + new file Content-Type: multipart/mixed; boundary="------------020801040104040302070304" X-SW-Source: 2002-05/txt/msg00709.txt.bz2 This is a multi-part message in MIME format. --------------020801040104040302070304 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Content-length: 477 Hi, I have created new header file dwarf2read.h and put all extern declarations from dwarf2read.c there. This eliminates the need of having them in dwarf2cfi.c, so I deleted them from there as well. OK to commit? 2002-05-17 Michal Ludvig * dwarf2read.h: New file * dwarf2read.c: Included dwarf2read.h * dwarf2cfi.c: Ditto, removed extern declarations. Michal Ludvig -- * SuSE CR, s.r.o * mludvig@suse.cz * +420 2 9654 5373 * http://www.suse.cz --------------020801040104040302070304 Content-Type: text/plain; name="dwarf2read.h" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="dwarf2read.h" Content-length: 1364 /* Declarations of symbols exported from dwarf2read.c. Copyright 2001, 2002 Free Software Foundation, Inc. Contributed by Michal Ludvig, SuSE Labs. This file is part of GDB. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef DWARF2READ_H #define DWARF2READ_H #include "bfd.h" #include "objfiles.h" extern file_ptr dwarf_frame_offset; extern unsigned int dwarf_frame_size; extern file_ptr dwarf_eh_frame_offset; extern unsigned int dwarf_eh_frame_size; void dwarf2_build_psymtabs (struct objfile *objfile, int mainline); int dwarf2_has_info (bfd *abfd); char * dwarf2_read_section (struct objfile *objfile, file_ptr offset, unsigned int size); #endif /* DWARF2READ_H */ --------------020801040104040302070304 Content-Type: text/plain; name="dw2-clean.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline; filename="dw2-clean.diff" Content-length: 1976 Index: dwarf2read.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/src/src/gdb/dwarf2read.c,v retrieving revision 1.49 diff -c -3 -p -r1.49 dwarf2read.c *** dwarf2read.c 28 Feb 2002 11:21:16 -0000 1.49 --- dwarf2read.c 17 May 2002 13:09:18 -0000 *************** *** 37,42 **** --- 37,43 ---- #include "demangle.h" #include "expression.h" #include "filenames.h" /* for DOSish file names */ + #include "dwarf2read.h" =20=20 #include "language.h" #include "complaints.h" Index: dwarf2cfi.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/src/src/gdb/dwarf2cfi.c,v retrieving revision 1.1.2.2 diff -c -3 -p -r1.1.2.2 dwarf2cfi.c *** dwarf2cfi.c 14 May 2002 09:50:39 -0000 1.1.2.2 --- dwarf2cfi.c 17 May 2002 13:09:18 -0000 *************** *** 28,33 **** --- 28,34 ---- #include "elf/dwarf2.h" #include "inferior.h" #include "regcache.h" + #include "dwarf2read.h" #include "dwarf2cfi.h" =20=20 /* Common Information Entry - holds information that is shared among many *************** static struct fde_array fde_chunks; *** 184,199 **** /* Obstack for allocating temporary storage used during unwind operations= . */ static struct obstack unwind_tmp_obstack; =20=20 - extern file_ptr dwarf_frame_offset; - extern unsigned int dwarf_frame_size; - extern file_ptr dwarf_eh_frame_offset; - extern unsigned int dwarf_eh_frame_size; -=20 static char *dwarf_frame_buffer; - =0C -=20 - extern char *dwarf2_read_section (struct objfile *objfile, file_ptr offse= t, - unsigned int size); =20=20 static struct fde_unit *fde_unit_alloc (void); static struct cie_unit *cie_unit_alloc (void); --- 185,191 ---- --------------020801040104040302070304--