From: Kazuhiro Inaoka Date: Wed, 9 Nov 2005 07:09:05 +0000 (+0000) Subject: 2005-11-08 Kei Sakamoto X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=492e5c6b71f453352692d73a3def0229a00a9957;p=binutils-gdb.git 2005-11-08 Kei Sakamoto * remote-m32r-sdi.c: Update copyright years. (m32r_resume): Write DBT at word-aligned addresses. (m32r_wait): Use SDI_WRITE_MEMORY to remove DBT. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 27dc47fc4b4..8dafb45ab91 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2005-11-08 Kei Sakamoto + + * remote-m32r-sdi.c: Update copyright years. + (m32r_resume): Write DBT at word-aligned addresses. + (m32r_wait): Use SDI_WRITE_MEMORY to remove DBT. + 2005-11-08 Kei Sakamoto * m32r-linux-tdep.c (linux_sigtramp_code): Use 'gdb_byte' instead diff --git a/gdb/remote-m32r-sdi.c b/gdb/remote-m32r-sdi.c index 3019aac32fb..41644d04a8d 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 . @@ -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];