Antoine Martin wrote: >> for me I just do >> #gdb um/vmlinux (was compiled with -O um) >> gdb>run ubd0=/var/opt/FedoraCore5-AMD64-root_fs eth0=tuntap,,,192.168.0.117 >> after first trap in gdb >> gdb>handle SIGUSR1 pass nostop noprint >> from than on its strait gdb, tell me if you need a script for loading symbols of kernel modules. > > That would be great, it could go on the wiki too. > > Thanks > Antoine Attach is a script that works for both uml running in gdb or for kgdb. Usage: add-symbol-file module Where module can be just the mod_name or mod_name.ko or a full-path What you do is ssh into a running uml, after the module was loaded by the uml, and run the script. The printed message is what you need to paste at the gdb command-line. (the first chance you get) Note that the path echoed is relative to the uml root. You might need to adjust it for gdb since gdb will see the host path. If the module is inside the root_fs file than you will need to point gdb to a copy of the module file on the host. I hope that helps Boaz Harrosh