From owner-freebsd-hackers Tue Aug 19 19:52:51 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id TAA22997 for hackers-outgoing; Tue, 19 Aug 1997 19:52:51 -0700 (PDT) Received: from nico.telstra.net (nico.telstra.net [139.130.204.16]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id TAA22992 for ; Tue, 19 Aug 1997 19:52:49 -0700 (PDT) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by nico.telstra.net (8.6.10/8.6.10) with ESMTP id MAA00608 for ; Wed, 20 Aug 1997 12:52:16 +1000 Received: (grog@localhost) by freebie.lemis.com (8.8.7/8.6.12) id MAA09485; Wed, 20 Aug 1997 12:22:15 +0930 (CST) Message-ID: <19970820122215.34114@lemis.com> Date: Wed, 20 Aug 1997 12:22:15 +0930 From: Greg Lehey To: FreeBSD Hackers Subject: gdb: Program received signal SIGTRAP? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Has anybody seen problems with gdb where you can't continue from a breakpoint? I'm currently trying to test user ppp, but once I hit a breakpoint, I can't continue. I'm running -current as of yesterday. Here's a sample: (gdb) b 773 Breakpoint 1 at 0xfe6d: file /src/FREEBIE/usr.sbin/ppp/main.c, line 773. (gdb) r -nodaemon -ddial bigpond Starting program: /usr/obj/src/FREEBIE/usr.sbin/ppp/ppp -nodaemon -ddial bigpond During symbol reading...unknown symbol type 0x1e... User Process PPP. Written by Toshiharu OHNO. Using interface: tun0 Automatic Dialer mode Warning: No password entry for this host in ppp.secret Warning: Manipulation is allowed by anyone Breakpoint 1, DoLoop () at /src/FREEBIE/usr.sbin/ppp/main.c:773 773 if (been_here_before) /* we won't be able to do it again, */ (gdb) n 787 if(mode & MODE_INTER) { (gdb) 788 #ifdef SIGTSTP (gdb) 810 * due to the "set reconnect" value, we'd better bring the line (gdb) c Continuing. Breakpoint 1, DoLoop () at /src/FREEBIE/usr.sbin/ppp/main.c:773 773 if (been_here_before) /* we won't be able to do it again, */ (gdb) n Cannot insert breakpoint 0: Error accessing memory address 0xefbfdfdc: Bad address. (gdb) d Delete all breakpoints? (y or n) y (gdb) n signal_recorder (sig=14) at /src/FREEBIE/usr.sbin/ppp/sig.c:48 48 caused[sig-1]++; (gdb) 49 } (gdb) Program received signal SIGTRAP, Trace/breakpoint trap. DoLoop () at /src/FREEBIE/usr.sbin/ppp/main.c:773 773 if (been_here_before) /* we won't be able to do it again, */ (gdb) Cannot insert breakpoint 0: Error accessing memory address 0xefbfdfdc: Bad address. I'd be grateful for any suggestions. Greg