From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10870 invoked by alias); 8 May 2009 16:05:53 -0000 Received: (qmail 10611 invoked by uid 22791); 8 May 2009 16:05:51 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from imr1.ericy.com (HELO imr1.ericy.com) (198.24.6.9) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 08 May 2009 16:05:44 +0000 Received: from eusrcmw751.eamcs.ericsson.se (eusrcmw751.exu.ericsson.se [138.85.77.51]) by imr1.ericy.com (8.13.1/8.13.1) with ESMTP id n48GFkRa032343 for ; Fri, 8 May 2009 11:15:49 -0500 Received: from ecamlmw720.eamcs.ericsson.se ([142.133.1.72]) by eusrcmw751.eamcs.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); Fri, 8 May 2009 11:04:50 -0500 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: 'target remote' and the return of pid 42000 Date: Fri, 08 May 2009 16:05:00 -0000 Message-ID: <6D19CA8D71C89C43A057926FE0D4ADAA0765C688@ecamlmw720.eamcs.ericsson.se> From: "Marc Khouzam" To: X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-05/txt/msg00042.txt.bz2 Hi, I'm trying out the different debugging configurations with HEAD (from a week ago). Currently, I'm trying remote debugging with gdbserver. I'm starting a gdbserver on a remote Linux with: > gdbserver.7.0 :10008 ~/a.out When I use 'target remote' to connect to it, the pid reported by=20 GDB is 42000. I know this pid is used when the real pid is not known. However, when using 'target extended-remote' GDB reports the proper pid. Is this normal behavior? (note that I see the pid 42000 using both -list-thread-groups and info inferior.) Thanks marc