Re: [patch/rfc] Eliminate TARGET_HAS_HARDWARE_WATCHPOINTS

Eli Zaretskii
2004-09-09T03:41:49Z

> Date: Wed, 8 Sep 2004 11:23:15 -0400
> From: Daniel Jacobowitz <drow@false.org>
> Cc: Andrew Cagney <cagney@gnu.org>, gdb-patches@sources.redhat.com
>
> Why should the macro matter for remote targets? We should ask the
> target whether watchpoints are available.

So you are suggesting to replace a configure-time test and the macro
with a run-time test?

> For cross-compiled build, autoconf should work just fine. Compile
> tests are still available and you shouldn't be using run tests for this
> sort of thing anyway.

I don't think this kind of test can be done by compiling a program,
but if you have a specific test in mind, please describe it.

In any case, if what you suggest works, I agree to replacing the macro
with these alternatives.