Re: [Mspgcc-users] MSPDebug on Windows Xp

2012-12-06 Thread Leonardo Martinez
Hi Daniel, I typed mingw-get install mingw32-make in cmd and it installed some files. One of them is the make file. Then I added to the Enviroment variables the directories: c:\mingw\bin; c:\MinGW\msys\1.0\bin\ So, I typed make or make install in cmd line but it doesn't create de mspdebug.exe. I

[Mspgcc-users] Translating code to mspgcc

2012-12-06 Thread Leonardo Martinez
Hello, How are you? I am facing the problem of translating my code to the mspgcc compiler. I was using ccs v5. According to Steve Underwood review, the changes, for someone who isn't using assembler code, are: 1- Use volatile declarations when required 2- Function attributes 3- Interrupt coding

Re: [Mspgcc-users] gdb print looks at wrong address

2012-12-06 Thread Carl Michal
Hi, I've been looking into this a little further, and it appears to me that the problem is in gcc providing the wrong debug info. readelf -w shows: in .debug_info: <2><45>: Abbrev Number: 4 (DW_TAG_variable) <46> DW_AT_name: a <48> DW_AT_decl_file : 1 <49> DW_AT_

Re: [Mspgcc-users] gdb print looks at wrong address

2012-12-06 Thread Peter Bigot
msp430-gdb is not currently maintained. There have historically been issues getting debug information from the compiler to the debugger correctly; currently https://sourceforge.net/tracker/?func=detail&aid=3564453&group_id=42303&atid=432701is open, but that may not be your problem. Generally enab

Re: [Mspgcc-users] gdb print looks at wrong address

2012-12-06 Thread Carl Michal
Peter, thanks! That actually pointed me to a good solution. The issue in that ticket looks like exactly the same problem, and you're right, enabling optimization does seem to solve it, though it does of course cause other problems. By looking through the flags O1 turns on, and removing them in

Re: [Mspgcc-users] MSPDebug on Windows Xp

2012-12-06 Thread Daniel Beer
On Thu, Dec 06, 2012 at 09:10:54AM -0300, Leonardo Martinez wrote: > I typed mingw-get install mingw32-make in cmd and it installed some files. > One of them is the make file. > > Then I added to the Enviroment variables the directories: c:\mingw\bin; > c:\MinGW\msys\1.0\bin\ > > So, I typed make

Re: [Mspgcc-users] MSPDebug on Windows Xp

2012-12-06 Thread Leonardo Martinez
I thought that but i don't have the Makefile, where is it? How do i make it? On Thu, Dec 6, 2012 at 6:51 PM, Daniel Beer wrote: > On Thu, Dec 06, 2012 at 09:10:54AM -0300, Leonardo Martinez wrote: > > I typed mingw-get install mingw32-make in cmd and it installed some > files. > > One of them i

Re: [Mspgcc-users] MSPDebug on Windows Xp

2012-12-06 Thread Daniel Beer
On Thu, Dec 06, 2012 at 08:50:47PM -0300, Leonardo Martinez wrote: > I thought that but i don't have the Makefile, where is it? How do i make it? It's included in the mspdebug source package, which you can get from here: http://mspdebug.sourceforge.net/download.html - Daniel -- Daniel Beer