Hi, I've got the cfe debug info to the point where it outputs correct
function info, stoppoints for statements (but not for declarations
anymore) and region ends at the beginning of the return block. So this
is about as far as I wanted to go with it.
However, there's one last big problem that I need some advice on. Running :
gcc -g -S -o foo.ll
llvmas foo.ll
produces bytecode that works under lli -force-interpreter on OS X (JIT
not working on my system)
and llvm-db can list sources and functions.
*but*
gcc -g -o foo
llvm-db foo.bc
doesn't see any debug info.
Worse, it doesn't work:
that's a JIT error, OK, so:
% lli -force-interpreter loops.bc
Tried to execute an unknown external function: __main
Loops begin:
/Users/mike/Documents/hpcl/LLVM/llvm/include/llvm/Support/Casting.h:197:
failed assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible
type!"'
Abort
That's not good.
Any advice on debugging this?
Thanks,
-mike