Recent

Author Topic: Debugger problems  (Read 3990 times)

Barnstorm

  • Newbie
  • Posts: 6
Debugger problems
« on: May 12, 2015, 10:47:41 pm »
Hi I am new to MAC Lazarus but have used Delphi in past.
Running Lazarus 1.4.0
FPC 2.6.4 and FPCSRC 2.6.4.
having found debugger was missing downloaded via home-brew and set certificate as required.
Simple project with button compiled ok but then failed on run with different errors on each run

The GDB command:
"-exec-run"
returned the error:
",msg="Unable to find Mach task port for process-id 3146: (os/kern) failure (0x5).\n


The GDB command:
"-exec-run"
returned the error:
",msg="Unable to find Mach task port for process-id 3157: (os/kern) failure (0x5).\n


The GDB command:
"-exec-run"
returned the error:
",msg="Unable to find Mach task port for process-id 3169: (os/kern) failure (0x5).\n

Can anyone suggest anything to try please?

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Debugger problems
« Reply #1 on: May 12, 2015, 10:54:33 pm »
It appears you've missed the GDB signing step. It's not just setting up a certificate, it's also "codesign" gdb.

Barnstorm

  • Newbie
  • Posts: 6
Re: Debugger problems
« Reply #2 on: May 12, 2015, 11:29:40 pm »
Hi Thanks, I have checked that I have set up the certificate and set trust to
Code signing always allow.When I try to codesigb I got the error

Johns-iMac:~ johnpayton$ codesign -s gdb-cert /usr/local/bin/gdb
gdb-cert: this identity cannot be used for signing code
Johns-iMac:~ johnpayton$

What have i done wrong?

Barnstorm

  • Newbie
  • Posts: 6
Re: Debugger problems
« Reply #3 on: May 13, 2015, 01:57:09 pm »
I have rerun setting the certificate and signed it.
Terminal says gdb-cert is already signed but Lazarus says it isn't?
Where do I go from here?

Johns-iMac:~ johnpayton$ codesign -s gdb-cert /usr/local/bin/gdb
/usr/local/bin/gdb: is already signed
Johns-iMac:~ johnpayton$


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



Barnstorm

  • Newbie
  • Posts: 6
Re: Debugger problems
« Reply #4 on: May 14, 2015, 01:05:22 pm »

 

TinyPortal © 2005-2018