From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10338 invoked by alias); 6 Jul 2011 22:55:54 -0000 Received: (qmail 10329 invoked by uid 22791); 6 Jul 2011 22:55:53 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 06 Jul 2011 22:55:38 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 6C0842BB474; Wed, 6 Jul 2011 18:55:37 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id EX7-uOprjayC; Wed, 6 Jul 2011 18:55:37 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 315FC2BB468; Wed, 6 Jul 2011 18:55:37 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 55418145615; Wed, 6 Jul 2011 15:55:35 -0700 (PDT) Date: Wed, 06 Jul 2011 22:55:00 -0000 From: Joel Brobecker To: Yuri Cc: Tom Tromey , gdb@sourceware.org, Steven Kreuzer Subject: Re: 7.3 is broken on FreeBSD Message-ID: <20110706225535.GW15572@adacore.com> References: <4E14C877.6080402@rawbw.com> <4E14D646.5090003@rawbw.com> <20110706224222.GV15572@adacore.com> <4E14E5D2.1080009@rawbw.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E14E5D2.1080009@rawbw.com> User-Agent: Mutt/1.5.20 (2009-06-14) 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: 2011-07/txt/msg00028.txt.bz2 > >Program received signal SIGSEGV, Segmentation fault. > >[Switching to Thread 8018041c0 (LWP 101940)] > >Can you look at gdb/config.in in the build directory, and tell > >me if the following macro is defined? > > > > HAVE_PT_GETDBREGS > > I have #undef HAVE_PT_GETDBREGS That explains it why you get the SEGV... > >I don't have FreeBSD 8.2 lying around, can you see if > >PT_GETDBREGS is defined in /usr/include/sys/ptrace.h? > > > #define PT_GETDBREGS 37 /* get debugging registers */ But that doesn't explain why it's undef'ed in your case. For that, you're going to have to look inside the gdb/config.log file, and search for PT_GETDBREGS. It should tell you that the compilation failed, what source file was used, and why it failed. -- Joel