gdb
[Top][All Lists]
Advanced

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

Re: Detaching after fork from child process


From: Anurag Goyal
Subject: Re: Detaching after fork from child process
Date: Sun, 18 Mar 2007 22:51:20 +0530

I tried the simple program and it run perfectly fine with no such message, as shown below, But I want to debug a very large application which uses a managed make thruout the project and when I run that thru gdb it gives me messages "Detaching after fork from child process XXXXX" and it stops sometimes and asks to press the enter key to continue or q to quit. is there anything wrong with my configuration...?

cat 1.cpp
#include<iostream>
using namespace std;
int main()
{
        cout<<"The simple program"<<endl;
        return 1;
}
g++ -g 1.cpp
uname -a
Linux LocalHost 2.6.9-34.EL #1 Fri Feb 24 16:44:51 EST 2006 i686 athlon i386 GNU/Linux
address@hidden bin2]$ gcc -v
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.5/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.5 20051201 (Red Hat 3.4.5-2)
address@hidden bin2]$ gdb a.out
GNU gdb Red Hat Linux (6.3.0.0-1.96rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) r
Starting program: /home/anuragvit/imocrCopy2/imocr/bin2/a.out
The simple program

Program exited with code 01.
(gdb) q


On 3/18/07, kevin <address@hidden> wrote:
Sounds abnormal - try very simple code, as in this link:
http://sources.redhat.com/ml/gdb/2006-02/msg00069.html
and then followup to the gdb group with more details, such as what OS
you are using, which gcc and include a sample of code which produces the
problem on your machine that others can compile/execute.
Cheers,
-Kevin

On Sun, 2007-03-18 at 18:49 +0530, Anurag Goyal wrote:
> Hi,
> Is this message a normal message, or does it mean some error, and what
> actually does it mean.?
> "Detaching after fork from child process XXXXX"
> above is displayed many times as I execute my application, also it
> asks
>
> ---Type <return> to continue, or q <return> to quit---Quit
>
> even when I haven't given any breakpoints, the gdb stops execution.
> Is it normal.? if yes how to change settings so that such msgs are
> handled itself
>
>
> --
> Anurag

reply via email to

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