Debugging with LLDB

27 views
Skip to first unread message

Gareth Baker

unread,
Sep 3, 2020, 9:46:44 AM9/3/20
to dylan-lang
This may seem like a stupid question but how do you get the dylan-compiler to generate debugging information for LLDB?

Thanks
Gareth

Peter Hull

unread,
Sep 3, 2020, 3:04:21 PM9/3/20
to dylan-lang
On Thursday, 3 September 2020 at 14:46:44 UTC+1 Gareth Baker wrote:
This may seem like a stupid question but how do you get the dylan-compiler to generate debugging information for LLDB?
What I do is create a file called "debug.jam" in the project dir
```
CCFLAGS = -O0 -g ;

include $(SYSTEM_BUILD_SCRIPTS)/$(TARGET_PLATFORM)-build.jam ;
```
and I call the compiler like this
dylan-compiler -build-script debug.jam -build projectname
(someone will correct me if this isn't the right way)
Pete

gareth...@stfc.ac.uk

unread,
Sep 4, 2020, 6:27:10 AM9/4/20
to dylan-lang
Thanks Pete - I'm now making a bit of progress, at least I get a back-trace even if its limited to the Dylan library at the moment.

Gareth

Peter Hull

unread,
Sep 4, 2020, 6:52:39 AM9/4/20
to dylan-lang
On Friday, 4 September 2020 at 11:27:10 UTC+1 gareth.baker wrote:
Thanks Pete - I'm now making a bit of progress, at least I get a back-trace even if its limited to the Dylan library at the moment.
Make sure you're using the latest Dylan from git because there were some improvements to the debugging quite recently.

Gareth Baker

unread,
Sep 4, 2020, 10:01:28 AM9/4/20
to dylan-lang
I actually rebuilt Dylan from source a few days ago :-)
Reply all
Reply to author
Forward
0 new messages