From: Jan Kiszka Date: Tue, 17 Feb 2015 21:46:38 +0000 (-0800) Subject: scripts/gdb: add cache for type objects X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~62^2~29 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b514827ef06fd69e1739e7f367712619dee7784;p=pandora-kernel.git scripts/gdb: add cache for type objects Type lookups are very slow in gdb-python which is often noticeable when iterating over a number of objects. Introduce the helper class CachedType that keeps a reference to a gdb.Type object but also refreshes it after an object file has been loaded. Signed-off-by: Jan Kiszka Cc: Thomas Gleixner Cc: Jason Wessel Cc: Andi Kleen Cc: Ben Widawsky Cc: Borislav Petkov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed