diff options
author | Doug Evans <dje@google.com> | 2009-01-15 22:07:20 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2009-01-15 22:07:20 +0000 |
commit | 5436304513349c5447b61f8b5ed6c38d77c5f0d9 (patch) | |
tree | 23b32c6ae038923f720173289f7804d7386b1c30 /gdb/target.h | |
parent | 99e9a495d54f59d91ec80973182c8832509274ee (diff) | |
download | gdb-5436304513349c5447b61f8b5ed6c38d77c5f0d9.zip gdb-5436304513349c5447b61f8b5ed6c38d77c5f0d9.tar.gz gdb-5436304513349c5447b61f8b5ed6c38d77c5f0d9.tar.bz2 |
* target.h (target_signal_to_string): Make return type const char *.
(target_signal_to_name): Ditto.
(target_signal_from_name): Make arg const char *.
* thread-db.c (thread_db_err_str): Make return type const char *.
* utils.c (perror_with_name): Make arg const char *.
* infrun.c (sig_print_info): Update.
* signals/signals.c (signals): Make array and struct members const.
(target_signal_to_string): Make return type const char *.
(target_signal_to_name): Ditto.
(target_signal_from_name): Make arg const char *.
* gdbserver/gdbreplay.c (perror_with_name): Make arg const char *.
* gdbserver/server.h (target_signal_to_name): Make return type
const char *.
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 caf6384..188c9a4 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -174,13 +174,13 @@ enum inferior_event_type }; /* Return the string for a signal. */ -extern char *target_signal_to_string (enum target_signal); +extern const char *target_signal_to_string (enum target_signal); /* Return the name (SIGHUP, etc.) for a signal. */ -extern char *target_signal_to_name (enum target_signal); +extern const char *target_signal_to_name (enum target_signal); /* Given a name (SIGHUP, etc.), return its signal. */ -enum target_signal target_signal_from_name (char *); +enum target_signal target_signal_from_name (const char *); /* Target objects which can be transfered using target_read, target_write, et cetera. */ |