From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22088 invoked by alias); 19 Dec 2013 18:51:43 -0000 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 Received: (qmail 22075 invoked by uid 89); 19 Dec 2013 18:51:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-lb0-f171.google.com Received: from mail-lb0-f171.google.com (HELO mail-lb0-f171.google.com) (209.85.217.171) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 19 Dec 2013 18:51:42 +0000 Received: by mail-lb0-f171.google.com with SMTP id w7so647440lbi.16 for ; Thu, 19 Dec 2013 10:51:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=fZpyKyFFWlNFKA3tUXz7Tv0idAF0+6CIsySlywMHAk8=; b=g1fkCWMjUQqz1de6d/3oeD+x3TqPhJAUZjLKez+b/YGzv9NgQhn3262Tzd6cPYEBDn GRU2CuInOVD8bvQpnpSUa6RAekwTzT/kfMf0xRTzTLBwNhnQeIEhTfUdLCNjCF1UwO36 MmPPEEveCDttfEJ0A+jqvTxP0f15qKfymg+KL8C1JbDulK7PVrdLC92jLEkqkMM9Lrnz mLFXOwWZzzZasy9Zh2PYP2VIA0SJ7zcEHOTGl4XQo51tpfGXuA/aBKFYCHfTrTwckQRn fbDy+KYqCRp5m72GOZdsniI5ez153VPmPQpcgOh/fUegXleGJVOjMObXfCVYldsJrTii MN8A== X-Gm-Message-State: ALoCoQkDErTJ3UKksK2Ks6I6ZtTlhD0FlghWZaukhcrfypL/E2x3bSN5V/7cY68fWYeSEtxFmJEFROXevsLWw4Whxby02ZDK+0j+cruG7lvWZEk7vmv1DJjMA3VwLT+2SGWSifcxUkNM MIME-Version: 1.0 X-Received: by 10.152.140.193 with SMTP id ri1mr1545445lab.18.1387479096883; Thu, 19 Dec 2013 10:51:36 -0800 (PST) Received: by 10.152.182.201 with HTTP; Thu, 19 Dec 2013 10:51:36 -0800 (PST) Date: Thu, 19 Dec 2013 18:51:00 -0000 Message-ID: Subject: Kernel debugging From: Nikos Balkanas To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2013-12/txt/msg00067.txt.bz2 Hi, I am developing a module for the Linux kernel. For that i have setup the exact environment in Virtual Box and have loaded the (guest) kernel with -g and removed the -frame-pointers. I will run gdb from host and try to debug kernel on guest system. What is the best approach for this scenario? GDBserver or gdbstubs?. Gdb server is good only for userspace debugging. Will gdbstubs work? Are they included in the recent gdb sources, or are the ones to use since 2003 from sourceforge? I am also looking for instructions on how to implement them. Any hints? TIA, Nikos