diff options
author | Pedro Alves <palves@redhat.com> | 2013-12-12 10:44:42 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2013-12-12 10:44:42 +0000 |
commit | b15e5c540f4b90dbec13bcd5cbac90f9224aef4b (patch) | |
tree | fd53be02c37ccfce2bb8f45da906d76f3bc2c7e4 /gdb | |
parent | f23981e9917c0322223aaa8941bd1ca13d1dcc58 (diff) | |
download | gdb-b15e5c540f4b90dbec13bcd5cbac90f9224aef4b.zip gdb-b15e5c540f4b90dbec13bcd5cbac90f9224aef4b.tar.gz gdb-b15e5c540f4b90dbec13bcd5cbac90f9224aef4b.tar.bz2 |
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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/breakpoint.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 637a462..c49895b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 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> + * cli/cli-cmds.c (source_script_from_stream) Use have_python instead of catching UNSUPPORTED_ERROR. * exceptions.h (UNSUPPORTED_ERROR): Delete. 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 |