aboutsummaryrefslogtreecommitdiff
path: root/gdb/sparc64-tdep.c
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 /gdb/sparc64-tdep.c
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.
Diffstat (limited to 'gdb/sparc64-tdep.c')
-rw-r--r--gdb/sparc64-tdep.c4
1 files changed, 2 insertions, 2 deletions
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;