This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Strange Behavior using arm-none-eabi-gdb

I'm new to gdb so I would really appreciate any guidance. My target is the K82f and I am calling Openocd and gdb from the command line.

Compiler: ArmClang/Armlink

Debugger: arm-arm-none-eabi-gdb
Debug Info: -gdwarf-4

Batch File: github.com/.../build.bat

The Issue:
Gdb doesn't print the current source-line when stepping nor does it print the source-line when using the frame command. There are also these double arrows that may be TAB characters that are being rendered to the console.

Could this be caused Openocd/gdbserver?

What resources should I look at for this?

Are there compatibility issues with Armlink generated .axf and gdb?

armclang.exe generated elf read by armclang's fromelf.exe (armgnu's readelf.exe doesn't seem to accurately read this .axf)

gnu seems to be interpreting the .axf file as having "unix-system v" abi

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
** ELF Header Information
File Name: kl25z_rtos.axf
Machine class: ELFCLASS32 (32-bit)
Data encoding: ELFDATA2LSB (Little endian)
Header version: EV_CURRENT (Current version)
Operating System ABI: none
ABI Version: 0
File Type: ET_EXEC (Executable) (2)
Machine: EM_ARM (ARM)
Image Entry point: 0x00000165
Flags: EF_ARM_HASENTRY + EF_ARM_ABI_FLOAT_SOFT (0x05000202)
ARM ELF revision: 5 (ABI version 2)
Conforms to Soft float procedure-call standard
Built with
Component: ARM Compiler 6.16 Tool: armasm [5dfea300]
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

NOTE(MA): Ill build using arm-non-eabi-gcc and compare the elf formats

0