aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-05-27 18:45:45 +0000
committerTom Tromey <tromey@redhat.com>2010-05-27 18:45:45 +0000
commitf42a0a33695083a8ae1c94ec868165e03a7dba34 (patch)
treec94c9eb2bd6f2fdeaf140b1136fd1f57b7f80f47 /gdb
parent12b795ad7be24ea01319ea6141bb77871094dc69 (diff)
downloadgdb-f42a0a33695083a8ae1c94ec868165e03a7dba34.zip
gdb-f42a0a33695083a8ae1c94ec868165e03a7dba34.tar.gz
gdb-f42a0a33695083a8ae1c94ec868165e03a7dba34.tar.bz2
* alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
const. Use value_contents, not value_contents_writeable.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/alpha-tdep.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f749c08..85dd680 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2010-05-27 Tom Tromey <tromey@redhat.com>
+
+ * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
+ const. Use value_contents, not value_contents_writeable.
+
2010-05-27 Joel Brobecker <brobecker@adacore.com>
* ada-lang.c (ensure_lval): Replace call to value_contents_raw
diff --git a/gdb/alpha-tdep.c b/gdb/alpha-tdep.c
index 8c93777..b470470 100644
--- a/gdb/alpha-tdep.c
+++ b/gdb/alpha-tdep.c
@@ -295,7 +295,7 @@ alpha_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
int accumulate_size = struct_return ? 8 : 0;
struct alpha_arg
{
- gdb_byte *contents;
+ const gdb_byte *contents;
int len;
int offset;
};
@@ -393,7 +393,7 @@ alpha_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
m_arg->len = TYPE_LENGTH (arg_type);
m_arg->offset = accumulate_size;
accumulate_size = (accumulate_size + m_arg->len + 7) & ~7;
- m_arg->contents = value_contents_writeable (arg);
+ m_arg->contents = value_contents (arg);
}
/* Determine required argument register loads, loading an argument register
@@ -415,7 +415,7 @@ alpha_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
/* `Push' arguments on the stack. */
for (i = nargs; m_arg--, --i >= 0;)
{
- gdb_byte *contents = m_arg->contents;
+ const gdb_byte *contents = m_arg->contents;
int offset = m_arg->offset;
int len = m_arg->len;