diff options
author | Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com> | 2005-11-09 07:09:05 +0000 |
---|---|---|
committer | Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com> | 2005-11-09 07:09:05 +0000 |
commit | 492e5c6b71f453352692d73a3def0229a00a9957 (patch) | |
tree | 25850e277ad9665b22b04e2f8bbab482ad0f849b /gdb/remote-m32r-sdi.c | |
parent | 9d6f42e94678fe8af53db5892ec743a8eee39f6b (diff) | |
download | gdb-492e5c6b71f453352692d73a3def0229a00a9957.zip gdb-492e5c6b71f453352692d73a3def0229a00a9957.tar.gz gdb-492e5c6b71f453352692d73a3def0229a00a9957.tar.bz2 |
2005-11-08 Kei Sakamoto <sakamoto.kei@renesas.com>
* remote-m32r-sdi.c: Update copyright years.
(m32r_resume): Write DBT at word-aligned addresses.
(m32r_wait): Use SDI_WRITE_MEMORY to remove DBT.
Diffstat (limited to 'gdb/remote-m32r-sdi.c')
-rw-r--r-- | gdb/remote-m32r-sdi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/remote-m32r-sdi.c b/gdb/remote-m32r-sdi.c index 3019aac..41644d0 100644 --- a/gdb/remote-m32r-sdi.c +++ b/gdb/remote-m32r-sdi.c @@ -1,6 +1,6 @@ /* Remote debugging interface for M32R/SDI. - Copyright 2003, 2004 Free Software Foundation, Inc. + Copyright 2003, 2004, 2005 Free Software Foundation, Inc. Contributed by Renesas Technology Co. Written by Kei Sakamoto <sakamoto.kei@renesas.com>. @@ -534,7 +534,7 @@ m32r_resume (ptid_t ptid, int step, enum target_signal sig) /* Write DBT instruction. */ buf[0] = SDI_WRITE_MEMORY; - store_long_parameter (buf + 1, bp_addr); + store_long_parameter (buf + 1, (bp_addr & 0xfffffffc)); store_long_parameter (buf + 5, 4); if ((bp_addr & 2) == 0 && bp_addr != (pc_addr & 0xfffffffc)) { @@ -810,7 +810,7 @@ m32r_wait (ptid_t ptid, struct target_waitstatus *status) { if (!mmu_on) bp_addr &= 0x7fffffff; - buf[0] = SDI_READ_MEMORY; + buf[0] = SDI_WRITE_MEMORY; store_long_parameter (buf + 1, bp_addr & 0xfffffffc); store_long_parameter (buf + 5, 4); buf[9] = bp_data[i][0]; |