|
From: Yao Qi <qiy...@cn...> - 2005-11-22 10:43:32
|
I get valgrind-DULLARD.tar.bz2 from, http://www.cs.utexas.edu/~njn/software.html It is a tool based on valgrind-2.1.2, and I want to rewrite it on valgrind(svn). Now, I could pick up all the "STORE"/"LOAD" operations by st->tag == Ist_Store and st->Ist.Tmp.data->tag == Iex_Load. I do not know how to get the address and data for "LOAD"/"STORE" operations in Valgrind. In valgrind-2.1.2, UInstr record a lot of information to get address and data, but I could not find its counterpart in valgrind 3.0.1 or later. When I print all IRs by ppIRStmt, and I could only get part of information I needed. For example on PowerPC, stwu r1,-32(r1) could be translate to, ------ IMark(0x10000440, 4) ------ t1 = GET:I32(124) t2 = GET:I32(4) t3 = Add32(t2,0xFFFFFFE0:I32) PUT(4) = t3 STbe(t3) = t2 "offset" in "GET" confused me very much, and could I calculate data and address by these IRs? I am not sure, so maybe someone of you could clarify it for me. Thanks in advance! -- Regards, Yao ------------ Yao Qi |