[PATCH v5 3/3] dwarf, fortran: add support for DW_TAG_entry_point

Tom Tromey tom@tromey.com
Mon Jan 9 20:26:20 GMT 2023


>>>>> Nils-Christian Kempke via Gdb-patches <gdb-patches@sourceware.org> writes:

>        const cooked_index_entry *this_parent_entry = parent_entry;
> +
> +      /* The scope of a DW_TAG_entry_point cooked_index_entry is the one of
> +	 its surrounding subroutine.  */
> +      if (abbrev->tag == DW_TAG_entry_point)
> +	this_parent_entry = parent_entry->parent_entry;
>        info_ptr = scan_attributes (reader->cu->per_cu, reader, info_ptr,
>  				  info_ptr, abbrev, &name, &linkage_name,
>  				  &flags, &sibling, &this_parent_entry,

This seems slightly suspect to me but I'm not really sure there's a
better way to approach it.

Tom


More information about the Gdb-patches mailing list