[lkml]   [2013]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v5 13/20] scripts/gdb: Add is_target_arch helper
>>>>> "Jan" == Jan Kiszka <> 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.


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