X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-4.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.195.170 with SMTP id if10mr1516078igc.72.1363253411469; Thu, 14 Mar 2013 02:30:11 -0700 (PDT) In-Reply-To: References: <603c2ab2 DOT 23bed DOT 13d67af2820 DOT Coremail DOT hgw00 AT 126 DOT com> Date: Thu, 14 Mar 2013 17:30:11 +0800 Message-ID: Subject: Re: gdb bt gives many question marks From: Ken Huang To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 2013/3/14 jojelino : > On 2013-03-14 PM 4:37, Ken Huang wrote: >> >> Hi all, >> >> I have a problem when using gdb to debug my program in cygwin, the 'bt' >> command >> gives me many '??'. >> (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 >> > > There is no way of identifying stdcall or fastcall ABI for return address > that are not annotated by DWARF contained in stack frames in current gdb. > you'd better give up or come with patches that solved the problem. > -- > Regards. So you mean gdb can't help to debug buggy code without patches? but as the results I googled before, there are people out there use gdb just like in linux. Do I need to install some external packages? Regards, 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