From: Robert W. <rj...@du...> - 2003-04-15 20:51:03
|
> Would a client request be a good compromise? Eg. insert > VALGRIND_STACK_SWITCH just before the stack switch? It's more intrusive > than a command line option, but it's more precise. Similar to the client > request for handling self-modifying code. > > [I haven't thought through how the request would actually be implemented, > but it shouldn't be too hard, I think...] JeremyF and I had a chat about this over lunch a few weeks ago. One idea floated was to check what the instruction that was ultimately responsible for the stack switch was. If it was a move to sp type instruction, it's probably a stack switch. Otherwise it's probably a push or a pop. JeremyF did mention a few days ago that he was trying something new but was running into problems - maybe this was what he was trying but it wasn't turning out to be that easy... :-) Regards, Robert. |