tambewilliam@kubuntu20200502:~$ sudo /opt/pu32-toolchain/bin/pu32-elf-gdb -x ~/Documents/buildroot-build/staging/usr/share/buildroot/gdbinit -ex 'cd /home/tambewilliam/Documents/buildroot-build/staging/' -ex 'target extended-remote /dev/ttyUSB2' -ex 'set cwd /' -ex 'monitor set debug 1' -ex 'monitor set remote-debug 1' -ex 'set debug remote 1' GNU gdb (GDB) 11.0.50.20210718-git Copyright (C) 2021 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "--host=x86_64-pc-linux-gnu --target=pu32-elf". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". warning: File "/home/tambewilliam/.gdbinit" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load". To enable execution of this file add add-auto-load-safe-path /home/tambewilliam/.gdbinit line to your configuration file "/root/.config/gdb/gdbinit". To completely disable this security protection add set auto-load safe-path / line to your configuration file "/root/.config/gdb/gdbinit". For more information about this security protection see the "Auto-loading safe path" section in the GDB manual. E.g., run from the shell: info "(gdb)Auto-loading safe path" Working directory /home/tambewilliam/Documents/buildroot-build/staging (canonically /home/tambewilliam/Documents/buildroot-build/host/pu32-buildroot-linux-gnu/sysroot). Remote debugging using /dev/ttyUSB2 Debug output enabled. Protocol debug output enabled. (gdb) set remote exec-file bin/ls (gdb) file bin/ls Reading symbols from bin/ls... (gdb) (gdb) r -l / Starting program: /home/tambewilliam/Documents/buildroot-build/host/pu32-buildroot-linux-gnu/sysroot/usr/bin/ls -l / [remote] Sending packet: $QDisableRandomization:1#cf [remote] Received Ack [remote] Packet received: OK [remote] Sending packet: $QStartupWithShell:1#43 [remote] Received Ack [remote] Packet received: OK [remote] Sending packet: $QEnvironmentReset#e9 [remote] Received Ack [remote] Packet received: OK [remote] Sending packet: $QSetWorkingDir:2f#4f [remote] Received Ack [remote] Packet received: OK [remote] Sending packet: $vRun;62696e2f6c73;2d6c;2f#30 [remote] Received Ack [remote] Packet received: T0500:00000000;0e:00000000;0f:00000000;10:00000000;thread:p5b.5b;core:0; [remote] packet_ok: Packet vRun (run) is supported [remote] Sending packet: $qAttached:5b#60 [remote] Received Ack [remote] Packet received: 0 [remote] packet_ok: Packet qAttached (query-attached) is supported [remote] Sending packet: $qXfer:exec-file:read:5b:0,1000#b0 [remote] Received Ack [remote] Packet received: l/usr/bin/busybox [remote] Sending packet: $qOffsets#4b [remote] Received Ack [remote] Packet received: [remote] Sending packet: $Hgp5b.5b#7b [remote] Received Ack [remote] Packet received: OK [remote] Sending packet: $qXfer:features:read:target.xml:0,1000#0c [remote] Received Ack [remote] Packet received: l\n\n\n pu32\n GNU/Linux\n \n \n \n \n \n \n