This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: about /proc in preference to ptrace


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]