[PATCH] Notify observer of breakpoint auto-disabling

Patrick Monnerat patrick@monnerat.net
Sun Aug 15 00:30:02 GMT 2021


On 8/14/21 6:05 AM, Simon Marchi wrote:
> I looked at the change a bit more in depth, in particular at the various
> observers of breakpoint_modified.  One of them is MI, who prints the
> =breakpoint-modified notification.

Good catch !

> if I run a program with a breakpoint with "enable
> count 1 1", the notification I get without your patch is:
>
>    =breakpoint-modified,bkpt={number="1",type="breakpoint",disp="dis",enabled="n",...
>                                                                                ^
> And with the patch:
>
>    =breakpoint-modified,bkpt={number="1",type="breakpoint",disp="dis",enabled="y",
>                                                                                ^

You probably mean the other way round...


Next patch post will contain tests according to your advices.

Many thanks for your hints and your work on this.

Patrick




More information about the Gdb-patches mailing list