X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: <4704CA0F.9010907@udc.es> Date: Thu, 04 Oct 2007 13:10:07 +0200 From: Alberto Luaces User-Agent: Thunderbird 1.5.0.13 (Windows/20070809) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Debugging with cygwin tools Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Hello, I am just starting to learn how to use the debugging tools available in Cygwin. To do so, I have a test program deliberately designed to crash: #include int main() { int *p=0; *p=9; return 0; } I have compiled it with debugging information: g++ -g -O0 -o core core.cpp Then I try to run it with gdb: gdb core.exe (gdb) b main Breakpoint 1 at 0x401175: file core.cpp, line 4. (gdb) r Starting program: /home/Demostración/testsC++/core.exe Error: dll starting at 0x77d41000 not found. Segmentation fault (core dumped) As seen, gdb crashes without even start the program. Then, I am trying to get a core dump: $ export CYGWIN=error_start=c:\\cygwin\\bin\\dumper.exe $ ./core *** starting debugger for pid 2664, tid 544 but the program 'dump.exe' never returns and no core file is generated. My system is running WinXP-64. I have read on the archives that dumper.exe should work correctly but it is not. How can I finally debug my program? Alberto -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/