From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22525 invoked by alias); 25 Jan 2005 14:40:54 -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 22295 invoked from network); 25 Jan 2005 14:40:21 -0000 Received: from unknown (HELO krynn.se.axis.com) (193.13.178.10) by sourceware.org with SMTP; 25 Jan 2005 14:40:21 -0000 Received: from [10.92.19.1] (ironmaiden.se.axis.com [10.92.19.1]) by krynn.se.axis.com (8.12.9/8.12.9/Debian-5local0.1) with ESMTP id j0PEeGtv002445; Tue, 25 Jan 2005 15:40:16 +0100 Message-ID: <41F65A50.9090003@axis.com> Date: Tue, 25 Jan 2005 14:40:00 -0000 From: Orjan Friberg Organization: Axis Communications User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913 MIME-Version: 1.0 To: Andrew Cagney CC: gdb-patches@sources.redhat.com Subject: Re: New port: CRISv32 References: <41E79606.40302@axis.com> <41E803F5.2020307@gnu.org> In-Reply-To: <41E803F5.2020307@gnu.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-01/txt/msg00237.txt.bz2 Andrew Cagney wrote: > Orjan Friberg wrote: >> >> 2005-01-15 Orjan Friberg >> >> * config/cris/tm-cris.h: Resurrect. >> (TARGET_HAS_HARDWARE_WATCHPOINTS, TARGET_CAN_USE_HARDWARE_WATCHPOINT) >> (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Define. [snip] > We're going to need to figure out how to fix things so that these macros > are avoided. Could something as straightforward as this be the answer? (gdbarch.[hc] diffs not included.) 2005-01-25 Orjan Friberg * gdbarch.sh (target_has_hardware_watchpoints) (target_can_use_hardware_watchpoint, target_region_ok_for_watchpoint): Add. * gdbarch.h: Re-generate. * gdbarch.c: Ditto. Index: gdbarch.sh =================================================================== RCS file: /cvs/src/src/gdb/gdbarch.sh,v retrieving revision 1.352 diff -u -r1.352 gdbarch.sh --- gdbarch.sh 3 Dec 2004 23:59:52 -0000 1.352 +++ gdbarch.sh 25 Jan 2005 14:25:33 -0000 @@ -650,7 +650,10 @@ f:=:void:coff_make_msymbol_special:int val, struct minimal_symbol *msym:val, msym::default_coff_make_msymbol_special::0 v:=:const char *:name_of_malloc:::"malloc":"malloc"::0:NAME_OF_MALLOC v:=:int:cannot_step_breakpoint:::0:0::0 +v:=:int:target_has_hardware_watchpoints:::0:0::0 v:=:int:have_nonsteppable_watchpoint:::0:0::0 +f:=:int:target_can_use_hardware_watchpoint:int type, int count, int other:type, count, other +f:=:int:target_region_ok_for_watchpoint:CORE_ADDR addr, int len:addr, len F:=:int:address_class_type_flags:int byte_size, int dwarf2_addr_class:byte_size, dwarf2_addr_class M::const char *:address_class_type_flags_to_name:int type_flags:type_flags M::int:address_class_name_to_type_flags:const char *name, int *type_flags_ptr:name, type_flags_ptr -- Orjan Friberg Axis Communications