Skip to content

[flang][debuginfo] Module variable needs to be qualified with module name. #98883

Closed
@abidh

Description

@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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions