scripts-gdb-fix-issue-with-dmesgpy-and-python-3x.patch removed from -mm tree
The patch titled
Subject: scripts/gdb: fix issue with dmesg.py and python 3.X
has been removed from the -mm tree. Its filename was
scripts-gdb-fix-issue-with-dmesgpy-and-python-3x.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Dom Cote <[email protected]>
Subject: scripts/gdb: fix issue with dmesg.py and python 3.X
When built against Python 3, GDB differs in the return type for its read_memory function, causing the lx-dmesg command to fail.
Now that we have an improved read_16() we can use the new read_memoryview() abstraction to make lx-dmesg return valid data on both current Python APIs
Tested with python 3.4 and 2.7
Tested with gdb 7.7
---
scripts/gdb/linux/dmesg.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
scripts/gdb/linux/dmesg.py renamed from scripts/gdb/linux/dmesg.py~scripts-gdb-fix-issue-with-dmesgpy-and-python-3x +4 -3
@@ -33,11 +33,12 @@ class LxDmesg(gdb.Command): if log_first_idx < log_next_idx: log_buf_2nd_half = -1 length = log_next_idx - log_first_idx - log_buf = inf.read_memory(start, length) + log_buf = utils.read_memoryview(inf, start, length).tobytes() else: log_buf_2nd_half = log_buf_len - log_first_idx - log_buf = inf.read_memory(start, log_buf_2nd_half) + \ - inf.read_memory(log_buf_addr, log_next_idx) + a = utils.read_memoryview(inf, start, log_buf_2nd_half) + b = utils.read_memoryview(inf, log_buf_addr, log_next_idx) + log_buf = a.tobytes() + b.tobytes() pos = 0 while pos < log_buf.__len__():
_
Patches currently in -mm which might be from [email protected] are