From ece93908a82562a4845c738a2a7540bb931713e1 Mon Sep 17 00:00:00 2001 From: ZaPpInG Date: Thu, 24 Jan 2019 19:56:08 +0100 Subject: [PATCH] Complete info how to find elf file in windows (#5660) --- doc/gdb.rst | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/doc/gdb.rst b/doc/gdb.rst index 933ae09f8..bc4c5c16d 100644 --- a/doc/gdb.rst +++ b/doc/gdb.rst @@ -72,14 +72,20 @@ Locate Application.ino.elf File ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In order for GDB to debug your application, you need to locate the compiled -ELF format version of it (which includes needed debug symbols). Under Linux -these files are stored in ``/tmp/arduino_build_*`` and the following command -will help locate the right file for your app +ELF format version of it (which includes needed debug symbols). + +Under Linux these files are stored in ``/tmp/arduino_build_*`` and the following command will help locate the right file for your app: .. code:: cpp find /tmp -name "*.elf" -print +Under Windows these files are stored in `%userprofile%\AppData\Local\Temp\arduino_build_*`` and the following command will help locate the right file for your app: + +.. code:: cpp + + dir %userprofile%\appdata\*.elf /s/b + Note the full path of ELF file that corresponds to your sketch name, it will be needed later once GDB is started.