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: /proc is high-efficient, why not use it?


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


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