|
From: Christoph N. <nie...@hl...> - 2012-10-05 07:35:07
|
Hello, I am wondering if there is any example or manual/documentation which shows how to decode a program on the instruction level with valgrind. The VEX header files are somehow confusing me. Thanks a lot. Best regards Christoph Niethammer |
|
From: Florian K. <br...@ac...> - 2012-10-07 21:39:26
|
On 10/05/2012 03:18 AM, Christoph Niethammer wrote: > Hello, > > I am wondering if there is any example or manual/documentation which shows how > to decode a program on the instruction level with valgrind. The VEX header > files are somehow confusing me. > No, there are no docs for what you seek. Take a look at the 1st attachment of this bug: https://bugs.kde.org/show_bug.cgi?id=272405 That is a standalone program that reads insns from a file and pipes them through VEX. It does all the setup and initialisation work that VEX needs. The catch is that it is somewhat old and may no longer compile. But it should not be too difficult to update it. The overall flow in VEX hasn't changed since. You need to link against e.g VEX/libvex-amd64-linux.a (depending on the platform you're on). Florian |