you can use msp430-objdump -dS <object files> disassemble and intermixed source and disassembly. you can also go the other way with msp430-addr2line this may be usefull to you because you should be able to stop mspdebug and get the current address and determine where things end up. I have not tried this but it seems like a painful process. gdb allows much easier debugging of your program by allowing you to easily set breakpoints and once you are there you can print out global variables and such. what happens when you try to use gdb? Jesse
On Tue, Jan 3, 2012 at 8:18 AM, Shintako Developer <d...@shintako.com> wrote: > Hello, > I apologize if this is a "newbie" question, however I have not been able to > figure this out for some time. > > I am trying to debug my program that I compiled in msp430-gcc with MSPDebug. I > am able to connect to my FET and download the code just fine, however when I > try > to run my code it gets caught up in limbo somewhere. The next step for me is > to > set break points and step through my code to find out where exactly my code is > taking off to Australia. > > To set a break point in MSPDebug, you have to supply an address. My question > is > how does this address correspond to line numbers within specific files? For > example, say I wanted to set a breakpoint at line 15 in main.c. Is there a > tool > where I can look-up addresses in my binary/source files? > > I realize that mspgdb does this, however I am running into issues running the > code on mspgdb and would rather work entirely within MSPDebug if possible. > > If I missed a tutorial/guide about this during my Googling I would be more > than > happy to hunker down and read it. > > Thanks, Dev > ------------------------------------------------------------------------------ > Write once. Port to many. > Get the SDK and tools to simplify cross-platform app development. Create > new or port existing apps to sell to consumers worldwide. Explore the > Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join > http://p.sf.net/sfu/intel-appdev > _______________________________________________ > Mspgcc-users mailing list > Mspgcc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mspgcc-users > ------------------------------------------------------------------------------ Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev _______________________________________________ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users