diff options
author | Yao Qi <yao.qi@linaro.org> | 2017-10-26 09:46:16 +0100 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2017-10-26 09:46:16 +0100 |
commit | accd0bcdfe6914193bba8dec9e6311e608b5c498 (patch) | |
tree | f78f14f07b4aff9effbc4728161dc56473803b62 /gdb/thread.c | |
parent | ca3e4ea52d21c5f48e12c302179daae80e5cd420 (diff) | |
download | gdb-accd0bcdfe6914193bba8dec9e6311e608b5c498.zip gdb-accd0bcdfe6914193bba8dec9e6311e608b5c498.tar.gz gdb-accd0bcdfe6914193bba8dec9e6311e608b5c498.tar.bz2 |
const-fy function parameter struct address_space *aspace
This patch changes the parameter "struct address_space *aspace" to "const
address_space *aspace" in many functions.
gdb:
2017-10-26 Yao Qi <yao.qi@linaro.org>
* breakpoint.c (breakpoint_location_address_match): Change
"struct address_space *" to "const address_space".
(breakpoint_location_address_range_overlap): Likewise.
(breakpoint_here_p): Likewise.
(breakpoint_in_range_p): Likewise.
(moribund_breakpoint_here_p): Likewise.
(bp_location_inserted_here_p): Likewise.
(software_breakpoint_inserted_here_p): Likewise.
(hardware_breakpoint_inserted_here_p): Likewise.
(hardware_watchpoint_inserted_in_range): Likewise.
(bpstat_check_location): Likewise.
(bpstat_stop_status): Likewise.
(breakpoint_address_match): Likewise.
(breakpoint_address_match_range): Likewise.
(breakpoint_location_address_match): Likewise.
(breakpoint_location_address_range_overlap): Likewise.
(insert_single_step_breakpoint): Likewise.
(breakpoint_has_location_inserted_here): Likewise.
(single_step_breakpoint_inserted_here_p): Likewise.
(pc_at_non_inline_function): Likewise.
* breakpoint.h (bpstat_stop_status): Update declaration.
(breakpoint_here_p): Likewise.
(breakpoint_in_range_p): Likewise.
(moribund_breakpoint_here_p): Likewise.
(breakpoint_inserted_here_p): Likewise.
(software_breakpoint_inserted_here_p): Likewise.
(hardware_breakpoint_inserted_here_p): Likewise.
(breakpoint_has_location_inserted_here): Likewise.
(single_step_breakpoint_inserted_here_p): Likewise.
(hardware_watchpoint_inserted_in_range): Likewise.
(breakpoint_address_match): Likewise.
(insert_single_step_breakpoint): Likewise.
(pc_at_non_inline_function): Likewise.
* gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
* record.c (record_check_stopped_by_breakpoint): Likewise.
* record.h (record_check_stopped_by_breakpoint): Likewise.
* thread.c (thread_has_single_step_breakpoint_here): Likewise.
Diffstat (limited to 'gdb/thread.c')
-rw-r--r-- | gdb/thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/thread.c b/gdb/thread.c index df04b4e..f614097 100644 --- a/gdb/thread.c +++ b/gdb/thread.c @@ -156,7 +156,7 @@ thread_has_single_step_breakpoints_set (struct thread_info *tp) int thread_has_single_step_breakpoint_here (struct thread_info *tp, - struct address_space *aspace, + const address_space *aspace, CORE_ADDR addr) { struct breakpoint *ss_bps = tp->control.single_step_breakpoints; |