I have an old 32 bit x86 program, written mostly in assembly, that I'd like
to get working natively in an x86-64 bit environment. I can't run 32 bit
programs in this environment at all.
I've made enough changes to the assembly source to get it to build in 64
bit mode (i.e. worked around instructions that aren't available in x86-64),
but there's still a ton of 32 bit addressing and other issues to fix.
I thought valgrind could help me, but aside from a couple of errors that
I've fixed memcheck doesn't notice much wrong and the program dies. I can
understand why, since technically I suppose there's nothing wrong with 32
bit addresses in a 64 bit environment so I thought I could make a tool to
catch such issues.
For starters, I want to track the upper 32 bits of every register. If an
instruction writes to the lower 32 only, and later that register is used in
a memory reference, I want to know about it. Is there a way to do that? It
seems like I would have to be able to store and retrieve additional info in
the guest state about whether or not the upper 32 bits are defined, but I
didn't see any method for doing that. Is it possible? Can anyone offer up
any pointers for doing so or an alternative?
Thanks.
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users