From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30980 invoked by alias); 15 Aug 2008 16:14:03 -0000 Received: (qmail 30969 invoked by uid 22791); 15 Aug 2008 16:14:03 -0000 X-Spam-Check-By: sourceware.org Received: from mtaout3.012.net.il (HELO mtaout3.012.net.il) (84.95.2.7) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 15 Aug 2008 16:13:24 +0000 Received: from HOME-C4E4A596F7 ([84.229.211.50]) by i_mtaout3.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K5N00DZ5H2V3QY0@i_mtaout3.012.net.il> for gdb-patches@sources.redhat.com; Fri, 15 Aug 2008 19:13:44 +0300 (IDT) Date: Fri, 15 Aug 2008 16:14:00 -0000 From: Eli Zaretskii Subject: Re: [RFA] Make sure target supports non-stop. In-reply-to: <200808151850.47110.vladimir@codesourcery.com> X-012-Sender: halo1@inter.net.il To: Vladimir Prus Cc: gdb-patches@sources.redhat.com Reply-to: Eli Zaretskii Message-id: References: <200808151850.47110.vladimir@codesourcery.com> 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: 2008-08/txt/msg00421.txt.bz2 > From: Vladimir Prus > Date: Fri, 15 Aug 2008 18:50:47 +0400 > > + if (non_stop && !target_supports_non_stop ()) > + error (_("Cannot attach to this target in non-stop mode")); Won't it be more elegant to define a method enter_non_stop_mode for each target, and have the target complain if it cannot?