diff options
author | Pedro Alves <palves@redhat.com> | 2015-03-09 11:58:21 +0000 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2015-03-20 17:39:24 +0000 |
commit | 7a26bd4d83e5549137943de5f2c7b1ae90821093 (patch) | |
tree | 594c0b42ac34ce56f9d2719442d09dde27f66d67 /gdb | |
parent | cd46431bbd2f1dd90fbedee9a3bdbff705238c1b (diff) | |
download | gdb-7a26bd4d83e5549137943de5f2c7b1ae90821093.zip gdb-7a26bd4d83e5549137943de5f2c7b1ae90821093.tar.gz gdb-7a26bd4d83e5549137943de5f2c7b1ae90821093.tar.bz2 |
constify set_breakpoint_condition
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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/breakpoint.c | 2 | ||||
-rw-r--r-- | gdb/breakpoint.h | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f0abc87..04cd47d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 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. 2015-03-20 Pedro Alves <palves@redhat.com> diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 0c000f2..13c8949 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 b85939a..562a6b6 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. |