Page 1 of 1

problem with QEMU and gdb

Posted: Tue Aug 28, 2012 5:01 pm
by psnix
hi

when i set a break point on specified line or function in gdb, that stops(break) on the next lines for example:

break kernel/main.c:102

gdb stop emulation on line 124 of main.c

i use ready image in jmolly tutorials(just i replace kernel). and i compile kernel with -g and -O0 flags

where is problem?

sorry for my bad english

Re: problem with QEMU and gdb

Posted: Thu Aug 30, 2012 12:44 pm
by Nable
GCC options -ggdb* might help you.