Hi !
I'm using GDB to debug a program and the thing is, there are many files in many different folders.
So I did start gdb and then I wrote :
Code:
(gdb) break ../../a_folder/another_folder/my_file.h
And it says :
Quote:
No source file named ../../a_folder/another_folder/my_file.h.
|
The path is correct, I checked it a million of times. Then I tried with the absolute path which is from the home directory. So something like :
Code:
(gdb) break ~/project/blabla/a_folder/another_folder/my_file.h
And this time I got :
Quote:
Can't find member of namespace, class, struct, or union named "~/project/blabla/a_folder/another_folder/my_file.h"
Hint: try '~/project/blabla/a_folder/another_folder/my_file.h'<TAB> or '~/project/blabla/a_folder/another_folder/my_file.h'<ESC-?>
(Note leading single quote.)
|
Does anyone know the reason ? And how to solve this ?
The option -g is set in my compiling options.
Thanks!