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

Rotem, Nadav nadav.rotem at intel.com
Sat Jun 25 12:37:09 PDT 2011


Ankit,

>From within GDB you can run the following command:
"call m->dump()"
This will print the module in the bitcode in a textual format.



From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Ankit Sethia
Sent: Saturday, June 25, 2011 20:56
To: llvmdev at cs.uiuc.edu
Subject: [LLVMdev] dump a module from inside GDB to a file

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.

--
Ankit
---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110625/9adec47f/attachment.html>


More information about the llvm-dev mailing list