[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] port access with avr-gdb

From: GOUY Yann
Subject: Re: [avr-gcc-list] port access with avr-gdb
Date: Sun, 13 Jun 2004 14:50:23 +0200

Le sam 12/06/2004 à 14:15, Rob MacLachlan a écrit :
> Yes. it is possible to set I/O registers directly using GDB, but it's a 
> pain because the port location and format info is #defines in header 
> files, and is not known to GDB.  For this reason, I've never done this 
> other than as an experiment.  In comparison to the register browser of 
> AVRStudio, this is rather lacking.  You have to convert the I/O register 
>   number into a data space address, cast it to an appropriate type, then 
> assign to it.
> I thought of writing some tool to translate the header file into a gdb 
> script as a way to get this info into gdb, but never did.  I suppose a 
> better solution would be to get this imported as symbol table info somehow.

it seems to me that the registers don't appear in the symbol table.
if you take a look at the .lst file, you'll see accesses to
memory-mapped registers aren't decoded with the name of the registers.



>    Rob
> _______________________________________________
> avr-gcc-list mailing list
> address@hidden
> http://www.avr1.org/mailman/listinfo/avr-gcc-list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]