diff options
author | Tiezhu Yang <yangtiezhu@loongson.cn> | 2022-03-17 10:55:35 +0800 |
---|---|---|
committer | Tiezhu Yang <yangtiezhu@loongson.cn> | 2022-03-23 11:56:46 +0800 |
commit | f629ad7dac5ff2d7ee92791071b731096dfa1eb5 (patch) | |
tree | d4109f42ad6b0db4f5030caef6127d48307e8c8e /gdb/python/python-config.py | |
parent | 5b5442fbf0fab8bd3cb4d19e564b13501f547dac (diff) | |
download | binutils-f629ad7dac5ff2d7ee92791071b731096dfa1eb5.zip binutils-f629ad7dac5ff2d7ee92791071b731096dfa1eb5.tar.gz binutils-f629ad7dac5ff2d7ee92791071b731096dfa1eb5.tar.bz2 |
gdb: testsuite: use gdb_attach to fix jit-elf.exp
If /proc/sys/kernel/yama/ptrace_scope is 1, when execute the following
command without superuser:
make check-gdb TESTS="gdb.base/jit-elf.exp"
we can see the following messages in gdb/testsuite/gdb.log:
(gdb) attach 1650108
Attaching to program: /home/yangtiezhu/build/gdb/testsuite/outputs/gdb.base/jit-elf/jit-elf-main, process 1650108
ptrace: Operation not permitted.
(gdb) FAIL: gdb.base/jit-elf.exp: attach: one_jit_test-2: break here 1: attach
use gdb_attach to fix the above issue, at the same time, the clean_reattach
proc should return a value to indicate whether it worked, and the callers
should return early as well on failure.
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Diffstat (limited to 'gdb/python/python-config.py')
0 files changed, 0 insertions, 0 deletions