Re: msp430-elf-gcc upcoming release

Peter Bigot <[email protected]>
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.user
Message-ID <CAPOJ94P0FD2rJTVKQ92ussdDXbekVcB3KHOYpirTGvTNmNFNfQ@mail.gmail.com>
On Tue, Apr 22, 2014 at 5:00 PM, Daniel Beer <[email protected]> wrote:
> On Tue, Apr 22, 2014 at 10:34:30AM -0500, Peter Bigot wrote:
>> msp430-elf-gdb also doesn't appear to work with mspdebug:
>>
>> (gdb) target remote :2000
>> Remote debugging using :2000
>> Reply contains invalid hex digit 59
>
> I have a possible fix for this, but I haven't tried it myself. The
> problem is that it's not possible to simultaneously satisfy
> msp430-elf-gdb and msp430-gdb:

Maybe a command-line argument?

This fix works, by the way.  Very nice.

Peter

>
> diff --git a/ui/gdb.c b/ui/gdb.c
> index c500d83..8590667 100644
> --- a/ui/gdb.c
> +++ b/ui/gdb.c
> @@ -239,11 +239,8 @@ static int run_final_status(struct gdb_data *data)
>                 address_t value = regs[i];
>                 int j;
>
> -               /* NOTE: this only gives GDB the lower 16 bits of each
> -                *       register. It complains if we give the full data.
> -                */
>                 gdb_printf(data, "%02x:", i);
> -               for (j = 0; j < 2; j++) {
> +               for (j = 0; j < 4; j++) {
>                         gdb_printf(data, "%02x", value & 0xff);
>                         value >>= 8;
>                 }

------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.