diff options
author | Phil Muldoon <pmuldoon@redhat.com> | 2013-11-07 12:04:45 +0000 |
---|---|---|
committer | Phil Muldoon <pmuldoon@redhat.com> | 2013-11-07 12:04:45 +0000 |
commit | f76c27b5bdd446964d9920464b2f761ae7a4f62a (patch) | |
tree | c0cd5e6ac770344136b01613ddd756710393a27a /gdb/doc | |
parent | d52cd232cb3a7a9f6e6857110d9119c1675d2d32 (diff) | |
download | gdb-f76c27b5bdd446964d9920464b2f761ae7a4f62a.zip gdb-f76c27b5bdd446964d9920464b2f761ae7a4f62a.tar.gz gdb-f76c27b5bdd446964d9920464b2f761ae7a4f62a.tar.bz2 |
2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
* python/py-breakpoint.c (bppy_get_temporary): New function.
(bppy_init): New keyword: temporary. Parse it and set breakpoint
to temporary if True.
2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
* gdb.python/py-breakpoint.exp: Add temporary breakpoint tests.
2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
* gdb.texinfo (Breakpoints In Python): Document temporary
option in breakpoint constructor, and add documentation to the
temporary attribute.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 47 |
2 files changed, 37 insertions, 16 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 12ceb01..1a29b4f 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,9 @@ +2013-11-07 Phil Muldoon <pmuldoon@redhat.com> + + * gdb.texinfo (Breakpoints In Python): Document temporary + option in breakpoint constructor, and add documentation to the + temporary attribute. + 2013-11-07 Yao Qi <yao@codesourcery.com> * gdb.texinfo (GDB/MI Variable Objects): Update doc about the diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 80ddaf9..c735b90 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -27025,22 +27025,27 @@ Return the static block of the underlying symbol table. Python code can manipulate breakpoints via the @code{gdb.Breakpoint} class. -@defun Breakpoint.__init__ (spec @r{[}, type @r{[}, wp_class @r{[},internal@r{]]]}) -Create a new breakpoint. @var{spec} is a string naming the -location of the breakpoint, or an expression that defines a -watchpoint. The contents can be any location recognized by the -@code{break} command, or in the case of a watchpoint, by the @code{watch} -command. The optional @var{type} denotes the breakpoint to create -from the types defined later in this chapter. This argument can be -either: @code{gdb.BP_BREAKPOINT} or @code{gdb.BP_WATCHPOINT}. @var{type} -defaults to @code{gdb.BP_BREAKPOINT}. The optional @var{internal} argument -allows the breakpoint to become invisible to the user. The breakpoint -will neither be reported when created, nor will it be listed in the -output from @code{info breakpoints} (but will be listed with the -@code{maint info breakpoints} command). The optional @var{wp_class} -argument defines the class of watchpoint to create, if @var{type} is -@code{gdb.BP_WATCHPOINT}. If a watchpoint class is not provided, it is -assumed to be a @code{gdb.WP_WRITE} class. +@defun Breakpoint.__init__ (spec @r{[}, type @r{[}, wp_class @r{[},internal @r{[},temporary@r{]]]]}) +Create a new breakpoint. @var{spec} is a string naming the location +of the breakpoint, or an expression that defines a watchpoint. The +contents can be any location recognized by the @code{break} command, +or in the case of a watchpoint, by the @code{watch} command. The +optional @var{type} denotes the breakpoint to create from the types +defined later in this chapter. This argument can be either: +@code{gdb.BP_BREAKPOINT} or @code{gdb.BP_WATCHPOINT}. @var{type} +defaults to @code{gdb.BP_BREAKPOINT}. The optional @var{internal} +argument allows the breakpoint to become invisible to the user. The +breakpoint will neither be reported when created, nor will it be +listed in the output from @code{info breakpoints} (but will be listed +with the @code{maint info breakpoints} command). The optional +@var{temporary} argument makes the breakpoint a temporary breakpoint. +Temporary breakpoints are deleted after they have been hit. Any +further access to the Python breakpoint after it has been hit will +result in a runtime error (as that breakpoint has now been +automatically deleted). The optional @var{wp_class} argument defines +the class of watchpoint to create, if @var{type} is +@code{gdb.BP_WATCHPOINT}. If a watchpoint class is not provided, it +is assumed to be a @code{gdb.WP_WRITE} class. @end defun @defun Breakpoint.stop (self) @@ -27161,6 +27166,16 @@ when set, or when the @samp{info breakpoints} command is run. This attribute is not writable. @end defvar +@defvar Breakpoint.temporary +This attribute indicates whether the breakpoint was created as a +temporary breakpoint. Temporary breakpoints are automatically deleted +after that breakpoint has been hit. Access to this attribute, and all +other attributes and functions other than the @code{is_valid} +function, will result in an error after the breakpoint has been hit +(as it has been automatically deleted). This attribute is not +writable. +@end defvar + The available types are represented by constants defined in the @code{gdb} module: |