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] value.cast(value.type.strip_typedefs()) does notwork for array typedefs


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

--- Comment #1 from Andre Poenitz <andre.poenitz at nokia dot com> 2011-11-03 18:12:59 UTC ---

As workaround:

  python print gdb.parse_and_eval("{%s}%s" % (f.type.strip_typedefs(), 

produces the expected

  ~"\"foo\", '\\000' <repeats 16 times>\n"

-- 
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]