On Thursday 23 March 2006 15:50, Serge Goodenko wrote:
> > 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.
>
> thanks, I tried attaching and this helped!

> > 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.

> here are my gcc parameters from Makefile:

> HOSTCFLAGS      = -Wall -Wstrict-prototypes -g -fomit-frame-pointer
> -finline

> CFLAGS          := -Wall -Wstrict-prototypes -Wno-trigraphs \
>                    -fno-strict-aliasing -fno-common -finline -g \
>                    -ffreestanding

> ...and everything compiles ok!

Ahah, ok, you're smarter than that! -finline solves the problem I mentioned.
However, note that you needn't add -g there, you can simply set 
CONFIG_DEBUG_INFO.

Anyway, I think I'll use your idea (no -O, only -finline) to simplify 
debugging.
-- 
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! Messenger with Voice: chiama da PC a telefono a tariffe esclusive 
http://it.messenger.yahoo.com



-------------------------------------------------------
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

Reply via email to