[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87pq03ki7f.fsf@fleche.redhat.com>
Date: Wed, 13 Feb 2013 14:38:28 -0700
From: Tom Tromey <tromey@...hat.com>
To: Jan Kiszka <jan.kiszka@...mens.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org,
Jason Wessel <jason.wessel@...driver.com>,
kgdb-bugreport@...ts.sourceforge.net,
Andi Kleen <andi@...stfloor.org>,
Ben Widawsky <ben@...dawsk.net>, Borislav Petkov <bp@...en8.de>
Subject: Re: [PATCH v5 13/20] scripts/gdb: Add is_target_arch helper
>>>>> "Jan" == Jan Kiszka <jan.kiszka@...mens.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists