diff options
author | Jan Vrany <jan.vrany@fit.cvut.cz> | 2018-05-31 09:56:33 +0100 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2018-07-25 13:47:16 -0400 |
commit | d7154a8d08b142d1258dc2e4189ff0d00cd26493 (patch) | |
tree | 3f73271165988b209d5045d12583d9dd8711f81d /gdb/breakpoint.c | |
parent | a45389f60d4372bdb3484e432935f3169037d88c (diff) | |
download | gdb-d7154a8d08b142d1258dc2e4189ff0d00cd26493.zip gdb-d7154a8d08b142d1258dc2e4189ff0d00cd26493.tar.gz gdb-d7154a8d08b142d1258dc2e4189ff0d00cd26493.tar.bz2 |
Notify about breakpoint modification when enabling/disabling single location
When a single breakpoint location enableness was modified by a CLI
command, observers were not notified about it. This issue is now fixed.
gdb/ChangeLog:
* breakpoint.c (enable_disable_bp_num_loc): Notify observers.
gdb/testsuite/ChangeLog:
* gdb.mi/mi-breakpoint-location-ena-dis.cc: New file.
* gdb.mi/mi-breakpoint-location-ena-dis.exp: New file.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 9e04c7e..6b6e1f6 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -14220,6 +14220,8 @@ enable_disable_bp_num_loc (int bp_num, int loc_num, bool enable) target_disable_tracepoint (loc); } update_global_location_list (UGLL_DONT_INSERT); + + gdb::observers::breakpoint_modified.notify (loc->owner); } /* Enable or disable a range of breakpoint locations. BP_NUM is the |