public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/13267] New: python: gdb.Value needs a method to get raw memory as a string
@ 2011-10-05 20:42 stbya at yahoo dot com
  2012-02-02 15:07 ` [Bug python/13267] " tromey at redhat dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: stbya at yahoo dot com @ 2011-10-05 20:42 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-11-14 15:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-05 20:42 [Bug gdb/13267] New: python: gdb.Value needs a method to get raw memory as a string stbya at yahoo dot com
2012-02-02 15:07 ` [Bug python/13267] " tromey at redhat dot com
2022-06-05 16:29 ` tromey at sourceware dot org
2023-10-26 19:26 ` cvs-commit at gcc dot gnu.org
2023-11-14 15:29 ` tromey at sourceware dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).