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/13380] New: value.cast(value.type.strip_typedefs()) doesnot work for array typedefs


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.


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