public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/22424] gdb.lookup_type fails for Fortran
       [not found] <bug-22424-4717@http.sourceware.org/bugzilla/>
@ 2021-02-22 10:34 ` simon.brass at desy dot de
  0 siblings, 0 replies; only message in thread
From: simon.brass at desy dot de @ 2021-02-22 10:34 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=22424

--- Comment #3 from Simon Braß <simon.brass at desy dot de> ---
(In reply to Simon Braß from comment #2)
> Created attachment 12325 [details]
> Include Fortran veto on symbol_matches_domain
> 
> I've bumped into this problem today.
> 
> I tried looking up the solution from bug 21763:
> In symtab.c's symbol_matches_domain, it seems that symbol_domain and domain
> do not match (d'uh) for the derived type lookup.
> 
> I've then looked up the definition of my derived type in the dwarf output of
> gfortran, and found that the derived is tagged as DW_TAG_structure_type
> (would go into STRUCT_DOMAIN), not as DW_TAG_typedef (would go into
> VAR_DOMAIN), as one could maybe expect?
> 
> The information about the type should then be searched in STRUCT_DOMAIN and
> not in VAR_DOMAIN, or not?
> 
> Adding an exception for language_fortran in symtab.c's symbol_matches_domain
> seems to resolve the problem (however, I did not run the testsuite).

Is there any progress regarding this bug? E.g. general progress on the Fortran
support?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-22 10:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-22424-4717@http.sourceware.org/bugzilla/>
2021-02-22 10:34 ` [Bug fortran/22424] gdb.lookup_type fails for Fortran simon.brass at desy dot de

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).