* python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
authorVladimir Prus <vladimir@codesourcery.com>
Wed, 27 Apr 2011 12:04:42 +0000 (12:04 +0000)
committerVladimir Prus <vladimir@codesourcery.com>
Wed, 27 Apr 2011 12:04:42 +0000 (12:04 +0000)
compilation.

gdb/ChangeLog
gdb/python/py-breakpoint.c

index 13014b9089e1075913081a5a478dccb44c32345a..7f77310479d71c38ffe2b8c1b0fafe5c65691edd 100644 (file)
@@ -1,3 +1,8 @@
+2011-04-27  Vladimir Prus  <vladimir@codesourcery.com>
+
+       * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
+       compilation.
+
 2011-04-27  Vladimir Prus  <vladimir@codesourcery.com>
 
        MI breakpoint notifications.
index 39578f169507476d19dfd7c33cbe0f6c538c7a70..9c3384814da81b747fd12a8b0bc783af9b4eec8e 100644 (file)
@@ -787,7 +787,7 @@ gdbpy_breakpoint_created (struct breakpoint *bp)
   breakpoint_object *newbp;
   PyGILState_STATE state;
 
-  if (num < 0 && bppy_pending_object == NULL)
+  if (bp->number < 0 && bppy_pending_object == NULL)
     return;
 
   if (bp->type != bp_breakpoint