I’m using mspgcc as compiler for the msp430f149 and it works great!! I can load the elf file to the mcu using GDB, however when I try to debug step by step GDB says there is not a symbol table, so cannot set breakpoints. I use the -g and -O0 options when building. Am I missing something?? Do I need some option when building??
By the way I try to debug under Eclipse but I couldn’t, has anyone done it??
GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type “show copying” to see the conditions.
There is absolutely no warranty for GDB. Type “show warranty” for details.
This GDB was configured as “–host=i686-pc-cygwin --target=msp430”…
remote.c:1897: gdb-internal-error: sect_index_data not initialized
(gdb)
I’ve tried with several versions of GDB and it still is there =(
wiml:
Probably gdb just doesn’t know where to find the symbol table for the code that it sees on the mcu. Have you tried the ‘symbol-file’ command in gdb?
Hi again wiml
I did what you told me and it works!! I want to share the way I did it.
Open one console, go where the .elf file to debug is in and start the gdbproxy