From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28601 invoked by alias); 18 Feb 2004 16:44:16 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 28585 invoked from network); 18 Feb 2004 16:44:13 -0000 Received: from unknown (HELO faui10.informatik.uni-erlangen.de) (131.188.31.10) by sources.redhat.com with SMTP; 18 Feb 2004 16:44:13 -0000 Received: from faui1d.informatik.uni-erlangen.de (faui1d [131.188.31.34]) by faui10.informatik.uni-erlangen.de (8.9.3p3/8.1.9-FAU) with ESMTP id RAA29913 for ; Wed, 18 Feb 2004 17:44:07 +0100 (CET) From: Ulrich Weigand Received: (from weigand@localhost) by faui1d.informatik.uni-erlangen.de (8.9.3p3/8.1.6-FAU) id RAA19455 for gdb-patches@sources.redhat.com; Wed, 18 Feb 2004 17:44:07 +0100 (CET) Message-Id: <200402181644.RAA19455@faui1d.informatik.uni-erlangen.de> Subject: [PATCH] Watchpoint enhancement for S/390 To: gdb-patches@sources.redhat.com Date: Wed, 18 Feb 2004 16:44:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2004-02/txt/msg00514.txt.bz2 Hello, this patch improves hardware watchpoint handling on s390 a bit: by default, gdb only allows hw watchpoints on regions of size less than the word size; on s390 we have no such restriction, so we can allow arbitrary regions. Tested on s390-ibm-linux and s390x-ibm-linux. (I hope this is small enough so that no specific copyright assignment is required ...) Bye, Ulrich ChangeLog: * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Define. diff -c -p -r gdb-head-new/gdb/config/s390/nm-linux.h gdb-head/gdb/config/s390/nm-linux.h *** gdb-head-new/gdb/config/s390/nm-linux.h Sun Jan 18 17:50:21 2004 --- gdb-head/gdb/config/s390/nm-linux.h Mon Jan 26 15:59:20 2004 *************** extern int s390_remove_watchpoint (CORE_ *** 47,52 **** --- 47,53 ---- #define TARGET_HAS_HARDWARE_WATCHPOINTS #define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) 1 + #define TARGET_REGION_OK_FOR_HW_WATCHPOINT(addr, len) 1 #define HAVE_CONTINUABLE_WATCHPOINT 1 #define STOPPED_BY_WATCHPOINT(w) \ -- Dr. Ulrich Weigand weigand@informatik.uni-erlangen.de