[PATCH] Re: Bug 68015: Variables/Watch Window closes on first view

Vladimir Prus ghost at cs.msu.su
Fri May 20 17:09:05 UTC 2005


On Friday 20 May 2005 12:10, jbb wrote:

> > I think the the best interface would be:
> >
> > 1. Opening a tree item in framestack view does not switch current frame
> > and does not switch shows source file.
> > 2. Only explicit selection of a frame in framestack view changes current
> > frame, and shows the source.
> > 3. The variables view should show only variables in the current frame.
>
> 1 and 2 sound good to me.
> Is 3 an improvement? Well, yes, it probably is :-)
......

> Would you like to attempt this?

Attached is a patch which avoid switching the frames on opening a thread
item in framestack view. To simplify my task, I've used the "thread apply XXX 
backtrace" command, which produces backtrace without switching current 
thread.

Below is proposed log message. Opinions?

- Volodya

Log message:
Do not immediately switch frames and hide framestack widget, when
opening an item corresponding to a frame. Switch frame only when frame
item is explicitly selected.

See
http://barney.cs.uni-potsdam.de/mailman/private/kdevelop-devel/2005-May/033098.html
for rationale.

* gdbcontroller.h 
  gdbcontroller.cpp:
  (GDBController::slotProduceBacktrace): New slot. Gets backtrace for
  a thread via "thread apply XXX backtrace" and so doesn't change current
  thread.

* framestackwidget.h
  framestackwidget.cpp:
  (FramestackWidget::produceBacktrace): New signal.
  (FramestackWidget::getBacktrace): New method.
  (ThreadStackItem::setOpen): Only fetch backtrace when there are no
  children. Otherwise, when viewedThread_->setOpen(true) is called
  after parsing backtrace we immediately emit another signal. 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: no_frame_switch_on_thread_view.diff
Type: text/x-diff
Size: 3795 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20050520/c5ee153d/attachment.bin>


More information about the KDevelop-devel mailing list