Recent

Author Topic: Debugger stopped working on Mojave / latest Lazarus trunk  (Read 2805 times)

MISV

  • Hero Member
  • *****
  • Posts: 783
Debugger stopped working on Mojave / latest Lazarus trunk
« on: November 30, 2018, 01:55:22 am »
I get debugger error

Quote
The GDB command
"-exec-run"
returned the error:
",msg="Unable to find Mach task port process-id 42752: (os/kern) failure (0x5).\n
(please check gdb is codesigned - see taskgated(8))""

Just not quite sure how GDB can stop working unless xcode command tools (which I also updated) includes gdb again...


MISV

  • Hero Member
  • *****
  • Posts: 783
Re: Debugger stopped working on Mojave / latest Lazarus trunk
« Reply #1 on: November 30, 2018, 02:08:18 am »
Research seems to indicate GDB has some problems on Mojave
https://gist.github.com/danisfermi/17d6c0078a2fd4c6ee818c954d2de13c
https://stackoverflow.com/questions/52529838/gdb-8-2-cant-recognized-executable-file-on-macos-mojave-10-14

anyone got it working?

For reference I found my GDB in

/usr/local/Cellar/gdb/8.0/bin/gdb

MISV

  • Hero Member
  • *****
  • Posts: 783
Re: Debugger stopped working on Mojave / latest Lazarus trunk
« Reply #2 on: November 30, 2018, 02:11:25 am »
interim solution may be to use lldb from termnial - now if I could just remember how, but I will Google what I find. I believe I have had a similar situation in the past

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9791
  • Debugger - SynEdit - and more
    • wiki
Re: Debugger stopped working on Mojave / latest Lazarus trunk
« Reply #3 on: November 30, 2018, 02:21:54 am »
If you download the Lazarus 2.0RC2, it has build in support for lldb. Best is to work from fixes 2.0 branch until RC3, since there were a few fixes after 2.0RC2.

http://forum.lazarus-ide.org/index.php/topic,42869.0.html

MISV

  • Hero Member
  • *****
  • Posts: 783
Re: Debugger stopped working on Mojave / latest Lazarus trunk
« Reply #4 on: November 30, 2018, 02:53:29 pm »
Thank you! (Encountered some problems which I will report there)
« Last Edit: November 30, 2018, 03:13:00 pm by MISV »

 

TinyPortal © 2005-2018