Peter Seibel peter@javamonkey.com writes:
Any
thoughts on why that would be a bad way to go?
I think it is important that the debugger pops up as quickly as possible. Finding the source location makes things a bit slower; but I don't know how much. For some backends we need to read the source file to determine source location. If things go badly, we'd have to parse 10 files before we can send the backtrace to Emacs.
Perhaps your command can send a message like "give me the source locations for frames 1 to 20". This way you avoid the delay for the initial backtrace and your command is still reasonably efficient.
Helmut.