From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14625 invoked by alias); 31 Jan 2014 03:37:52 -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 14615 invoked by uid 89); 31 Jan 2014 03:37:51 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,FROM_12LTRDOM 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; Fri, 31 Jan 2014 03:37:50 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1W94vK-0002Wo-LJ from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Thu, 30 Jan 2014 19:37:46 -0800 Received: from SVR-ORW-FEM-03.mgc.mentorg.com ([147.34.97.39]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Thu, 30 Jan 2014 19:37:46 -0800 Received: from qiyao.dyndns.org (147.34.91.1) by svr-orw-fem-03.mgc.mentorg.com (147.34.97.39) with Microsoft SMTP Server id 14.2.247.3; Thu, 30 Jan 2014 19:37:43 -0800 From: Yao Qi To: Subject: [PATCH 0/6] Return target_xfer_status in to_xfer_partial Date: Fri, 31 Jan 2014 03:37:00 -0000 Message-ID: <1391139325-2758-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2014-01/txt/msg01065.txt.bz2 Hi, This patch series change target_ops method to_xfer_partial to return target_xfer_status and the transfered length, which was discussed before https://sourceware.org/ml/gdb-patches/2013-10/msg00761.html Patch #1, #2 and #3 are cleanup and refactor patches, and patch #5 does the change. Patch #4 is to let all to_xfer_partial implementation not worry about 'len == 0'. With this patch series, target implementations to to_xfer_partial can set unavailable by its own, and make it easier to handle unavailable data. This patch series don't include changes to target ctf and tfile. I'll do that in next step. Regression tested on x86_64-linux. Rebuild GDB in the following ways: - on x86-linux, with all targets enabled, - cross build native mingw32,mips-linux,hurd,sparc-linux, gdb on linux, - build native powerpc-linux gdb on gcc110 - build spu-elf target on gcc110 - build aix native gdb on gcc111 Is it OK? *** BLURB HERE *** Yao Qi (6): Tweak in memory_error core_xfer_shared_libraries and core_xfer_shared_libraries_aix returns ULONGEST Replace -1 with TARGET_XFER_E_IO Return early in target_xfer_partial when LEN is zero. Return target_xfer_status in to_xfer_partial Update comments to to_xfer_partial implementations. gdb/aix-thread.c | 14 +-- gdb/auxv.c | 83 +++++++++------ gdb/bfd-target.c | 9 +- gdb/bsd-kvm.c | 20 +++- gdb/bsd-uthread.c | 11 +- gdb/corefile.c | 40 +++++--- gdb/corelow.c | 111 +++++++++++++++------ gdb/ctf.c | 23 +++- gdb/darwin-nat.c | 35 +++++-- gdb/exec.c | 30 ++++-- gdb/exec.h | 12 ++- gdb/gdbarch.c | 4 +- gdb/gdbarch.h | 15 ++- gdb/gdbarch.sh | 9 +- gdb/gdbcore.h | 4 +- gdb/gnu-nat.c | 24 +++-- gdb/i386-cygwin-tdep.c | 4 +- gdb/ia64-hpux-nat.c | 60 ++++++----- gdb/inf-ptrace.c | 43 +++++---- gdb/inf-ttrace.c | 24 +++-- gdb/linux-nat.c | 109 +++++++++++++------- gdb/monitor.c | 19 ++-- gdb/procfs.c | 14 ++- gdb/record-btrace.c | 13 ++- gdb/record-full.c | 29 +++--- gdb/remote-sim.c | 26 +++-- gdb/remote.c | 151 ++++++++++++++++------------ gdb/rs6000-aix-tdep.c | 6 +- gdb/rs6000-aix-tdep.h | 12 +- gdb/rs6000-nat.c | 35 ++++--- gdb/sol-thread.c | 10 +- gdb/sparc-nat.c | 24 +++-- gdb/spu-linux-nat.c | 62 +++++++---- gdb/spu-multiarch.c | 18 ++-- gdb/target.c | 269 +++++++++++++++++++++++++++++------------------ gdb/target.h | 39 +++++--- gdb/tracepoint.c | 18 ++-- gdb/valprint.c | 4 +- gdb/windows-nat.c | 39 ++++--- 39 files changed, 917 insertions(+), 555 deletions(-) -- 1.7.7.6