[LLVMdev] dump a module from inside GDB to a file

Devang Patel dpatel at apple.com
Mon Jun 27 10:11:18 PDT 2011


On Jun 25, 2011, at 9:34 AM, Ankit Sethia wrote:

> Hi All,
> 
> I changed the CFG of a big function using a pass that runs on a function, I am having trouble debugging it. Is there someway to dump a module to a file from inside gdb? I have access to the Module pointer. Let me know if anything else is needed.

(gdb) module->dump()

-
Devang

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110627/980df78b/attachment.html>


More information about the llvm-dev mailing list