X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Ftestsuite%2Fgdb.python%2Fpy-breakpoint.c;h=12adc99a1b5e04fb443cb7764a280b576601837f;hb=bac7c5cf92e85195de99077b4147358bb372e87a;hp=d102a5f306e01ab204ce6455b5e96a4bb3d7986c;hpb=330f1d3825daa0d9e8d6c54f4fcf6fa5800e5664;p=deliverable%2Fbinutils-gdb.git
diff --git a/gdb/testsuite/gdb.python/py-breakpoint.c b/gdb/testsuite/gdb.python/py-breakpoint.c
index d102a5f306..12adc99a1b 100644
--- a/gdb/testsuite/gdb.python/py-breakpoint.c
+++ b/gdb/testsuite/gdb.python/py-breakpoint.c
@@ -15,6 +15,10 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see . */
+#ifdef USE_PROBES
+#include
+#endif
+
int result = 0;
namespace foo_ns
@@ -46,6 +50,9 @@ int main (int argc, char *argv[])
{
result += multiply (foo); /* Break at multiply. */
result += add (bar); /* Break at add. */
+#ifdef USE_PROBES
+ DTRACE_PROBE1 (test, result_updated, result);
+#endif
}
return 0; /* Break at end. */