This is the mail archive of the gdb-patches@sourceware.org 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]
Other format: [Raw text]

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


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