public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Some Python ideas, looking for feedback
@ 2011-08-16 11:04 Paul_Koning
  2011-08-16 11:45 ` André Pönitz
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Paul_Koning @ 2011-08-16 11:04 UTC (permalink / raw)
  To: gdb

In trying out the Python scripting, I've run into some things that seem either inconsistent, or omissions of standard Python facilities, and I could do something about this if there is interest.

One inconsistency: Value objects can have their fields looked up by collection syntax, but Type objects cannot.  

Omission: while Value objects can have collection references to individual components, they don't support iteration as is normal for Python collections.

And a question: is there a way to get the value corresponding to an enum type's value name?  The name comes back in the fields() output but I don't see how I would get the value.  Could that be made a value attribute of the field object?

I can propose patches for each of these things, if there is interest.

               paul

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2011-08-30 20:09 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-16 11:04 Some Python ideas, looking for feedback Paul_Koning
2011-08-16 11:45 ` André Pönitz
2011-08-16 14:45   ` Paul_Koning
2011-08-17 18:37     ` Andrew Oakley
2011-08-17 19:13       ` Andrew Oakley
2011-08-17 19:29         ` Eli Zaretskii
2011-08-17 19:35           ` Andrew Oakley
2011-08-17 20:38             ` Eli Zaretskii
2011-08-17 20:52         ` Daniel Jacobowitz
2011-08-17 21:15           ` Paul_Koning
2011-08-19 14:14             ` Tom Tromey
     [not found]         ` <CAN9gPaFPhVYmfUO0sZeMUUy0X7x+hyUd8wDFJZXbe98RVvTLSw__33957.6404345737$1313614343$gmane$org@mail.gmail.com>
2011-08-19 14:14           ` Tom Tromey
2011-08-24  9:48             ` Andrew Oakley
2011-08-24 11:42               ` Phil Muldoon
2011-08-24 11:46                 ` Andrew Oakley
2011-08-24 16:17                   ` Phil Muldoon
     [not found]               ` <m3aaazavdq.fsf__47025.4836873666$1314186175$gmane$org@redhat.com>
2011-08-25 17:59                 ` Tom Tromey
2011-08-24 11:39 ` Phil Muldoon
2011-08-30 20:09 ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).