Re: [RFA] Remove unnecessary target defaults.

Pedro Alves
2008-08-15T13:08:56Z

On Friday 15 August 2008 13:45:30, Vladimir Prus wrote:

> - de_fault (to_can_async_p,
> - (int (*) (void))
> - return_zero);
> - de_fault (to_is_async_p,
> - (int (*) (void))
> - return_zero);

I believe this is incorrect. You don't notice it when connected
to remote, because those methods are implemented in remote_ops. But,
when connected to e.g., remote-sim.c, and because gdbsim_ops doesn't define
those, you'll inherit the dummy target's implementation, which looks
for asyncness in the default run target instead --- while you should be
looking for asyncness in the remote-sim target.

--
Pedro Alves