From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18592 invoked by alias); 2 Mar 2007 13:44:32 -0000 Received: (qmail 18583 invoked by uid 22791); 2 Mar 2007 13:44:31 -0000 X-Spam-Check-By: sourceware.org Received: from relay1.psi.neteu.net (HELO relay1.psi.neteu.net) (154.15.246.50) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 02 Mar 2007 13:44:26 +0000 Received: from [212.222.53.82] (helo=gg.pruftechnik.com) by relay1.psi.neteu.net with esmtp (Exim 4.65) (envelope-from ) id 1HN83c-0003yK-ES for gdb@sourceware.org; Fri, 02 Mar 2007 14:44:24 +0100 Received: from gg.pruftechnik.com (localhost [127.0.0.1]) by gg.pruftechnik.com (8.13.8/8.13.8) with ESMTP id l22DiOVE016161 for ; Fri, 2 Mar 2007 14:44:24 +0100 (CET) Received: (from localhost) by gg.pruftechnik.com (MSCAN) id 1/gg.pruftechnik.com/smtp-gw/mscan; Fri Mar 2 14:44:24 2007 To: gdb@sourceware.org Subject: gdb continues when I want "next" MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.5.4 March 27, 2005 Message-ID: From: Markus.Grunwald@pruftechnik.com Date: Fri, 02 Mar 2007 13:44:00 -0000 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-03/txt/msg00032.txt.bz2 Hello, Using gdb 6.3 (where the version doesn't matter that much. I had the same=20 trouble with 6.6) on an up to date debian etch I have (at least) two=20 errors: 1) I set (exactly) one breakpoint. gdb stops on it. But more often then=20 not when you issue a "next" or "finish" command, the program just=20 continues without halt and breaks at this breakpoint agin. The program=20 that is debugged is multi threaded. I _suspect_ that this only happens the first time that I debug the=20 program: When the program ends and I type "run" for the second (and more)=20 time, I can degub quite fine. 2) Conditions as above, but: Sometimes, I get this when reaching the=20 breakpoint for the first time: Breakpoint 1, CPTLinearGraphic::CalculateLinLines (this=3D0x9251de0) at=20 /home/gru/projects/vxp/branches/branch-0-2-10-X/Dafit_Code/drawdevices/CPTL= inearGraphic.cpp:1640 (gdb) n (gdb) n Detaching after fork from child process 29873. [Thread -1863816272 (LWP 29869) exited] Program received signal SIGTRAP, Trace/breakpoint trap. [Switching to Thread -1863816272 (LWP 29869)] 0xb7446891 in __nptl_death_event () from=20 /lib/tls/i686/cmov/libpthread.so.0 (gdb) fin Run till exit from #0 0xb7446891 in __nptl_death_event () from /lib/tls/i686/cmov/libpthread.so.0 0x90e86490 in ?? () (gdb)=20 Run till exit from #0 0x90e86490 in ?? () Warning: Cannot insert breakpoint 0. Error accessing memory address 0x0: Input/output error. I really need some help, since my colleagues are starting to kill me=20 because thay can't debug... One more note: The debugged program is compiled with gcc 2.95.4. Ancient,=20 but we have no other choice at the moment... :( P.S. Sorry to Daniel, I should have postet this to the list the first time= =20 ... Best regards Markus Grunwald Softwareentwicklung PR=DCFTECHNIK Condition Monitoring GmbH Oskar-Messter-Stra=DFe 19-21 85737 Ismaning www.pruftechnik.com Tel: +49 (0)89 99616177 Fax: +49 (0)89 99616200 PR=DCFTECHNIK Condition Monitoring GmbH Sitz Ismaning / HRB 145655 M=FCnchen=20 Gesch=E4ftsf=FChrer: Johann L=F6sl, Roland Sch=FChle Ein Unternehmen der PR=DCFTECHNIK-Gruppe