Patch #3112 2011-01-01 13:50
codeman
CallStack switches frame when you double click on list.- Download
- 3112-CallStack_swit.patch (1.2 KB)
- Category
- Application::Refinement
- Status
- Rejected
- Close date
- 2012-07-07 11:59
- Assigned to
- tpetrov
Index: debian/changelog
===================================================================
--- debian/changelog (revision 6906)
+++ debian/changelog (working copy)
@@ -1,4 +1,4 @@
-codeblocks (10.05svn6787) unstable; urgency=low
+codeblocks (10.05svn6906) unstable; urgency=low
* New svn revision
Index: src/plugins/debuggergdb/backtracedlg.cpp
===================================================================
--- src/plugins/debuggergdb/backtracedlg.cpp (revision 6906)
+++ src/plugins/debuggergdb/backtracedlg.cpp (working copy)
@@ -125,6 +125,18 @@
wxLIST_NEXT_ALL,
wxLIST_STATE_SELECTED);
+ //Switch to the frame in the list
+ long realFrameNr;
+ if (lst->GetItemText(index).ToLong(&realFrameNr))
+ {
+ // switch to this frame
+ if (m_pDbg->GetState().HasDriver())
+ m_pDbg->GetState().GetDriver()->SwitchToFrame(realFrameNr);
+ }
+ else
+ cbMessageBox(_("Couldn't find out the frame number!"), _("Error"), wxICON_ERROR);
+
+ //Move the editor to frame's location in the code
wxListItem info;
info.m_itemId = index;
info.m_mask = wxLIST_MASK_TEXT;
History
tpetrov 2011-01-16 15:07
Is this against trunk?
Please test the debuggers branch if the same problem happens there?
tpetrov 2011-03-17 21:13
Any news on this?
tpetrov 2012-07-07 11:59
I'm rejecting this patch, because there is no activity about it and as far as I know there is not such problem in the current code in trunk.