This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Make sure target supports non-stop.
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Vladimir Prus <vladimir at codesourcery dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Fri, 15 Aug 2008 19:13:20 +0300
- Subject: Re: [RFA] Make sure target supports non-stop.
- References: <200808151850.47110.vladimir@codesourcery.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: Vladimir Prus <vladimir@codesourcery.com>
> 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?