aboutsummaryrefslogtreecommitdiff
path: root/gdb/monitor.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2014-07-21 20:57:15 -0600
committerTom Tromey <tromey@redhat.com>2014-07-24 11:30:04 -0600
commite9e7f7240542809f82286e4043ca05409dc761a9 (patch)
tree14b3711ab0ae54b53c6890eab0eefe4290145a67 /gdb/monitor.c
parent1947513d924efec8b839718cda515ecfc21dd293 (diff)
downloadgdb-e9e7f7240542809f82286e4043ca05409dc761a9.zip
gdb-e9e7f7240542809f82286e4043ca05409dc761a9.tar.gz
gdb-e9e7f7240542809f82286e4043ca05409dc761a9.tar.bz2
constify target fields
This constifies the target_ops fields to_shortname, to_longname, and to_doc. 2014-07-24 Tom Tromey <tromey@redhat.com> * monitor.c (compile_pattern): Update. * target.h (struct target_ops) <to_shortname, to_longname, to_doc>: Now const.
Diffstat (limited to 'gdb/monitor.c')
-rw-r--r--gdb/monitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/monitor.c b/gdb/monitor.c
index 788bca0..6767197 100644
--- a/gdb/monitor.c
+++ b/gdb/monitor.c
@@ -715,7 +715,7 @@ compile_pattern (char *pattern, struct re_pattern_buffer *compiled_pattern,
void
monitor_open (const char *args, struct monitor_ops *mon_ops, int from_tty)
{
- char *name;
+ const char *name;
char **p;
struct inferior *inf;