From: Tristan Gingold <gingold@adacore.com>
To: Diogo Martins Silva <diogo.masilva@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: AVR debugging - Can't read io register contents
Date: Mon, 30 Nov 2015 13:36:00 -0000 [thread overview]
Message-ID: <89F9F173-6EDD-4E28-BF5A-4417E9E0CCCD@adacore.com> (raw)
In-Reply-To: <1448889892.4187.8.camel@gmail.com>
> On 30 Nov 2015, at 14:24, Diogo Martins Silva <diogo.masilva@gmail.com> wrote:
>
> Hello.
>
> I'm debugging an AVR software using an AVR Dragon - Avarice - avr-gdb -
> Eclipse Toolchain in Ubuntu 15.10, with current packages.
>
> While trying to read some register address (1284p's EICRA register at
> 0x69), I get all zeros. If I printf the register, the correct value is
> printed. I know to have successfully altered the register because the
> behavior of the micro changes accordingly.
>
> Funny thing is I can correctly read every other register.
>
> How do I pinpoint this? I'm not knowledgeable of gdb, so I appreciate
> your help.
I would first do a ‘set debug remote 1’ to trace the remote protocol
and see whether the issue in within avarice or within gdb.
prev parent reply other threads:[~2015-11-30 13:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-30 13:25 Diogo Martins Silva
2015-11-30 13:36 ` Tristan Gingold [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=89F9F173-6EDD-4E28-BF5A-4417E9E0CCCD@adacore.com \
--to=gingold@adacore.com \
--cc=diogo.masilva@gmail.com \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox