Embedded Design Handbook

ID 683689
Date 8/28/2023
Public
Document Table of Contents

4.1.6.1. nios2-elf-addr2line

This command returns a source code line number for a specific memory address. The command is similar to but more specific than the nios2-elf-objdump command described in nios2-elf-objdump and the nios2-elf-nm command described in nios2-elf-nm.

Use the
nios2-elf-addr2line
command to help validate code that should be stored at specific memory addresses. The example below illustrates its usage and results:

nios2-elf-addr2line Utility Usage Example

$ nios2-elf-addr2line --exe=<your project>.elf 0x1000020
<
               Nios® II EDS install path>/components/altera_nios2/HAL/src/alt_exception_entry.S:99