This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 3/5] Darwin: set startup-with-shell to off on Sierra and later.
- From: Tom Tromey <tom at tromey dot com>
- To: Xavier Roirand <roirand at adacore dot com>
- Cc: gdb-patches at sourceware dot org, brobecker at adacore dot com
- Date: Mon, 17 Sep 2018 13:29:56 -0600
- Subject: Re: [RFA 3/5] Darwin: set startup-with-shell to off on Sierra and later.
- References: <1534932677-9496-1-git-send-email-roirand@adacore.com> <1534932677-9496-4-git-send-email-roirand@adacore.com>
>>>>> "Xavier" == Xavier Roirand <roirand@adacore.com> writes:
Xavier> On Mac OS X Sierra and later, the shell is not allowed to be
Xavier> debug so add a check and disable startup with shell in that
Xavier> case.
I learned recently that System Integrity Protection was introduced in
El Capitan:
https://support.apple.com/en-us/HT204899
So, I'm curious why this patch checks for Sierra.
I thought maybe it could just be a bug, but also that maybe the ptrace
changes were added in Sierra.
Do you know? I don't have an older machine to try on. I think it would
be good to document or fix this decision, depending on what's going on.
Tom