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: [RFC] Support of Lion (darwin 11)
Date: Wed, 07 Sep 2011 13:28:00 -0000	[thread overview]
Message-ID: <201109071414.13487.pedro@codesourcery.com> (raw)
In-Reply-To: <201109071409.06452.pedro@codesourcery.com>

On Wednesday 07 September 2011 14:09:06, Pedro Alves wrote:
> 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.

I should add that being able to disable the randomization on its own is
an acceptable patch.  There's "set disable-randomization" on linux native
already to do the same thing, and it disables randomization by default.
You could re-use the same user visible setting.  It just so happens
that you'd get Lion half working for free.  :-)

> 
> 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


  reply	other threads:[~2011-09-07 13:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-07 13:09 Tristan Gingold
2011-09-07 13:14 ` Pedro Alves
2011-09-07 13:28   ` Pedro Alves [this message]
2011-09-07 13:47   ` Tristan Gingold
2011-09-16 13:20   ` [RFA] Preliminary work in fork_inferior Tristan Gingold
2011-09-16 14:38     ` Pedro Alves
2011-09-16 14:52       ` Tristan Gingold
2011-09-16 15:28         ` Pedro Alves
2011-09-16 18:25           ` Tristan Gingold
2011-09-16 14:47     ` Abhijit Halder
2011-09-16 14:55       ` 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=201109071414.13487.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