From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8549 invoked by alias); 11 Jul 2012 09:32:19 -0000 Received: (qmail 8535 invoked by uid 22791); 11 Jul 2012 09:32:18 -0000 X-SWARE-Spam-Status: No, hits=1.3 required=5.0 tests=AWL,BAYES_00,CHARSET_FARAWAY_HEADER,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_BJ,TW_UQ X-Spam-Check-By: sourceware.org Received: from mail-ob0-f169.google.com (HELO mail-ob0-f169.google.com) (209.85.214.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 11 Jul 2012 09:32:06 +0000 Received: by obhx4 with SMTP id x4so1569364obh.0 for ; Wed, 11 Jul 2012 02:32:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.60.29.161 with SMTP id l1mr46454457oeh.43.1341999125468; Wed, 11 Jul 2012 02:32:05 -0700 (PDT) Received: by 10.182.116.4 with HTTP; Wed, 11 Jul 2012 02:32:05 -0700 (PDT) Date: Wed, 11 Jul 2012 09:32:00 -0000 Message-ID: Subject: [help] Linux kernel debug error: Cannot find DIE From: =?GB2312?B?1uzH7A==?= To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 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-07/txt/msg00021.txt.bz2 Hi all, I met an error while debugging open64 built linux kernel with gdb, following steps and error msg: (gdb) file vmlinux (gdb) target remote ip_addr:1234 Remote debugging using ip_addr:1234 Dwarf Error: Cannot find DIE at 0x1634a7 referenced from DIE at 0x17a459 [in module linux-kernel/linux-2.6.32.6/Build/vmlinux] And there is also such error when set break points. I'm not sure this is caused by incorrect dwarf info generated by open64 compiler or gdb issues, since the gcc build kernel binary is able to debug. I compared the dwarf info output of the two compiler with objdump --dwarf=info , open64's binary is about 1.95GB and gcc's binary is 1.72GB, is that too large? Can someone give any clue on this to determine what is wrong here? Thanks ahead! zhuqing