From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21339 invoked by alias); 12 Sep 2013 15:38:39 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 21330 invoked by uid 89); 12 Sep 2013 15:38:38 -0000 Received: from mail-bk0-f44.google.com (HELO mail-bk0-f44.google.com) (209.85.214.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 12 Sep 2013 15:38:38 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: mail-bk0-f44.google.com Received: by mail-bk0-f44.google.com with SMTP id mz10so4347291bkb.31 for ; Thu, 12 Sep 2013 08:38:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:content-type:content-transfer-encoding; bh=lhhJD10J7B5rpuPRik/eAu7SoQTrC9Zir3hKvSks/PU=; b=V3ZVuy9Fgm+It9ufHIqtVWiTu0qoYBFAvCwpxv9yv2SvWQIOozDXiLlqEuWl8QfCDF notLhbVIXFHyCjtmLBQhWHDUhzwAC43QeyZoeMJUAA8eDFERrHuGKOldr7bSqLrDVWt3 EgEYWJGNQkpXnLk8YXJWud0lua8Cs0UW1p9e0qhvTnkIy/5mPRwvcJDYeuhJj2cqyeO1 9gfFc85hxuFKb7Zh1Uct/56thmZP6fy5PK6FLSS5kC6LOxi4LPge32ZeJWYJHGBVeW6e krVDrtxhtsA5LDOYIl4fRJ4q5Vkcnj13soB/R3Y9Kcq20maVVOH7U5nAV5XMwBnKx5ii WYqA== X-Gm-Message-State: ALoCoQm6Uw1PGsQzOpj1ckwnPAhCMAILh/oBmvS7c4zW9oEYng5EUgSgGed54CtVRBpAiecv4whI X-Received: by 10.205.22.71 with SMTP id qv7mr7224640bkb.20.1379000314933; Thu, 12 Sep 2013 08:38:34 -0700 (PDT) Received: from localhost.localdomain (cpc6-seac21-2-0-cust453.7-2.cable.virginmedia.com. [82.1.113.198]) by mx.google.com with ESMTPSA id b6sm1445309bko.16.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 12 Sep 2013 08:38:33 -0700 (PDT) Message-ID: <5231DFF8.3030203@linaro.org> Date: Thu, 12 Sep 2013 15:38:00 -0000 From: Will Newton User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130805 Thunderbird/17.0.8 MIME-Version: 1.0 To: gdb-patches@sourceware.org CC: patches@linaro.org Subject: [PATCH] gdbserver, aarch64: Zero out regs in aarch64_linux_set_debug_regs. Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2013-09/txt/msg00381.txt.bz2 Apply the same fix that was applied to aarch64-linux-nat.c. 2013-09-12 Will Newton * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero out regs. --- gdb/gdbserver/linux-aarch64-low.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gdb/gdbserver/linux-aarch64-low.c b/gdb/gdbserver/linux-aarch64-low.c index e37f602..93246b3 100644 --- a/gdb/gdbserver/linux-aarch64-low.c +++ b/gdb/gdbserver/linux-aarch64-low.c @@ -600,6 +600,7 @@ aarch64_linux_set_debug_regs (const struct aarch64_debug_reg_state *state, const CORE_ADDR *addr; const unsigned int *ctrl; + memset (®s, 0, sizeof (regs)); iov.iov_base = ®s; iov.iov_len = sizeof (regs); count = watchpoint ? aarch64_num_wp_regs : aarch64_num_bp_regs; -- 1.8.1.4