mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 22:48:57 +08:00
breakpoint.c:insert_bp_location: Constify local.
gdb/ 2013-12-12 Pedro Alves <palves@redhat.com> * breakpoint.c (insert_bp_location): Make 'hw_bp_err_string' local const, and remove casts.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2013-12-12 Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
|
* breakpoint.c (insert_bp_location): Make 'hw_bp_err_string' local
|
||||||
|
const, and remove casts.
|
||||||
|
|
||||||
2013-12-12 Pedro Alves <palves@redhat.com>
|
2013-12-12 Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
* cli/cli-cmds.c (source_script_from_stream) Use have_python
|
* cli/cli-cmds.c (source_script_from_stream) Use have_python
|
||||||
|
@ -2396,7 +2396,7 @@ insert_bp_location (struct bp_location *bl,
|
|||||||
int *hw_bp_error_explained_already)
|
int *hw_bp_error_explained_already)
|
||||||
{
|
{
|
||||||
int val = 0;
|
int val = 0;
|
||||||
char *hw_bp_err_string = NULL;
|
const char *hw_bp_err_string = NULL;
|
||||||
struct gdb_exception e;
|
struct gdb_exception e;
|
||||||
|
|
||||||
if (!should_be_inserted (bl) || (bl->inserted && !bl->needs_update))
|
if (!should_be_inserted (bl) || (bl->inserted && !bl->needs_update))
|
||||||
@ -2501,7 +2501,7 @@ insert_bp_location (struct bp_location *bl,
|
|||||||
if (e.reason < 0)
|
if (e.reason < 0)
|
||||||
{
|
{
|
||||||
val = 1;
|
val = 1;
|
||||||
hw_bp_err_string = (char *) e.message;
|
hw_bp_err_string = e.message;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -2543,7 +2543,7 @@ insert_bp_location (struct bp_location *bl,
|
|||||||
if (e.reason < 0)
|
if (e.reason < 0)
|
||||||
{
|
{
|
||||||
val = 1;
|
val = 1;
|
||||||
hw_bp_err_string = (char *) e.message;
|
hw_bp_err_string = e.message;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user