This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 1/5] infrun.c:handle_inferior_event: Remove some more dead code.
- From: Gary Benson <gbenson at redhat dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 24 Oct 2013 16:58:06 +0100
- Subject: Re: [PATCH 1/5] infrun.c:handle_inferior_event: Remove some more dead code.
- Authentication-results: sourceware.org; auth=none
- References: <1382558820-28691-1-git-send-email-palves at redhat dot com> <1382558820-28691-2-git-send-email-palves at redhat dot com>
Pedro Alves wrote:
> diff --git a/gdb/infrun.c b/gdb/infrun.c
> index 4f7068c..8b1b668 100644
> --- a/gdb/infrun.c
> +++ b/gdb/infrun.c
> @@ -3120,17 +3120,6 @@ handle_syscall_event (struct execution_control_state *ecs)
> return 1;
> }
>
> -/* Clear the supplied execution_control_state's stop_func_* fields. */
> -
> -static void
> -clear_stop_func (struct execution_control_state *ecs)
> -{
> - ecs->stop_func_filled_in = 0;
> - ecs->stop_func_start = 0;
> - ecs->stop_func_end = 0;
> - ecs->stop_func_name = NULL;
> -}
> -
I added this one a couple of years ago:
https://sourceware.org/ml/gdb-patches/2011-07/msg00460.html
I think the reason I put that stuff in a separate function was
as a partner function to fill_in_stop_func introduced in the
same commit. I didn't think to check whether the clears were
necessary, so good catch :)
Cheers,
Gary
--
http://gbenson.net/