* Re: about kdb for Xen [not found] <3411131.2044551237885265110.JavaMail.nabble@isper.nabble.com> @ 2009-03-25 2:25 ` Mukesh Rathor [not found] ` <8c2dc7030903242025o7a661a2yc9fa32370e7709d8@mail.gmail.com> 0 siblings, 1 reply; 3+ messages in thread From: Mukesh Rathor @ 2009-03-25 2:25 UTC (permalink / raw) To: gjk.liu; +Cc: xen-devel You cannot continue execution when system crashed. The only thing to do is reboot. So go is disabled, as sometimes accidentally one might type that while debugging. There is some work to get gdb to debug xen, but I'm not sure what state it's in. To assist in debugging via kdb, use gdb on xen-syms file. Then use gdb to find matching line numbers in C file. Look at gdb manual how to do that. Thanks, Mukesh gjk.liu@gmail.com wrote: > Hi Mukesh, > > Why system often show"cmd not available in fatal/crashed state .....", after > enter "go" in kdb for Xen. I have just cloned the codes from the branch. > > btw: Is there any other debug method for xen itself? for example, using gdb at > source code level like linux or freebsd. I think it will be more convenient than kdb. > You know, there are too many optimazation on code after compiled by gcc. > > Cheers:) > > Liu Jian > ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <8c2dc7030903242025o7a661a2yc9fa32370e7709d8@mail.gmail.com>]
[parent not found: <49CC3EE1.5060807@oracle.com>]
[parent not found: <8c2dc7030903270351q17449595wecd280022336de3@mail.gmail.com>]
* Re: about kdb for Xen [not found] ` <8c2dc7030903270351q17449595wecd280022336de3@mail.gmail.com> @ 2009-03-27 20:53 ` Mukesh Rathor [not found] ` <8c2dc7030903292141p1d08c7baiff8c53b1b4888476@mail.gmail.com> 0 siblings, 1 reply; 3+ messages in thread From: Mukesh Rathor @ 2009-03-27 20:53 UTC (permalink / raw) To: Liu Jian; +Cc: xen-devel Liu Jian wrote: > On Fri, Mar 27, 2009 at 10:50 AM, Mukesh Rathor > <mukesh.rathor@oracle.com> wrote: >> I think I'm not following you. If you enter go first time, the system is >> crashing. You are hitting an assert (BUG()) in the hypervisor. The >> victim is accpting input as you are able to type the second "go" when >> it's says cmd not avail in crash state. >> >> After the crash, you can use dr, f, dw, etc... all those commands but >> not the "go" cmd. >> > > Yes, "df, f, dw" works well. But the second "go" not and it show as following: > > [1]xkdb> go > cmd not available in fatal/crashed state...... > > Of course, now target victim cannot accept any input. You are saying you don't get kdb prompt back now? > >> 1. what version of xen are you using? > > All the code is cloned from your branch as following: > > [root@localhost ~]hg clone http://xenbits.xensource.com/ext/debuggers.hg > > In the compile process as following, It show the version is "3.4-unstable" > >> 2. Are you compiling hyp with -DEBUG? > > I just compile xen by: > > [root@localhost xen>make kdb=y > > Do you mean I need other parameters? The problem is debug is turned on. kdb is not currently supported with debug on, as I had said before. Do > make kdb=y debug=n I also suggest frame_pointer=y to get reliable stacks. Mukesh ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <8c2dc7030903292141p1d08c7baiff8c53b1b4888476@mail.gmail.com>]
* Re: about kdb for Xen [not found] ` <8c2dc7030903292141p1d08c7baiff8c53b1b4888476@mail.gmail.com> @ 2009-03-30 18:49 ` Mukesh Rathor 0 siblings, 0 replies; 3+ messages in thread From: Mukesh Rathor @ 2009-03-30 18:49 UTC (permalink / raw) To: Liu Jian; +Cc: xen-devel Liu Jian wrote: >> The problem is debug is turned on. kdb is not currently supported with >> debug on, as I had said before. Do > make kdb=y debug=n >> I also suggest frame_pointer=y to get reliable stacks. >> > > after add "debug=n", it works well. Thanks lots! > > btw: what is the function about "frame_pointer=y"? you'll get reliable stack as the compiler will dedicate a register for stack usage. Mukesh ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-03-30 18:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <3411131.2044551237885265110.JavaMail.nabble@isper.nabble.com>
2009-03-25 2:25 ` about kdb for Xen Mukesh Rathor
[not found] ` <8c2dc7030903242025o7a661a2yc9fa32370e7709d8@mail.gmail.com>
[not found] ` <49CC3EE1.5060807@oracle.com>
[not found] ` <8c2dc7030903270351q17449595wecd280022336de3@mail.gmail.com>
2009-03-27 20:53 ` Mukesh Rathor
[not found] ` <8c2dc7030903292141p1d08c7baiff8c53b1b4888476@mail.gmail.com>
2009-03-30 18:49 ` Mukesh Rathor
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.