]> git.baikalelectronics.ru Git - kernel.git/commit
scripts/gdb: add get_target_endianness helper
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 17 Feb 2015 21:46:58 +0000 (13:46 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 17 Feb 2015 22:34:53 +0000 (14:34 -0800)
commitc3e68c9b8028c89a2ad708a2ec00003756ead2b4
tree8f100eb57664208e2f1d42fe3a35e605f9fe3cd7
parent84c7e7997087e23e19cfad139d0247e0325da443
scripts/gdb: add get_target_endianness helper

Parse the target endianness from the output of "show endian" and cache the
result to return it via the new helper get_target_endiannes.  We will need
it for reading integers from buffers that contain target memory.

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