Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 432856

Summary: View toolbar does not redraw properly when new buttons appear/disappear
Product: [Eclipse Project] Platform Reporter: Paul Webster <pwebster>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: dirk.fauth, emoffatt, marc.khouzam, Michael_Rennie, pawel.1.piech, pwebster
Version: 4.4   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard: stalebug

Description Paul Webster CLA 2014-04-15 14:40:34 EDT
+++ This bug was initially created as a clone of Bug #376442 +++

CDT provides a feature to allow to do reverse debugging (step backwards).

When reverse debugging is possible, CDT makes visible 4 new buttons on the
debug toolbar: "reverse step into", "reverse step over", "reverse resume", and
"uncall" (reverse step return).

This small howto shows screenshots of the buttons and how to enable them:
http://wiki.eclipse.org/CDT/User/FAQ#How_do_I_do_Reverse_Debugging.3F

The problem is that when the 4 new buttons become visible (or invisible), the view toolbar does not redraw properly to make room (or remove room) for the new buttons.

After resizing the view, the toolbar is redrawn nicely.

Attached is a screenshot showing:
1- the normal toolbar
2- the proper toolbar with the extra buttons after a resize of the view
3- the error where buttons were hidden and the view toolbar has extra space
4- the error where buttons were made visible and the view is truncating buttons

If I can help get more information, please let me know.
Comment 1 Paul Webster CLA 2014-04-15 14:41:45 EDT
To reproduce that problem, if you have time, please do the following:
1- run on linux with a GDB version >= 7.0
2- Debug your HelloWorld program in CDT
3- Customize perspective to enable the action set "Reverse Debugging"
4- A new icon should appear on the debug view toolbar (double arrow with clock)
=> This new icon hides the view menu icon

5- Press the new button
6- some reverse debugging buttons should appear on the debug view toolbar 
=> The Debug view toolbar is truncated on the right
7- Minimize then maximize the view to make the toolbar redraw
Comment 2 Eric Moffatt CLA 2014-06-23 13:48:58 EDT
Paul, I have a hacked up view that might be helpful...it adds two new actions (both menu / tb) one of which adds a new action the other removes the last(?) one.

Let me know if you want me to attach it...
Comment 3 Dirk Fauth CLA 2015-02-27 16:07:15 EST
This should be fixed with Bug 431990.
Comment 4 Eclipse Genie CLA 2020-05-15 13:11:55 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.