Roland Thanks a lot for responding to the query, excuse me for the late response. loc2c-test.c succeeds ,on the same machine, and I am able to see the expected out put, but the sample test code I am using still fails. Excuse me to ask you to look into my code but I am still not convinced that library is not to blame.
This is the system information OS: Red Hat Enterprise Linux Server release 5.2 (Tikanga) Kernel: 2.6.18-92.el5 elfutils: elfutils-0.139 arch: x86_64
I am attaching the sample code that I am using for testing. This is what I get while testing: ----------------------------------------------- ./read_cu -e ../vmlinux 0xffffffff800aa956
nscopes: -1 dwarf_getscopes error:no error nscopes: 0 dwarf_getscopes error:no error -----------------------------------------------
This is the system detail on which I tested Roland McGrath wrote:
Please point us to an exact kernel binary (e.g. precise Fedora rpm version) and PC to try in it. Note that a handy test program for this is built in systemtap, called "loc2c-test". (That's what I'll likely use to debug the case myself.)
Thanks, Roland