List Info

Thread: Debugger runs the program if step caused a shared library load




Debugger runs the program if step caused a shared library load
user name
2006-11-16 14:04:33
I found this problem with debugger (kdevelop 3.4 svn, gdb
6.4):
- set a breakpoint in a line that (probably) cause a shared
library load
- when the debugger stops on that line press step over
button (or F10)
- the debugger doesn't stops on the next line, instead goes
to run the
program

This is the code (default qt4 project):

-----------------------------------------------------
MyProject::MyProject()
{
      textEdit = new QTextEdit;   // <<<===  Set
breakpoint here

      setCentralWidget(textEdit);  // <<<=== Must
set another breakpoint
here in order to step without run the program

      createActions();
      createMenus();
      createToolBars();
      createStatusBar();

      readSettings();

      connect(textEdit->document(),
SIGNAL(contentsChanged()),
            this, SLOT(documentWasModified()));

      setCurrentFile("");
}

-----------------------------------------------------

You have to set another breakpoint on the next line
"setCentralWidget(textEdit);" in order to step
without run the program

You can better see the problem using the command line
interface of gdb: use
"next" command to see the shared library load
event.

In the file "languages/cpp/debugger/TODO.tx" I
found this issue:

-----------------------------------------------------
BUGS/ISSUES found:

   - no stop reason for stop on shared library load

-----------------------------------------------------

Is it related to?

Dario


_______________________________________________
KDevelop-devel mailing list
KDevelop-develbarney.cs.uni-potsdam.de
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )