bug-gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Need help using heap-check and leaks on gdb


From: Shyam Maniyedath
Subject: Need help using heap-check and leaks on gdb
Date: Sat, 14 Sep 2002 17:16:37 -0700

> Hello,
> 
> I am trying to use the heap-check leaks feature on GDB (HP-UX)
> For this I need to start my program (say foo) under gdb ( as against
> attaching to the process)
> 
> My program is usually started off a shell script, which in turn was forked
> from another process (say bar).
> The original process ( bar, that forks off the shell script ) opens some
> sockets which are passed
> onto the 2nd process (that I want to debug)
> 
> To start my 2nd process (foo) under gdb I modify my shell script to start
> gdb (instead of foo) and then from gdb I start my program (foo).
> 
> What I notice is that the sockets become invalid when I start my program
> under gdb this way.
> Does gdb do anything to the open sockets/file descriptors. Can I
> circumvent this in any way.
> 
> Thanks,
> Shyam





reply via email to

[Prev in Thread] Current Thread [Next in Thread]