Hi Nadev,
The module is really big and i would like the dump to happen in a file
instead of stdout. Is that possible?
On Sat, Jun 25, 2011 at 3:37 PM, Rotem, Nadav <nadav.rotem at intel.com>
wrote:
> 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.
>
--
Ankit
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20110625/cf25de03/attachment.html>