bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gprofng/30897] Support source view for "referenced" source (e.g. bi


From: bugmenot at mailinator dot com
Subject: [Bug gprofng/30897] Support source view for "referenced" source (e.g. bison)
Date: Tue, 26 Sep 2023 07:13:32 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=30897

--- Comment #2 from John Doe <bugmenot at mailinator dot com> ---
Please also consider that (depending on the generator) some functions don't
"start" in their "real sources". Actually this is also the case for
QLParser.yy, where yylex is declared at line 42 but actually defined in the
generated C source.
This is also similar for other generators which may translate


orig.def
~~~
MACRO1(a(4),b)
MACRO2(c,d(3))
~~~

to

program.c
~~~
MACRO1_
{
 int a;
 int b;
#line orig.def 1
 a = 4; b = (somefunc(a);
#line program.c 8
 assert (a == b);
}

MACRO02_
{
 int c;
 int d = 3:
#line orig.def 2
 c = otherfunc(d);
#line program.c 18
 assert (d == -c);
}
~~~

As the program.c file is generated its profiling is only minor interesting, but
it will be very good to have orig.def in the profiler (it is visible in GDB and
coredumps, too).

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]