Code :: GDB Blocks Cannot Open File Error

I am using Code :: Blocks 12.11 and Cygwin gdb on Windows 8. I have configured cygwin gdb in code :: blocks, when it is debugging, it reports a "file cannot be opened" error. Using gdb on the command line is fine.

I found this discussion from the Internet, but I can not find the entry in the register. I assume that the Debugger plugin cannot pass the correct path name in gdb, there is a β€œβ†’β€ in the path prefix, I copied this to the editor and turned out to be two β€œhelper” charaters (1A in ascii).

Here is the error log, "β†’" is added manually, because when I copied it here, the "sub" characters are not displayed.

Debugger name and version: GNU gdb (GDB) 7.6.50.20130728-cvs (cygwin-special) Child process PID: 21936 Cannot open file: >>/cygdrive/e/code/test/main.cpp At >>/cygdrive/e/code/test/main.cpp:17 Debugger finished with status 0 

My question

1. How can I make gdb work in Code :: Blocks

2. As a rule, both β€œsub” characters matter and why they appear, how can I remove it.

+7
codeblocks gdb
source share
1 answer

I did this by following these steps:

I added the string value to

HKEY_CURRENT_USER \ Software \ Cygnus Solutions \ Cygwin \ mounts v2

and

HKEY_LOCAL_MACHINE \ Software \ Cygnus Solutions \ Cygwin \ mounts v2

(none of the folders were there, so I had to create them manually by choosing New-> Key)

with the following parameters:

name: cygdrive prefix

Value: / cygdrive

+5
source share

All Articles