From d56874a7f0fdc7be64596b320e3aa0979d25bc31 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Mon, 28 Aug 2006 21:13:31 +0000 Subject: [PATCH] * m32c-tdep.c (m32c_decode_srcdest4): Initialize fields in sd that may not be initialized elsewhere. (m32c_decode_sd23): Likewise. --- gdb/ChangeLog | 6 ++++++ gdb/m32c-tdep.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 635cc7fa38b..f87a3a1db3c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2006-08-28 DJ Delorie + + * m32c-tdep.c (m32c_decode_srcdest4): Initialize fields in sd + that may not be initialized elsewhere. + (m32c_decode_sd23): Likewise. + 2006-08-25 Daniel Jacobowitz * buildsym.c (finish_block): Don't adjust the boundaries of diff --git a/gdb/m32c-tdep.c b/gdb/m32c-tdep.c index 8ea84ac4a72..1fd112602db 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: -- 2.30.2