I didn't get to this soon enough, but from a design perspective, I'm 
wondering whether we'd want to change the flag to something like --dbg or 
--debug-me or something and have a CHPL_DEBUGGER setting that would say 
which debugger to use in order to avoid having O(#debuggers) flags in the 
steady state?

-Brad


On Thu, 5 Jun 2014, [email protected] wrote:

> Revision: 23501
>          http://sourceforge.net/p/chapel/code/23501
> Author:   kyle-b
> Date:     2014-06-05 20:23:02 +0000 (Thu, 05 Jun 2014)
> Log Message:
> -----------
> Add support for debugging with LLDB
>
> [reviewed by elliot]
>
> A new flag has been added, --lldb which works in the same manner as --gdb,
> but launches lldb rather than gdb. This is primarily for anyone who is
> developing on OSX (as gdb doesn't work overly well there).
>
> Some notes for anyone who is planning on using this:
>
> Older versions of LLDB (including the stock one on 10.9 which is
> lldb-310.2.37) and chpl have some odd interactions. I'm not sure where the
> fault lies, but breakpoints will not fire on the first run of the
> compiler. If you run the process again in the same session the breakpoints
> should work fine. This can be solved by compiling your own version of LLDB
> and using that instead of the system version (I'm using lldb-320.99.0
> which seems to work fine).
>
> I've added the commands from gdb.commands to a file that gets sourced
> called lldb.commands.
>
> Modified Paths:
> --------------
>    trunk/compiler/include/files.h
>    trunk/compiler/main/driver.cpp
>    trunk/compiler/util/files.cpp
>
> Added Paths:
> -----------
>    trunk/compiler/etc/lldb.commands
>
> This was sent by the SourceForge.net collaborative development platform, the 
> world's largest Open Source development site.
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/NeoTech
> _______________________________________________
> Chapel-commits mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/chapel-commits
>

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Chapel-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-developers

Reply via email to