aboutsummaryrefslogtreecommitdiff
path: root/gdb/m32c-tdep.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2006-08-28 21:13:31 +0000
committerDJ Delorie <dj@redhat.com>2006-08-28 21:13:31 +0000
commitd56874a7f0fdc7be64596b320e3aa0979d25bc31 (patch)
treee549b301b27bd676b09730c906aa7dca96127573 /gdb/m32c-tdep.c
parent40cf2291a7723a4ffa2db698bcfc2c059427501b (diff)
downloadgdb-d56874a7f0fdc7be64596b320e3aa0979d25bc31.zip
gdb-d56874a7f0fdc7be64596b320e3aa0979d25bc31.tar.gz
gdb-d56874a7f0fdc7be64596b320e3aa0979d25bc31.tar.bz2
* m32c-tdep.c (m32c_decode_srcdest4): Initialize fields in sd
that may not be initialized elsewhere. (m32c_decode_sd23): Likewise.
Diffstat (limited to 'gdb/m32c-tdep.c')
-rw-r--r--gdb/m32c-tdep.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/m32c-tdep.c b/gdb/m32c-tdep.c
index 8ea84ac..1fd1126 100644
--- a/gdb/m32c-tdep.c
+++ b/gdb/m32c-tdep.c
@@ -1196,6 +1196,9 @@ m32c_decode_srcdest4 (struct m32c_pv_state *st,
else
sd.kind = srcdest_mem;
+ sd.addr = pv_unknown ();
+ sd.reg = 0;
+
switch (code)
{
case 0x0: sd.reg = (size == 1 ? &st->r0 : &st->r0); break;
@@ -1232,6 +1235,9 @@ m32c_decode_sd23 (struct m32c_pv_state *st, int code, int size, int ind)
{
struct srcdest sd;
+ sd.addr = pv_unknown ();
+ sd.reg = 0;
+
switch (code)
{
case 0x12: