Patchwork PATCH3- evaluate breakpoint condition on target - dump bytecode of breakpoint condition in human readable format - for debug purposes

login
register
mail settings
Submitter Anna Neiman
Date Feb. 26, 2013, 1:52 p.m.
Message ID <1361886743-11022-1-git-send-email-anna_neiman@mentor.com>
Download mbox | patch
Permalink /patch/223224/
State New
Headers show

Comments

Anna Neiman - Feb. 26, 2013, 1:52 p.m.
Signed-off-by: Anna Neiman <anna_neiman@mentor.com>
---
 gdbstub.c |    5 +++++
 1 file changed, 5 insertions(+)

Patch

diff --git a/gdbstub.c b/gdbstub.c
index 814f596..e2dac86 100644
--- a/gdbstub.c
+++ b/gdbstub.c
@@ -42,6 +42,8 @@ 
 #include "sysemu/kvm.h"
 #include "qemu/bitops.h"
 
+#include "translate-gdbagent.h"
+
 #ifndef TARGET_CPU_MEMORY_RW_DEBUG
 static inline int target_memory_rw_debug(CPUArchState *env, target_ulong addr,
                                          uint8_t *buf, int len, int is_write)
@@ -2347,6 +2349,9 @@  static int gdb_handle_packet(GDBState *s, const char *line_buf)
                             }
                         }
                     }
+#ifdef DEBUG_GDB
+                    bp_agent_dump_bytecode(bp_cond_len, bp_cond_expr);
+#endif
                 }
         }
         if (ch == 'Z') {