aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-03-05 20:58:14 +0000
committerMark Kettenis <kettenis@gnu.org>2005-03-05 20:58:14 +0000
commite219d7ceb61e05f526b8f523e10d78731fae34e2 (patch)
treefd8d5028ded2e748aa1b5ee2fe0f7d37b9368c44
parent0d6e4ad74ba863a72dcf63db2120a1565bd61ed2 (diff)
downloadgdb-e219d7ceb61e05f526b8f523e10d78731fae34e2.zip
gdb-e219d7ceb61e05f526b8f523e10d78731fae34e2.tar.gz
gdb-e219d7ceb61e05f526b8f523e10d78731fae34e2.tar.bz2
* sparc64-tdep.c (sparc64_store_floating_fields): Constify third
argument. (sparc64_store_arguments): Constify.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/sparc64-tdep.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 21bc6b7..f68cc6d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2005-03-05 Mark Kettenis <kettenis@janacek.sibelius.xs4all.nl>
+
+ * sparc64-tdep.c (sparc64_store_floating_fields): Constify third
+ argument.
+ (sparc64_store_arguments): Constify.
+
2005-03-05 Mark Kettenis <kettenis@gnu.org>
* alphabsd-nat.c: Update copyright year. Include "inf-ptrace.h".
diff --git a/gdb/sparc64-tdep.c b/gdb/sparc64-tdep.c
index 079022d..fbef9a9 100644
--- a/gdb/sparc64-tdep.c
+++ b/gdb/sparc64-tdep.c
@@ -615,7 +615,7 @@ sparc64_16_byte_align_p (struct type *type)
static void
sparc64_store_floating_fields (struct regcache *regcache, struct type *type,
- char *valbuf, int element, int bitpos)
+ const char *valbuf, int element, int bitpos)
{
gdb_assert (element < 16);
@@ -853,7 +853,7 @@ sparc64_store_arguments (struct regcache *regcache, int nargs,
for (i = 0; i < nargs; i++)
{
- char *valbuf = value_contents (args[i]);
+ const char *valbuf = value_contents (args[i]);
struct type *type = value_type (args[i]);
int len = TYPE_LENGTH (type);
int regnum = -1;