Re: [PATCH] Add extra 'info os' information types for Linux (trunk and 7.4)

Pedro Alves
2012-01-02T19:19:34Z

On 01/02/2012 06:15 PM, Doug Evans wrote:
> On Mon, Jan 2, 2012 at 4:08 AM, Pedro Alves<alves.ped@gmail.com> wrote:
>> It may be important to this discussion to consider that in its present form,
>> "info os" is more useful in its MI variant, where the frontend queries
>> GDB for what tables does the backend expose (with "info os"), and then
>> presents them in spreadsheet-like format, all without any hardcoding.
>> Exposing
>> more bits in the GNU/Linux backends serves the purpose of being the
>> reference implementation / proof-of-concept.
>
> IWBN to expose such functionality to python without python having to
> parse the CLI output (i.e. funnel the xml to python).

Certainly. "info os" is all about structured data. Whether exposed as
raw xml or as some other pre-parsed structured form is arguable; it
could be said to fit fit in the general theme of exposing mi
structures to python as well? Not sure.

--
Pedro Alves