]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2005-11-09 Kei Sakamoto <sakamoto.kei@renesas.com>
authorKazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
Wed, 9 Nov 2005 07:11:41 +0000 (07:11 +0000)
committerKazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
Wed, 9 Nov 2005 07:11:41 +0000 (07:11 +0000)
* remote-m32r-sdi.c: Update copyright years.
(m32r_resume): Write DBT at word-aligned addresses.
(m32r_wait): Use SDI_WRITE_MEMORY to remove DBT.

gdb/ChangeLog
gdb/remote-m32r-sdi.c

index 26830a22c676f311d74abdb80c976dc38b4f2dd7..3bcb599113bda4003b462d42be6b8267a12f8285 100644 (file)
@@ -1,3 +1,9 @@
+2005-11-09  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.
+
 2005-11-07  Andrew Stubbs  <andrew.stubbs@st.com>
 
        * Makefile.in (tui-winsource.o): Add gdb_assert.h to dependencies.
index 9471c1153815bbf771a95f4d94ccef9b8b3dba74..78ade1a56de2c058e03e425746616f4be7309359 100644 (file)
@@ -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];