[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: Clemens Backes <clemensb@chromium.org>
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/main@{#80143}
This commit is contained in:
Pierre Langlois 2022-04-22 18:51:33 +01:00 committed by V8 LUCI CQ
parent 2176ead6dc
commit 76b40ef6c0

View File

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