diff options
author | Doug Evans <dje@google.com> | 2010-08-03 22:35:41 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2010-08-03 22:35:41 +0000 |
commit | bc043ef3f9138891fe0f08235e41f5e35d9682d5 (patch) | |
tree | 0a762491c24ca75fff40b6a195bb2fec4690e9b4 /gdb/breakpoint.c | |
parent | fef830db38dc7b443745fca928d5f05c1f867737 (diff) | |
download | gdb-bc043ef3f9138891fe0f08235e41f5e35d9682d5.zip gdb-bc043ef3f9138891fe0f08235e41f5e35d9682d5.tar.gz gdb-bc043ef3f9138891fe0f08235e41f5e35d9682d5.tar.bz2 |
* breakpoint.c (bpdisp_text): Constify bpdisps.
* solib-svr4.c (solib_break_names): Constify.
(bkpt_names, main_name_list): Constify.
(match_main): Constify soname arg.
(bfd_lookup_symbol): Constify symname arg.
(enable_break): Constify bkpt_namep.
* symtab.c (search_symbols): Constify types, types2, types3, types4.
(symtab_symbol_info): Constify classnames.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 50c4c02..c542fb1 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -262,7 +262,7 @@ bpdisp_text (enum bpdisp disp) { /* NOTE: the following values are a part of MI protocol and represent values of 'disp' field returned when inferior stops at a breakpoint. */ - static char *bpdisps[] = {"del", "dstp", "dis", "keep"}; + static const char * const bpdisps[] = {"del", "dstp", "dis", "keep"}; return bpdisps[(int) disp]; } |