hello,
I have UML (user mode linux) setup. when I run the kernel:
Code:
./kernel32-2.6.18 ubd0=Slack-10.1_fs
it boots up fine, and I'm able to log in. however when I want to run the UML kernel with gdb i'm not so successfully.
Code:
root@black_magic:~/uml# gdb ./kernel32-2.6.18 ubd0=Slackware-10.2-root_fs
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i486-slackware-linux"...Using host libthread_db library "/lib/tls/libthread_db.so.1".
/root/uml/ubd0=Slackware-10.2-root_fs: No such file or directory.
(gdb) run
Starting program: /root/uml/kernel32-2.6.18
Detaching after fork from child process 14562.
Checking that ptrace can change system call numbers...OK
Detaching after fork from child process 14563.
Checking syscall emulation patch for ptrace...OK
Detaching after fork from child process 14564.
Checking advanced syscall emulation patch for ptrace...OK
Checking for tmpfs mount on /dev/shm...nothing mounted on /dev/shm
Checking PROT_EXEC mmap in /tmp/...OK
Checking for the skas3 patch in the host:
- /proc/mm...not found
Detaching after fork from child process 14565.
- PTRACE_FAULTINFO...not found
Detaching after fork from child process 14566.
- PTRACE_LDT...not found
UML running in SKAS0 mode
Program received signal SIGUSR1, User defined signal 1.
0xb7f4f410 in ?? ()
(gdb)
I'm not sure why this is happing. The line of interest is
/root/uml/ubd0=Slackware-10.2-root_fs: No such file or directory.
My guess is I'm using gdb wrong, or need to add another argument.
Thanks,
djgerbavor3