From: Blaisorblade <bla...@ya...> - 2006-03-17 19:47:55
|
On Thursday 16 March 2006 15:37, Serge Goodenko wrote: > 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). In my experience, it stops on some breakpoints and not on others (for instance it doesn't break on panic). You may see if attaching to an already running UML rather than starting it under GDB makes a difference ("gdb kernelBinary" and "attach <pid>", where PID is the lowest one between the running procs). It's a problem I have since some time which I never solved - I guess that I'll have to make a bugreport to GDB. > kernel compiled with debug info, > without all the -Ox switches On this you're likely lying, as it's not possible to enable normally and there are various things which shouldn't compile if you disable -Ox. This is not the problem, however. > 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 <break_point>" command - > possibly because of newer gcc version?) Probably yes - I remember some mention of such a crash incompatibility in GCC's site release notes. But maybe there's some option to make GCC use the old format. > any help is appreciated ) -- Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!". Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894) http://www.user-mode-linux.org/~blaisorblade ___________________________________ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it |