Ability to load core dumps through python interface on maci64

Hello,

I am trying to automate collection of derived information (call stacks, global variables etc.) from core files via python interface on maci64.

I am using LLDB-167.4 and my test application is compiled using clang.

Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.2
Thread model: posix

Let’s say the sample program used to generate the core is:

void bar(){

int *p = NULL;

*p = 5;

(void) p;

}

int main(int,char**){

bar();

}

So far, I have not found any examples or documentation. The closest I have gotten is this script posted by Samuel:

http://article.gmane.org/gmane.comp.debugging.lldb.devel/1402/match=core+python

However, SBTarget does not seem to have LoadCore method (maybe it did in the past?). Could anyone point me in the right direction?

Any documentation/example would be extremely helpful.

Thanks and Regards,

Prabhat