[rfc, gdbserver] Disable address space randomization

Pedro Alves pedro@codesourcery.com
Fri Sep 30 19:32:00 GMT 2011


On Friday 30 September 2011 14:17:08, Ulrich Weigand wrote:

> As to the remote command for extended mode, I'm not completely sure what
> the best way to trigger that from within GDB should be.  Should we promote
> "set disable-randomization" from being a Linux-specific command to the
> generic level, and have its value passed to the target by remote.c?

Yes.  This came up recently for (native) Darwin/OSX too.  That target now
always  disables ASR, and it'd be good to give the user the option
to re-enable it.

>  Or else a new QDisableRandomization packet that affects all subsequent
>  vRun commands?

I think that's the best.  It's kind of similar to "set disconnected-tracing"
and "set circular-trace-buffer".

-- 
Pedro Alves



More information about the Gdb-patches mailing list