From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32313 invoked by alias); 13 Jan 2012 18:13:49 -0000 Received: (qmail 32303 invoked by uid 22791); 13 Jan 2012 18:13:47 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,MSGID_FROM_MTA_HEADER,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from e06smtp13.uk.ibm.com (HELO e06smtp13.uk.ibm.com) (195.75.94.109) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 13 Jan 2012 18:13:33 +0000 Received: from /spool/local by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 13 Jan 2012 18:13:31 -0000 Received: from d06nrmr1407.portsmouth.uk.ibm.com ([9.149.38.185]) by e06smtp13.uk.ibm.com ([192.168.101.143]) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 13 Jan 2012 18:13:11 -0000 Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by d06nrmr1407.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q0DIDAQM2076708 for ; Fri, 13 Jan 2012 18:13:10 GMT Received: from d06av02.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q0DIDADC031730 for ; Fri, 13 Jan 2012 11:13:10 -0700 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with SMTP id q0DID9r1031719; Fri, 13 Jan 2012 11:13:09 -0700 Message-Id: <201201131813.q0DID9r1031719@d06av02.portsmouth.uk.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Fri, 13 Jan 2012 19:13:08 +0100 Subject: [rfc v2][0/6] Remote /proc file access To: gdb-patches@sourceware.org, palves@redhat.com Date: Fri, 13 Jan 2012 18:14:00 -0000 From: "Ulrich Weigand" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit x-cbid: 12011318-2966-0000-0000-000002E196EB 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 X-SW-Source: 2012-01/txt/msg00489.txt.bz2 Hello, this is an updated series of patches to implement a generic "info proc" command that works with remote/gdbserver Linux targets. The difference to the earlier version here: http://sourceware.org/ml/gdb-patches/2011-12/msg00007.html is that I've implemented Pedro's suggestions to access /proc via generic file-access primitives instead of using the target object mechanism. Some code and ideas from Pedro's prototype here: http://sourceware.org/ml/gdb-patches/2012-01/msg00353.html has been integrated into this patch series. 1/6: Distinguish target and "fake" PID values 2/6: Always enable multi-process remote extension if possible 3/6: File I/O target operations 4/6: Readlink as file I/O target operation 5/6: Make "info proc" command generic 6/6: Implement "info proc" on Linux via target file I/O I've also updated and tested the remote generate-core-file patch series to use target file I/O instead of TARGET_OBJECT_PROC. I'll post this once this approach is agreed to. I've tested this series on i386 native and remote, as well as on ARM remotely. No regressions; a couple of additional test cases (info-proc.exp) are now passing. Any further comments comments on this approach are appreciated! Thanks, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com