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.
This commit is contained in:
Pedro Alves 2015-03-09 11:58:21 +00:00 committed by Yao Qi
parent cd46431bbd
commit 7a26bd4d83
3 changed files with 7 additions and 2 deletions

View 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.

View 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);

View 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.