This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] Make sure target supports non-stop.


> 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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]