Bug 390099 - NumberFormatDetailsPane gives out of order, unaligned details
Summary: NumberFormatDetailsPane gives out of order, unaligned details
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf (show other bugs)
Version: Next   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-21 08:55 EDT by Hugh Collins CLA
Modified: 2020-09-04 15:16 EDT (History)
3 users (show)

See Also:


Attachments
Proposed attached to the change request (24.33 KB, patch)
2012-09-21 09:01 EDT, Hugh Collins CLA
thehugheth: review?
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hugh Collins CLA 2012-09-21 08:55:45 EDT
The NumberFormatDetailsPane returns details from the debugger backend about variables, expressions and registers. Currently, concurrent requests are made which return the details in arbitrary orders, and a large list of these details prevent them being compared with each other because the details returned aren't aligned with each other, especially in the presence of strings.

I propose that the details are always ordered in alphanumerical order of variable/expression name, and when the debugger backend returns data structures, like structures are tabulated into an easy to read list.

A patch to follow shortly...
Comment 1 Hugh Collins CLA 2012-09-21 09:01:14 EDT
Created attachment 221346 [details]
Proposed attached to the change request

The proposed patch adds the functionality requested:
- Details are now deterministically ordered in the NumberFormatDetailsPane, currently in alphanumeric order
- A new checkbox has been added in the drop down menu of the Variables, Expressions and Registers view that turns on the tabulate details option
- When this option is checked, all structures returned from the backend (currently parsed expecting a GDB-like return) are sorted by their child element names. Those structures with the same child element names appear in the same ASCII table with their child values listed below the respective column heading.