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: [RFC] Support of Lion (darwin 11)
Date: Wed, 07 Sep 2011 13:47:00 -0000	[thread overview]
Message-ID: <3B7D5F6A-664C-4A05-BCE9-16BC8BA9F78D@adacore.com> (raw)
In-Reply-To: <201109071409.06452.pedro@codesourcery.com>


On Sep 7, 2011, at 3:09 PM, 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.
> 
> This leaves out attaching to already running programs.  We support PIE on
> linux/svr4 now.

Correct.  But handling attached PIE processes is a different problem.


>  Would it be hard to impossible to support it on Lion?

No, it isn't impossible.  It is just more difficult than PIE executables.

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

Sure.

Tristan.


  parent reply	other threads:[~2011-09-07 13:28 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
2011-09-07 13:47   ` Tristan Gingold [this message]
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=3B7D5F6A-664C-4A05-BCE9-16BC8BA9F78D@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