About 52,300 results
Open links in new tab
  1. debugging - GDB source path - Stack Overflow

    If I there will be a lot such files, adding the whole path for each file is like putting all the files in one debug directory. In other words, if you have files with the same names but different directories …

  2. searching for source directories in GDB - Stack Overflow

    a is parent directory for b, c, d where b,c,d are child directories. source files are distributed in b,c,b. I would need to specify to GDB that all the source files are located in 'a' (parent …

  3. gdb dir command and source path -- what are $cdir, $cwd?

    Jun 4, 2021 · on this page https://sourceware.org/gdb/current/onlinedocs/gdb/Source-Path.html it says ‘$cdir’ causes GDB to search within the compilation directory, if one is recorded in the …

  4. How can I set a gdb source mapping for a relative path

    May 20, 2016 · I have gdb attached to a process and just stopped at a function breakpoint. Unfortunately I can't see any source code since the mapping seems to be off. The file it looks …

  5. How to get GDB to show the source code while debugging?

    Jul 29, 2021 · I usually use the list command to show source lines. Another technique is to open the file with an editor that shows line numbers; one window for GDB and one for the source code.

  6. How to set a source files directory recursively in gdb?

    Jan 23, 2019 · Can you edit your question to include the output of (gdb) info source when it's stopped at the strcpy breakpoint?

  7. Setting gdb source path on a different machine - Stack Overflow

    Nov 12, 2019 · Alternatively you could copy the source code over along with the executable. Once the source code is visible on the deployment machine, inside GDB you can use the directory …

  8. Find the path of the source code for the executable being …

    Dec 1, 2019 · I can set a breakpoint in main and debug the code with the correct source code, but I don't know where GDB is taking the source code from. The source code is not present in …

  9. linux - GDB won't load source file - Stack Overflow

    1 AFAIK you need a copy of source on your target machine (where you run the debugger). Another way to debug this is to run your code under gdbserver on target machine, then …

  10. .gdbinit file not found in local directory - Stack Overflow

    Sep 21, 2018 · The debugger gdb cannot find my local .gdbinit file but instead only the one located in the folder pointed by -cd argument. When there is no file in the local folder from …