-
Notifications
You must be signed in to change notification settings - Fork 10.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DW_AT_NAME is incorrect for Fortran functions compiled by flang #92391
Comments
lldb has zero support for fortran beyond knowing what the DWARF language tag is, but this doesn't seem to be a fortran quirk as it confuses gdb as well:
|
By the time we get to llvm IR, the names have already been set. In hlfir I do see the original name:
|
Perhaps @abidh is already aware of this? |
The |
@llvm/issue-subscribers-flang-ir Author: David Spickett (DavidSpickett)
I compiled this example:
```
integer function my_square(x)
implicit none
integer, intent(in) :: x
end function my_square program hello
0x000000bc: DW_TAG_subprogram
0x0000002a: DW_TAG_subprogram
|
@llvm/issue-subscribers-debuginfo Author: David Spickett (DavidSpickett)
I compiled this example:
```
integer function my_square(x)
implicit none
integer, intent(in) :: x
end function my_square program hello
0x000000bc: DW_TAG_subprogram
0x0000002a: DW_TAG_subprogram
|
I compiled this example:
Because I wanted to see what lldb would think of it, but it couldn't break on
my_square
when I compiled it with flang, but it could when I used gfortran.Looking at the DWARF, the DW_AT_NAME for flang includes an
_
on the end.Gfortran 9.4.0:
Flang (built from 7d81062):
I think flang is mistakenly using the DW_AT_linkage_name for DW_AT_name.
The workaround is to break on
my_square_
.The text was updated successfully, but these errors were encountered: