Re: [patch] Disable child VMA randomizations

Jan Kratochvil
2008-07-13T06:55:32Z

[-- Attachment #1: Type: text/plain, Size: 329 bytes --]

On Sat, 12 Jul 2008 23:16:23 +0200, Ulrich Weigand wrote:
> does not trigger as the command is not even registered:
>
> (gdb) set disable-randomization off^M
> No symbol "disable" in current context.^M
> (gdb) PASS: gdb.base/randomize.exp: set disable-randomization off

I see, sorry, going to commit this patch.

Regards,
Jan

[-- Attachment #2: gdb-derandomize-nonlinux-test.patch --]
[-- Type: text/plain, Size: 792 bytes --]

2008-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>

* gdb.base/randomize.exp: Catch non-Linux targets as untested.

--- ./gdb/testsuite/gdb.base/randomize.exp 10 Jul 2008 20:16:27 -0000 1.2
+++ ./gdb/testsuite/gdb.base/randomize.exp 13 Jul 2008 06:52:48 -0000
@@ -51,7 +51,11 @@ proc address_get { testname } {
set test "set disable-randomization off"
gdb_test_multiple "${test}" "${test}" {
-re "Disabling randomization .* unsupported .*$gdb_prompt $" {
- untested "No randomization supported by this GDB"
+ untested "Disabling randomization is not supported on this Linux GDB"
+ return -1
+ }
+ -re "No symbol .* in current context.*$gdb_prompt $" {
+ untested "Disabling randomization is not supported on this GDB platform"
return -1
}
-re "$gdb_prompt $" {