diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-05-27 14:58:37 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-05-27 14:58:37 -0400 |
commit | 48d7020b7fe5a7541490bab90e1a643216102482 (patch) | |
tree | 0b469080c1e54d845e11fe072dc27efdc3817c47 /gdb/source.c | |
parent | 5d51cd5d14d12056585cf7525cd82af521e45894 (diff) | |
download | gdb-48d7020b7fe5a7541490bab90e1a643216102482.zip gdb-48d7020b7fe5a7541490bab90e1a643216102482.tar.gz gdb-48d7020b7fe5a7541490bab90e1a643216102482.tar.bz2 |
gdb: add all_bp_locations function
Add the all_bp_locations function to replace the ALL_BP_LOCATIONS macro.
For simplicity, all_bp_locations simply returns a const reference to the
bp_locations vector. But the callers just treat it as a range to
iterate on, so if we ever change the breakpoint location storage, we can
change the all_bp_locations function to return some other range type,
and the callers won't need to be changed.
gdb/ChangeLog:
* breakpoint.c (ALL_BP_LOCATIONS): Remove, update users to use
all_bp_locations.
(all_bp_locations): New.
Change-Id: Iae71a1ba135c1a5bcdb4658bf3cf9793f0e9f81c
Diffstat (limited to 'gdb/source.c')
0 files changed, 0 insertions, 0 deletions