From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18337 invoked by alias); 10 Feb 2006 05:22:14 -0000 Received: (qmail 18329 invoked by uid 22791); 10 Feb 2006 05:22:13 -0000 X-Spam-Check-By: sourceware.org Received: from envoy.ot.com.au (HELO envoy.ot.com.au) (203.5.3.200) by sourceware.org (qpsmtpd/0.31) with SMTP; Fri, 10 Feb 2006 05:22:09 +0000 Received: (qmail 26378 invoked by uid 560); 10 Feb 2006 16:22:06 +1100 Received: from 10.70.10.5 by envoy (envelope-from , uid 51) with qmail-scanner-1.25 (clamdscan: 0.87/1281. Clear:RC:1(10.70.10.5):. Processed in 0.299789 secs); 10 Feb 2006 05:22:06 -0000 X-Qmail-Scanner-Mail-From: paulh@ot.com.au via envoy X-Qmail-Scanner: 1.25 (Clear:RC:1(10.70.10.5):. Processed in 0.299789 secs) Received: from unknown (HELO nobel.in.ot.com.au) (10.70.10.5) by envoy.ot.com.au with SMTP; 10 Feb 2006 16:22:05 +1100 Received: (qmail 16440 invoked from network); 10 Feb 2006 16:22:03 +1100 Received: from unknown (HELO ?10.70.12.58?) (10.70.12.58) by nobel.syd.ot with SMTP; 10 Feb 2006 16:22:03 +1100 Message-ID: <43EC22CF.5070402@ot.com.au> Date: Fri, 10 Feb 2006 05:22:00 -0000 From: Paul Hughes User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: gdb@sourceware.org Subject: gdb won't stop at break point in simple program Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-02/txt/msg00069.txt.bz2 I've just written the simplest program I could. I set a break point in main and run the program. Gdb prints out some odd messages "Detaching after fork from child process XXXXX" Program ends without stopping at the break point. Can anyone shed any light on what is going on here? Thanks Paul paulh@b4> cat simple.c int main() { return 1; } paulh@b4> gcc -g simple.c paulh@b4> gdb a.out GNU gdb Red Hat Linux (6.3.0.0-1.63rh) 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) break main Breakpoint 1 at 0x8048350: file simple.c, line 3. (gdb) run Starting program: /home/users/paulh/a.out Detaching after fork from child process 20267. Detaching after fork from child process 20268. Detaching after fork from child process 20269. Detaching after fork from child process 20270. Detaching after fork from child process 20288. Detaching after fork from child process 20289. Program exited with code 01. (gdb) quit paulh@b4> uname -a Linux b4 2.6.9-22.EL #1 Mon Sep 19 18:20:28 EDT 2005 i686 i686 i386 GNU/Linux paulh@b4> gcc -v Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.4/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.4 20050721 (Red Hat 3.4.4-2) paulh@b4> gdb -v GNU gdb Red Hat Linux (6.3.0.0-1.63rh) 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".