Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Simon Marchi <simon.marchi@polymtl.ca>
To: Pedro Alves <palves@redhat.com>
Cc: Simon Marchi <simon.marchi@ericsson.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] Restore behavior of disabling address randomization by default on GDBserver
Date: Wed, 22 Aug 2018 17:38:00 -0000	[thread overview]
Message-ID: <ab847bd7be49294a29d0a0b418420cf8@polymtl.ca> (raw)
In-Reply-To: <1ad11ede-9a61-5ead-921a-bf2c1c1a6358@redhat.com>

On 2018-08-22 12:14, Pedro Alves wrote:
> On 08/22/2018 05:05 PM, Simon Marchi wrote:
>> Commit
>> 
>>   c12a508 ("Add client_state struct.")
>> 
>> inadvertently changed the default behavior of GDBserver wrt address
>> randomization.  The old disable_randomization global variable was
>> initialized to 1, whereas the corresponding field in the client_state
>> structure is initialized to 0.
>> 
>> This fixes
>> 
>>   make check TESTS="gdb.base/jit-simple.exp" 
>> RUNTESTFLAGS="--target_board=native-gdbserver"
>>   make check TESTS="gdb.base/execl-update-breakpoints.exp" 
>> RUNTESTFLAGS="--target_board=native-gdbserver"
>> 
>> Note that the execl-update-breakpoints.exp would only fail on systems
>> where the toolchain emits position-independent executables by default
>> (otherwise the main executable position is never randomized, so the
>> value of disable_randomization didn't matter).
> 
> Thanks for fixing this!
> 
> This is OK, but please double-check the patch/commit, since it
> seems to include the same hunk twice.  Kind of looks like
> the fix diff made it to the commit log?

Oops yes, it's because I use "git commit -v" and managed to include that 
diff in the commit message by mistake.

Pushed with that fixed.

Simon


  reply	other threads:[~2018-08-22 17:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-22 16:06 Simon Marchi
2018-08-22 16:14 ` Pedro Alves
2018-08-22 17:38   ` Simon Marchi [this message]
2018-08-26  9:51     ` Joel Brobecker
2018-08-26 15:01       ` Simon Marchi

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=ab847bd7be49294a29d0a0b418420cf8@polymtl.ca \
    --to=simon.marchi@polymtl.ca \
    --cc=gdb-patches@sourceware.org \
    --cc=palves@redhat.com \
    --cc=simon.marchi@ericsson.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