From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11937 invoked by alias); 23 Mar 2009 18:26:15 -0000 Received: (qmail 11927 invoked by uid 22791); 23 Mar 2009 18:26:12 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from qw-out-1920.google.com (HELO qw-out-1920.google.com) (74.125.92.149) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 23 Mar 2009 18:26:03 +0000 Received: by qw-out-1920.google.com with SMTP id 5so1105548qwf.24 for ; Mon, 23 Mar 2009 11:25:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.230.9 with SMTP id c9mr2965699wfh.254.1237832759240; Mon, 23 Mar 2009 11:25:59 -0700 (PDT) In-Reply-To: References: <20090320220041.GA26894@lucon.org> <6dc9ffc80903210924i10a807f6n320d93ca23e07fef@mail.gmail.com> Date: Mon, 23 Mar 2009 19:09:00 -0000 Message-ID: <6dc9ffc80903231125y5012f098ra2720ca3d4fbd152@mail.gmail.com> Subject: Re: RFC: Support DW_TAG_entry_point From: "H.J. Lu" To: tromey@redhat.com Cc: GDB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-03/txt/msg00505.txt.bz2 On Mon, Mar 23, 2009 at 11:14 AM, Tom Tromey wrote: >>>>>> "H.J." =3D=3D H J Lu writes: > > Tom> Yes. =A0A rationale for the patch would also be helpful, at least to= me. > > H.J.> DW_TAG_entry_point may be used by Fortran compiler. But gcc > H.J.> doesn't use it. =A0I guess one reason is gdb doesn't support it. Is > H.J.> this good enough? > > Yeah. =A0You also need that ChangeLog entry though... Here is ChangeLog entry. OK to install? Thanks. H.J. --- 2009-03-23 H.J. Lu * dwarf2read.c (scan_partial_symbols): Make a recursive call if a DIE has children. Handle DW_TAG_entry_point. (load_partial_dies): Don't skip DW_TAG_entry_point. Follow children of DW_TAG_subprogram if not C. (add_partial_symbol): Handle DW_TAG_entry_point. (process_die): Likewise. (dwarf2_get_pc_bounds): Likewise. (get_scope_pc_bounds): Likewise. (fixup_partial_die): Likewise. (new_symbol): Likewise. (read_type_die): Likewise.