WebFeb 7, 2012 · In Configuration->Source tab I had several options: a) Default b) path to the src's (only). If I use only "Absolute File Path" I have another error: Code: [ Select all] [ Show/ hide] Can't find a source file at "main.cpp" Locate the file or edit the source lookup path to include its location. http://c.biancheng.net/view/8255.html
gdb调试解决找不到源代码的问题_gdb无源码调试_AlbertS …
WebYou only need the file name with a function name to avoid ambiguity when there are identically named functions in different source files. *address Specifies the line containing the program address address. ... Each time GDB wants a source file, it tries all the directories in the list, in the order they are present in the list, until it finds a ... WebJul 29, 2024 · I can use the ‘show full path’ option to actually see for which files they are configured: Show Full Paths. So here they are set: breakpoints with full paths. The projects for these breakpoints are closed in my workspace, so GDB has a problem with these files. So if I want to get rid of GDB complaining about “No source file named ….”. dean\u0027s landscaping schererville
GDB调试指南-断点设置 - 知乎 - 知乎专栏
WebJan 24, 2024 · (at first it looked like this post but I've added the start and no change): No source file named input.c. Make breakpoint pending on future shared library load? (y or [n]) [answered N; input not from terminal] No source file named grammar.c. Make breakpoint pending on future shared library load? (y or [n]) [answered N; input not from terminal] WebNo source file named main.c. gdb break point setting. 我正在使用gdb调试C项目源代码。. 我编译如下所示:. 1. 2. . / configure -- enable - debug CFLAGS ="-g -o0". make -- … WebAfter a while, I seemed to find the cause and solution for this. It was because Eclipse seems to used a wrong path to main.c file as shown in the picture, seems like there is an extra backslash \ (gdb trace) and GDB doesn't like this: I tried to fix this by adding a relative path that points to the absolute path instead. generate qr code with logo in java