From 96768d7596ce4faecb8d328a3af2dd7e91f2b79a Mon Sep 17 00:00:00 2001 From: Alexey Lapshin Date: Wed, 19 Apr 2023 15:33:32 +0800 Subject: [PATCH] test: panic: use gdb-no-python to have ability to send signals --- .../system/panic/test_panic_util/panic_dut.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tools/test_apps/system/panic/test_panic_util/panic_dut.py b/tools/test_apps/system/panic/test_panic_util/panic_dut.py index e9511b043e..020443676b 100644 --- a/tools/test_apps/system/panic/test_panic_util/panic_dut.py +++ b/tools/test_apps/system/panic/test_panic_util/panic_dut.py @@ -160,20 +160,21 @@ class PanicTestDut(IdfDut): Runs GDB and connects it to the "serial" port of the DUT. After this, the DUT expect methods can no longer be used to capture output. """ + gdb_args = ['--nx', '--quiet', '--interpreter=mi2'] if self.is_xtensa: - gdb_path = f'xtensa-{self.target}-elf-gdb' + gdb_path = 'xtensa-esp-elf-gdb-no-python' # TODO: GCC-311 + gdb_args = [f'--mcpu={self.target}'] + gdb_args else: - gdb_path = 'riscv32-esp-elf-gdb' + gdb_path = 'riscv32-esp-elf-gdb-no-python' # TODO: GCC-311 try: from pygdbmi.constants import GdbTimeoutError - default_gdb_args = ['--nx', '--quiet', '--interpreter=mi2'] - gdb_command = [gdb_path] + default_gdb_args + gdb_command = [gdb_path] + gdb_args self.gdbmi = GdbController(command=gdb_command) pygdbmi_logger = attach_logger() except ImportError: # fallback for pygdbmi<0.10.0.0. from pygdbmi.gdbcontroller import GdbTimeoutError - self.gdbmi = GdbController(gdb_path=gdb_path) + self.gdbmi = GdbController(gdb_path=gdb_path, gdb_args=gdb_args) pygdbmi_logger = self.gdbmi.logger # pygdbmi logs to console by default, make it log to a file instead