diff options
author | Christian Biesinger <cbiesinger@google.com> | 2019-10-07 17:38:51 -0500 |
---|---|---|
committer | Christian Biesinger <cbiesinger@google.com> | 2019-10-15 15:30:00 +0200 |
commit | 81e6b8eb208c427028d919afb2b5cabbc355fc88 (patch) | |
tree | 20cbd7f0f060297fe1e21538704f5a733968fb47 /gdb/breakpoint.c | |
parent | 95da600f404ca159242f49441d9b4ea78183852b (diff) | |
download | gdb-81e6b8eb208c427028d919afb2b5cabbc355fc88.zip gdb-81e6b8eb208c427028d919afb2b5cabbc355fc88.tar.gz gdb-81e6b8eb208c427028d919afb2b5cabbc355fc88.tar.bz2 |
Make tui-winsource not use breakpoint_chain
That's an internal variable of breakpoint.c. Insted, use
iterate_over_breakpoints to update the breakpoint list.
gdb/ChangeLog:
2019-10-15 Christian Biesinger <cbiesinger@google.com>
* breakpoint.c (breakpoint_chain): Make static.
* tui/tui-winsource.c: Call iterate_over_breakpoints instead
of accessing breakpoint_chain.
Change-Id: Ic259b2c3a4c1f5a47f34cfd7fccbdcf274417429
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 9bbb28f..2fd2438 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -517,7 +517,7 @@ bool target_exact_watchpoints = false; /* Chains of all breakpoints defined. */ -struct breakpoint *breakpoint_chain; +static struct breakpoint *breakpoint_chain; /* Array is sorted by bp_locations_compare - primarily by the ADDRESS. */ |