Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2017-02

lldb problems with Xcode 8.2.1

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Jeremy Thompson

Hello all,

I am experiencing some LLDB problems in macOS Sierra 10.12.3 with Xcode 8.2.1. Its running the LLVM compiler with FPC 2.6.4. I can no longer get breakpoints to function, they get skipped over. Also when pausing or catching an exception no local or global variables show up. My debug scheme for Xcode has the FPC compiler running these options:

-ghlttt -O-1 -CRiot -gw2 -gl

and the LLVM compiler debug scheme is running with no optimizations. The debug format is set to DWARF and symbols are not being stripped. When I tried running my program out of LLDB through terminal and try to set a breakpoint I get this:

(lldb) b s start.pas:12
Breakpoint 1: no locations (pending).
WARNING: Unable to resolve breakpoint to any actual locations.

This setup was working fine on macOS 10.12.1. There seems to be some talk about this on apple message boards and stack overflow but none of the leads have really gone anywhere. Any help would be greatly appreciated.

Thanks,
Jeremy

Reply by email

Jonas Maebe
to Jeremy Thompson
On 23 Feb 2017, at 19:10, Jeremy Thompson wrote: I am experiencing some LLDB problems in macOS Sierra 10.12.3 with Xcode 8.2.1. Its running the LLVM compiler with FPC 2.6.4. I can no longer get breakpoints to function, they get skipped over.

Short answer: update to FPC 3.0.2 and use its -godwarfcpp option.

The long answer will have to wait till tonight.

Jonas

Reply by email

Jonas Maebe
to Jonas Maebe
Jonas Maebe wrote 8 lines
> On 23 Feb 2017, at 19:10, Jeremy Thompson wrote: > > I am experiencing some LLDB problems in macOS Sierra 10.12.3 with Xcode 8.2.1. Its running the LLVM compiler with FPC 2.6.4. I can no longer get breakpoints to function, they get skipped over. Short answer: update to FPC 3.0.2 and use its -godwarfcpp option. The long answer will have to wait till tonight.

The long answer is that since some people have started working on (very preliminary) Pascal support in lldb, at some point they disabled pretty much all C/C++ functionality for non-C/C++ languages in lldb. With as a result that almost nothing works anymore if the debug information specifies that the source language is Pascal, and simply changing it to claim that the program was compiled from C or C++ (which is more or less what -godwarfcpp does) restores the debugger functionality.

Jonas

Reply by email