hello,

i'm trying to debug a kernel with the skas patches, but it doesn't work:

the uml-kernel is a vanilla 2.6.11.6.

the host kernel is a vanilla 2.6.11.6 with the -skas3-v8-rc5 patch.

$ gdb linux
GNU gdb 6.3-debian

(gdb) r
Starting program: /home/marcogh/linux-uml/linux 

Program received signal SIGTRAP, Trace/breakpoint trap.
0xa0010003 in _start () at proc_fs.h:159
159                     res->data=data;

(gdb) handle SIGSEGV pass nostop noprint
Signal        Stop      Print   Pass to program Description
SIGSEGV       No        No      Yes             Segmentation fault
(gdb) handle SIGUSR1 pass nostop noprint
Signal        Stop      Print   Pass to program Description
SIGUSR1       No        No      Yes             User defined signal 1
(gdb) c
Continuing.

Program received signal SIGTRAP, Trace/breakpoint trap.
0xa0010005 in _start () at proc_fs.h:159
159                     res->data=data;
(gdb) 

..... a lot of SIGTRAP here....

..... until i wrote: 

(gdb) handle SIGTRAP nopass nostop noprint
SIGTRAP is used by the debugger.
Are you sure you want to change it? (y or n) y

Signal        Stop      Print   Pass to program Description
SIGTRAP       No        No      No              Trace/breakpoint trap
(gdb) r
Starting program: /home/marcogh/linux-uml/linux 
Checking for /proc/mm...found

and nothing else.

now the gdb uses 85% of the cpu and nothing happens.

(it's in a loop in kernel/panic.c:115)

other random informations:
#
# Kernel hacking
#
CONFIG_DEBUG_KERNEL=y
# CONFIG_SCHEDSTATS is not set
CONFIG_DEBUG_SLAB=y
CONFIG_DEBUG_SPINLOCK=y
# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
CONFIG_DEBUG_KOBJECT=y
CONFIG_DEBUG_INFO=y
# CONFIG_DEBUG_FS is not set
CONFIG_FRAME_POINTER=y
CONFIG_PT_PROXY=y
# CONFIG_GPROF is not set
# CONFIG_GCOV is not set



-- 
BOFH excuse #70:

nesting roaches shorted out the ether cable


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to