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 python/20769] New: lazy strings of non string objects


https://sourceware.org/bugzilla/show_bug.cgi?id=20769

            Bug ID: 20769
           Summary: lazy strings of non string objects
           Product: gdb
           Version: HEAD
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: python
          Assignee: unassigned at sourceware dot org
          Reporter: dje at google dot com
  Target Milestone: ---

Filing this to at least document the issue.

int my_int_variable;

(gdb) py print gdb.parse_and_eval("my_int_variable").lazy_string().type

What should that print?

I think the lazy_string() call should throw an error.

If one wants a lazy string of wide characters, say, where each element is an
int, then the argument to lazy_string should either be int* or int[].

-- 
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]