Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@codesourcery.com>
To: gdb-patches@sourceware.org
Cc: Tristan Gingold <gingold@adacore.com>
Subject: Re: [RFA] Disable ASLR on Darwin
Date: Wed, 21 Sep 2011 14:36:00 -0000	[thread overview]
Message-ID: <201109211534.30277.pedro@codesourcery.com> (raw)
In-Reply-To: <EDAE3865-56A4-4962-9E29-FF1353DBC11A@adacore.com>

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.

-- 
Pedro Alves


  reply	other threads:[~2011-09-21 14:34 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 [this message]
2011-09-21 15:07   ` Pedro Alves
2011-09-22 11:47   ` Tristan Gingold

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=201109211534.30277.pedro@codesourcery.com \
    --to=pedro@codesourcery.com \
    --cc=gdb-patches@sourceware.org \
    --cc=gingold@adacore.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