This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/13380] New: value.cast(value.type.strip_typedefs()) doesnot work for array typedefs
- From: "andre.poenitz at nokia dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 03 Nov 2011 17:28:22 +0000
- Subject: [Bug python/13380] New: value.cast(value.type.strip_typedefs()) doesnot work for array typedefs
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=13380
Bug #: 13380
Summary: value.cast(value.type.strip_typedefs()) does not work
for array typedefs
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: python
AssignedTo: unassigned@sourceware.org
ReportedBy: andre.poenitz@nokia.com
Classification: Unclassified
Given
typedef char Foo[20];
Foo foo = "foo";
and
value = gdb.parse_and_eval("foo")
value.cast(value.type.strip_typedefs())
I get a
"RuntimeError: Invalid cast."
I would have expected a value with type char[20]
--
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.