This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Remove unnecessary target defaults.
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Cc: Vladimir Prus <vladimir at codesourcery dot com>
- Date: Fri, 15 Aug 2008 14:08:42 +0100
- Subject: Re: [RFA] Remove unnecessary target defaults.
- References: <200808151645.31042.vladimir@codesourcery.com>
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