Browse Source

west native_gdb runner: Fix to use exe instead of elf

The runnable output from the build system is the
exe file. In native_posix the elf happend to also be
runnable, but this is not the case in general,
and not for native_sim or the nrf5*bsim boards.

So lets use the exe instead.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
pull/63760/head
Alberto Escolar Piedras 2 years ago committed by Carles Cufí
parent
commit
07e88a9fba
  1. 6
      scripts/west_commands/runners/native_gdb.py

6
scripts/west_commands/runners/native_gdb.py

@ -36,11 +36,11 @@ class NativeGDBBinaryRunner(ZephyrBinaryRunner): @@ -36,11 +36,11 @@ class NativeGDBBinaryRunner(ZephyrBinaryRunner):
if self.cfg.gdb is None:
raise ValueError("The provided RunnerConfig is missing the required field 'gdb'.")
if self.cfg.elf_file is None:
raise ValueError("The provided RunnerConfig is missing the required field 'elf_file'.")
if self.cfg.exe_file is None:
raise ValueError("The provided RunnerConfig is missing the required field 'exe_file'.")
self.call([
self.cfg.gdb,
'--quiet',
self.cfg.elf_file,
self.cfg.exe_file,
])

Loading…
Cancel
Save