• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revisionfd9f0aad46c9deb53e8541d4a139183ddb3eb174 (tree)
Time2004-03-10 09:22:45
AuthorKazuhiro Inaoka <inaoka.kazuhiro@rene...>
CommiterKazuhiro Inaoka

Log Message

2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>

* remote-m32r-sdi.c: Support hardware watchpoint.

Change Summary

Incremental Difference

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
1+2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
2+
3+ * remote-m32r-sdi.c: Support hardware watchpoint.
4+
15 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
26
37 * user-regs.c: Update copyright years.
--- a/gdb/remote-m32r-sdi.c
+++ b/gdb/remote-m32r-sdi.c
@@ -1434,13 +1434,14 @@ m32r_stop (void)
14341434 }
14351435
14361436
1437-/* Tell whether this target can support a hardware breakpoint.
1438- This implements the TARGET_CAN_USE_HARDWARE_WATCHPOINT macro. */
1437+/* Tell whether this target can support a hardware breakpoint. CNT
1438+ is the number of hardware breakpoints already installed. This
1439+ implements the TARGET_CAN_USE_HARDWARE_WATCHPOINT macro. */
14391440
14401441 int
1441-m32r_can_use_hardware_watchpoint (void)
1442+m32r_can_use_hw_watchpoint (int type, int cnt, int othertype)
14421443 {
1443- return max_access_breaks;
1444+ return sdi_desc != NULL && cnt < max_access_breaks;
14441445 }
14451446
14461447 /* Set a data watchpoint. ADDR and LEN should be obvious. TYPE is 0
@@ -1448,12 +1449,12 @@ m32r_can_use_hardware_watchpoint (void)
14481449 watchpoint. */
14491450
14501451 int
1451-m32r_set_watchpoint (CORE_ADDR addr, int len, int type)
1452+m32r_insert_watchpoint (CORE_ADDR addr, int len, int type)
14521453 {
14531454 int i;
14541455
14551456 if (remote_debug)
1456- fprintf_unfiltered (gdb_stdlog, "m32r_set_watchpoint(%08lx,%d,%d)\n",
1457+ fprintf_unfiltered (gdb_stdlog, "m32r_insert_watchpoint(%08lx,%d,%d)\n",
14571458 addr, len, type);
14581459
14591460 for (i = 0; i < MAX_ACCESS_BREAKS; i++)
@@ -1618,6 +1619,11 @@ init_m32r_ops (void)
16181619 m32r_ops.to_files_info = m32r_files_info;
16191620 m32r_ops.to_insert_breakpoint = m32r_insert_breakpoint;
16201621 m32r_ops.to_remove_breakpoint = m32r_remove_breakpoint;
1622+ m32r_ops.to_can_use_hw_breakpoint = m32r_can_use_hw_watchpoint;
1623+ m32r_ops.to_insert_watchpoint = m32r_insert_watchpoint;
1624+ m32r_ops.to_remove_watchpoint = m32r_remove_watchpoint;
1625+ m32r_ops.to_stopped_by_watchpoint = m32r_stopped_by_watchpoint;
1626+ m32r_ops.to_stopped_data_address = m32r_stopped_data_address;
16211627 m32r_ops.to_kill = m32r_kill;
16221628 m32r_ops.to_load = m32r_load;
16231629 m32r_ops.to_create_inferior = m32r_create_inferior;