From: Peter K. <ps...@cs...> - 2012-04-09 23:41:10
|
Hello, I'm working on some code which goes between a few different runtimes of various languages, C, C++, Lisp, C#, etc. What are some tricks I can do to get gdb and SBCL to play together nicely? I often get the "continuing with fingers crossed" and whatnot even before I get up to a prompt in SBCL. What signals should I ignore, is there a nice way to get a backtrace through the lisp function calls as I unwind through them when starting from a C stack frame, etc, etc, etc. An example of something like this when debugging with C#'s runtime and gdb is (in .gdbinit): ######################################## handle SIGXCPU SIG33 SIG35 SIGPWR nostop noprint define mono_bt select-frame 0 set $i = 0 while ($i < $arg0) set $foo = (char*) mono_pmip ($pc) if ($foo) printf "#%d %p in %s\n", $i, $pc, $foo else frame end up-silently set $i = $i + 1 end end ######################################## Is there a similar thing for sbcl to poke around a map of text segment addresses to internal SBCL calls? Thank you. -pete |