| Summary: | [expressions] Support for advanced expression hover | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Anton Leherbauer <aleherb+eclipse> | ||||||||
| Component: | cdt-debug-dsf-gdb | Assignee: | Anton Leherbauer <aleherb+eclipse> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | Marc Khouzam <marc.khouzam> | ||||||||
| Severity: | enhancement | ||||||||||
| Priority: | P3 | CC: | aegges, dd.general-inbox, pawel.1.piech, Randy.Rohrbach, toralf.lund | ||||||||
| Version: | 0 DD 1.1 | Flags: | aleherb+eclipse:
review+
|
||||||||
| Target Milestone: | 7.0 | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows XP | ||||||||||
| Whiteboard: | |||||||||||
| Bug Depends on: | 294351 | ||||||||||
| Bug Blocks: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Anton Leherbauer
I'm changing the component to GDB, since the hover integration is kind of editor specific. Although it may turn out that there are some common code which we can put in DSF. *** Bug 283842 has been marked as a duplicate of this bug. *** I think this is something that we should do. A patch from the community would be a great way to get things moving :-) Added bug 294351 as a dependency. Created attachment 151809 [details]
Experimental expression "inspector"
Based on the new abstract debug hover support I have implemented experimental support for an expression "inspector" which is basically an expression view inside the hover.
Toni I remember looking at this code when you were working on it ( perhaps prototyping in the commercial ) and it looked very good. This functionality has been requested by many folks in the field and OCD development engineers here at Wind River. Just being able to get the address when you hover instead of being able to expand live in the hover is a big plus. Otherwise you need to add the variable to the expressions view. This would allow for traversal of linked lists on the fly. Anyway, I took a look at the patch and it looks good to my untrained eye. +1 for me. Randy This is REALLY cool! Created attachment 154482 [details]
Updated to HEAD
I'd like to commit this in the next days, unless I get a veto...
I got some comments that this was to complicated for some people. I would like to get some feedback from others in the community about this. Or maybe we could have this feature as an optional setting? To allow people to still have the standard hover. Did you get any feedback from users about this advance hover? (In reply to comment #9) > I got some comments that this was to complicated for some people. I would like > to get some feedback from others in the community about this. Or maybe we > could have this feature as an optional setting? To allow people to still have > the standard hover. > > Did you get any feedback from users about this advance hover? WR internal this feature was well received. I'll leave the GDB hover as is and just commit the general part. I committed the general part and changed the title of this bug to better reflect what it is actually about. (In reply to comment #10) > WR internal this feature was well received. > I'll leave the GDB hover as is and just commit the general part. I just tried out your patch for the GDB hover. And I must say I really like it and would encourage you to commit it. There are only two things that did bother me: - the detail pane should not be shown (I tink the hover window is too big with the detail pane and the extra info is not needed; otherwise one can use the variables view) - it takes a consumable time until the hover is shown (In reply to comment #11) > I committed the general part and changed the title of this bug to better > reflect what it is actually about. Do you have the patch for GDB. I'd like to give it a more thorough try. It is probably good for Helios. Thanks (In reply to comment #13) > Do you have the patch for GDB. I'd like to give it a more thorough try. It is > probably good for Helios. > > Thanks Just apply the patch attached to this bug (it contains the general and the GDB part). (In reply to comment #12) > - the detail pane should not be shown (I tink the hover window is too big with > the detail pane and the extra info is not needed; otherwise one can use the > variables view) This could be made configurable by a preference. > - it takes a consumable time until the hover is shown I just noticed that there is an additional delay of 1 second because of the job priority (Job.DECORATE). I fixed this right away. (In reply to comment #15) > (In reply to comment #12) > > - the detail pane should not be shown (I tink the hover window is too big with > > the detail pane and the extra info is not needed; otherwise one can use the > > variables view) > > This could be made configurable by a preference. That would be fine. > > - it takes a consumable time until the hover is shown > > I just noticed that there is an additional delay of 1 second because of the job > priority (Job.DECORATE). I fixed this right away. That helped indeed. (In reply to comment #5) > Based on the new abstract debug hover support I have implemented experimental > support for an expression "inspector" which is basically an expression view > inside the hover. Any chances to get this into HEAD (I mean the complete patch)? (In reply to comment #17) > (In reply to comment #5) > > Based on the new abstract debug hover support I have implemented experimental > > support for an expression "inspector" which is basically an expression view > > inside the hover. > Any chances to get this into HEAD (I mean the complete patch)? I was thinking of simply adding a DSF-GDB preference to choose if the user wants the advanced hover or not. I think that would be enough to get this in. It should be a small patch (In reply to comment #18) > (In reply to comment #17) > > (In reply to comment #5) > > > Based on the new abstract debug hover support I have implemented experimental > > > support for an expression "inspector" which is basically an expression view > > > inside the hover. > > Any chances to get this into HEAD (I mean the complete patch)? > > I was thinking of simply adding a DSF-GDB preference to choose if the user > wants the advanced hover or not. I think that would be enough to get this in. > It should be a small patch That would be Okay for me. But I would bet that most users prefer the advanced hover :) If the advanced hover is not the default, then it would be useful to mention it in the Release Notes for Helios. (In reply to comment #19) > That would be Okay for me. But I would bet that most users prefer the advanced > hover :) If the advanced hover is not the default, then it would be useful to > mention it in the Release Notes for Helios. I'm ok with making it the default, I just want to be able to turn if off, just in case :-) Created attachment 159709 [details] Use inspector hover in DSF-GDB I committed this patch to HEAD. It adds a preference to be able to use Toni's nice Inpsector Hover. The preference is enabled by default. I've also opened Bug 303440 to cleanup the CDT debug preference pages. Toni, can you review? And thanks again for this nice work. Seems fine. Is there still a need for an option to hide the detail pane? In this case I suggest to file a separate enhancement request. (In reply to comment #23) > Seems fine. > Is there still a need for an option to hide the detail pane? In this case I > suggest to file a separate enhancement request. In principle, I am fine with the detail pane. It just bothers me (in the Variable View as well) that it shows me several formats (Hex, Binary, Octal etc.) that I don't need. It makes the view cluttered without giving more useful (IMHO) info. BTW, very often some of the formats just show (..). Is there any way to configure which number formats are shown? |