diff options
author | Tom Tromey <tromey@redhat.com> | 2014-07-21 20:57:15 -0600 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-07-24 11:30:04 -0600 |
commit | e9e7f7240542809f82286e4043ca05409dc761a9 (patch) | |
tree | 14b3711ab0ae54b53c6890eab0eefe4290145a67 /gdb/target.h | |
parent | 1947513d924efec8b839718cda515ecfc21dd293 (diff) | |
download | gdb-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/target.h')
-rw-r--r-- | gdb/target.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/target.h b/gdb/target.h index e4aade7..bcf97d9 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -394,9 +394,9 @@ typedef void async_callback_ftype (enum inferior_event_type event_type, struct target_ops { struct target_ops *beneath; /* To the target under this one. */ - char *to_shortname; /* Name this target type */ - char *to_longname; /* Name for printing */ - char *to_doc; /* Documentation. Does not include trailing + const char *to_shortname; /* Name this target type */ + const char *to_longname; /* Name for printing */ + const char *to_doc; /* Documentation. Does not include trailing newline, and starts with a one-line descrip- tion (probably similar to to_longname). */ /* Per-target scratch pad. */ |