Bug 453321 - Convenient field access for MITuple/MIResultRecord
Summary: Convenient field access for MITuple/MIResultRecord
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf-gdb (show other bugs)
Version: Next   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-26 10:13 EST by Vladimir Prus CLA
Modified: 2020-09-04 15:17 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Prus CLA 2014-11-26 10:13:08 EST
Often I'm now for sure that MI object contains a particular field. The current API requires me to still write a loop by hand, searching for that field. This patch introduces MITuple.getValue(String) that encapsulates this pattern. MIResultRecord gets the same treatment, and I also use MITuple to store the field of MIResultRecord to avoid code duplication.
Comment 1 Vladimir Prus CLA 2014-11-26 10:16:26 EST
Gerrit patch: https://git.eclipse.org/r/#/c/37090/