Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tristan Gingold <gingold@adacore.com>
To: Pedro Alves <pedro@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFA] Disable ASLR on Darwin
Date: Thu, 22 Sep 2011 11:47:00 -0000	[thread overview]
Message-ID: <E2598066-6247-440A-9058-E42D067BDC7D@adacore.com> (raw)
In-Reply-To: <201109211534.30277.pedro@codesourcery.com>


On Sep 21, 2011, at 4:34 PM, Pedro Alves wrote:

> On Wednesday 21 September 2011 14:45:37, Tristan Gingold wrote:
>> Hi,
>> 
>> this patch disable ASLR on Darwin for spawned programs, so that you can reuse breakpoint/watchpoints with addresses.
>> Also this adds support for PIE for free (as already noted by Pedro, this doesn't handle attached processes).
>> 
>> Contrary to other OS, this is done at exec (i.e. posix_spawn) time.  In order to use posix_spawn instead of exec, I added a parameter to fork_inferior, adjusted all the calls of fork_inferior (I preferred to pass NULL instead of execvp, because the prototype of the later is somewhat not universal), and added the real work for darwin.
>> 
>> No regressions on i386/GNU linux
>> Manually tested on Lion.
>> 
>> Ok for trunk ?
> 
> Okay, though it's a shame you don't leave the option to disable
> ASLR with a user setting like on linux.

Ok, I will add this option after completing the support of PIE on darwin.

Tristan.


      parent reply	other threads:[~2011-09-22 10:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-21 13:57 Tristan Gingold
2011-09-21 14:36 ` Pedro Alves
2011-09-21 15:07   ` Pedro Alves
2011-09-22 11:47   ` Tristan Gingold [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E2598066-6247-440A-9058-E42D067BDC7D@adacore.com \
    --to=gingold@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=pedro@codesourcery.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox