From: Vladimir Prus Date: Wed, 27 Apr 2011 12:04:42 +0000 (+0000) Subject: * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f6d903988c5983e2882e3448dc1a059ef4c888a4;p=binutils-gdb.git * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix compilation. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 13014b9089e..7f77310479d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-04-27 Vladimir Prus + + * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix + compilation. + 2011-04-27 Vladimir Prus MI breakpoint notifications. diff --git a/gdb/python/py-breakpoint.c b/gdb/python/py-breakpoint.c index 39578f16950..9c3384814da 100644 --- a/gdb/python/py-breakpoint.c +++ b/gdb/python/py-breakpoint.c @@ -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