From: Pedro Alves Date: Mon, 9 Mar 2015 11:58:21 +0000 (+0000) Subject: constify set_breakpoint_condition X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7a26bd4d83e5549137943de5f2c7b1ae90821093;p=binutils-gdb.git constify set_breakpoint_condition gdb: 2015-03-20 Pedro Alves * breakpoint.c (set_breakpoint_condition): Make argument "exp" const. * breakpoint.h (set_breakpoint_condition): Update declaration. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f0abc8706f4..04cd47d43cd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2015-03-20 Pedro Alves + + * breakpoint.c (set_breakpoint_condition): Make argument "exp" const. + * breakpoint.h (set_breakpoint_condition): Update declaration. + 2015-03-20 Pedro Alves * tui/tui-io.c (tui_expand_tabs): Make "s1" const. diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 0c000f2100b..13c8949ac79 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -957,7 +957,7 @@ get_first_locp_gte_addr (CORE_ADDR address) } void -set_breakpoint_condition (struct breakpoint *b, char *exp, +set_breakpoint_condition (struct breakpoint *b, const char *exp, int from_tty) { xfree (b->cond_string); diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h index b85939aaf07..562a6b6a249 100644 --- a/gdb/breakpoint.h +++ b/gdb/breakpoint.h @@ -1525,7 +1525,7 @@ extern int breakpoints_should_be_inserted_now (void); extern void breakpoint_retire_moribund (void); /* Set break condition of breakpoint B to EXP. */ -extern void set_breakpoint_condition (struct breakpoint *b, char *exp, +extern void set_breakpoint_condition (struct breakpoint *b, const char *exp, int from_tty); /* Checks if we are catching syscalls or not.