public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug python/18439] New: lazy string value method ignores length
@ 2015-05-21 2:23 dje at google dot com
0 siblings, 0 replies; only message in thread
From: dje at google dot com @ 2015-05-21 2:23 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=18439
Bug ID: 18439
Summary: lazy string value method ignores length
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: python
Assignee: unassigned at sourceware dot org
Reporter: dje at google dot com
Target Milestone: ---
const char *s = "abcdef";
python s = gdb.parse_and_eval("s")
python print s.lazy_string(length=3).value()
I would have expected this to print "abc", but it only prints 'a'.
Given how lazy strings are implemented it's easy to see why.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-05-21 2:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-21 2:23 [Bug python/18439] New: lazy string value method ignores length dje at google dot com
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).