File: //usr/share/gdb/python/gdb/function/caller_is.pyc
mò
Ç0Kc @ sV d k Z d k Z d e i f d „ ƒ YZ d e i f d „ ƒ YZ e ƒ e ƒ d S( Nt CallerIsc B s# t Z d Z d „ Z d d „ Z RS( sr Return True if the calling function's name is equal to a string.
This function takes one or two arguments.
The first argument is the name of a function; if the calling function's
name is equal to this argument, this function returns True.
The optional second argument tells this function how many stack frames
to traverse to find the calling function. The default is 1.c C s t t | ƒ i d ƒ d S( Nt caller_is( t superR t selft __init__( R ( ( t/ /usr/share/gdb/python/gdb/function/caller_is.pyR s i c C sM t i ƒ } x( | d j o | i ƒ } | d } q W| i ƒ | i ƒ j S( Ni i ( t gdbt selected_framet framet nframest oldert namet string( R R R R ( ( R t invoke s
( t __name__t
__module__t __doc__R R
( ( ( R R s t
CallerMatchesc B s# t Z d Z d „ Z d d „ Z RS( sn Return True if the calling function's name matches a string.
This function takes one or two arguments.
The first argument is a regular expression; if the calling function's
name is matched by this argument, this function returns True.
The optional second argument tells this function how many stack frames
to traverse to find the calling function. The default is 1.c C s t t | ƒ i d ƒ d S( Nt caller_matches( R R R R ( R ( ( R R / s i c C sY t i ƒ } x( | d j o | i ƒ } | d } q Wt i | i ƒ | i ƒ ƒ d j S( Ni i (
R R R R R
t ret matchR R t None( R R R R ( ( R R
2 s
( R R R R R
( ( ( R R ' s ( R R t FunctionR R ( R R R R ( ( R t ? s