From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24997 invoked by alias); 28 May 2012 15:54:56 -0000 Received: (qmail 24981 invoked by uid 22791); 28 May 2012 15:54:52 -0000 X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-pb0-f41.google.com (HELO mail-pb0-f41.google.com) (209.85.160.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 28 May 2012 15:54:39 +0000 Received: by pbbrp2 with SMTP id rp2so4946752pbb.0 for ; Mon, 28 May 2012 08:54:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.232.129 with SMTP id to1mr201438pbc.27.1338220478961; Mon, 28 May 2012 08:54:38 -0700 (PDT) Received: by 10.68.27.10 with HTTP; Mon, 28 May 2012 08:54:38 -0700 (PDT) In-Reply-To: References: Date: Mon, 28 May 2012 15:54:00 -0000 Message-ID: Subject: Re: how can gdb debug realmode programme? Is there some patches? From: Zhihua Che To: =?UTF-8?B?5p2O5YGl?= Cc: gdb@sourceware.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes 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: 2012-05/txt/msg00137.txt.bz2 2012/5/28 =E6=9D=8E=E5=81=A5 : > I want to debug the linux kernel code when it is setup in realmode > ,but gdb can not working right for that,its diassemblely code is > wrong, > and =C2=A0the instruction address is computed for protect_mode . > > how can I do? > > thank you! As far as I know, gdb can't work well with real mode. I also tried to debug real mode code using gdb.