It seems like GDB is using a wrong offset when it shows variables in main().
Source code using 5 variables in main
This is the compiled and linked elf file
This is what I see when I print the variables in GDB
Stopping execution at line "a=b+c" gives me the following values for the
Stopping execution at line "return 0" gives me the following values for the
When I dump the memory I see the correct values (at line "return 0")
Reproducible with -ggdb, no optimization. Generated dwarf code appears correct. Problem deferred to msp430-gdb maintainer (there is none currently).
I see this too. It looks as though only -fomit-frame-pointer is needed though to solve the problem.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.