WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ppc-devel

[XenPPC] [xenppc-unstable] [ppc] handler() may not be supported and shou

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [xenppc-unstable] [ppc] handler() may not be supported and should be communicated to gdb
From: Xen patchbot-xenppc-unstable <patchbot-xenppc-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 26 Jul 2006 18:40:43 +0000
Delivery-date: Wed, 26 Jul 2006 11:45:32 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID bde996cddbbaea72c260b04fd6b95c5f43973f67
# Parent  50ef9c9c717c20eb5e7003459f9dd41dd783b0c2
[ppc] handler() may not be supported and should be communicated to gdb

Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
---
 tools/gpproxy/gdbremote.py |   17 ++++++++---------
 1 files changed, 8 insertions(+), 9 deletions(-)

diff -r 50ef9c9c717c -r bde996cddbba tools/gpproxy/gdbremote.py
--- a/tools/gpproxy/gdbremote.py        Thu Jul 13 11:26:51 2006 -0400
+++ b/tools/gpproxy/gdbremote.py        Wed Jul 26 13:48:25 2006 -0400
@@ -338,16 +338,15 @@ class GDBRemoteHandler(SocketServer.Base
 
                # dispatch to target's breakpoint handler
                handler = getattr(self.target, "break_%s_%s" % (op, type), None)
-               if not handler:
+               if handler:
+                       try:
+                               handler(addr)
+                       except IOError, e:
+                               pass # empty reply packet means "not supported"
+                       else:
+                               replypkt.payload = "OK"
+               else:
                        print "unsupported breakpoint type", type
-                       return False
-
-               try:
-                       handler(addr)
-               except IOError, e:
-                       pass # empty reply packet means "not supported"
-               else:
-                       replypkt.payload = "OK"
 
                self.ack()
                return True

_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [XenPPC] [xenppc-unstable] [ppc] handler() may not be supported and should be communicated to gdb, Xen patchbot-xenppc-unstable <=