From patchwork Fri Mar 9 15:40:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yao Qi X-Patchwork-Id: 26249 Received: (qmail 130323 invoked by alias); 9 Mar 2018 15:40:24 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 130314 invoked by uid 89); 9 Mar 2018 15:40:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=1.9.1, H*i:sk:s-PMJFD, H*f:sk:s-PMJFD, H*r:sk:static. X-HELO: mail-wr0-f195.google.com Received: from mail-wr0-f195.google.com (HELO mail-wr0-f195.google.com) (209.85.128.195) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 09 Mar 2018 15:40:22 +0000 Received: by mail-wr0-f195.google.com with SMTP id a27so1754335wra.2 for ; Fri, 09 Mar 2018 07:40:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=1AawvQNwT3Iqb1bu8YC6HGLJRp06xs3GwnFCFyyxjvI=; b=oZCvLsF3zfWvPAnlkDdKnO14a2ZKYvhfgNad5ObLi78HcJ00DYAEynYESTmd0xhhVv tAU5tGcAsDc2UGsHKSTn8GbkkB+23oM5DwgfxTCaU0NHaVIAQ+lB94J9t8z7fagGSYOs oSbPrkby41C1eauQ1L8u/DZjZUxHJ44QmZsf6Gw6PoPPU3crAi+q1C1FUNEMo6mbj0iG UNTwy6+CW5xSTRbgrkdwllIsfv7PoY0jVxk57yJTQxz+IzPF1FEqkh6bdhXdjyFuNB1B AzBdn7OGzvn2MNhlPiE5ecABQPDt+TJZRmsluwhi3yLHecHdeagem6RTnKbFexdZPlBc Q5/w== X-Gm-Message-State: APf1xPClMmYCq/faPOu2lICIyWkGEcpjdEW2lYpUZZt822lVfkc79cw5 +6R8gAKATd2tYRNa/BqVhfegUmx6 X-Google-Smtp-Source: AG47ELti2+u1hCxtWi+LVEc2QypNGVFoZjf/dgcK8HUlkkqMbhEiWkpmpQDsIRfwLLmL+/fVXVhupQ== X-Received: by 10.223.175.44 with SMTP id z41mr24819124wrc.129.1520610019662; Fri, 09 Mar 2018 07:40:19 -0800 (PST) Received: from E107787-LIN.cambridge.arm.com (static.42.136.251.148.clients.your-server.de. [148.251.136.42]) by smtp.gmail.com with ESMTPSA id u20sm1408245wru.94.2018.03.09.07.40.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 Mar 2018 07:40:19 -0800 (PST) From: Yao Qi X-Google-Original-From: Yao Qi To: gdb-patches@sourceware.org Cc: jason.duerstock@gmail.com Subject: [PATCH] Fix ia64 GDB build Date: Fri, 9 Mar 2018 15:40:15 +0000 Message-Id: <1520610015-18719-1-git-send-email-yao.qi@linaro.org> In-Reply-To: References: X-IsSubscribed: yes Commit 849d0ba8 breaks GDB build for ia64 with --with-libunwind-ia64=yes. This patch fixes it. Jason, does it unbreak your build? gdb: 2018-03-09 Yao Qi * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change parameter type to readable_regcache. * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update the declaration. --- gdb/ia64-libunwind-tdep.c | 2 +- gdb/ia64-libunwind-tdep.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gdb/ia64-libunwind-tdep.c b/gdb/ia64-libunwind-tdep.c index 3ac613c..99782b2 100644 --- a/gdb/ia64-libunwind-tdep.c +++ b/gdb/ia64-libunwind-tdep.c @@ -452,7 +452,7 @@ libunwind_sigtramp_frame_sniffer (const struct frame_unwind *self, are usually located at BOF, this is not always true and only the libunwind info can decipher where they actually are. */ int -libunwind_get_reg_special (struct gdbarch *gdbarch, struct regcache *regcache, +libunwind_get_reg_special (struct gdbarch *gdbarch, readable_regcache *regcache, int regnum, void *buf) { unw_cursor_t cursor; diff --git a/gdb/ia64-libunwind-tdep.h b/gdb/ia64-libunwind-tdep.h index 5ac3a28..dc7ec9c 100644 --- a/gdb/ia64-libunwind-tdep.h +++ b/gdb/ia64-libunwind-tdep.h @@ -71,7 +71,7 @@ unw_word_t libunwind_find_dyn_list (unw_addr_space_t, unw_dyn_info_t *, void *); int libunwind_get_reg_special (struct gdbarch *gdbarch, - struct regcache *regcache, + readable_regcache *regcache, int regnum, void *buf); #endif /* IA64_LIBUNWIND_TDEP_H */