From owner-freebsd-stable Wed Jul 3 06:50:30 1996 Return-Path: owner-stable Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA08315 for stable-outgoing; Wed, 3 Jul 1996 06:50:30 -0700 (PDT) Received: from root.com (implode.root.com [198.145.90.17]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id GAA08310 for ; Wed, 3 Jul 1996 06:50:28 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by root.com (8.7.5/8.6.5) with SMTP id GAA00224; Wed, 3 Jul 1996 06:50:09 -0700 (PDT) Message-Id: <199607031350.GAA00224@root.com> X-Authentication-Warning: implode.root.com: Host localhost [127.0.0.1] didn't use HELO protocol To: grog@lemis.de (Greg Lehey) cc: freebsd-stable@freebsd.org (FreeBSD Stable Users) Subject: Re: gdb broken in latest -stable? In-reply-to: Your message of "Wed, 03 Jul 1996 06:50:59 +0200." <199607030450.GAA23785@allegro.lemis.de> From: David Greenman Reply-To: davidg@root.com Date: Wed, 03 Jul 1996 06:50:09 -0700 Sender: owner-stable@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >I've run into a strange problem on -stable: I can't even start >programs under gdb: ... > Program terminated with signal SIGBUS, Bus error. I can't reproduce this: [implode:davidg] cat foo.c main() { int a = 2, b = 2; int c; printf("first line\n"); printf("second line\n"); printf("third line\n"); printf("fourth line\n"); c = a + b; printf("The answer is %d\n", c); } [implode:davidg] gdb foo GDB is free software and you are welcome to 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. GDB 4.13 (i386-unknown-freebsd), Copyright 1994 Free Software Foundation, Inc... (gdb) break main Breakpoint 1 at 0x165c: file foo.c, line 6. (gdb) r Starting program: /local/home/davidg/foo Breakpoint 1, main () at foo.c:6 6 printf("first line\n"); (gdb) step first line 7 printf("second line\n"); (gdb) step second line 8 printf("third line\n"); (gdb) step third line 9 printf("fourth line\n"); (gdb) step fourth line 12 printf("The answer is %d\n", c); (gdb) step The answer is 4 13 } (gdb) step 0x10d3 in start () (gdb) step Single stepping until exit from function start, which has no line number information. Program exited with code 020. (gdb) quit This is with a kernel that is up to date as of the time that I'm writing this (July 3rd, 6:50am PST). My gdb binary is about a week old, but there haven't been any commits to an area of the source tree that would affect this (as far as I know). -DG David Greenman Core-team/Principal Architect, The FreeBSD Project