This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug python/11797] create a gdb.Type from a string "char[10]"


http://sourceware.org/bugzilla/show_bug.cgi?id=11797

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at redhat dot com

--- Comment #2 from Tom Tromey <tromey at redhat dot com> 2012-01-05 20:41:04 UTC ---
(In reply to comment #1)
> Use the 'array' method on the constructed gdb.Type instance:
> 
> (gdb) py print(gdb.lookup_type('char').array(9))
> char [10]

Yeah -- but I think what this bug is really about is having
a method like "gdb.parse_type" that will parse a type according
to the language rules.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]