From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27622 invoked by alias); 15 Sep 2003 13:10:09 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 27615 invoked from network); 15 Sep 2003 13:10:08 -0000 Received: from unknown (HELO gepetto.dc.luth.se) (130.240.42.40) by sources.redhat.com with SMTP; 15 Sep 2003 13:10:08 -0000 Received: (from www-usr@localhost) by gepetto.dc.luth.se (8.12.5/8.12.5) id h8FDA5hA014820; Mon, 15 Sep 2003 15:10:05 +0200 (MEST) X-Authentication-Warning: gepetto.dc.luth.se: www-usr set sender to andwes-8@webmail.student.luth.se using -f To: Andrew Cagney Subject: Re: thread debugging problem Message-ID: <1063631405.3f65ba2d032c4@webmail.student.luth.se> Date: Mon, 15 Sep 2003 13:10:00 -0000 From: Andreas Westin Cc: gdb@sources.redhat.com References: <3F60AC48.6050406@student.luth.se> <16224.44905.976029.587340@localhost.redhat.com> <1063350901.3f617275e4926@webmail.student.luth.se> <20030912143019.GA24071@nevyn.them.org> <1063378178.3f61dd0261ba9@webmail.student.luth.se> <3F64FE2B.8070209@redhat.com> In-Reply-To: <3F64FE2B.8070209@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: IMP/PHP IMAP webmail program 2.2.5 X-SW-Source: 2003-09/txt/msg00193.txt.bz2 > But GDB isn't loading it :-( If it was (with a current [native] GDB) > you would see a message indicating it had been loaded. > > Suggest checking that your gdb includes thread-db.o:thread_db_load, set > > a breakpoint on that and see what happens. I've switched to redhat9 and now I get thread info, but I'm having other problems instead. Strange behaviour which I believe shouldn't happen. When I step forward in the code it seems to be running into somekind of loop running the same lines of code several times when it shouldn't, as you can see in the gdb session below. This is with gdb 5.3.91 but I saw the same behaviour with 5.3 on my gentoo box at home. Any thoughts ? Breakpoint 3, monitor_thread_main (arg=0x0) at monitor.c:481 481 if(prio->first) (gdb) print prio->first $10 = (struct listitem_t *) 0x805a7f8 (gdb) print prio->first->data $11 = (void *) 0x8059be8 (gdb) n 480 next_probe.tv_sec += cfg_getint(cfg, "probe-interval"); (gdb) 481 if(prio->first) (gdb) 480 next_probe.tv_sec += cfg_getint(cfg, "probe-interval"); (gdb) 481 if(prio->first) (gdb) list 480 475 * the time for the next probe session, otherwise wait a nd go 476 * on with the next probe session. 477 */ 478 479 gettimeofday(&next_probe, 0); 480 next_probe.tv_sec += cfg_getint(cfg, "probe-interval"); 481 if(prio->first) 482 logmsg(LOG_ERR, "Ja: %d", timercmp(&((userdata_t*)prio->first->dat a)->tv, &next_probe, <=)); 483 while(prio->first && timercmp(&((userdata_t*)prio->first ->data)->tv, &next_probe, <=)) 484 { (gdb) /Andreas