>>>>> "Jan" == Jan Kiszka <[email protected]> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to