|
From: Nicholas N. <nj...@ca...> - 2004-02-19 13:39:42
|
On Thu, 19 Feb 2004, Chris January wrote: > --gdb-attach doesn't allow you to control execution from within the debugger > though does it? Correct. This sounds quite cool; I attempted something similar entirely within Valgrind, by implementing a command-line from which you could set breakpoints, run, etc (see www.cl.cam.ac.uk/~njn25/software.html under "Interactive Mode"). Problem was that it didn't have all the built-in infrastructure that gdb provides, particularly converting arbitrary expressions (eg. foo->bar[5].baz) to addresses. One feature I've wanted for a while is a way to call tool-specified functions from GDB, eg. with Memcheck call a function that tells you whether a particular address is addressable, or if its value is defined. I tried this with GDB a long time ago, just using the 'call' command, but had problems with seg faults. Would this be possible with your patch? N |