From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30463 invoked by alias); 6 May 2003 14:44:23 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 30456 invoked from network); 6 May 2003 14:44:23 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by sources.redhat.com with SMTP; 6 May 2003 14:44:23 -0000 Received: from smtp.ott.qnx.com (smtp.ott.qnx.com [10.0.2.158]) by hub.ott.qnx.com (8.9.3p2/8.9.3) with ESMTP id KAA15049 for ; Tue, 6 May 2003 10:41:41 -0400 Received: from node1.ott.qnx.com (hwlab1 [10.0.2.159]) by smtp.ott.qnx.com (8.8.8/8.6.12) with ESMTP id KAA11555 for ; Tue, 6 May 2003 10:44:22 -0400 Received: (from alain@localhost) by node1.ott.qnx.com (8.8.8/8.6.12) id KAA32151 for gdb@sources.redhat.com; Tue, 6 May 2003 10:44:18 -0400 Message-Id: <200305061444.KAA32151@node1.ott.qnx.com> Subject: GDB inferior PID ? To: gdb@sources.redhat.com Date: Tue, 06 May 2003 14:44:00 -0000 From: "Alain Magloire" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2003-05/txt/msg00070.txt.bz2 Bonjour Is there a way to get "reliably" the inferior PID ? Scenario, Eclipse/CDT debugger: I'm using gdb/mi and to separate inferior output from the MI protocol we use gdb --tty=... The downside interrupting the inferior is now messy business depending on the platfrom. Totally broken on Solaris, partially working on GNU/Linux and windows. I've already drop a PR on the solaris platform. Solution: I'm doing some ugly hack/parsing with (gdb) info program And retrieving the inferior pid to drop a SIGINT or whatever it is call on windows(CTRL-BREAK ?). Anyone having something more elegant/reliable? Why is the pid(or whatever the host consider to be the "pid") available? I undestand that it does not apply to remote/serial debugging. Curious.