This is the mail archive of the gdb-patches@sources.redhat.com 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]

Re: RFA: [target.c] Call detach_hook()


Fernando Nasser wrote:
> 
> If the GUI is not notified that the target is gone it won't reset the
> buttons in the toolbar.
> 
> ChangeLog:
> 
>         * target.c (generic_mourn_inferior): Notify GUI that inferior is gone
>         by calling detach_hook, if defined.

Ok.
	Andrew

> Fernando Nasser
> Red Hat Canada Ltd.                     E-Mail:  fnasser@redhat.com
> 2323 Yonge Street, Suite #300
> Toronto, Ontario   M4P 2C9
> 
> Index: target.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/target.c,v
> retrieving revision 1.11
> diff -c -p -r1.11 target.c
> *** target.c    2000/09/28 07:48:14     1.11
> --- target.c    2000/10/23 22:31:29
> *************** generic_mourn_inferior (void)
> *** 1335,1340 ****
> --- 1335,1343 ----
>        using hit counts.  So don't clear them if we're counting hits.  */
>     if (!show_breakpoint_hit_counts)
>       breakpoint_clear_ignore_counts ();
> +
> +   if (detach_hook)
> +     detach_hook ();
>   }
> 
> 
>   /* This table must match in order and size the signals in enum target_signal

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