All of lore.kernel.org
 help / color / mirror / Atom feed
* xmon debugger doc?
@ 2007-04-12 20:44 Steve Wise
  2007-04-13  3:48   ` Olof Johansson
  0 siblings, 1 reply; 5+ messages in thread
From: Steve Wise @ 2007-04-12 20:44 UTC (permalink / raw)
  To: linux-kernel

Can someone please point me at ppc64 xmon debugger usage /
documentation? I've had little luck finding info on-line.

Thanks in advance,

Steve.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: xmon debugger doc?
  2007-04-12 20:44 xmon debugger doc? Steve Wise
@ 2007-04-13  3:48   ` Olof Johansson
  0 siblings, 0 replies; 5+ messages in thread
From: Olof Johansson @ 2007-04-13  3:48 UTC (permalink / raw)
  To: Steve Wise; +Cc: linuxppc-dev, linux-kernel

On Thu, Apr 12, 2007 at 03:44:07PM -0500, Steve Wise wrote:
> Can someone please point me at ppc64 xmon debugger usage /
> documentation? I've had little luck finding info on-line.

The help output from it is pretty much all there is.

You might have better luck asking on linuxppc-dev@ozlabs.org though
(adding as Cc).

There's also an old writeup at
http://mbligh.org/linuxdocs/Kernel/DebuggingPPC64 for the very basics
of digging through a crash. Some of it is likely out of date by now.


-Olof

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: xmon debugger doc?
@ 2007-04-13  3:48   ` Olof Johansson
  0 siblings, 0 replies; 5+ messages in thread
From: Olof Johansson @ 2007-04-13  3:48 UTC (permalink / raw)
  To: Steve Wise; +Cc: linux-kernel, linuxppc-dev

On Thu, Apr 12, 2007 at 03:44:07PM -0500, Steve Wise wrote:
> Can someone please point me at ppc64 xmon debugger usage /
> documentation? I've had little luck finding info on-line.

The help output from it is pretty much all there is.

You might have better luck asking on linuxppc-dev@ozlabs.org though
(adding as Cc).

There's also an old writeup at
http://mbligh.org/linuxdocs/Kernel/DebuggingPPC64 for the very basics
of digging through a crash. Some of it is likely out of date by now.


-Olof

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: xmon debugger doc?
  2007-04-13  3:48   ` Olof Johansson
@ 2007-04-13  3:58     ` Michael Ellerman
  -1 siblings, 0 replies; 5+ messages in thread
From: Michael Ellerman @ 2007-04-13  3:58 UTC (permalink / raw)
  To: Olof Johansson; +Cc: linuxppc-dev, Steve Wise, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1232 bytes --]

On Thu, 2007-04-12 at 22:48 -0500, Olof Johansson wrote:
> On Thu, Apr 12, 2007 at 03:44:07PM -0500, Steve Wise wrote:
> > Can someone please point me at ppc64 xmon debugger usage /
> > documentation? I've had little luck finding info on-line.
> 
> The help output from it is pretty much all there is.
> 
> You might have better luck asking on linuxppc-dev@ozlabs.org though
> (adding as Cc).
> 
> There's also an old writeup at
> http://mbligh.org/linuxdocs/Kernel/DebuggingPPC64 for the very basics
> of digging through a crash. Some of it is likely out of date by now.

A good trick which the help output doesn't mention is that % and $ are
special in input, so you can do:

0:mon> di %pc

disassemble instructions at address pointed to by register PC

Other regs are eg: %lr, %r1, %r12.
And it works with di, d and other commands.

Also:

0:mon> di $.xmon_register_spus

disassemble instructions at address of symbol .xmon_register_spus.

cheers

-- 
Michael Ellerman
OzLabs, IBM Australia Development Lab

wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)

We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: xmon debugger doc?
@ 2007-04-13  3:58     ` Michael Ellerman
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Ellerman @ 2007-04-13  3:58 UTC (permalink / raw)
  To: Olof Johansson; +Cc: Steve Wise, linuxppc-dev, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1232 bytes --]

On Thu, 2007-04-12 at 22:48 -0500, Olof Johansson wrote:
> On Thu, Apr 12, 2007 at 03:44:07PM -0500, Steve Wise wrote:
> > Can someone please point me at ppc64 xmon debugger usage /
> > documentation? I've had little luck finding info on-line.
> 
> The help output from it is pretty much all there is.
> 
> You might have better luck asking on linuxppc-dev@ozlabs.org though
> (adding as Cc).
> 
> There's also an old writeup at
> http://mbligh.org/linuxdocs/Kernel/DebuggingPPC64 for the very basics
> of digging through a crash. Some of it is likely out of date by now.

A good trick which the help output doesn't mention is that % and $ are
special in input, so you can do:

0:mon> di %pc

disassemble instructions at address pointed to by register PC

Other regs are eg: %lr, %r1, %r12.
And it works with di, d and other commands.

Also:

0:mon> di $.xmon_register_spus

disassemble instructions at address of symbol .xmon_register_spus.

cheers

-- 
Michael Ellerman
OzLabs, IBM Australia Development Lab

wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)

We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-04-13  3:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-12 20:44 xmon debugger doc? Steve Wise
2007-04-13  3:48 ` Olof Johansson
2007-04-13  3:48   ` Olof Johansson
2007-04-13  3:58   ` Michael Ellerman
2007-04-13  3:58     ` Michael Ellerman

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.