|
From: Leung Ngai-H. Z. <leu...@co...> - 2006-03-03 05:33:49
|
Hi,
I instrumented each basic block such that I call this function whenever I
encounter a load instruction:
static VG_REGPARM(1) void trace_load(Addr addr)
{
VG_(printf)("r %p %d\n", addr, VG_(seginfo_sect_kind)(addr));
}
It gives me the output I want, mostly. I can't understand though why I
get output like the following:
r 0x45BE31 1
r 0x45F248 0
r 0x8048114 1
If my understanding is correct, 1 means it's the text region. 0 should
mean that it's either the stack or the heap. The first instruction looks
like the text region, the second looks like the heap, but the third one
doesn't at all look like the text region though it's labelled as such.
Any idea what happened?
Zac
|