aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2009-01-15 22:07:20 +0000
committerDoug Evans <dje@google.com>2009-01-15 22:07:20 +0000
commit5436304513349c5447b61f8b5ed6c38d77c5f0d9 (patch)
tree23b32c6ae038923f720173289f7804d7386b1c30 /gdb/gdbserver
parent99e9a495d54f59d91ec80973182c8832509274ee (diff)
downloadgdb-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/gdbserver')
-rw-r--r--gdb/gdbserver/ChangeLog6
-rw-r--r--gdb/gdbserver/gdbreplay.c2
-rw-r--r--gdb/gdbserver/server.h4
-rw-r--r--gdb/gdbserver/thread-db.c2
-rw-r--r--gdb/gdbserver/utils.c2
5 files changed, 11 insertions, 5 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 53030d9..0f73cae 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,9 @@
+2009-01-15 Doug Evans <dje@google.com>
+
+ * gdbserver/gdbreplay.c (perror_with_name): Make arg const char *.
+ * gdbserver/server.h (target_signal_to_name): Make return type
+ const char *.
+
2009-01-14 Pedro Alves <pedro@codesourcery.com>
* win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
diff --git a/gdb/gdbserver/gdbreplay.c b/gdb/gdbserver/gdbreplay.c
index aec45a5..99072b5 100644
--- a/gdb/gdbserver/gdbreplay.c
+++ b/gdb/gdbserver/gdbreplay.c
@@ -131,7 +131,7 @@ strerror (DWORD error)
Then return to command level. */
static void
-perror_with_name (char *string)
+perror_with_name (const char *string)
{
#ifndef STDC_HEADERS
extern int errno;
diff --git a/gdb/gdbserver/server.h b/gdb/gdbserver/server.h
index 6290161..5b02dbe 100644
--- a/gdb/gdbserver/server.h
+++ b/gdb/gdbserver/server.h
@@ -269,14 +269,14 @@ void buffer_xml_printf (struct buffer *buffer, const char *format, ...)
enum target_signal target_signal_from_host (int hostsig);
int target_signal_to_host_p (enum target_signal oursig);
int target_signal_to_host (enum target_signal oursig);
-char *target_signal_to_name (enum target_signal);
+const char *target_signal_to_name (enum target_signal);
/* Functions from utils.c */
void *xmalloc (size_t) ATTR_MALLOC;
void *xcalloc (size_t, size_t) ATTR_MALLOC;
char *xstrdup (const char *) ATTR_MALLOC;
-void perror_with_name (char *string);
+void perror_with_name (const char *string);
void error (const char *string,...) ATTR_NORETURN ATTR_FORMAT (printf, 1, 2);
void fatal (const char *string,...) ATTR_NORETURN ATTR_FORMAT (printf, 1, 2);
void warning (const char *string,...) ATTR_FORMAT (printf, 1, 2);
diff --git a/gdb/gdbserver/thread-db.c b/gdb/gdbserver/thread-db.c
index 659b9bf..e36b0fb 100644
--- a/gdb/gdbserver/thread-db.c
+++ b/gdb/gdbserver/thread-db.c
@@ -45,7 +45,7 @@ static td_thragent_t *thread_agent;
static int find_one_thread (int);
static int find_new_threads_callback (const td_thrhandle_t *th_p, void *data);
-static char *
+static const char *
thread_db_err_str (td_err_e err)
{
static char buf[64];
diff --git a/gdb/gdbserver/utils.c b/gdb/gdbserver/utils.c
index 174afd0..7d309dd 100644
--- a/gdb/gdbserver/utils.c
+++ b/gdb/gdbserver/utils.c
@@ -92,7 +92,7 @@ xstrdup (const char *s)
Then return to command level. */
void
-perror_with_name (char *string)
+perror_with_name (const char *string)
{
const char *err;
char *combined;