diff options
author | DJ Delorie <dj@redhat.com> | 2006-08-28 21:13:31 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2006-08-28 21:13:31 +0000 |
commit | d56874a7f0fdc7be64596b320e3aa0979d25bc31 (patch) | |
tree | e549b301b27bd676b09730c906aa7dca96127573 /gdb | |
parent | 40cf2291a7723a4ffa2db698bcfc2c059427501b (diff) | |
download | gdb-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')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/m32c-tdep.c | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 635cc7f..f87a3a1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2006-08-28 DJ Delorie <dj@redhat.com> + + * 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 <dan@codesourcery.com> * buildsym.c (finish_block): Don't adjust the boundaries of 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: |