[llvm-dev] Debuginfo for alias variable /func is not emited.

Umesh Kalappa via llvm-dev
Tue, 20 Apr 2021 13:48:40 -0000

Hi All ,

We have a stitution with clang ,where the debuginfo for alias variable
/func is not emitted i.e

$cat test.c
int oldname = 1;
extern int newname __attribute__((alias("oldname")));
$clang -g -O0 test.c
$gdb a.out
(gdb) pt oldname
type = int
(gdb) pt newname
type =

and we can fix the same ,by adding the DIGlobalVariable for alias too .

Before we go-ahead and make the changes ,we would like experts to
confirm these gaps and their comments on the same .

Thank you
~Umesh