From: Jesse M D. <jd...@su...> - 2011-02-15 22:22:09
|
I have a small patch to bin/cilly that helps me when I'm debugging Cil code in emacs with ocamldebug. I am usually invoking my-camldebug from a directory where my source C files are. I can easily set breakpoints in my own Cil code, but moving up the call chain is thwarted by the debugger's inability to find Cil sources. This patch fixes that for me and may be useful to others. Index: cilly =================================================================== --- cilly (revision 12136) +++ cilly (working copy) @@ -120,7 +120,7 @@ if(defined $ENV{OCAMLDEBUG} || $self->{OCAMLDEBUG}) { print "OCAMLDEBUG is on\n"; - my @idirs = ("src", "src/frontc", "src/ccured", "src/ext", + my @idirs = (".", "src", "src/frontc", "src/ccured", "src/ext", "ocamlutil", "obj/$::archos"); my @iflags = map { ('-I', "$::cilhome/$_") } @idirs; |