* Abatron for Userland Debugging?
@ 2001-12-04 21:20 Kent Borg
0 siblings, 0 replies; 4+ messages in thread
From: Kent Borg @ 2001-12-04 21:20 UTC (permalink / raw)
To: linuxppc-embedded
I have used the Abatron to debug the kernel, but I am wondering
whether it can easily be used to debug on the user side of the fence.
Can it? (If so, how?)
Thanks,
-kb
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: Abatron for Userland Debugging?
@ 2001-12-04 22:27 Rudolf Ladyzhenskii
0 siblings, 0 replies; 4+ messages in thread
From: Rudolf Ladyzhenskii @ 2001-12-04 22:27 UTC (permalink / raw)
To: 'Kent Borg', linuxppc-embedded
Why?
You only need Abatron in the cases where kernel crashes.
There is gdb for user applications.
You run gdbserver on the target and connect to it from another machine same
way as you would with abatron.
Rudolf
> -----Original Message-----
> From: Kent Borg [mailto:kentborg@borg.org]
> Sent: Wednesday, December 05, 2001 8:20 AM
> To: linuxppc-embedded@lists.linuxppc.org
> Subject: Abatron for Userland Debugging?
>
>
>
> I have used the Abatron to debug the kernel, but I am wondering
> whether it can easily be used to debug on the user side of the fence.
> Can it? (If so, how?)
>
>
> Thanks,
>
> -kb
>
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: RE: Abatron for Userland Debugging?
@ 2001-12-04 22:48 kentborg
2001-12-04 23:32 ` Dan Malek
0 siblings, 1 reply; 4+ messages in thread
From: kentborg @ 2001-12-04 22:48 UTC (permalink / raw)
To: linuxppc-embedded, rudolf.ladyzhenskii; +Cc: paq
rudolf.ladyzhenskii@act-aus.net wrote on 12/4/01 5:27 pm:
>Why?
>
>You only need Abatron in the
>cases where kernel crashes.
>There is gdb for user
>applications.
Why? Because gdbserver is acting strange (can stop at a breakpoint,
but won't step or continue). Maybe it is ptrace acting up, so I thought
maybe the Abatron could help...
-kb, the Kent who is thinking the Abatron will be useful in watching
ptrace and gdbserver chat with one another.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Abatron for Userland Debugging?
2001-12-04 22:48 RE: Abatron for Userland Debugging? kentborg
@ 2001-12-04 23:32 ` Dan Malek
0 siblings, 0 replies; 4+ messages in thread
From: Dan Malek @ 2001-12-04 23:32 UTC (permalink / raw)
To: kentborg; +Cc: linuxppc-embedded, rudolf.ladyzhenskii, paq
kentborg@borg.org wrote:
> -kb, the Kent who is thinking the Abatron will be useful in watching
> ptrace and gdbserver chat with one another.
You have to be a little bit careful with this.
First, there is a configuration option to add BDI context switch. This
switches the user page tables for teh BDI so you can at least look into
the process space for the current thread. This is useful for things like
system call tracing to see what the application actually did. This is a
configuration option because it adds a couple of instruction to the
context switch path.
Second, when debugging ptrace or gdb activity with the Abatron, you have
to be careful on some processors. For example, on 4xx processors the
BDI2000 uses the same processor debug registers as gdb or ptrace would,
so you end up fighting over the debug register contents and no one knows
what it going on.
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-12-04 23:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-04 22:48 RE: Abatron for Userland Debugging? kentborg
2001-12-04 23:32 ` Dan Malek
-- strict thread matches above, loose matches on Subject: below --
2001-12-04 22:27 Rudolf Ladyzhenskii
2001-12-04 21:20 Kent Borg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).