[uml-user] gdb 6.3 doesn't stop on breakpoints in UML
Hello! I debug UML kernel 2.6.13-4 using gdb 6.3 with SIGSEGV pass nostop noprint SIGUSR1 pass nostop noprint and with breakpoint set on function that is definetely called during my UML session (particulary tcp_sendmsg() when I send message using Inet sockets) and gdb doesn't stop on it! I suppose it doesn't stop on any breakpoints at all (i tried some others as well). kernel compiled with debug info, without all the -Ox switches etc. using gcc 4.0.2 host kernel is 2.6.13-15 (included in SuSE 10.0) p.s. btw the same problem I had running my previous linux distro (host 2.6.7, uml was the same as now) uml was compiled with gcc 3.4.3 and run under gdb 6.3. at that time i solved it by using gdb 5.3 - and all the breakpoints worked okay then. now I cannot use gdb 5.3 at all (it segfaults on "break " command - possibly because of newer gcc version?) any help is appreciated ) Serge Goodenko MIPT Moscow, Russia --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
RE: [uml-user] Where are /proc/mm and /dev/ubd0?
> -Original Message- > From: Jacob S > Sent: Wednesday, March 15, 2006 6:57 PM > Subject: [uml-user] Where are /proc/mm and /dev/ubd0? > > First, I have not been successful in compiling a kernel with > /proc/mm support. I downloaded source for 2.6.15 as well as > the skas3-v8.2 patch from Blaisorblade's site. When I do a > make menuconfig, I can not find any options for /proc/mm > under "Processor Type & Features" as his site says. I have > tried it with both Debian's source for 2.6.15 as well as a > kernel.org source. The host system is running Debian Sarge > (AMD64). Is there an additional patch I am missing or something? Do you see the following after running 'make menuconfig': # grep PROC_MM .config CONFIG_PROC_MM=y # If so, then you're good. If not... > Second, am I correct that the host system needs to have a > /dev/ubdX device? Do I need special udev rules to get it to > create the ubdX device, or should it do it automatically when > the proper module is loaded? When I try to boot a guest > Debian Sarge AMD64 image I downloaded from the web, I am > getting the following error: > > ubda: unknown partition table > Kernel panic - not syncing: VFS: Unable to mount root fs on > unknown-block(98,0) No, the host system does NOT need a /dev/ubd? device. You need to change your guest image's configuration to use the device. Edit /etc/fstab to reflect the /dev/ubd? device. Tony --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 ___ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
Re: [uml-user] Where are /proc/mm and /dev/ubd0?
On Thu, Mar 16, 2006 at 09:19:34AM -0800, Brock, Anthony - NET wrote: > > -Original Message- > > From: Jacob S > > Sent: Wednesday, March 15, 2006 6:57 PM > > Subject: [uml-user] Where are /proc/mm and /dev/ubd0? > > > > First, I have not been successful in compiling a kernel with > > /proc/mm support. I downloaded source for 2.6.15 as well as > > the skas3-v8.2 patch from Blaisorblade's site. When I do a > > make menuconfig, I can not find any options for /proc/mm > > under "Processor Type & Features" as his site says. I have > > tried it with both Debian's source for 2.6.15 as well as a > > kernel.org source. The host system is running Debian Sarge > > (AMD64). Is there an additional patch I am missing or something? > > Do you see the following after running 'make menuconfig': > > # grep PROC_MM .config > CONFIG_PROC_MM=y > # Nope. Not in any of .configs for all 3 2.6.15 kernels I have compiled so far. > If so, then you're good. If not... Should I try another kernel, or is there another patch I am missing? > > Second, am I correct that the host system needs to have a > > /dev/ubdX device? Do I need special udev rules to get it to > > create the ubdX device, or should it do it automatically when > > the proper module is loaded? When I try to boot a guest > > Debian Sarge AMD64 image I downloaded from the web, I am > > getting the following error: > > > > ubda: unknown partition table > > Kernel panic - not syncing: VFS: Unable to mount root fs on > > unknown-block(98,0) > > No, the host system does NOT need a /dev/ubd? device. You need to change > your guest image's configuration to use the device. Edit /etc/fstab to > reflect the /dev/ubd? device. As soon as I say that /dev/ubda exists, I realize this AMD64 image does not have a ubda device. So I created one, using "mknod /dev/ubda b 98 0". /etc/fstab was already setup to point to ubda. But it still gives the same error when I try to boot it. :-( Thanks, Jacob -- GnuPG Key: 1024D/16377135 Random .signature #17: Fatal Error: Found MS-Windows System -> Repartitioning Disk for Linux... signature.asc Description: Digital signature
Re: [uml-user] Where are /proc/mm and /dev/ubd0?
> As soon as I say that /dev/ubda exists, I realize this AMD64 image > does not have a ubda device. So I created one, using "mknod /dev/ubda > b 98 0". /etc/fstab was already setup to point to ubda. But it still > gives the same error when I try to boot it. :-( Don't you mean "mknod /mnt/guestfs/dev/ubda ..." where /mnt/guestfs is the mountpoint of the guest filesystem? You might also want to try creating a ubd0 as well as a ubda, in my experience it sometimes wants it called one thing and sometimes another, but I couldn't never work out the logic behind it. Also make sure you've compiled UBD support into your guest kernel, I've forgotten that a couple of times and gotten a similar error. Cheers, Adam. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user