From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2705 invoked by alias); 9 Jun 2003 13:19:12 -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 2686 invoked from network); 9 Jun 2003 13:19:11 -0000 Received: from unknown (HELO crack.them.org) (146.82.138.56) by sources.redhat.com with SMTP; 9 Jun 2003 13:19:11 -0000 Received: from dsl093-172-017.pit1.dsl.speakeasy.net ([66.93.172.17] helo=nevyn.them.org ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 19PMYz-0008O4-00; Mon, 09 Jun 2003 08:19:53 -0500 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 19PMYC-0007zM-00; Mon, 09 Jun 2003 09:19:04 -0400 Date: Mon, 09 Jun 2003 13:19:00 -0000 From: Daniel Jacobowitz To: vera0010 Cc: gdb@sources.redhat.com Subject: Re: /proc is high-efficient, why not use it? Message-ID: <20030609131904.GA30691@nevyn.them.org> Mail-Followup-To: vera0010 , gdb@sources.redhat.com References: <20030609072110.27976.qmail@sina.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20030609072110.27976.qmail@sina.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-06/txt/msg00102.txt.bz2 On Mon, Jun 09, 2003 at 03:21:10PM +0800, vera0010 wrote: > Hello! > > I have read gdb-5.3 source. I know it uses primarily on x86/alpha linux platform. > > But a debugger can only debug the unique process, not more processes simultaneously. That is incorrect. GDB can debug any number of physical processes at once. However, GDB only supports this when they are threads of the same program. > I think it is more likely because Linux kernel doesn't support /proc interface for gdb. The kernel does not support a /proc debugging interface. That's true, but not important. > > I want to debug 2~4 processes with a single gdb on SMP Linux. > Can you give me a help? > > Wang. > > ______________________________________ > > =================================================================== > ¶©·Ç³£Ð¦»°³é´ó½± ²ÊÆÁÊÖ»úÒ»ÌìÒ»²¿! (http://sms.sina.com.cn/act/fcxhhd.html) > -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer