Sign in Join

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

Mailing lists / fpc-pascal / 2016-12

Install gdb on MacOSX to debug fpc applications

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Luiz Americo Pereira Camara

I'm following the article below to install fpc in MascOSX (Sierra):

http://www.freepascal.org/~michael/articles/lazonmac/lazonmac.pdf

I managed to install gdb from macports.

The article points that to gdb work properly is necessary to edit com.apple.taskgated.plist file

But in recent versions of OSX this file is protected from edit due to SIP: http://stackoverflow.com/questions/30768087/restricted-folder-files-in-os-x-el-capitan

Is there any another way to get gdb working?

Luiz

C Western
to Luiz Americo Pereira Camara

I think you have to compile gdb yourself - see posts on the gdb mailing lists:

https://sourceware.org/ml/gdb/2016-11/msg00011.html

https://sourceware.org/ml/gdb/2016-11/msg00004.html

When I last looked, macports had not been updated. I think the com.apple.taskgated.plist info does not apply to Sierra

Colin

Luiz Americo Pereira Camara wrote 21 lines
I'm following the article below to install fpc in MascOSX (Sierra): http://www.freepascal.org/~michael/articles/lazonmac/lazonmac.pdf I managed to install gdb from macports. The article points that to gdb work properly is necessary to edit com.apple.taskgated.plist file But in recent versions of OSX this file is protected from edit due to SIP: http://stackoverflow.com/questions/30768087/restricted-folder-files-in-os-x-el-capitan Is there any another way to get gdb working? Luiz _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal