From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3033 invoked by alias); 3 May 2004 22:15: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 3024 invoked from network); 3 May 2004 22:15:51 -0000 Received: from unknown (HELO smtp2.fuse.net) (216.68.8.172) by sources.redhat.com with SMTP; 3 May 2004 22:15:51 -0000 Received: from dellpi.pinski.fam ([66.42.245.227]) by smtp2.fuse.net (InterMail vM.6.00.05.02 201-2115-109-103-20031105) with ESMTP id <20040503221549.HQDP9000.smtp2.fuse.net@dellpi.pinski.fam>; Mon, 3 May 2004 18:15:49 -0400 Received: from [10.0.0.80] (zhivago.i.pinski.fam [10.0.0.80]) by dellpi.pinski.fam (8.12.2/8.12.1) with ESMTP id i43MFnxj010556; Mon, 3 May 2004 18:15:49 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <6D50AA83-9D4F-11D8-9EB6-000393A6D2F2@physics.uc.edu> Content-Transfer-Encoding: 7bit Cc: Andrew Pinski From: Andrew Pinski Subject: Re: [RFC/dwarf-2] Add support for included files Date: Mon, 03 May 2004 22:15:00 -0000 To: gdb-patches@sources.redhat.com, "J. Brobecker" X-SW-Source: 2004-05/txt/msg00072.txt.bz2 I try to test building gdb with the mainline of gcc and it fails to compile with the following error: /home/gates/pinskia/src/gnu/combinesources/src/gdb/dwarf2read.c: In function `dwarf2_create_include_psymtab': /home/gates/pinskia/src/gnu/combinesources/src/gdb/dwarf2read.c:1244: error: invalid lvalue in assignment Could you fix the problem, please? Thanks, Andrew Pinski 2004-04-30 J. Brobecker * dwarf2read.c (line_header): Add new included_p field in field file_names. (partial_die_info): New field has_stmt_list. New field line_offset. (dwarf2_create_include_psymtab): New function. (dwarf2_build_include_psymtabs): New function. (add_file_name): Add forward declaration. Initialize new field. (dwarf_decode_lines): Add new parameter. Enhance this procedure to be able to determine the list of files included by the given unit, and build their associated psymtabs. (dwarf2_build_psymtabs_hard): Build the psymtabs for the included files as well. (psymtab_to_symtab_1): Build the symtabs of all dependencies as well. (read_file_scope): Update call to dwarf_decode_lines. (read_partial_die): Handle DW_AT_stmt_list attributes.