Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - Debugger can't find a file even though it has the correct path and the file exists: (2 Items)
   
Debugger can't find a file even though it has the correct path and the file exists  
Hi

Below is the output of  GDB.  It can't find a file (at the end) that exists.  It happens to be something that I need to 
step through.  Any ideas?

I'm using GDB 6.7 r 10

Thanks
Kevin



847-gdb-set confirm off
847^done
(gdb) 
848-gdb-set width 0
848^done
(gdb) 
849-gdb-set height 0
849^done
(gdb) 
850-interpreter-exec console echo
850^done
(gdb) 
851-gdb-show prompt
851^done,value="(gdb) "
(gdb) 
852-target-select qnx 192.168.5.30:8000
~"MsgNak received - resending\n"
MsgNak received - resending
~"Remote target is little-endian\n"
Remote target is little-endian
852^connected
853-gdb-set auto-solib-add on
(gdb) 
853^done
854-gdb-set stop-on-solib-events 0
(gdb) 
854^done
855-gdb-set stop-on-solib-events 1
(gdb) 
855^done
856 attach 897042
(gdb) 
&"attach 897042\n"
attach 897042
~"Setting Dynamic-Linker Breakpoint based on C:/QNX632/target/qnx6/x86/usr/lib/ldqnx.so.2\n"
Setting Dynamic-Linker Breakpoint based on C:/QNX632/target/qnx6/x86/usr/lib/ldqnx.so.2
~"0xb0334792 in ?? ()\n"
0xb0334792 in ?? ()
856^done
(gdb) 
857-environment-directory C:/ARI/ARICommon/include C:/ARI/ARICommon/include/boost C:/ARI/ARICommon/include/boost/config 
C:/ARI/ARICommon/include/boost/config/abi C:/ARI/ARICommon/include/boost/config/compiler C:/ARI/ARICommon/include/boost/
config/no_tr1 C:/ARI/ARICommon/include/boost/config/platform C:/ARI/ARICommon/include/boost/config/stdlib C:/ARI/
ARICommon/include/boost/detail C:/ARI/ARICommon/include/boost/mpl C:/ARI/ARICommon/include/boost/mpl/aux_ C:/ARI/
ARICommon/include/boost/mpl/aux_/config C:/ARI/ARICommon/include/boost/mpl/aux_/preprocessed C:/ARI/ARICommon/include/
boost/mpl/aux_/preprocessed/bcc C:/ARI/ARICommon/include/boost/mpl/aux_/preprocessed/bcc551 C:/ARI/ARICommon/include/
boost/mpl/aux_/preprocessed/dmc C:/ARI/ARICommon/include/boost/mpl/aux_/preprocessed/gcc C:/ARI/ARICommon/include/boost/
mpl/aux_/preprocessed/msvc60 C:/ARI/ARICommon/include/boost/mpl/aux_/preprocessed/msvc70 C:/ARI/ARICommon/include/boost/
mpl/aux_/preprocessed/mwcw C:/ARI/ARICommon/include/boost/mpl/aux_/preprocessed/no_ctps C:/ARI/ARICommon/include/boost/
mpl/aux_/preprocessed/no_ttp C:/ARI/ARICommon/include/boost/mpl/aux_/preprocessed/plain C:/ARI/ARICommon/include/boost/
mpl/aux_/preprocessor C:/ARI/ARICommon/include/boost/mpl/aux_/range_c C:/ARI/ARICommon/include/boost/mpl/aux_/test C:/
ARI/ARICommon/include/boost/mpl/limits C:/ARI/ARICommon/include/boost/mpl/list C:/ARI/ARICommon/include/boost/mpl/list/
aux_ C:/ARI/ARICommon/include/boost/mpl/list/aux_/preprocessed C:/ARI/ARICommon/include/boost/mpl/list/aux_/preprocessed
/plain C:/ARI/ARICommon/include/boost/mpl/map C:/ARI/ARICommon/include/boost/mpl/map/aux_ C:/ARI/ARICommon/include/boost
/mpl/map/aux_/preprocessed C:/ARI/ARICommon/include/boost/mpl/map/aux_/preprocessed/no_ctps C:/ARI/ARICommon/include/
boost/mpl/map/aux_/preprocessed/plain C:/ARI/ARICommon/include/boost/mpl/map/aux_/preprocessed/typeof_based C:/ARI/
ARICommon/include/boost/mpl/math C:/ARI/ARICommon/include/boost/mpl/multiset C:/ARI/ARICommon/include/boost/mpl/multiset
/aux_ C:/ARI/ARICommon/include/boost/mpl/set C:/ARI/ARICommon/include/boost/mpl/set/aux_ C:/ARI/ARICommon/include/boost/
mpl/set/aux_/preprocessed C:/ARI/ARICommon/include/boost/mpl/set/aux_/preprocessed/plain C:/ARI/ARICommon/include/boost/
mpl/vector C:/ARI/ARICommon/include/boost/mpl/vector/aux_ C:/ARI/ARICommon/include/boost/mpl/vector/aux_/preprocessed C:
/ARI/ARICommon/include/boost/mpl/vector/aux_/preprocessed/no_ctps C:/ARI/ARICommon/include/boost/mpl/vector/aux_/
preprocessed/plain C:/ARI/ARICommon/include/boost/mpl/vector/aux_/preprocessed/typeof_based C:/ARI/ARICommon/include/
boost/preprocessor C:/ARI/ARICommon/include/boost/preprocessor/arithmetic C:/ARI/ARICommon/include/boost/preprocessor/
arithmetic/detail C:/ARI/ARICommon/include/boost/preprocessor/array C:/ARI/ARICommon/include/boost/preprocessor/
comparison C:/ARI/ARICommon/include/boost/preprocessor/config...
View Full Message
Re: Debugger can't find a file even though it has the correct path and the file exists  
Could you give me some more detail:

What is the gcc version you are using?
What is the optimization level?

When you get this message

&"No source file named 
C:/ARI/ARICommon/phcpp/PhWidgetStyle.hpp.\n"
860^error,msg="No source file named 
C:/ARI/ARICommon/phcpp/PhWidgetStyle.hpp."
(gdb)


Could you try the following

1) in GDB console window (in IDE), type:

-break-insert PhWidgetStyle.hpp:230

Did it work?

2) In your host's shell type:

ntox86-readelf -wl yourbinaryfile

and post the result here.



Thanks,

Aleksandar