constify set_breakpoint_condition
authorPedro Alves <palves@redhat.com>
Mon, 9 Mar 2015 11:58:21 +0000 (11:58 +0000)
committerYao Qi <yao.qi@linaro.org>
Fri, 20 Mar 2015 17:39:24 +0000 (17:39 +0000)
gdb:

2015-03-20  Pedro Alves  <palves@redhat.com>

* breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
* breakpoint.h (set_breakpoint_condition): Update declaration.

gdb/ChangeLog
gdb/breakpoint.c
gdb/breakpoint.h

index f0abc8706f43a45e746e26c705f74316607ee229..04cd47d43cdbb9c60f4b05632cee503ba8144e35 100644 (file)
@@ -1,3 +1,8 @@
+2015-03-20  Pedro Alves  <palves@redhat.com>
+
+       * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
+       * breakpoint.h (set_breakpoint_condition): Update declaration.
+
 2015-03-20  Pedro Alves  <palves@redhat.com>
 
        * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
index 0c000f2100b1de98cdc3cc1c914cd431bb107ee2..13c8949ac79d68531783e6b21f9011b8df37250d 100644 (file)
@@ -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);
index b85939aaf07ffd282881f0097ca63f81d89e14cb..562a6b6a249ddba666595bbdd6a107a527485703 100644 (file)
@@ -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.