[PATCH] D69783: Fixed the flag used to debug with gdb and lli using jit in docs.

Yu Jian via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 3 22:34:38 PST 2019


wyjw created this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
wyjw added a reviewer: lhames.
wyjw retitled this revision from "Fixed the flag used to debug with gdb and lli using jit." to "Fixed the flag used to debug with gdb and lli using jit in docs.".
wyjw edited the summary of this revision.
wyjw edited the summary of this revision.

In the "Debugging MCJIT-ed code" doc, -use-mcjit is described as the flag to be used. I think it should be -jit-kind=mcjit instead.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D69783

Files:
  llvm/docs/DebuggingJITedCode.rst


Index: llvm/docs/DebuggingJITedCode.rst
===================================================================
--- llvm/docs/DebuggingJITedCode.rst
+++ llvm/docs/DebuggingJITedCode.rst
@@ -39,7 +39,7 @@
 GDB.  This is due to MCJIT's ability to use the MC emitter to provide full
 DWARF debugging information to GDB.
 
-Note that lli has to be passed the ``-use-mcjit`` flag to JIT the code with
+Note that lli has to be passed the ``-jit-kind=mcjit`` flag to JIT the code with
 MCJIT instead of the old JIT.
 
 Example
@@ -86,14 +86,14 @@
 .. code-block:: bash
 
    $ $BINPATH/clang -cc1 -O0 -g -emit-llvm showdebug.c
-   $ gdb --quiet --args $BINPATH/lli -use-mcjit showdebug.ll 5
+   $ gdb --quiet --args $BINPATH/lli -jit-kind=mcjit showdebug.ll 5
    Reading symbols from $BINPATH/lli...done.
    (gdb) b showdebug.c:6
    No source file named showdebug.c.
    Make breakpoint pending on future shared library load? (y or [n]) y
    Breakpoint 1 (showdebug.c:6) pending.
    (gdb) r
-   Starting program: $BINPATH/lli -use-mcjit showdebug.ll 5
+   Starting program: $BINPATH/lli -jit-kind=mcjit showdebug.ll 5
    [Thread debugging using libthread_db enabled]
 
    Breakpoint 1, compute_factorial (n=5) at showdebug.c:6


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69783.227645.patch
Type: text/x-patch
Size: 1223 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191104/d74b1646/attachment.bin>


More information about the llvm-commits mailing list