From: Jan Kiszka Date: Tue, 17 Feb 2015 21:46:41 +0000 (-0800) Subject: scripts/gdb: add container_of helper and convenience function X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~62^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0fecd8c570310c5041035a94eda7a4610402ace;p=pandora-kernel.git scripts/gdb: add container_of helper and convenience function Provide an internal helper with container_of semantics. As type lookups are very slow in gdb-python and we need a type "long" for this, cache the reference to this type object. Then export the helper also as a convenience function form use at the gdb command line. 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