BDI kernel debug

3 messages, 2 authors, 2004-07-07 · open the first message on its own page

BDI kernel debug

From: Marco Schramel <hidden>
Date: 2004-07-06 11:31:08

Hi all,

i have some problems with debugging my kernel. This is the first time i use bdi for kernel debugging. ELDK 3.0 is my toolchain (Target 8270).
My bdi2000 can sync with the gdb (ddd) debugger.
I let the kernel run until "start_here", at example. Then i try to step through the source.  I see the source and i can step in it. Sometimes it happens that i spend a lot of time in
linux/kernel/timer.c. Then the output of gdb is "
(gdb) next
 Single stepping until exit from function __cli,
 which has no line number information.

 Program received signal SIGSTOP, Stopped (signal).
 0xc0007dec in __cli ()"

The same output with "step". "Cont" ends also there, although i had set a breakpoint later in the source.

Are there some options in the kernel or in the gdb to set ?

Thanks in advance
Marco



---------
Marco Schramel
R&D
Bartec GmbH
Schulstr. 30
94239 Gotteszell, Germany
www.bartec.de
Marco.Schramel@go.bartec.de
Phone:  +49 (0)9929/301332
Fax:    +49 (0)9929/301112


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

RE: BDI kernel debug

From: Fahd Abidi <hidden>
Date: 2004-07-07 11:42:19

Marco,

Please look online at the Ultimate Solutions website, I documented this
issue a little while ago, http://www.ultsol.com/faq-P305.htm. Wolfgang made
the right suggestion, using BDI_CONFIG_SWITCH will cure this problem.

Fahd

-----Original Message-----
From: Marco Schramel [mailto:Schramel.Linux@go.bartec.de]
Sent: Tuesday, July 06, 2004 6:31 AM
Subject: BDI kernel debug

i have some problems with debugging my kernel. This is the first time i
use bdi for kernel debugging. ELDK 3.0 is my toolchain (Target 8270). My
bdi2000 can sync with the gdb (ddd) debugger. I let the kernel run until
"start_here", at example. Then i try to step through the source. I see
the source and i can step in it. Sometimes it happens that i spend a lot
of time in linux/kernel/timer.c. Then the output of gdb is "
(gdb) next
 Single stepping until exit from function __cli,
 which has no line number information.

 Program received signal SIGSTOP, Stopped (signal).
 0xc0007dec in __cli ()"

The same output with "step". "Cont" ends also there, although i had set
a breakpoint later in the source.

Are there some options in the kernel or in the gdb to set ?

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

Re: BDI kernel debug

From: Marco Schramel <hidden>
Date: 2004-07-07 11:52:35

Fahd,

thank you for your answer
Please look online at the Ultimate Solutions website, I documented this
issue a little while ago, http://www.ultsol.com/faq-P305.htm. Wolfgang made
the right suggestion, using BDI_CONFIG_SWITCH will cure this problem.
But my kernel has this option.

Best regards
Marco


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help