about /proc in preference to ptrace
Daniel Jacobowitz
drow@mvista.com
Mon Jun 9 13:19:00 GMT 2003
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
More information about the Gdb
mailing list