Getting started with GDB

Go To Last Post
7 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have a JTAG_ICE and have been using AVaRICE with reasonable success in a WIN98 environment. I'm programming with AVR GCC. Can someone please point me in the right direction toward learning/using GDB?

Thanks,

Tom

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If you're serious about learning GDB, I suggest you type "gdb
tutorial" into a google search field. Then also read the AVaRICE docs
to learn about the specific part how to connect GDB to AVaRICE.

If you rather think about a GDB frontend (like Insight), of course,
start with their documentation first. While it'll always help to
understand the underlying GDB, you might first want to know how to get
started with that tool.

Jörg Wunsch

Please don't send me PMs, use email if you want to approach me personally.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

dl8dtl wrote:
Then also read the AVaRICE docs
to learn about the specific part how to connect GDB to AVaRICE.

What avarice docs? :?

AFAIK, they still don't have any, except a really lame "running.txt" file that comes in the source, that says it's old, and it doesn't even get installed.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Well, you're right, not really much.

avarice.1 (in `man' format) is basically the information you need to
connect GDB and AVaRICE together though. From a quick glance onto it,
it contains everything you gotta know to get it running with GDB.

The frontend scripts ice-gdb and ice-insight do also have their man
page. No idea whether they are useful under Windows though (but they
might, as you've got a bash.exe around anyway).

Jörg Wunsch

Please don't send me PMs, use email if you want to approach me personally.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Great.

man doesn't work in WinAVR. I haven't been able to find an easy solution for that one.

Those frontend scripts are somewhat useless too as they require perl, which doesn't ship with WinAVR. And I hestitate to add it, as it's Yet Another Package. I don't want to recreate Unix on Windows just to have an AVR toolset. I've mentioned a request to make those scripts into shell scripts and dump the perl for just this reason, but of course it went nowhere. :x

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

(Replied to that privately. I think we'll find a solution for the
next WinAVR.)

Jörg Wunsch

Please don't send me PMs, use email if you want to approach me personally.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Does Insight / GDB need any special configuration t work with AVR
cpu's? Like how does it know about the AVR registers, memory space
(harvard vs von neuman) etc?
Does anybody have Insight configuration scripts (if needed) to adapt
this front end to avr specific structures?