forked from JuliaLang/julia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Keno's debugger instructions to the repo.
- Loading branch information
1 parent
74a0253
commit e094891
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
The Julia Debugger | ||
------------------ | ||
|
||
In order to have a Julia debugger, we first need a `version of LLDB | ||
that understands Julia's JITed stack frames. To do so, build Julia | ||
with instructions from https://github.com/Keno/Cxx.jl. Just the julia | ||
parts are required. The Cxx part won't be necessary until the debugger | ||
UI is released. | ||
|
||
Use LLDB just as you would usually. | ||
|
||
This should at least get stack traces and the ability to step | ||
through julia code. Please file any issues as bug reports. | ||
|
||
For local variables, you may get some, and you'll get more if you set | ||
`DISABLE_OPT` in `src/options.h`. If you set the latter, it is useful | ||
to collect a set of test cases that don't get local variables even | ||
though they should. You will probably find a lot of functions don't | ||
work, yet. | ||
|
||
OS X | ||
==== | ||
|
||
* Enable FORCE_ELF in src/options. | ||
|
||
* Comment out `if (arch.GetTriple().getVendor() != llvm::Triple::Apple)` | ||
in deps/llvm-svn/tools/lldb/source/Plugins/JITLoader/GDB/JITLoaderGDB.cpp | ||
|
||
* Apply http://reviews.llvm.org/D6185 if it hasn't been merged. | ||
|
||
* export `LLDB_DEBUGSERVER_PATH=/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/debugserver` | ||
|
||
References | ||
========== | ||
|
||
The original post on julia-dev: https://groups.google.com/forum/#!topic/julia-dev/gcZ5dZJni5o |