From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 50182 invoked by alias); 30 Nov 2015 13:36:19 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 50166 invoked by uid 89); 30 Nov 2015 13:36:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 X-HELO: smtp.eu.adacore.com Received: from mel.act-europe.fr (HELO smtp.eu.adacore.com) (194.98.77.210) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 30 Nov 2015 13:36:17 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 66C2130001FB; Mon, 30 Nov 2015 14:36:14 +0100 (CET) Received: from smtp.eu.adacore.com ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3sgP-vHpyH-7; Mon, 30 Nov 2015 14:36:14 +0100 (CET) Received: from dhcp-guest-231.act-europe.fr (dhcp-guest-231.act-europe.fr [10.10.127.231]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.eu.adacore.com (Postfix) with ESMTPSA id 5434330001E9; Mon, 30 Nov 2015 14:36:14 +0100 (CET) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: AVR debugging - Can't read io register contents From: Tristan Gingold In-Reply-To: <1448889892.4187.8.camel@gmail.com> Date: Mon, 30 Nov 2015 13:36:00 -0000 Cc: gdb@sourceware.org Content-Transfer-Encoding: quoted-printable Message-Id: <89F9F173-6EDD-4E28-BF5A-4417E9E0CCCD@adacore.com> References: <1448889892.4187.8.camel@gmail.com> To: Diogo Martins Silva X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg00046.txt.bz2 > On 30 Nov 2015, at 14:24, Diogo Martins Silva w= rote: >=20 > Hello. >=20 > I'm debugging an AVR software using an AVR Dragon - Avarice - avr-gdb - > Eclipse Toolchain in Ubuntu 15.10, with current packages. >=20 > 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. >=20 > Funny thing is I can correctly read every other register. >=20 > How do I pinpoint this? I'm not knowledgeable of gdb, so I appreciate > your help. I would first do a =E2=80=98set debug remote 1=E2=80=99 to trace the remote= protocol and see whether the issue in within avarice or within gdb.