This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Stop infrun from tracking breakpoint insertion status.
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: vladimir at codesourcery dot com (Vladimir Prus)
- Cc: gdb-patches at sources dot redhat dot com
- Date: Mon, 19 Nov 2007 12:39:27 +0100 (CET)
- Subject: Re: [RFA] Stop infrun from tracking breakpoint insertion status.
Vladimir Prus wrote:
> diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
> index e81ec20..ef55a3d 100644
> --- a/gdb/breakpoint.c
> +++ b/gdb/breakpoint.c
> @@ -296,6 +296,8 @@ int breakpoint_count;
> /* Pointer to current exception event record */
> static struct exception_event_record *current_exception_event;
>
> +static int breakpoints_meant_to_be_inserted_p;
> +
> /* This function returns a pointer to the string representation of the
> pathname of the dynamically-linked library that has just been
> loaded.
> @@ -1312,6 +1314,12 @@ remove_breakpoints (void)
> }
>
> int
> +breakpoints_meant_to_be_inserted (void)
> +{
> + return breakpoints_meant_to_be_inserted_p;
> +}
> +
> +int
> remove_hw_watchpoints (void)
> {
> struct bp_location *b;
Is the breakpoints_meant_to_be_inserted_p variable actually ever
set to any non-zero value in this patch?
Bye,
Ulrich