From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28000 invoked by alias); 28 May 2012 00:41:30 -0000 Received: (qmail 27991 invoked by uid 22791); 28 May 2012 00:41:29 -0000 X-SWARE-Spam-Status: Yes, hits=5.2 required=5.0 tests=AWL,BAYES_00,CHARSET_FARAWAY_HEADER,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-yw0-f41.google.com (HELO mail-yw0-f41.google.com) (209.85.213.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 28 May 2012 00:41:15 +0000 Received: by yhr47 with SMTP id 47so1617534yhr.0 for ; Sun, 27 May 2012 17:41:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.43.126.1 with SMTP id gu1mr3295436icc.6.1338165674730; Sun, 27 May 2012 17:41:14 -0700 (PDT) Received: by 10.64.95.97 with HTTP; Sun, 27 May 2012 17:41:14 -0700 (PDT) Date: Mon, 28 May 2012 00:41:00 -0000 Message-ID: Subject: how can gdb debug realmode programme? Is there some patches? From: =?GB2312?B?wO69oQ==?= To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 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/msg00132.txt.bz2 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 =A0the instruction address is computed for protect_mode . how can I do? thank you!