Unable to Load Symbols from the .elf Binary File
- The.elffile does not contain debug symbols.
- First, you should analyze the.elffile to determine if the suggested cause is true in your case. To do analyze the file, you can use thereadelftool, which is a part of GNU* development utilities:
- Check the individual file information by running the following command:readelf -a <filename>In the command output, check if the.debug_strand.debug_infosections are present.
- Dump the.debug_strheader and identify the memory address of the function you want to debug by running the following command:readelf --string-dump=.debug_str <elf_file>
Make sure the system instruction pointer refers to the same memory address as defined in the output above.