Need help using heap-check and leaks on gdb

"Shyam Maniyedath" <[email protected]>
Newsgroups gmane.comp.gdb.bugs.general
Message-ID <[email protected]>
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.