aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/python.h
diff options
context:
space:
mode:
authorPhil Muldoon <pmuldoon@redhat.com>2011-03-14 16:09:55 +0000
committerPhil Muldoon <pmuldoon@redhat.com>2011-03-14 16:09:55 +0000
commit7371cf6d8db5a0c04550fc95b1acc87857ac348c (patch)
tree9efe92bd981241731fcdae40a017da24e0c30ed0 /gdb/python/python.h
parent34e77a920a469734b88c8efc79be94be955b1029 (diff)
downloadgdb-7371cf6d8db5a0c04550fc95b1acc87857ac348c.zip
gdb-7371cf6d8db5a0c04550fc95b1acc87857ac348c.tar.gz
gdb-7371cf6d8db5a0c04550fc95b1acc87857ac348c.tar.bz2
2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
* gdb.texinfo (Breakpoints In Python): Add description and example of Python stop function operation. 2010-03-14 Phil Muldoon <pmuldoon@redhat.com> * gdb.python/py-breakpoint.exp: Add Python stop operations tests. 2011-03-14 Phil Muldoon <pmuldoon@redhat.com> * python/python.h: Declare gdbpy_should_stop and gdbpy_breakpoint_has_py_cond. * python/python.c: Add python.h to includes. Remove python.h from HAVE_PYTHON definition (gdbpy_should_stop): New dummy function. (gdbpy_breakpoint_has_py_cond): New dummy function. * python/py-breakpoint.c (bppy_init): Rewrite to allow sub-classing capabilities. (gdbpy_should_stop): New function. (gdbpy_breakpoint_has_py_cond): New function. (local_setattro): New function. * breakpoint.c (condition_command): Add check for Python 'stop' operation. (bpstat_check_breakpoint_conditions): Execute Python 'stop' operation function as part of stop/continue tests.
Diffstat (limited to 'gdb/python/python.h')
-rw-r--r--gdb/python/python.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/python/python.h b/gdb/python/python.h
index 58d97fc..ce0eb35 100644
--- a/gdb/python/python.h
+++ b/gdb/python/python.h
@@ -22,6 +22,8 @@
#include "value.h"
+struct breakpoint_object;
+
extern int gdbpy_global_auto_load;
extern void finish_python_initialization (void);
@@ -41,4 +43,8 @@ void preserve_python_values (struct objfile *objfile, htab_t copied_types);
void load_auto_scripts_for_objfile (struct objfile *objfile);
+int gdbpy_should_stop (struct breakpoint_object *bp_obj);
+
+int gdbpy_breakpoint_has_py_cond (struct breakpoint_object *bp_obj);
+
#endif /* GDB_PYTHON_H */