scripts/gdb: add is_target_arch helper
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 17 Feb 2015 21:47:12 +0000 (13:47 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 17 Feb 2015 22:34:54 +0000 (14:34 -0800)
commitb24e2d21ac6efd23a67652870fac0cfb943d2264
tree49bdec5b6c0bd6685ab2f7e2782659d3552689d0
parent4752871081ba4fbb3c539488a95e77d8011bfe49
scripts/gdb: add is_target_arch helper

This helper caches to result of "show architecture" and matches the
provided arch (sub-)string against that output.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Jason Wessel <jason.wessel@windriver.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Ben Widawsky <ben@bwidawsk.net>
Cc: Borislav Petkov <bp@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/gdb/linux/utils.py