GDBMI_stack_info_depth.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 23 Sep 2014 23:48:13 +0100
changeset 45 deb908479a37
parent 40 0ce76b671515
child 78 c24e7d8bc881
permissions -rw-r--r--
Code refactored to use Magritte to meta-describe GDB objects. This should give greate flexibility without reinventing the wheel.

"{ Package: 'jv:libgdbs' }"

GDBMICommand subclass:#GDBMI_stack_info_depth
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'GDB-Core-Commands-MI'
!

!GDBMI_stack_info_depth class methodsFor:'documentation'!

documentation
"
The `-stack-info-depth' Command
-------------------------------

Synopsis
........

      -stack-info-depth [ MAX-DEPTH ]

   Return the depth of the stack.  If the integer argument MAX-DEPTH is
specified, do not count beyond MAX-DEPTH frames.

{No value for `GDBN'} Command
.............................

There's no equivalent {No value for `GDBN'} command.

Example
.......

For a stack with frame levels 0 through 11:

     (gdb)
     -stack-info-depth
     ^done,depth='12'
     (gdb)
     -stack-info-depth 4
     ^done,depth='4'
     (gdb)
     -stack-info-depth 12
     ^done,depth='12'
     (gdb)
     -stack-info-depth 11
     ^done,depth='11'
     (gdb)
     -stack-info-depth 13
     ^done,depth='12'
     (gdb)


"
! !

!GDBMI_stack_info_depth methodsFor:'accessing'!

operation
	^ 'stack-info-depth'
! !

!GDBMI_stack_info_depth methodsFor:'accessing-descriptors'!

resultDescription
    ^ (super resultDescription)
        define:#depth as:Integer;
        yourself

    "Created: / 16-09-2014 / 23:37:29 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !

!GDBMI_stack_info_depth class methodsFor:'documentation'!

version_HG

    ^ '$Changeset: <not expanded> $'
! !