All of lore.kernel.org
 help / color / mirror / Atom feed
* Any successful story of debugging linux 4.13 with qemu 2.10 and gdb 8.01?
@ 2017-09-20  8:18 jjDaNiMoTh
  2017-09-20 15:20 ` 慕冬亮
  0 siblings, 1 reply; 9+ messages in thread
From: jjDaNiMoTh @ 2017-09-20  8:18 UTC (permalink / raw)
  To: kernelnewbies

Hello all,

As the title says, any of you have successfully tried to debug Linux
4.13 with QEMU? My problem is that it is not possible to break (even
with hbreak) in any function of the kernel, from the most used
(schedule or spin_lock) to the most obvious (uptime_proc_show when
/proc/uptime is read).

To be more specific, QEMU correctly stops if I put "-s -S" on the
command line, and perfectly continue the execution of the kernel when
I connect gdb using 'target remote :1234'. However, any breakpoint is
simply ignored.

I have followed any possible tutorial and any possible answer to
similar user questions. I also tried to do the same on a 16.04 version
of Ubuntu, but the result is always the same. In particular, I have
followed https://stackoverflow.com/questions/11408041/how-to-
debug-the-linux-kernel-with-gdb-and-qemu,
using both a busybox image and a raw filesystem image of Archlinux.

There is any known problem in debugging Linux? How can I "debug" this
debug process?

Thank you!

-- 
Stay open, be free.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20170920/ff079837/attachment.html 

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-09-22  6:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-20  8:18 Any successful story of debugging linux 4.13 with qemu 2.10 and gdb 8.01? jjDaNiMoTh
2017-09-20 15:20 ` 慕冬亮
2017-09-20 19:29   ` jjDaNiMoTh
2017-09-21  7:21     ` Greg KH
2017-09-21  7:29       ` Saket Sinha
2017-09-21  8:43       ` jjDaNiMoTh
2017-09-21  9:01         ` Greg KH
2017-09-21 17:08     ` 慕冬亮
2017-09-22  6:09       ` Saket Sinha

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.