This is the mail archive of the gdb-patches@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] |
Hi, thank you for your patience. I revisited option (2) and found that I could actually do without big code refactoring. See attached patch how this could look like. "memoryview" offers some functions and data members that "buffer" does not have, like information about the stride size, the number of dimensions and explicit conversion functions to "bytes" and "list". Since we always return a one-dimensional array of bytes, this information is not too useful and is probably bearable to miss in Python 2. Besides these differences, the behavior is the same in regard to indexing and iterating over the object. Jose, can you confirm that this patch un-breaks GDB linked with Python 2.6? Regards, Tim Intel Deutschland GmbH Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de Managing Directors: Christin Eisenschmid, Christian Lamprechter Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928
Attachment:
0001-Fix-break-on-Python-2.patch
Description: 0001-Fix-break-on-Python-2.patch
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |