[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:
parent
2176ead6dc
commit
76b40ef6c0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user