Cygwin GDB unknown target exception

Source: Internet
Author: User

 

 

The C program compiled by cygwin cannot be run. When you break down the file name in the command line, the program with no sound will return to the depressing state. Add the-G option and use GDB to load the file. The following error occurs:

GDB: unknown target exception 0 xcxxxxxxx at 0xxxxxxxxxx.

First, check the DLL that the program depends on.

$ Cygcheck.exe./a.exe

D:/tcplex/libssh2/a.exe

C:/cygwin/bin/cygwin1.dll

C:/Windows/system32/advapi32.dll

C:/Windows/system32/kernel32.dll

C:/Windows/system32/NTDLL. dll

C:/Windows/system32/rpcrt4.dll

C:/Windows/system32/secur32.dll

C:/cygwin/bin/cygssh2-1.dll

C:/cygwin/bin/cyggcc_s-1.dll

C:/cygwin/bin/cygcrypto-0.9.8.dll

C:/cygwin/bin/cygz. dll

C:/cygwin/bin/cystdc ++-6.dll

 

 

> GDB./a.exe

 

(GDB) DLL cygwin1.dll

(GDB) break * & 'dll: init'

Breakpoint 1 at 0x61010270

(GDB) Run

Still prompt: unknown target exception

 

So it is suspected that cygwin1.dll has a problem. I have recently updated cygwin using the new version of setup.exe. Is there a problem with updating the program?

Run cygwin setup.exe again and set base-cygwin reinstall. Solve the problem!

 

Still cannot solve the problem ?? Please refer to this document: http://www.nsnam.org/docs/linker-problems.doc

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.