|
From: Craig C. <cc...@us...> - 2005-05-06 18:35:26
|
Hi, This patch applies to Paul Mackerras' latest Valgrind PPC port (http://valgrind.org/downloads/pmk/valgrind-2.4.0-ppc.tar.bz2). Sometimes, the line numbers in the second frame from the valgrind-generated stack dumps are slightly incorrect. This happens when valgrind takes the stack snapshot from a function that does not branch to any other function. In these kinds of functions, the function prelude does not copy the return address into the stack register save area. In this patch, I take the top frame's return address from the value in the lr register instead. Thanks, Craig -- Craig Chaney cc...@us... |