Hi All,
I have been trying to use libunwind to get a backtrace, along with
parameters to the routines, on x86_64. I call unw_get_reg() to get the
values of the registers RDI, RSI, RDX, RCX and R8 for each frame since
these are the registers that are used to pass the parameters to the
called routine. Since these registers values are not saved across
calls, there is no gaurantee that they will contain the correct values
when I call unw_get_reg(). Is there some other place to look for the
parameters?

I am not able to get the parameters even when I compile with '-g'.
Since gdb is able to do it correctly, I would assume we can do it as
well with libunwind. Can you tell me how this can be done?

Thanks!
 Compose Email:
[email protected]

Add to Contacts


      
____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ


_______________________________________________
Libunwind-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/libunwind-devel

Reply via email to