|
From: Nicholas N. <nj...@cs...> - 2006-08-11 00:13:32
|
On Thu, 10 Aug 2006, Bart Van Assche wrote: > Regarding the drd (data-race detection) tool I'm working on: I > have a question about how to obtain the name of a stack variable, > given its address. Jeremy wrote a whole lot of complex code for reading debug info to get this kind of info and more. It's certainly in Valgrind 2.2.0, it seems to have been stripped out of 3.2.0, possibly because Helgrind has been broken for so long. There was a function called VG_(describe_addr) in the file vg_symtypes.c in 2.2.0. You might like to look at that, but it's pretty hairy. It also only worked for stabs debug format, not DWARF. Nick |