Friday, 11 November 2016

Code::blocks gdb cannot find file

Problem:

Debugging in code::blocks using gdb, hits a breakpoint and reports cannot find file.

Solution:

1. Open regedit.

2. Create the following paths (selecting New->Key)

HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\

HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2

In both create a string:

name: cygdrive prefix

value: /cygdrive

Restart code::blocks, now gdb will find the file when hitting a breakpoint.

No comments: