Discussion:
[Bug gdb/13267] New: python: gdb.Value needs a method to get raw memory as a string
stbya at yahoo dot com
2011-10-05 20:42:14 UTC
Permalink
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: ***@sourceware.org
ReportedBy: ***@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.
tromey at redhat dot com
2012-02-02 15:06:35 UTC
Permalink
http://sourceware.org/bugzilla/show_bug.cgi?id=13267

Tom Tromey <tromey at redhat dot com> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at redhat dot com
Component|gdb |python
--
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.
tromey at sourceware dot org
2018-09-15 06:18:27 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=13267

Tom Tromey <tromey at sourceware dot org> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at sourceware dot org

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
A method on Value would be fine, but there's also
Inferior.read_memory.
--
You are receiving this mail because:
You are on the CC list for the bug.
Loading...