From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3863 invoked by alias); 9 Jun 2003 13:19:32 -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 3847 invoked from network); 9 Jun 2003 13:19:32 -0000 Received: from unknown (HELO crack.them.org) (146.82.138.56) by sources.redhat.com with SMTP; 9 Jun 2003 13:19:32 -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 19PMZJ-0008O7-00; Mon, 09 Jun 2003 08:20:13 -0500 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 19PMYX-0007zR-00; Mon, 09 Jun 2003 09:19:25 -0400 Date: Mon, 09 Jun 2003 13:19:00 -0000 From: Daniel Jacobowitz To: vera0010 Cc: gdb@sources.redhat.com Subject: Re: about /proc in preference to ptrace Message-ID: <20030609131924.GB30691@nevyn.them.org> Mail-Followup-To: vera0010 , gdb@sources.redhat.com References: <20030609073850.11874.qmail@sina.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030609073850.11874.qmail@sina.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-06/txt/msg00103.txt.bz2 On Mon, Jun 09, 2003 at 03:38:50PM +0800, vera0010 wrote: > I see the following text at page of gdb-announce 2002-12-11: > > GDB 5.3 released! > ...... > *** Changes in GDB 5.3: > > * GNU/Linux shared library multi-threaded performance improved. > > When debugging a multi-threaded application on GNU/Linux, GDB now uses '/proc', in preference to 'ptrace' for memory reads. > ...... > It's annoounced by Mr.Andrew Cagney. > > May I ask any questions about: > 1) Is it the same as multi-process application debugging on GNU/Linux? No. > 2) Does gdb stop the running process by '/proc'? No. > 3) Please tell me how to do, if gdb can't stop it by /proc interface. By using signals and ptrace. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer