From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8665 invoked by alias); 7 Jul 2011 04:32:20 -0000 Received: (qmail 8652 invoked by uid 22791); 7 Jul 2011 04:32:17 -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; Thu, 07 Jul 2011 04:32:02 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 3B79F2BAD92; Thu, 7 Jul 2011 00:32:01 -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 YizZN8a7D6Kw; Thu, 7 Jul 2011 00:32:01 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 884402BAD81; Thu, 7 Jul 2011 00:32:00 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id A8E2F145615; Wed, 6 Jul 2011 21:31:56 -0700 (PDT) Date: Thu, 07 Jul 2011 04:32: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: <20110707043156.GA15572@adacore.com> References: <4E14D646.5090003@rawbw.com> <20110706224222.GV15572@adacore.com> <4E14E5D2.1080009@rawbw.com> <20110706225535.GW15572@adacore.com> <4E14EB9C.8080503@rawbw.com> <20110706232418.GX15572@adacore.com> <4E14F266.3030807@rawbw.com> <20110707015927.GY15572@adacore.com> <4E15165A.10303@rawbw.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E15165A.10303@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/msg00039.txt.bz2 > gdb-7.3 crashes on this line: > 563 dr_status_mirror = i386_dr_low.get_status (); > (gdb) p i386_dr_low > $1 = {set_control = 0, set_addr = 0, reset_addr = 0, get_status = 0, > unset_status = 0, debug_register_length = 0} But i386_dr_low is supposed to be set at GDB startup by _initialize_i386fbsd_nat: void _initialize_i386fbsd_nat (void) { struct target_ops *t; /* Add some extra features to the common *BSD/i386 target. */ t = i386bsd_target (); #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 */ Is this happening? And if yes, then who is overriding the value? If not, why is it not happening, since you confirmed that HAVE_PT_GETDBREGS is defined. -- Joel