From: Mukesh Rathor Subject: kdb for xen Date: Fri, 02 May 2008 18:23:38 -0700 Message-ID: <481BBE9A.4010406@oracle.com> Reply-To: mukesh.rathor@oracle.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: andy@cs.ubc.ca, brendan@cs.ubc.ca List-Id: xen-devel@lists.xenproject.org Hi xen folks, It is my pleasure to announce an internal debugger for the xen hypervisor (64bit). It's a full fledged debugger that will "halt" the system, so the entire state can be examined. Some examples of commands: xkdb> cpu all : see one line state of all cpus xkdb> cpu 7 : switch to cpu 7 (the leaving cpu will pause immed) xkdb> dd addr 32 : display 32 bytes at address in doublewords xkdb> dr sp : display registers including special registers xkdb> ni : single step (go over function calls) xkdb> dom 5 : display dom 5 details xkdb> vcpu : display vcpu details at give "ptr" Type "h" at the prompt for all commands and usages. It can be downloaded from: http://xenbits.xensource.com/ext/kdb.hg and built by running "make kdb=y" in xen-unstable.hg/xen FEATURES: - set breakpoints in hypervisor - examine/modify memory, registers, special registers, domains, vcpus, etc.. - single step, single step till jump/call, step over call to next instruction after the call. - examine/modify memory of a PV guest. - set breakpoints, single step, etc... for a PV guest. - above functionality for HVM guest if the debugger breaks into a running HVM guest. - breaking into the debugger will freeze the system, all CPUs will pause, no interrupts are acknowledged in the debugger. (Hence, the wall clock will drift) - single step will step only that cpu. Regards, Mukesh Rathor