simulavr-devel
[Top][All Lists]
Advanced

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

Re: [Simulavr-devel] asm and --gstabs


From: Theodore A. Roth
Subject: Re: [Simulavr-devel] asm and --gstabs
Date: Thu, 3 Jan 2002 23:57:54 -0700 (MST)

This is all I had to do to be able to stepi on the test_blink.asm file:

  $ avr-ld -m avr85xx -o blink test_blink.elf

This works beautifully!

And just for grins and giggles, try this with avr-gdb:

address@hidden test_8515]$ avr-gdb-5.1 
GNU gdb 5.1-avr-patch-0.0-pre8
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=avr".

(gdb) file blink
(gdb) target remote localhost:1212
?? () at ../../../simulavr/test_asm/test_8515/test_blink.asm:15
15              rjmp    main            ; reset
(gdb) load
Loading section .text, size 0x3a lma 0x0
Start address 0x0, load size 58
Transfer rate: 464 bits/sec, 29 bytes/write.
(gdb) stepi 50
42              cpi     delay,0         ; compare delay with 0
(gdb) set radix 16.
(gdb) print (unsigned char)delay
$1 = 0xf4

It looks like gdb is smart enough to now how to deal with .equ directives 
in the asm source files.

This is rather exciting! Everything is actually starting to work as 
advertised.

We still need to keep banging on gdb and figure out if there's any obscure
still left which still needs fixing/implementing. I'm starting to be hard
pressed to find things which don't work.

Tak, now you sould be able to do everything you want with asm programs for 
now.

I'm going to go bask in the warm glow of success while trying to get some
sleep. I don't think I'll have much success with that. ;)


Ted





reply via email to

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