How can I use gdb to debug uml? I get a segfault because I have been
hacking on the ext3 code but I can't seem to use gdb to set breakpoints
in uml

gdb) break ext3_fill_super
gdb) run
...
Program received signal SIGSEGV, Segmentation fault.
0x080d9e97 in ext3_count_free_blocks (sb=0x87e38c0) at fs/ext3/balloc.c:3738
3738      unsigned long ngroups = EXT3_SB(sb)->s_groups_count;

gdb) bt
#0  0x080d9e97 in ext3_count_free_blocks (sb=0x87e38c0) at
fs/ext3/balloc.c:3738
#1  0x080e3241 in ext3_check_descriptors (sb=0x87e38c0) at
fs/ext3/super.c:1228
#2  0x080e3af3 in ext3_fill_super (sb=0x87e38c0, data=0x0, silent=1) at
fs/ext3/super.c:1660
#3  0x080a6613 in get_sb_bdev (fs_type=0x81d24e0, flags=1,
dev_name=0x8982000 "/dev/root", data=0x0,
    fill_super=0x80e3575 <ext3_fill_super>, mnt=0x8891230) at fs/super.c:768
...

I also tried './linux debug' but that didn't do anything special, uml
just ran like it usually does and I get a segfault from ext3.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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