Trying to use gdb with the emulator; missing file

So, I call: pebble gdb —emulator basalt
And I get a Python error stack where the last message says:

File “/usr/lib/python3.12/subprocess.py”, line 389, in call
with Popen(*popenargs, **kwargs) as p:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.12/subprocess.py”, line 1026, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File “/usr/lib/python3.12/subprocess.py”, line 1955, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: ‘arm-none-eabi-gdb’

So, it seems I need to install that arm-none-eabi-gdb file, right?
I am on Ubuntu 24.04. How do I install that file? Is it there anything else I should install to use gdb with the emulator?

Thanks!

2 Likes

not sure if we’ve tested gdb, @jpx might know!

1 Like

Hey there! I just checked and it seems like we currently do not ship arm-none-eabi-gdb with the sdk (even though we totally should!)

while you wait for us to update the SDK, you can use sdk 4.5 using pebble sdk install 4.5which should contain GDB!

3 Likes

Awesome!
Thank you @jpx !

1 Like