skip to Main Content
Could not load source './csu/../csu/libc-start.c': 'SourceRequest' not supported..

Here’s my basic c code. I’m trying to set a breakpoint on _start. And see step by step where it goes on inside the _start func. But it shows that error message. There’s no launch.json file in the directory. How can I get rid of this error on my pc?
I’m using a amd x64 machine.

2

Answers


  1. Chosen as BEST ANSWER

    I solved it by pasting the csu directory of glibc into the same directory as the c file I was running and debugging. This solved the issue.


  2. You can tell GDB where to find files as follows:

    (gdb) directory /path/to/src
    

    You can probably add this command to the vscode setupCommands configuration.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search