This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/11797] create a gdb.Type from a string "char[10]"
- From: "tromey at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 05 Jan 2012 20:41:04 +0000
- Subject: [Bug python/11797] create a gdb.Type from a string "char[10]"
- Auto-submitted: auto-generated
- References: <bug-11797-4717@http.sourceware.org/bugzilla/>
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.