Ñò
55€Lc @ s d d k Z d d k Z d d k Z d d k l Z d d k l Z d d k Z d e i f d „ ƒ YZ d e i
f d „ ƒ YZ e ƒ d S( iÿÿÿÿN( t
FrameIterator( t FrameWrappert ReverseBacktraceParameterc B s# e Z d Z d Z d Z d „ Z RS( s· The new-backtrace command can show backtraces in 'reverse' order.
This means that the innermost frame will be printed last.
Note that reverse backtraces are more expensive to compute.s% Enable or disable reverse backtraces.s9 Show whether backtraces will be printed in reverse order.c C s, t i i | d t i t i ƒ t | _ d S( Ns reverse-backtrace( t gdbt Parametert __init__t
COMMAND_STACKt
PARAM_BOOLEANt Falset value( t self( ( s. /usr/share/gdb/python/gdb/command/backtrace.pyR ! s ( t __name__t
__module__t __doc__t set_doct show_docR ( ( ( s. /usr/share/gdb/python/gdb/command/backtrace.pyR s t FilteringBacktracec B s2 e Z d Z d „ Z d „ Z d „ Z d „ Z RS( s Print backtrace of all stack frames, or innermost COUNT frames.
With a negative argument, print outermost -COUNT frames.
Use of the 'full' qualifier also prints the values of the local variables.
Use of the 'raw' qualifier avoids any filtering by loadable modules.
c C s) t i i | d t i ƒ t ƒ | _ d S( Ns
new-backtrace( R t CommandR R R t reverse( R
( ( s. /usr/share/gdb/python/gdb/command/backtrace.pyR . s c C s2 g } x | D] } | i | ƒ q
W| i ƒ | S( N( t appendR ( R
t itert resultt item( ( s. /usr/share/gdb/python/gdb/command/backtrace.pyt reverse_iter4 s
c C s, g } x | D] } | i | ƒ q
W| | S( N( R ( R
R t xR R ( ( s. /usr/share/gdb/python/gdb/command/backtrace.pyt final_n; s
c C s d } d } t } t } xe | i d ƒ D]T } | d j o q( q( | d j o
t } q( | d j o
t } q( t | ƒ } q( Wt i ƒ i ƒ } t i t t
| ƒ ƒ } | o t i i | ƒ } n t i
t i d ƒ | ƒ } | i i o | i | ƒ } n | d j o | i | | ƒ } n' | d j o t i | d | ƒ } n x= | D]5 }
t i i d |
d ƒ |
d i t i | ƒ qRWd S( Ni t t t rawt fulls #%-2di ( t TrueR t splitt intR t selected_threadt newest_framet itertoolst imapR R t backtracet create_frame_filtert izipt countR R R R t islicet syst stdoutt writet describe( R
t argt from_ttyt iR( t filterR t wordR" R t pair( ( s. /usr/share/gdb/python/gdb/command/backtrace.pyt invokeA s:
( R R R
R R R R4 ( ( ( s. /usr/share/gdb/python/gdb/command/backtrace.pyR ' s
( R t
gdb.backtraceR# t gdb.FrameIteratorR t gdb.FrameWrapperR R* R R R R ( ( ( s. /usr/share/gdb/python/gdb/command/backtrace.pyt