This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/13267] New: python: gdb.Value needs a method to get rawmemory as a string
- From: "stbya at yahoo dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 05 Oct 2011 20:42:14 +0000
- Subject: [Bug gdb/13267] New: python: gdb.Value needs a method to get rawmemory as a string
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=13267
Bug #: 13267
Summary: python: gdb.Value needs a method to get raw memory as
a string
Product: gdb
Version: 7.3
Status: NEW
Severity: normal
Priority: P2
Component: gdb
AssignedTo: unassigned@sourceware.org
ReportedBy: stbya@yahoo.com
Classification: Unclassified
gdb.Value provides a way to get a textual string (gdb.Value.string(...)), but
there's no way to get it as a raw sequence of bytes. Maybe this could be done
with an encoding argument of None?
e.g.
v = gdb.parse_and_eval("var")
data = v.string(None, length=64)
--
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.