From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32078 invoked by alias); 20 Sep 2002 01:57:46 -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 32068 invoked from network); 20 Sep 2002 01:57:43 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 20 Sep 2002 01:57:43 -0000 Received: from ges.redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 202BE3DD1 for ; Thu, 19 Sep 2002 21:57:41 -0400 (EDT) Message-ID: <3D8A8094.5080908@ges.redhat.com> Date: Thu, 19 Sep 2002 18:57:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020824 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: Getting the i386 watchpoints into the taget vector? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-09/txt/msg00300.txt.bz2 Hello, With the watchpoint interface made part of the target vector, its time to think about how the i386 case should be handled. Instead of using a system interface, the i386 manipulates the hardware watchpoint registers directly. For want of a better name, I'll call this ``native watchpoints''. One thought is to change the config/i386/nm-i386.h macros to something native specific (native_insert_watchpoint()) and then have the various native targets (infptrace.c, ...) add these methods to their target vector. It does restrict things to native targets. A remote target couldn't make use of GDB's built-in knowledge of watchpoint registers. Another (less well thought out) idea, is for the target stack, to fall back to the ``native watchpoint'' mechanism when the [remote] target doesn't support watchpoints. I think this would mean putting the ``native watchpoint'' methods in the architecture vector where the target vector code could call it. Thoughts? Better ideas? Andrew