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 gdb/13267] New: python: gdb.Value needs a method to get rawmemory as a string


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.


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