From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6658 invoked by alias); 6 Jul 2011 22:47:15 -0000 Received: (qmail 6638 invoked by uid 22791); 6 Jul 2011 22:47:13 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from shell0.rawbw.com (HELO shell0.rawbw.com) (198.144.192.45) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 06 Jul 2011 22:47:00 +0000 Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id p66Mkgoc053202; Wed, 6 Jul 2011 15:46:43 -0700 (PDT) (envelope-from yuri@rawbw.com) Message-ID: <4E14E5D2.1080009@rawbw.com> Date: Wed, 06 Jul 2011 22:47:00 -0000 From: Yuri User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:5.0) Gecko/20110706 Thunderbird/5.0 MIME-Version: 1.0 To: Joel Brobecker CC: Tom Tromey , gdb@sourceware.org, Steven Kreuzer Subject: Re: 7.3 is broken on FreeBSD References: <4E14C877.6080402@rawbw.com> <4E14D646.5090003@rawbw.com> <20110706224222.GV15572@adacore.com> In-Reply-To: <20110706224222.GV15572@adacore.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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/msg00027.txt.bz2 On 07/06/2011 15:42, Joel Brobecker wrote: > 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 > > It looks like there definitely is a weakness that leaves the > i386_dr_low structure unset if that macro is not defined. But > as far as I can tell, it's working just great for me. > > The code in question is _initialize_i386fbsd_nat: > > #ifdef HAVE_PT_GETDBREGS > > i386_use_watchpoints (t); > > i386_dr_low.set_control = i386bsd_dr_set_control; > i386_dr_low.set_addr = i386bsd_dr_set_addr; > i386_dr_low.reset_addr = i386bsd_dr_reset_addr; > i386_dr_low.get_status = i386bsd_dr_get_status; > i386_set_debug_register_length (4); > > #endif /* HAVE_PT_GETDBREGS */ > > 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 */ Yuri