aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.h
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2007-11-15 06:52:53 +0000
committerVladimir Prus <vladimir@codesourcery.com>2007-11-15 06:52:53 +0000
commit89f9893c7dbd5edc97f85687fad12ef41876e4a5 (patch)
treeada0641cdb6c563aa0c78e4569d69294fd95632c /gdb/breakpoint.h
parent55a3f01f6faa821319d9f8842117988adb1494ea (diff)
downloadgdb-89f9893c7dbd5edc97f85687fad12ef41876e4a5.zip
gdb-89f9893c7dbd5edc97f85687fad12ef41876e4a5.tar.gz
gdb-89f9893c7dbd5edc97f85687fad12ef41876e4a5.tar.bz2
Apply const qualifier to some users of bp_location.
* breakpoint.h (struct bpstats): Make the breakpoint_at field point at const bp_location. * breakpoint.c (bpstat_alloc): Accept const bp_location. (breakpoint_here_p, breakpoint_inserted_here_p) (software_breakpoint_inserted_here_p) (breakpoint_thread_match, bpstat_stop_status) (read_memory_nobpt, bpstat_have_active_hw_watchpoints): Use const bp_location for iteration. (print_it_typical, print_bp_stop_message): Use const bp_location variable.
Diffstat (limited to 'gdb/breakpoint.h')
-rw-r--r--gdb/breakpoint.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index 7919d3f..f13d41b 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -642,7 +642,7 @@ struct bpstats
place, and a bpstat reflects the fact that both have been hit. */
bpstat next;
/* Breakpoint that we are at. */
- struct bp_location *breakpoint_at;
+ const struct bp_location *breakpoint_at;
/* Commands left to be done. */
struct command_line *commands;
/* Old value associated with a watchpoint. */