lkml.org 
[lkml]   [2013]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v5 13/20] scripts/gdb: Add is_target_arch helper
Date
>>>>> "Jan" == Jan Kiszka <jan.kiszka@siemens.com> writes:

Jan> +def is_target_arch(arch):
Jan> + global target_arch
Jan> + if target_arch == None:
Jan> + target_arch = gdb.execute("show architecture", False, True)
Jan> + return target_arch.find(arch) >= 0

FYI - the next gdb will have a Frame.architecture method for getting the
architecture of a frame. You might consider using it when it is
available. "show architecture" is mildly unfortunate to cache given its
"auto" behavior.

Tom


\
 
 \ /
  Last update: 2013-02-13 23:22    [W:1.370 / U:0.312 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site