From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1584 invoked by alias); 19 Dec 2007 14:59:26 -0000 Received: (qmail 1575 invoked by uid 22791); 19 Dec 2007 14:59:26 -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; Wed, 19 Dec 2007 14:59:17 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id CA8D798150; Wed, 19 Dec 2007 14:59:15 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id A25209814F; Wed, 19 Dec 2007 14:59:15 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1J50OA-0006Du-LU; Wed, 19 Dec 2007 09:59:14 -0500 Date: Wed, 19 Dec 2007 15:04:00 -0000 From: 'Daniel Jacobowitz' To: Pierre Muller Cc: luisgpm@linux.vnet.ibm.com, gdb-patches@sourceware.org Subject: Re: [RFC/RFA] testsuite/gdb.base/watch_thread_num.exp: Fix test for systems having hidden threads Message-ID: <20071219145914.GA21477@caradoc.them.org> Mail-Followup-To: Pierre Muller , luisgpm@linux.vnet.ibm.com, gdb-patches@sourceware.org References: <20071011193558.GE30810@caradoc.them.org> <1192134591.18528.1.camel@localhost> <1194961811.4820.3.camel@localhost> <1195042801.4908.2.camel@localhost> <20071216214836.GE2618@caradoc.them.org> <1197894945.24027.8.camel@gargoyle> <000601c8423e$f49ca010$ddd5e030$@u-strasbg.fr> <20071219140353.GA20359@caradoc.them.org> <001501c8424e$9a71ca10$cf555e30$@u-strasbg.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001501c8424e$9a71ca10$cf555e30$@u-strasbg.fr> User-Agent: Mutt/1.5.17 (2007-12-11) 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-12/txt/msg00313.txt.bz2 On Wed, Dec 19, 2007 at 03:51:14PM +0100, Pierre Muller wrote: > It should probably also use gdb_compile_pthreads > to try to compile the source. That's right. > I found this, in gdb.base/watchpoint.exp: > > # Disable hardware watchpoints if necessary. > if [target_info exists gdb,no_hardware_watchpoints] { > gdb_test "set can-use-hw-watchpoints 0" "" "" > } > > but I still didn't really understand what those "target_info exists" > commands really are: > - how are they set? By the DejaGNU "board" file. Normally you just use unix.exp if you say "runtest"; other board files are used for cross testing or for custom configurations. > - does it make it possible to run the testsuite with hardware watchpoints > disabled? Yes, but you need to use a board file. > gdb.threads/watchthreads.exp contains this: > > # This test verifies that a watchpoint is detected in the proper thread > # so the test is only meaningful on a system with hardware watchpoints. > if [target_info exists gdb,no_hardware_watchpoints] { > return 0; > } > > But where and how is gdb,no_hardware_watchpoints set? Same thing; in a board file. For instance, the gdbserver example on the wiki. -- Daniel Jacobowitz CodeSourcery