From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15902 invoked by alias); 3 Sep 2003 22:55:51 -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 15885 invoked from network); 3 Sep 2003 22:55:50 -0000 Received: from unknown (HELO localhost.redhat.com) (66.30.197.194) by sources.redhat.com with SMTP; 3 Sep 2003 22:55:50 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id F38882B7F; Wed, 3 Sep 2003 18:55:50 -0400 (EDT) Message-ID: <3F567176.1000100@redhat.com> Date: Wed, 03 Sep 2003 22:55:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ben Johnson Cc: gdb@sources.redhat.com Subject: Re: how are debug registers supposed to work? References: <20030828174129.B9184@blarg.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-09/txt/msg00044.txt.bz2 > So, the CPU is generating a debug exception, and I am catching it. it's > just not happening when I want or expect it to happen. The same thing > happens for program instruction fetches. It doesn't break. > > I stuck in all the wbinvd instructions thinking it might be a cache > issue. I have yet to turn the cache off. it seems to me though that I > should be getting some exception with or without the cache enabled. > > What am I doing wrong? anyone know? who knows how to use these > registers? Just a thought, you're not fighting a user space process playing with those registers? The other is to look at GDB using hardware debug registers on a user process. Andrew