Skip to content

Commit

Permalink
doc: add jl_uncompress_ast to debugging tips
Browse files Browse the repository at this point in the history
  • Loading branch information
ihnorton authored and kshyatt committed Jan 2, 2015
1 parent dee96e6 commit a563c47
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/devdocs/debuggingtips.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ It's particularly helpful to back up to the ``jl_apply`` frame, from which you c

(gdb) call jl_(args[0])

Another useful frame is ``to_function(jl_lambda_info_t *li, bool cstyle)``. The ``jl_lambda_info_t*`` argument is a struct with a reference to the final AST sent into the compiler. However, the AST at this point will usually be compressed; to view the AST, call ``jl_uncompress_ast`` and then pass the result to ``jl_``::

#2 0x00007ffff7928bf7 in to_function (li=0x2812060, cstyle=false) at codegen.cpp:584
584 abort();
(gdb) p jl_(jl_uncompress_ast(li,li.ast))
Inserting breakpoints upon certain conditions
---------------------------------------------

Expand Down

0 comments on commit a563c47

Please sign in to comment.