This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Support of Lion (darwin 11)
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tristan Gingold <gingold at adacore dot com>
- Date: Wed, 7 Sep 2011 14:09:06 +0100
- Subject: Re: [RFC] Support of Lion (darwin 11)
- References: <E9D2564E-6E60-4938-B358-32B2DA122E08@adacore.com>
On Wednesday 07 September 2011 13:28:41, Tristan Gingold wrote:
> Hi,
>
> with the latest mac OS X, executables are now pie by default and their load address is random. This obviously needs to be considered by gdb, and the easiest method is to disable the randomization.
This leaves out attaching to already running programs. We support PIE on
linux/svr4 now. Would it be hard to impossible to support it on Lion?
> I also did some cleanup in this function: use alloca instead of xmalloc for argv to avoid a memory leak, and moved the code that allocate shell_command within the if (shell) block. I also factorized the gdb_flush/_exit code used in case on error.
How about splitting these out into a separate, preparatory patch?
--
Pedro Alves