Commit 76b40ef6 authored by Pierre Langlois's avatar Pierre Langlois Committed by V8 LUCI CQ

[gdbinit] Do not enable ASLR if not possible.

The `set disable-randomization off` command may fail on some platforms,
such as the `rr` debugger. We can just ignore the error and carry on.

Change-Id: I9b8dae183a9852178a3d3411172bf3aef173c995
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3602519
Auto-Submit: Pierre Langlois <pierre.langlois@arm.com>
Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/main@{#80143}
parent 2176ead6
......@@ -158,7 +158,15 @@ try:
except gdb.error:
pass
end
set disable-randomization off
# Configuring ASLR may not be possible on some platforms, such running via the
# `rr` debuggger.
python
try:
gdb.execute("set disable-randomization off")
except gdb.error:
pass
end
# Install a handler whenever the debugger stops due to a signal. It walks up the
# stack looking for V8_Dcheck / V8_Fatal / OS::DebugBreak frame and moves the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment