You might want to take a look at the conversation from September 2, 2008 that Brad Beveridge (Do not Evil Things with Common Lisp) works with the file system driver from SBCL.
Description and discussion files
In it he mentions:
"C / C ++ debugger written in CL?
Currently completely sticking out in the sky
But how great would that be?
Not much, just need to be able to write to the memory where the library is located to insert breakpoints, and then capture signals on the Lisp side
You can use dirty tricks to replace C functions with Lisp function calls
Apart from some details, it may not be that difficult - of course, nothing βnewβ
The dirty trick involves rewriting C code with another leap (a branch without a link) into a Lisp callback. When the Lisp code returns, it can go directly to the original call function through the link registry.
In addition, I completely ignore the real difficulty of writing a debugger - it will take a lot of time. "
Roman
source share