Re: GDB debugging showing wrong code

2024-12-27 Thread Trampas Stern via Gcc
Thanks Richard! I have requested an account with the gcc bugzilla system. Trampas On Fri, Dec 27, 2024 at 5:05 AM Richard Biener wrote: > > > > Am 27.12.2024 um 02:50 schrieb Trampas Stern via Gcc : > > > > I am doing embedded development on an arm cortex-m processor using > > arm-none-eabi-

Re: GDB debugging showing wrong code

2024-12-27 Thread Richard Biener via Gcc
> Am 27.12.2024 um 02:50 schrieb Trampas Stern via Gcc : > > I am doing embedded development on an arm cortex-m processor using > arm-none-eabi-gcc. I have run into a bug where GDB is showing that the > code executing is code from a function that is not used. The code is > removed as it is n

GDB debugging showing wrong code

2024-12-26 Thread Trampas Stern via Gcc
I am doing embedded development on an arm cortex-m processor using arm-none-eabi-gcc. I have run into a bug where GDB is showing that the code executing is code from a function that is not used. The code is removed as it is not called, and hence -ffunction-sections -fdata-sections -Wl,--gc-sectio