<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/98883>98883</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [flang][debuginfo] Module variable needs to be qualified with module name.
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            flang
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
            abidh
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          abidh
      </td>
    </tr>
</table>

<pre>
    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
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUU81u2zwQfBrqsoghUZYsHXRwPsMfckhbBAV6Js2VxJYiVf44zdsXpGTHaXJoAYOWBjuz3Bktc04OGrEj1T2hlHEpRkIpqQ4ZC340tktQxo146b4awDNTLHgEPyKcmZWMKwSpgcFkRFBI6H_wjKARBXgDPwNTsn8B6eFZ-jHRlkLQbMINyQ8k369nna-_9LqWjahmtAsEILXHAW1sXSwYanFpfaP15enz_0_7R5iklhNTF3pwfwpGISDlAegFma3UHgjdx1He9Pnwmsv5oNNojJszwmzNYNmUrBhRg_NmnlEA86CkRiB1_lGbOo-PsoeHq30D-tVpFRBMH6k3tQ9_7TN8u6BWDqMHgTwMIHVvUk8PbjRBCXg29kdSMMG_E4_0qPbPURLaDIIT2sJ84-gnA-5l4kYBoTTBlMZP6RSsRe3hZLTHX37zXmONsNyTcv-qR-j2TZTXS2SiK0VbtizDrtjRIi_btmmysRM7yrEoeFmKU11wgXWLzbbnouE9clZnsqM53ea7ooqkbbPJKWvL3a4UNcPiVOVkm-PEpNoodZ42xg6ZdC5g1zZNU2aKcVRu3a1eMT2su2W7WH_Hw-DINlfSefeq4KVXaSEXRnUg1X3KK8VVHeBxcf26fjEnF4PiuGYlUSwh3QaUBau60fvZRefokdDjIP0Y-OZkJkKP8QLr391szXc8eUKPaR5H6HEZ6dzR3wEAAP__PG5Mgw">