root/trunk/thune/debugger/StackDisplay.cpp

Revision 458, 0.7 kB (checked in by krobillard, 17 months ago)

Merged Thune thread_safe branch into trunk (r386:457)

Line 
1/*==========================================================================*
2 *==========================================================================*/
3
4
5#include "StackDisplay.h"
6#include "internal.h"
7
8
9StackDisplay::StackDisplay( QWidget* parent ) : QListWidget( parent )
10{
11}
12
13
14/*
15   Show current stack.
16*/
17void StackDisplay::update( UThread* ut, UString* tmp )
18{
19    clear();
20
21    if( ut )
22    {
23        UCell* it = UR_TOS;
24        while( it != UR_BOS )
25        {
26            tmp->used = 0;
27            ur_toStr( it, tmp, 0 );
28            ur_termCStr( tmp );
29
30            insertItem( 0, tmp->ptr.c );
31
32            it = ur_s_prev( it );
33        }
34    }
35}
36
37
38//EOF
Note: See TracBrowser for help on using the browser.