From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8525 invoked by alias); 9 Jan 2009 12:38:00 -0000 Received: (qmail 8516 invoked by uid 22791); 9 Jan 2009 12:37:59 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from fmmailgate01.web.de (HELO fmmailgate01.web.de) (217.72.192.221) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 09 Jan 2009 12:37:47 +0000 Received: from smtp06.web.de (fmsmtp06.dlan.cinetic.de [172.20.5.172]) by fmmailgate01.web.de (Postfix) with ESMTP id 3A6BAFB87ED5; Fri, 9 Jan 2009 13:37:45 +0100 (CET) Received: from [88.64.7.77] (helo=[192.168.1.197]) by smtp06.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.110 #273) id 1LLGcT-0006ny-00; Fri, 09 Jan 2009 13:37:45 +0100 Message-ID: <49674511.6050400@web.de> Date: Fri, 09 Jan 2009 12:38:00 -0000 From: Jan Kiszka User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Caz Yokoyama CC: gdb@sourceware.org Subject: Re: symbolic debug of loadable modules with kgdb light References: <496730C3.1000302@web.de> In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig9706AD8E5DCB5BCEFB1650B0" X-Sender: jan.kiszka@web.de Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-01/txt/msg00044.txt.bz2 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig9706AD8E5DCB5BCEFB1650B0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-length: 1782 Caz Yokoyama wrote: > Hello, > Did you happen to try the former extension with the QEMU or KVM backend > already?=20 > --- > 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 the= re > 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). >=20 > 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 t= wo > 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 answ= er > 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 --------------enig9706AD8E5DCB5BCEFB1650B0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 258 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAklnRRgACgkQniDOoMHTA+nPGwCdG6U91eWpx0KHlb2zMNZZWt92 8MIAnRintobuNMb6XOZsLqKqOPR5rmcX =W2z2 -----END PGP SIGNATURE----- --------------enig9706AD8E5DCB5BCEFB1650B0--