c - Issue Observed while using GDB -
i trying debug application use 1 static builded library.
i want set break points in library tried set using below command :
break ts.cpp:600(file name:line no)
but says
no source file named ts.cpp.
make breakpoint pending on future shared library load?(y or [n])
so presses y
here (i came know after browsing internet) after pressing y
gdb not stopping @ break point , completed executing program.
why gdb not stopped @ break point??
any input highly appreciated.
no source file named ts.cpp
this means 1 of 2 things:
- either file
ts.cpp
not compiled-g
(or equivalentlyts.o
has been stripped), or - the file
ts.o
not linked application.
since seeing prints
source, it's safe bet #1 actual root cause.
info sources command shows application.c , not files of library
that confirmation #1 root cause.
Comments
Post a Comment