This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] Add --enable-codesign to gdb's configure


> From: Tom Tromey <tom@tromey.com>
> Cc: Tom Tromey <tom@tromey.com>
> Date: Thu, 28 Jun 2018 10:37:45 -0600
> 
> macOS requires that the gdb executable be signed in order to be able
> to successfully use ptrace.  This must be done after each link.
> 
> This patch adds a new --enable-codesign configure option so that this
> step can be automated.
> 
> gdb/ChangeLog
> 2018-06-28  Tom Tromey  <tom@tromey.com>
> 
> 	* NEWS: Mention --enable-codesign.
> 	* silent-rules.mk (ECHO_SIGN): New variable.
> 	* configure.ac: Add --enable-codesign.
> 	* configure: Rebuild.
> 	* Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
> 	(gdb$(EXEEXT)): Optionally invoke codesign.
> ---
>  gdb/ChangeLog       |  9 +++++++++
>  gdb/Makefile.in     |  7 +++++++
>  gdb/NEWS            |  7 +++++++
>  gdb/configure       | 11 +++++++++++
>  gdb/configure.ac    |  7 +++++++
>  gdb/silent-rules.mk |  1 +
>  6 files changed, 42 insertions(+)
> 
> diff --git a/gdb/ChangeLog b/gdb/ChangeLog
> index a125b72e420..08271641370 100644
> --- a/gdb/ChangeLog
> +++ b/gdb/ChangeLog
> @@ -1,3 +1,12 @@
> +2018-06-28  Tom Tromey  <tom@tromey.com>
> +
> +	* NEWS: Mention --enable-codesign.
> +	* silent-rules.mk (ECHO_SIGN): New variable.
> +	* configure.ac: Add --enable-codesign.
> +	* configure: Rebuild.
> +	* Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
> +	(gdb$(EXEEXT)): Optionally invoke codesign.
> +
>  2018-06-27  Tom Tromey  <tom@tromey.com>

OK for the NEWS part, but I think we should reflect this option in the
output of "gdb --configure", because users will want to know whether
their GDB was configured that way.

Thanks.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]