From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30541 invoked by alias); 27 Sep 2002 19:15:50 -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 30522 invoked from network); 27 Sep 2002 19:15:48 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 27 Sep 2002 19:15:48 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id g8RIvXi06031 for ; Fri, 27 Sep 2002 14:57:33 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id g8RJFkf01916; Fri, 27 Sep 2002 15:15:46 -0400 Received: from localhost.localdomain (vpn50-37.rdu.redhat.com [172.16.50.37]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id g8RJFjJ06014; Fri, 27 Sep 2002 15:15:45 -0400 Received: (from kev@localhost) by localhost.localdomain (8.11.6/8.11.6) id g8RJFec24379; Fri, 27 Sep 2002 12:15:40 -0700 Date: Fri, 27 Sep 2002 12:15:00 -0000 From: Kevin Buettner Message-Id: <1020927191540.ZM24378@localhost.localdomain> In-Reply-To: David Knuth "gdb is breaking at wrong locations" (Sep 27, 3:02pm) References: To: David Knuth , gdb@sources.redhat.com Subject: Re: gdb is breaking at wrong locations MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-09/txt/msg00490.txt.bz2 On Sep 27, 3:02pm, David Knuth wrote: > We've got an m68k-coff tool chain to develop for and debug a 68332 > board via BDM. I'm using gdb 4.17 and an ICD BDM pod. Today, I > noticed that it is not stopping at the set break points. It is > stopping about 6 lines after it should, thus it is stopping at times > when I don't expect it to. All the break points are at lines the are > the else of an if condition and all are a return error; statement. > Also, gdb is crashing frequently, or at least it's telling me there's a > SIGBUS fault and it cannot proceed. > > 1) Are there somethings I should look out for when setting break > points? Any no-nos? > > 2) Can I/ should I upgrade to a later version of GDB? Will a newer > version work with the older gcc/as/ld/ar tools I'm using now? > > As a side note, I've noticed that if I remove the parallel port > extension cable between the laptop and BDM pod, the number of crashes > decreases. The problem with not breaking at the right location does > not go away, however. It sounds to me like you have a mismatch between the executable that you're running on the target and the symbol file that you're loading into gdb. Kevin