problem with QEMU and gdb

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
psnix
Member
Member
Posts: 50
Joined: Fri Oct 24, 2008 12:34 pm

problem with QEMU and gdb

Post 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
Nable
Member
Member
Posts: 453
Joined: Tue Nov 08, 2011 11:35 am

Re: problem with QEMU and gdb

Post by Nable »

GCC options -ggdb* might help you.
Post Reply