Re: [PATCH 2/2] Add support for GNAT Ravenscar run-time library.

Pedro Alves
2010-09-23T22:09:01Z

On Thursday 23 September 2010 22:39:27, Joel Brobecker wrote:
> +static void
> +ravenscar_inferior_created (struct target_ops *target, int from_tty)
> +{
> + if (ravenscar_task_support
> + && has_ravenscar_runtime ()
> + && strcmp (target_shortname, ravenscar_ops.to_shortname) != 0)
> + ravenscar_initialize (NULL, 0);
> +}

Please no current/topmost target name comparisons. Add a
ravenscar_is_open global if you don't have any other global you
can use to check whether target revenscar is open.

--
Pedro Alves