> The last line is the problem, it shouldn't look like that.  I'm using the
> address 0 specially to refer to all the allocation functions.  Could
> VG_(get_StackTrace)() be returning 0 as an address at the bottom of the
> stack trace? 

Well, it's plausible.  The PowerPC ELF ABI specification says that
"The back chain word of the first stack frame contains a null pointer (0)."

So whether a zero back chain word can somehow give rise to a zero
return address, I dunno.  Maybe.  (abi_elf_ppc64_1.7.pdf page 29).
Presumably the ppc32 ELF ABI is similar, at least in this aspect.

> If so, I'll have to find a different way to encode the 
> allocation functions... maybe "(Addr)(-1L)".

Is it possible/easy to encode them some way that doesn't involve any
magic Addr values?

J

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Valgrind-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-developers

Reply via email to