This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] Remove unnecessary target defaults.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]