Skip to content

Complete info how to find elf file in windows #5660

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 24, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions doc/gdb.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down