From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21230 invoked by alias); 8 Jan 2014 07:29:30 -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 21205 invoked by uid 89); 8 Jan 2014 07:29:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 08 Jan 2014 07:29:27 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1W0nZr-0003MF-MW from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Tue, 07 Jan 2014 23:29:23 -0800 Received: from SVR-ORW-FEM-04.mgc.mentorg.com ([147.34.97.41]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Tue, 7 Jan 2014 23:29:23 -0800 Received: from qiyao.dyndns.org (147.34.91.1) by svr-orw-fem-04.mgc.mentorg.com (147.34.97.41) with Microsoft SMTP Server id 14.2.247.3; Tue, 7 Jan 2014 23:29:22 -0800 From: Yao Qi To: Subject: [PATCH 1/4] Use target_xfer_partial_ftype for rs6000_xfer_shared_libraries Date: Wed, 08 Jan 2014 07:29:00 -0000 Message-ID: <1389166060-434-2-git-send-email-yao@codesourcery.com> In-Reply-To: <1389166060-434-1-git-send-email-yao@codesourcery.com> References: <1389166060-434-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2014-01/txt/msg00180.txt.bz2 Hi, We can use target_xfer_partial_ftype here for rs6000_xfer_shared_libraries declaration. gdb: 2014-01-08 Yao Qi * rs6000-nat.c (rs6000_xfer_shared_libraries): Use target_xfer_partial_ftype. --- gdb/rs6000-nat.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/gdb/rs6000-nat.c b/gdb/rs6000-nat.c index a297376..da17b94 100644 --- a/gdb/rs6000-nat.c +++ b/gdb/rs6000-nat.c @@ -79,10 +79,7 @@ static void exec_one_dummy_insn (struct regcache *); -static LONGEST rs6000_xfer_shared_libraries - (struct target_ops *ops, enum target_object object, - const char *annex, gdb_byte *readbuf, const gdb_byte *writebuf, - ULONGEST offset, LONGEST len); +static target_xfer_partial_ftype rs6000_xfer_shared_libraries; /* Given REGNO, a gdb register number, return the corresponding number suitable for use as a ptrace() parameter. Return -1 if -- 1.7.7.6