This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA: [target.c] Call detach_hook()
- To: Fernando Nasser <fnasser at cygnus dot com>
- Subject: Re: RFA: [target.c] Call detach_hook()
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Wed, 25 Oct 2000 23:41:54 +1100
- Cc: gdb-patches at sources dot redhat dot com
- References: <39F4BCC8.C53C3C0B@cygnus.com>
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