Displaying 2 results from an estimated 2 matches for "testext".
Did you mean:
testet
2019 May 17
2
Debug Info is not generated for extern variables .
I think emitting "testExt" as an external declaration (what gcc does) doesn't do much for the debugger; being a declaration, it has no location, and so you can't do things like examine its value, unless you find the symbol in the defining CU first.
I don't see a real "compatibility with gcc" argu...
2019 May 17
2
Debug Info is not generated for extern variables .
Hi All,
for the below case :
$cat test.c
extern void sharedLibTestLibRtn (int arg);
extern int testExt;
int main (void)
{
testExt++;
sharedLibTestLibRtn (5);
return 0;
}
we don't see the debug-info for "testExt" i.e no DW_AT_type entry for
extern symbol ,where gcc has the same .
we are fixing the same in clang as compatibility with gcc .
before we start our an...