[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 156020] New: Debugger doesn't consistently show variable values
From:       Christian Convey <conveycj () npt ! nuwc ! navy ! mil>
Date:       2008-01-17 17:58:02
Message-ID: 20080117185801.156020.conveycj () npt ! nuwc ! navy ! mil
[Download RAW message or body]

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=156020         
           Summary: Debugger doesn't consistently show variable values
           Product: kdevelop
           Version: unspecified
          Platform: Ubuntu Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kdevelop-bugs kdevelop org
        ReportedBy: conveycj npt nuwc navy mil


Version:            (using KDE 3.5.8)
Installed from:    Ubuntu Packages
OS:                Linux

I have a program with a slightly deep call stack (8-10 frames).  When I debug the \
program in KDevelop, the program run stops due to a failed assertion in my code (as \
expected).  But when I click on various frames in the call stack, especially those \
towards the main() end of the stack, the KDevelop sub-window that shows the values of \
variables in the currently selected stack frame is often empty.

I get the behavior with the following program:

#include <iostream>
#include <cassert>

using namespace std;

void foo1();
void foo2();
void foo3();
void foo4();
void foo5();
void foo6();
void foo7();
void foo8();

void foo1() {
	int i1 = 2 * 3;
	foo2();
	cout << "Hello" << endl; // suppress tail-recursion optimization?
}

void foo2() {
	int i2 = 2 * 3;
	foo3();
	cout << "Hello" << endl; // suppress tail-recursion optimization?
}

void foo3() {
	int i3 = 2 * 3;
	foo4();
	cout << "Hello" << endl; // suppress tail-recursion optimization?
}

void foo4() {
	int i4 = 2 * 3;
	foo5();
	cout << "Hello" << endl; // suppress tail-recursion optimization?
}

void foo5() {
	int i5 = 2 * 3;
	foo6();
	cout << "Hello" << endl; // suppress tail-recursion optimization?
}

void foo6() {
	int i6 = 2 * 3;
	foo7();
	cout << "Hello" << endl; // suppress tail-recursion optimization?
}

void foo7() {
	int i7 = 2 * 3;
	foo8();
	cout << "Hello" << endl; // suppress tail-recursion optimization?
}

void foo8() {
	int i8 = 2 * 3;
	assert(false);
	cout << "Hello" << endl; // suppress tail-recursion optimization?
}


int main(int argc, char *argv[])
{
   int m = 0;
   foo1();
}

_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic