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
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users