From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3054 invoked by alias); 9 Jan 2009 11:28:49 -0000 Received: (qmail 3043 invoked by uid 22791); 9 Jan 2009 11:28:48 -0000 X-SWARE-Spam-Status: No, hits=-0.2 required=5.0 tests=AWL,BAYES_00,DATE_IN_FUTURE_06_12,SPF_PASS X-Spam-Check-By: sourceware.org Received: from wa-out-1112.google.com (HELO wa-out-1112.google.com) (209.85.146.178) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 09 Jan 2009 11:28:37 +0000 Received: by wa-out-1112.google.com with SMTP id v33so5431485wah.24 for ; Fri, 09 Jan 2009 03:28:35 -0800 (PST) Received: by 10.114.145.1 with SMTP id s1mr16770230wad.118.1231500515454; Fri, 09 Jan 2009 03:28:35 -0800 (PST) Received: from xpjpn (pool-71-111-133-125.ptldor.dsl-w.verizon.net [71.111.133.125]) by mx.google.com with ESMTPS id z15sm40210128pod.14.2009.01.09.03.28.34 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 09 Jan 2009 03:28:34 -0800 (PST) To: Cc: References: <496730C3.1000302@web.de> Subject: RE: symbolic debug of loadable modules with kgdb light Date: Fri, 09 Jan 2009 11:28:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit In-Reply-To: <496730C3.1000302@web.de> From: Caz Yokoyama 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/msg00043.txt.bz2 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. (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. 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? -caz -----Original Message----- From: jan.kiszka@web.de [mailto:jan.kiszka@web.de] Sent: Friday, January 09, 2009 3:11 AM To: Caz Yokoyama Cc: gdb@sourceware.org Subject: Re: symbolic debug of loadable modules with kgdb light Caz Yokoyama wrote: > Hello, > I started a sourceforge project called kgdb-light > (http://sourceforge.net/projects/kgdb-light/). kgdb-light is a modified gdb > which handles symbol tables of loadable modules of Linux kernel 2.6.26 and > later. Linux kernel 2.6.26 and later integrates kernel debugging under > kernel hacking. Gdb handles symbol table of Linux kernel, but it does not > for loadable modules. Kgdb-light updates internal symbol table by reading > "struct module" in kernel. I also modified gdb to send Magic SysRq, > therefore, target may locate far away. > Sounds very interesting. Did you happend to try the former extension with the QEMU or KVM backend already? Would be _very_ cool if such support became mainline (I'm tired of add-symbol-file with manually looked-up module addresses...). Is it possible to disable the SysRq interrupt for this use case? [ I still consider this variation of the original remote protocol an unfortunate decision of the kernel developers, but back then I wasn't able to convince them to change it. ] Jan