This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: about /proc in preference to ptrace
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: vera0010 <vera0010 at sina dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Mon, 9 Jun 2003 09:19:24 -0400
- Subject: Re: about /proc in preference to ptrace
- References: <20030609073850.11874.qmail@sina.com>
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