aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2009-03-13 02:34:13 +0000
committerJoel Brobecker <brobecker@gnat.com>2009-03-13 02:34:13 +0000
commit24f818742e35c6c9de0d16b4acd4fe3083676044 (patch)
tree323a340adbb53b36190dcbdbc1954d756591fb11 /gdb
parente15780428b484657ac30649fc48c1a48f13b4f34 (diff)
downloadgdb-24f818742e35c6c9de0d16b4acd4fe3083676044.zip
gdb-24f818742e35c6c9de0d16b4acd4fe3083676044.tar.gz
gdb-24f818742e35c6c9de0d16b4acd4fe3083676044.tar.bz2
* source.c (source_full_path_of): Constify parameter filename.
* defs.h (source_full_path_of): Update declaration accordingly.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/defs.h2
-rw-r--r--gdb/source.c2
3 files changed, 9 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 97f1396..c699359 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2009-02-17 Joel Brobecker <brobecker@adacore.com>
+
+ The following patch helps getting rid of a warning inside solib-som.c.
+
+ * source.c (source_full_path_of): Constify parameter filename.
+ * defs.h (source_full_path_of): Update declaration accordingly.
+
2009-03-12 Joel Brobecker <brobecker@adacore.com>
* ada-lang.c (ada_evaluate_subexp): Merge case BINOP_REM and
diff --git a/gdb/defs.h b/gdb/defs.h
index 845b320..001db81 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -613,7 +613,7 @@ extern void print_address (CORE_ADDR, struct ui_file *);
extern int openp (const char *, int, const char *, int, int, char **);
-extern int source_full_path_of (char *, char **);
+extern int source_full_path_of (const char *, char **);
extern void mod_path (char *, char **);
diff --git a/gdb/source.c b/gdb/source.c
index d1562ea..43df92f 100644
--- a/gdb/source.c
+++ b/gdb/source.c
@@ -822,7 +822,7 @@ done:
Else, this functions returns 0, and FULL_PATHNAME is set to NULL. */
int
-source_full_path_of (char *filename, char **full_pathname)
+source_full_path_of (const char *filename, char **full_pathname)
{
int fd;