I'm looking to create a self-contained function or macro that will allow me to read the values of some or all of valgrind's simulated registers at any point during the program's execution. It doesn't really matter how- putting them in a data structure, just dumping them haphazardly onto the stack, or even outputting them to stdout or the log file are all acceptable to varying degrees. It's clear that (assuming it's even possible), I need to use libvex to accomplish this, but even after spending some time reading the libvex source I'm still pretty fuzzy about it all; the source is fine for details but I'm a little lost w/o the "big picture", I'm still not totally clear what libvex even is and what it's for. Would someone mind helping out a newb with a few questions? Namely,
- Does "big picture" documentation for libvex even exist, or is the source about all I'm going to get? - Is what I'm thinking about even possible, or is libvex only allowed when developing valgrind tools? - Can I just call LibVEX_GuestAMD64_initialize() at any point during execution (the platform is always amd64-linux), then get the register values from the now-initialized VexGuestAMD64State object, or do I need to run some IR code? - If I do need IR code, how does that work? I appreciate it. Alex ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Valgrind-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/valgrind-users
