This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] [gdbserver] Disable conditional breakpoints on no-hardware-single-step targets
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Luis Machado <lgustavo at codesourcery dot com>
- Cc: Antoine Tremblay <antoine dot tremblay at ericsson dot com>, Yao Qi <qiyaoltc at gmail dot com>, <gdb-patches at sourceware dot org>
- Date: Fri, 08 May 2015 14:13:25 +0100
- Subject: Re: [PATCH] [gdbserver] Disable conditional breakpoints on no-hardware-single-step targets
- Authentication-results: sourceware.org; auth=none
- References: <1430411029-12097-1-git-send-email-qiyaoltc at gmail dot com> <55426205 dot 3070901 at ericsson dot com> <554CA972 dot 8050700 at codesourcery dot com>
Luis Machado <lgustavo@codesourcery.com> writes:
> I like the idea of having gdbserver learn how to properly
> software-single-step, allowing us to share the knowledge GDB already
> has.
Yes, I like this idea too, but I am still unsure how complicated
execution control in GDBserver will be after software-single-step is
added in GDBserver.
>
> Disabling a feature, on the other hand, sound like a backward movement.
>
I disable this feature on non-hardware-single-step targets, because
these targets don't know how to do precise software single step. I
don't know when GDBserver can do software single step, IMO, it's better
to disable this feature.
> People with knowledge on each architecture can probably help fine tune
> those to their needs.
Yes, we can do improvements in this way, however, in this case, the
feature is somewhat broken on some targets, we either fix it or disable it.
--
Yao (éå)