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:

  1. either file ts.cpp not compiled -g (or equivalently ts.o has been stripped), or
  2. 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

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -