delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/03/14/03:37:48

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.9 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
MIME-Version: 1.0
X-Received: by 10.50.57.168 with SMTP id j8mr19471051igq.51.1363246650704; Thu, 14 Mar 2013 00:37:30 -0700 (PDT)
In-Reply-To: <603c2ab2.23bed.13d67af2820.Coremail.hgw00@126.com>
References: <603c2ab2 DOT 23bed DOT 13d67af2820 DOT Coremail DOT hgw00 AT 126 DOT com>
Date: Thu, 14 Mar 2013 15:37:30 +0800
Message-ID: <CAJH9Tsd+4ztE=OknKcUj=7CVefi3sSHiw6bvxPivuSFjgZ1Udg@mail.gmail.com>
Subject: gdb bt gives many question marks
From: Ken Huang <csuhgw AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hi all,

I have a problem when using gdb to debug my program in cygwin, the 'bt' command
gives me many '??'.

So I write a quite easy program named abort.c which just aborts. after
compiled with
"gcc -g abort.c -o abort" and run with " gdb abort", it aborts as
expected. At this time
I type "bt" in gdb to see the backtrace info, but it only gives the following:
(gdb) bt
#0  0x7c92e514 in ntdll!LdrAccessResource () from
/cygdrive/c/WINDOWS/system32/ntdll.dll
#1  0x7c92df5a in ntdll!ZwWaitForSingleObject () from
/cygdrive/c/WINDOWS/system32/ntdll.dll
#2  0x7c8025db in WaitForSingleObjectEx () from
/cygdrive/c/WINDOWS/system32/kernel32.dll
#3  0x00000714 in ?? ()
#4  0x00000000 in ?? ()
(gdb) bt full
#0  0x7c92e514 in ntdll!LdrAccessResource () from
/cygdrive/c/WINDOWS/system32/ntdll.dll
No symbol table info available.
#1  0x7c92df5a in ntdll!ZwWaitForSingleObject () from
/cygdrive/c/WINDOWS/system32/ntdll.dll
No symbol table info available.
#2  0x7c8025db in WaitForSingleObjectEx () from
/cygdrive/c/WINDOWS/system32/kernel32.dll
No symbol table info available.
#3  0x00000714 in ?? ()
No symbol table info available.
#4  0x00000000 in ?? ()
No symbol table info available.

My test program is as follows:
void bar()
{
    abort();
}

void foo()
{
    bar();
}

int main()
{
    foo();
}

So, did I compile wrong, or is there something I didn't set properly?

Thanks,
Ken

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019