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: [RFC] Replace deprecated_target_new_objfile_hook by observer?


On Wed, Oct 18, 2006 at 06:29:02PM +0200, Ulrich Weigand wrote:
> +  /* Don't attempt to use thread_db for remote targets.  */
> +  if (!target_can_run (&current_target))
> +    return;
> +

That's clever!  I hadn't thought of using to_can_run that way.  I think
that should be fine.  If we want to restructure to_can_run later, then
it's easy enough to change.

-- 
Daniel Jacobowitz
CodeSourcery


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