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>
diff --git a/scripts/west_commands/runners/native_gdb.py b/scripts/west_commands/runners/native_gdb.py
index 777290c..163fe01 100644
--- a/scripts/west_commands/runners/native_gdb.py
+++ b/scripts/west_commands/runners/native_gdb.py
@@ -36,11 +36,11 @@
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,
])