From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 113114 invoked by alias); 15 Jan 2016 09:57:37 -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 113101 invoked by uid 89); 15 Jan 2016 09:57:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=H*RU:209.85.192.193, Hx-spam-relays-external:209.85.192.193, HERE X-HELO: mail-pf0-f193.google.com Received: from mail-pf0-f193.google.com (HELO mail-pf0-f193.google.com) (209.85.192.193) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 15 Jan 2016 09:57:35 +0000 Received: by mail-pf0-f193.google.com with SMTP id e65so8378430pfe.0 for ; Fri, 15 Jan 2016 01:57:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=PLlpvSav9Y25S5N1tfR6tgekqLuIEPw3atABegn3rII=; b=R5n8ZRP+dFAtOm35lTh57wGZZkq9mWhnekD3OOwXdoafDq/rNZs91Lft8gzi3CeR3j K95ZkcvaYhenJy0ZpnTWjYEqNrwAHVfeJZwt0xkHAPej+Eiu/VT6kgy0SKI+mncVPNSz seL8cXKQ4lgHhK7bxNmE0sJFu7mLAmVGny6A5e10aDojTVgOrJnYilJtc0MGxoXQ2oFS eBZDFZS8y4wIqvVRUpIyDkiJPZtSmj7Or+KMYfTPhZ9VuziI7H7wpfRgC7+l4zufYBO6 +GgNvfVbjwfHvfes6EvTpE5eYFuQq9/pcyOxGi4q7ZrG7rljRu6UR50zYpk9dAtIGOhi 9eeg== X-Gm-Message-State: ALoCoQnpzlWX9K3arlm1Me7apKZc6XgJgJCF2stWR9l/EOYJMZ87ACFKY8D5TCyQtpUtqQvNtbRQ9svipEn8HKPCx1qS2jv4iw== X-Received: by 10.98.19.93 with SMTP id b90mr13696120pfj.34.1452851853646; Fri, 15 Jan 2016 01:57:33 -0800 (PST) Received: from E107787-LIN.cambridge.arm.com (gcc1-power7.osuosl.org. [140.211.15.137]) by smtp.gmail.com with ESMTPSA id f27sm14576421pfj.0.2016.01.15.01.57.32 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 15 Jan 2016 01:57:32 -0800 (PST) From: Yao Qi X-Google-Original-From: Yao Qi To: gdb-patches@sourceware.org Subject: [PATCH 0/2] Remove argument pc in get_next_pcs Date: Fri, 15 Jan 2016 09:57:00 -0000 Message-Id: <1452851849-24127-1-git-send-email-yao.qi@linaro.org> X-IsSubscribed: yes X-SW-Source: 2016-01/txt/msg00320.txt.bz2 Hi, get_next_pcs in struct linux_target_ops has two arguments, PC and REGCACHE. Since PC can be got from REGCACHE, PC is redundant, so this patch series remove it in various places. After the removal, PC is got from regcache via regcache_read_pc, so patch #1 uses regcache_read_pc out of *the_low_target.get_next_pcs. Then, patch #2 removes PC arguments and PC can be got inside the implementations of get_next_pcs via regcache_read_pc. Regression tested on arm-linux. *** BLURB HERE *** Yao Qi (2): [GDBserver] Use regcache_read_pc in install_software_single_step_breakpoints Remove argument pc in get_next_pcs gdb/arch/arm-get-next-pcs.c | 24 +++++++++++++----------- gdb/arch/arm-get-next-pcs.h | 3 +-- gdb/arm-linux-tdep.c | 2 +- gdb/arm-tdep.c | 2 +- gdb/gdbserver/linux-arm-low.c | 4 ++-- gdb/gdbserver/linux-low.c | 3 +-- gdb/gdbserver/linux-low.h | 2 +- 7 files changed, 20 insertions(+), 20 deletions(-) -- 1.9.1