This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC stub-side break conditions 0/5] General info
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Eli Zaretskii <eliz at gnu dot org>
- Cc: luis_gustavo at mentor dot com, gdb-patches at sourceware dot org
- Date: Fri, 6 Jan 2012 13:09:57 +0400
- Subject: Re: [RFC stub-side break conditions 0/5] General info
- References: <4F05B9FE.1000500@mentor.com> <831urdp8vb.fsf@gnu.org>
> But the downside is that the stub has more work to do, and therefore
> can potentially disrupt the timeline of the program being debugged.
> Is this feature really worth it? How "slow" should a slow connection
> be before this becomes a win? are there types of programs where this
> mode should never be used for fear of interfering with the program's
> timings?
I do not think that adding computation on the stub would make
things slower. The proposed approach is saving the time spent
communicating between GDB and the stub, and replacings the time
the stub spends *waiting* for GDB to evaluate the condition
(more communication with the stub) by time spent by the stub
evaluating the byte-code condition. The target would have to be
really really slow in order to make that more disruptive than
the current approach.
> Isn't it better to make the default be "off", i.e. keep the previous
> modus operandi?
I would prefer "auto". Otherwise, I do not think that the feature
will get much use. Unless, of course, you happen to be right about
the feature being potentially disruptive.
--
Joel