From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19701 invoked by alias); 14 Sep 2007 12:15:59 -0000 Received: (qmail 19693 invoked by uid 22791); 14 Sep 2007 12:15:59 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 14 Sep 2007 12:15:54 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 146DB982A2; Fri, 14 Sep 2007 12:15:53 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id D8FA59829E; Fri, 14 Sep 2007 12:15:50 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1IWA5O-0005HQ-3m; Fri, 14 Sep 2007 08:15:50 -0400 Date: Fri, 14 Sep 2007 12:15:00 -0000 From: Daniel Jacobowitz To: Emi SUZUKI Cc: jimb@codesourcery.com, gdb-patches@sourceware.org Subject: Re: [RFC] checking the Z-packet support on gdbserver Message-ID: <20070914121550.GB18934@caradoc.them.org> Mail-Followup-To: Emi SUZUKI , jimb@codesourcery.com, gdb-patches@sourceware.org References: <20070913.210822.19763360.emi-suzuki@tjsys.co.jp> <20070914.183913.226021396.emi-suzuki@tjsys.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070914.183913.226021396.emi-suzuki@tjsys.co.jp> User-Agent: Mutt/1.5.15 (2007-04-09) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-09/txt/msg00178.txt.bz2 On Fri, Sep 14, 2007 at 06:39:13PM +0900, Emi SUZUKI wrote: > Meanwhile, I've found the definition below in gdb/config/nm-i386.h. > > #define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) 1 > > TARGET_CAN_USE_HARDWARE_WATCHPOINT is used in watch_command_1 for > checking if the support of hardware watchpoints are available on the > target. If it is not defined, the target vector function > 'to_can_use_hw_breakpoint' would be called. So, the above implies > that GDB built for the x86 native target is not supposed to debug the > remote target. But it should be, to debug a target running on a > remote machine which is the same architecture to the local host, > shouldn't it? > (Although it would not be much necessary in practice...) Yes, this is a bug. It's a little tricky to fix because there's a variety of different i386 targets sharing that header file, but it's certainly fixable. -- Daniel Jacobowitz CodeSourcery