diff options
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/gdbserver/gdbreplay.c | 2 | ||||
-rw-r--r-- | gdb/gdbserver/server.h | 4 | ||||
-rw-r--r-- | gdb/gdbserver/thread-db.c | 2 | ||||
-rw-r--r-- | gdb/gdbserver/utils.c | 2 |
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; |