[PATCH] h8300 target breakpoint doesn't work on Simulator

Yoshinori Sato ysato@users.sourceforge.jp
Fri Mar 4 16:38:00 GMT 2011


Hi

h8300-elf simulator handling O_BPT instruction of breakpoint.
But gdb write to O_SLEEP instruction of breakpoint.

So breakpoint command doesn't work on h8300 simulator.

I will fix this patch.
Thanks,

Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/ChangeLog,v
retrieving revision 1.12730
diff -u -r1.12730 ChangeLog
--- ChangeLog	3 Mar 2011 18:35:31 -0000	1.12730
+++ ChangeLog	4 Mar 2011 16:31:41 -0000
@@ -1,3 +1,8 @@
+2011-03-04  Yoshinori Sato <ysato@users.sourceforge.jp>
+
+	* h8300-tdep.c (h8300_breakpoint_from_pc): Update to breakpoint
+	instruction
+
 2011-03-03  Tom Tromey  <tromey@redhat.com>
 
 	PR gdb/12538:
Index: h8300-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/h8300-tdep.c,v
retrieving revision 1.128
diff -u -r1.128 h8300-tdep.c
--- h8300-tdep.c	25 Jan 2011 12:13:20 -0000	1.128
+++ h8300-tdep.c	4 Mar 2011 16:31:41 -0000
@@ -1197,8 +1197,7 @@
 h8300_breakpoint_from_pc (struct gdbarch *gdbarch, CORE_ADDR *pcptr,
 			  int *lenptr)
 {
-  /*static unsigned char breakpoint[] = { 0x7A, 0xFF }; *//* ??? */
-  static unsigned char breakpoint[] = { 0x01, 0x80 };	/* Sleep */
+  static unsigned char breakpoint[] = { 0x7A, 0xFF };	/* bpt (only simulator) */
 
   *lenptr = sizeof (breakpoint);
   return breakpoint;
============================================================

-- 
Yoshinori Sato
<ysato@users.sourceforge.jp>



More information about the Gdb-patches mailing list