Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2019-06

avr-gdb and dwarf 3

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Dimitrios Chr. Ioannidis

Hi,

AFAIU, you build the AVR RTL with dwarf 3 ( doesn't support dwarf 2 ) if you want RTL debugging information. But, the avr-gdb ( at least the latest 3.5.4.1709 from Microchip ( Atmel ) ) supports only dwarf 2.

How can I debug the RTL ?

regards,

Dimitrios Chr. Ioannidis

Reply by email

Christo Crause
to Dimitrios Chr. Ioannidis

On Fri, Jun 7, 2019 at 1:02 PM Dimitrios Chr. Ioannidis via fpc-devel <

Show quoted text 8 lines
wrote: AFAIU, you build the AVR RTL with dwarf 3 ( doesn't support dwarf 2 ) if you want RTL debugging information. But, the avr-gdb ( at least the latest 3.5.4.1709 from Microchip ( Atmel ) ) supports only dwarf 2. How can I debug the RTL ?

There are more recent versions on Microchip's website (3.6.2: https://www.microchip.com/mplab/avr-support/avr-and-arm-toolchains-c-compilers scroll down page). But even this has an old version of avr-gdb (7.8). Probably better to compile an 8.x version of gdb with this patch: https://sourceware.org/ml/gdb-patches/2016-03/msg00318.html.

Reply by email