diff options
author | Tom Tromey <tom@tromey.com> | 2017-09-12 18:32:41 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-09-27 08:44:45 -0600 |
commit | f2fc30156cb71a3e616186f09f0ffa0da26780fa (patch) | |
tree | ac4a2b19d0908061811c06a66defa9158a6e47e7 /gdb/breakpoint.h | |
parent | 8c2f95f4346a4ed6593b1e0cb60d1839176e42c2 (diff) | |
download | gdb-f2fc30156cb71a3e616186f09f0ffa0da26780fa.zip gdb-f2fc30156cb71a3e616186f09f0ffa0da26780fa.tar.gz gdb-f2fc30156cb71a3e616186f09f0ffa0da26780fa.tar.bz2 |
Constify some linespec functions
This changes a few linespec functions to work on "const char *" and
then fixes up all the callers. This allows further constification
elsewhere.
gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>
* tracepoint.c (info_scope_command): Constify.
* python/python.c (gdbpy_decode_line): Constify.
* python/py-breakpoint.c (bppy_init): Constify.
* mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
* location.h: (new_linespec_location)
(string_to_event_location_basic, string_to_event_location):
Constify.
* location.c (new_linespec_location)
(string_to_event_location_basic, string_to_event_location):
Constify.
* linespec.h (decode_line_with_current_source)
(decode_line_with_last_displayed, linespec_lex_to_end): Constify.
* linespec.c (linespec_lex_to_end)
(decode_line_with_current_source)
(decode_line_with_last_displayed): Constify.
* guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
Constify.
* cli/cli-cmds.c (edit_command, list_command): Constify.
* breakpoint.h (until_break_command, watch_command_wrapper)
(awatch_command_wrapper, rwatch_command_wrapper)
(init_ada_exception_breakpoint): Constify.
* breakpoint.c (break_command_1, dprintf_command)
(break_range_command, watch_command_wrapper)
(rwatch_command_wrapper, awatch_command_wrapper)
(until_break_command, init_ada_exception_breakpoint)
(strace_marker_create_sals_from_location, trace_command)
(ftrace_command, strace_command, struct tracepoint): Constify.
* ax-gdb.c (agent_command_1): Constify.
* ada-lang.c (ada_exception_sal): Constify.
Diffstat (limited to 'gdb/breakpoint.h')
-rw-r--r-- | gdb/breakpoint.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h index 6afe4cc..154ff3a 100644 --- a/gdb/breakpoint.h +++ b/gdb/breakpoint.h @@ -1206,7 +1206,7 @@ extern int breakpoint_address_match (struct address_space *aspace1, struct address_space *aspace2, CORE_ADDR addr2); -extern void until_break_command (char *, int, int); +extern void until_break_command (const char *, int, int); /* Initialize a struct bp_location. */ @@ -1255,9 +1255,9 @@ extern void break_command (char *, int); extern void hbreak_command_wrapper (char *, int); extern void thbreak_command_wrapper (char *, int); extern void rbreak_command_wrapper (char *, int); -extern void watch_command_wrapper (char *, int, int); -extern void awatch_command_wrapper (char *, int, int); -extern void rwatch_command_wrapper (char *, int, int); +extern void watch_command_wrapper (const char *, int, int); +extern void awatch_command_wrapper (const char *, int, int); +extern void rwatch_command_wrapper (const char *, int, int); extern void tbreak_command (char *, int); extern struct breakpoint_ops base_breakpoint_ops; @@ -1288,7 +1288,7 @@ extern void init_ada_exception_breakpoint (struct breakpoint *b, struct gdbarch *gdbarch, struct symtab_and_line sal, - char *addr_string, + const char *addr_string, const struct breakpoint_ops *ops, int tempflag, int enabled, |