From: Blaisorblade <bla...@ya...> - 2006-03-24 00:44:07
|
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 |