[PATCH 4/6] Dwarf: Fortran, support DW_TAG_entry_point.

Wiederhake, Tim tim.wiederhake@intel.com
Tue Aug 1 12:49:00 GMT 2017


Hi Yao,

Thank you for your response.

I'm using the Intel? Fortran Compiler:

$ ifort --version
ifort (IFORT) 15.0.0 20140716
Copyright (C) 1985-2014 Intel Corporation.  All rights reserved.

$ ifort -g -o entry_point testsuite/gdb.fortran/entry_point.f90
$ readelf -w entry_point | grep -i DW_TAG_entry_point
 <2><98>: Abbrev Number: 5 (DW_TAG_entry_point)
 <2><e1>: Abbrev Number: 5 (DW_TAG_entry_point)
   5      DW_TAG_entry_point    [has children]

Regards,
Tim


> -----Original Message-----
> From: Yao Qi [mailto:qiyaoltc@gmail.com]
> Sent: Tuesday, August 1, 2017 12:21 AM
> To: Wiederhake, Tim <tim.wiederhake@intel.com>
> Cc: gdb-patches@sourceware.org; Bernhard Heckel
> <bernhard.heckel@intel.com>
> Subject: Re: [PATCH 4/6] Dwarf: Fortran, support DW_TAG_entry_point.
> 
> On 17-07-21 11:23:58, Tim Wiederhake wrote:
> > From: Bernhard Heckel <bernhard.heckel@intel.com>
> >
> > Fortran provides additional entry-points to an subprogram.  Those entry-
> points
> > may have only a subset of parameters of the original subprogram as well.
> >
> > Add support for parsing DW_TAG_entry_point's for Fortran.
> 
> Again, what is the fortran compiler?  I use gfortran, which doesn't
> generate DW_TAG_sub_program in debug information.
> 
> >
> > xxxx-yy-zz  Bernhard Heckel  <bernhard.heckel@intel.com>
> >             Tim Wiederhake  <tim.wiederhake@intel.com>
> >
> > gdb/ChangeLog:
> > 	* gdb/dwarf2read.c (add_partial_symbol): Handle DW_TAG_entry_point.
> > 	(add_partial_entry_point): New function.
> > 	(add_partial_subprogram): Search for entry_points.
> > 	(process_die): Handle DW_TAG_entry_point.
> > 	(dwarf2_get_pc_bounds): Update low pc from DWARF.
> > 	(load_partial_dies): Save DW_TAG_entry_point's.
> > 	(load_partial_dies): Save DW_TAG_entry_point to hash table.
> > 	(load_partial_dies): Look into child's of DW_TAG_sub_program
> > 	for fortran.
> > 	(new_symbol_full): Process DW_TAG_entry_point.
> > 	(read_type_die_1): Handle DW_TAG_entry_point.
> >
> > gdb/testsuite/ChangeLog:
> > 	* gdb.fortran/entry_point.f90: New file.
> > 	* gdb.fortran/entry_point.exp: New file.
> 
> --
> Yao (齐尧)
Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Christian Lamprechter
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928


More information about the Gdb-patches mailing list