Issue 98883
Summary [flang][debuginfo] Module variable needs to be qualified with module name.
Labels flang
Assignees abidh
Reporter abidh
    To evalaute the variable in a module, we need to qualify it with the module name.

```
module helper
  integer var1
end module

PROGRAM minimal
  use helper
  var1 = 2
  print *, var1
end
```

In the above program, when stopped at line `  print *, var1`, if I need to get the value of `var1`, I need to qualify it with the module name. With the right debug info, it should work without need to qualify the name with the module name.

```
(gdb) p var1
No symbol "var1" in current context.
(gdb) p helper::var1
$1 = 2
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to