From: Caz Yokoyama <cazyokoyama@gmail.com>
To: <jan.kiszka@web.de>
Cc: <gdb@sourceware.org>
Subject: RE: symbolic debug of loadable modules with kgdb light
Date: Fri, 09 Jan 2009 16:29:00 -0000 [thread overview]
Message-ID: <26A311DDB48D4C44B5380A211BC314E2@xpjpn> (raw)
In-Reply-To: <49674511.6050400@web.de>
Right now gdb sends CTRL+C on start-up or when you interrupt the target
during runtime. For kgdb you had to replace this with the SysRq
sequence, right? But as qemu uses the standard way of interruption, this
replacement would have to be disabled again (probably via some "set
whatever-variable") - mmh, unless it is only coupled to serial line
links (QEMU works via TCP). In that case forget my question.
-----------
Whether my gdb sends BREAK+g on startup is determined by whether target
program is vmlinux. As you said, whether CTRL+C or BREAK is determined by
remote_break. remote_break is set and showed by set and show command. If
remote_break is enum {Ctl_C, BREAK, BREAK_g}, what's happen. I'll try.
-----Original Message-----
From: jan.kiszka@web.de [mailto:jan.kiszka@web.de]
Sent: Friday, January 09, 2009 4:38 AM
To: Caz Yokoyama
Cc: gdb@sourceware.org
Subject: Re: symbolic debug of loadable modules with kgdb light
Caz Yokoyama wrote:
> Hello,
> Did you happen to try the former extension with the QEMU or KVM backend
> already?
> ---
> No. I am glad if you tell me how to do that. I saw a paper which talked
> about running kgdb for guest OS of Xen.
AFAIK, Xen's gdbserver is not that advanced as the one of QEMU or KVM.
Both support hardware watchpoints/breakpoints now and present guest CPUs
as threads to the frontend.
> (http://www.kernel.org/doc/ols/2006/ols2006v2-pages-9-24.pdf). I know
there
> is serial console in Virtual Machine Manager, i.e. select Guest OS ->
> Details -> view -> serial console. But I have no idea how to connect it.
Start qemu (or qemu-system-x86_64) with -s as additional switch, using
some Linux system image that will boot the kernel you want to debug.
Then fire up "gdb vmlinux" and connect via "tar re :1234" to qemu's
gdbserver (once the kernel is booting, otherwise you will end up in the
BIOS).
>
> Is it possible to disable the SysRq interrupt for this use case?
> ----
> I am not clear your point. My modification uses SysRq. I mean there are
two
> ways to generate SysRq, 1) from keyboard and 2) from serial port. 1) is
> obvious, i.e. hit Ctrl+Alt+SysRq + g. 2) is BREAK and g. When my modified
> gdb is invoked, it sends BREAK and g which break-in to kernel. Did I
answer
> your question? Or are you asking something else?
Right now gdb sends CTRL+C on start-up or when you interrupt the target
during runtime. For kgdb you had to replace this with the SysRq
sequence, right? But as qemu uses the standard way of interruption, this
replacement would have to be disabled again (probably via some "set
whatever-variable") - mmh, unless it is only coupled to serial line
links (QEMU works via TCP). In that case forget my question.
Jan
prev parent reply other threads:[~2009-01-09 16:29 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-08 14:09 Caz Yokoyama
2009-01-08 19:04 ` Tiago Maluta
2009-01-08 19:40 ` Caz Yokoyama
2009-01-08 19:42 ` Caz Yokoyama
2009-01-09 4:18 ` Joel Brobecker
2009-01-09 14:52 ` Caz Yokoyama
2009-01-09 18:17 ` Joel Brobecker
2009-01-09 19:33 ` Caz Yokoyama
2009-01-10 6:40 ` Daniel Jacobowitz
[not found] ` <B28296C4454C4B539564033161523A12@xpjpn>
2009-01-11 3:38 ` Joel Brobecker
2009-01-09 11:11 ` Jan Kiszka
2009-01-09 11:28 ` Caz Yokoyama
2009-01-09 12:38 ` Jan Kiszka
2009-01-09 16:29 ` Caz Yokoyama [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=26A311DDB48D4C44B5380A211BC314E2@xpjpn \
--to=cazyokoyama@gmail.com \
--cc=gdb@sourceware.org \
--cc=jan.kiszka@web.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox