Re: [PATCH] [gdbserver] Disable conditional breakpoints on no-hardware-single-step targets

Yao Qi
2015-05-08T13:14:33Z

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 (齐尧)