aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 111660f..589aa19 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -2396,7 +2396,7 @@ insert_bp_location (struct bp_location *bl,
int *hw_bp_error_explained_already)
{
int val = 0;
- char *hw_bp_err_string = NULL;
+ const char *hw_bp_err_string = NULL;
struct gdb_exception e;
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)
{
val = 1;
- hw_bp_err_string = (char *) e.message;
+ hw_bp_err_string = e.message;
}
}
else
@@ -2543,7 +2543,7 @@ insert_bp_location (struct bp_location *bl,
if (e.reason < 0)
{
val = 1;
- hw_bp_err_string = (char *) e.message;
+ hw_bp_err_string = e.message;
}
}
else