Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFC 0/6] A different approach to startup-with-shell on macOS
@ 2018-09-26 11:12 Tom Tromey
  2018-09-26 11:11 ` [RFC 1/6] Unify shell-finding logic Tom Tromey
                   ` (7 more replies)
  0 siblings, 8 replies; 25+ messages in thread
From: Tom Tromey @ 2018-09-26 11:12 UTC (permalink / raw)
  To: gdb-patches

Currently the macOS port will disable startup-with-shell on versions
of macOS that have System Integrity Protection.  This is done because
with SIP, gdb cannot ptrace certain executables, including the normal
shells.

This series implements a different approach: copy the user's shell
executable to the cache directory and arrange to use the copy.  This
avoids the SIP restrictions.

Most of the series is just cleanup, rearranging so some private
functions can be shared, and fixing a few small things I noticed along
the way.

This has been regression tested by one of the buildbot builders, and
then I tested the final patch on macOS High Sierra.

One question I have is whether it's possible to build gdb on an older
version of macOS and then run it on a newer version.  If this can be
done, then the #if-based approach taken in the final patch will not
work.

I didn't include any way to control this feature other than "set
startup-with-shell off".  My thinking was that turning this off will
just result in failures, which isn't useful.  However if there's a
reason to do something else, I could add it.

Tom



^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2018-10-01 19:31 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-26 11:12 [RFC 0/6] A different approach to startup-with-shell on macOS Tom Tromey
2018-09-26 11:11 ` [RFC 1/6] Unify shell-finding logic Tom Tromey
2018-09-28 21:39   ` Simon Marchi
2018-09-26 11:12 ` [RFC 5/6] Do not reopen temporary files Tom Tromey
2018-09-26 14:12   ` Eli Zaretskii
2018-09-26 21:44     ` Tom Tromey
2018-09-29  3:22   ` Simon Marchi
2018-10-01  9:15     ` Tom Tromey
2018-09-26 11:12 ` [RFC 2/6] Move make_temp_filename to common/pathstuff.c Tom Tromey
2018-09-26 11:12 ` [RFC 4/6] Use mkostemp, not mkstemp Tom Tromey
2018-09-29  3:09   ` Simon Marchi
2018-09-29 12:49     ` Tom Tromey
2018-09-29 14:04       ` Simon Marchi
2018-09-26 11:20 ` [RFC 3/6] Move mkdir_recursive to common/filestuff.c Tom Tromey
2018-09-26 22:11   ` Tom Tromey
2018-09-26 23:16     ` Tom Tromey
2018-09-26 11:20 ` [RFC 6/6] Cache a copy of the user's shell on macOS Tom Tromey
2018-09-29  3:37   ` Simon Marchi
2018-10-01 19:27     ` Tom Tromey
2018-10-01 19:31       ` Simon Marchi
2018-09-28 21:21 ` [RFC 0/6] A different approach to startup-with-shell " Simon Marchi
2018-09-29 18:43 ` Pedro Alves
2018-09-29 19:50   ` Simon Marchi
2018-09-29 20:38     ` Pedro Alves
2018-10-01  9:12       ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox