I am using
S32 Design Studio for S32 Platform Version: 3.6.1 Build id: 250327
In most of my code, when I try to set a breakpoint it works fine. However, in some sections of code e.g. init code, I get this error.
Breakpoint installation failed: invalid dwarf2 offset 0xa9be7 (Address is line-specific.)
This code is being compiled and linked separately, then imported into a S32 project. Our settings default to dwarf4. According to documentation, GDB debugger should read the elf file and determine dwarf level automatically, and should support dwarf4.
I found where to set dwarf level in compiler settings (though we don't use compiler) in case it might work, but I can't find any way to set dwarf level in GDB debugger.
Why doesn't GDB debugger seem to properly support dwarf4? Is there any way to set the debugger's dwarf level?