How GDB looks for filenames/path?

Dmitry Smirnov
Tue Jul 8 08:59:00 GMT 2008


I'm trying to execute the program till some line and getting the following response from GDB (I'm using Eclipse a fron-end):

286-exec-until parb.c:343
286^error,msg="No line 343 in file \"drivers\\parb\\/parb.c\"."

Previously, the source path was set as:
245-environment-directory C:/p4/views/myview

Obviously, the problem is a forward slash "/parb.c". Or backslashes?
Couple more examples that could help:

267-stack-list-frames 0 11
267^done,stack=[frame={level="0",addr="0x008c4a8e",func="ahb_bus_lock",file="drivers\\parb\\parb.c",line="333"} ...<cut>]

270-data-disassemble -f drivers\\parb\\parb.c -l 333 -n 100 -- 1
270^error,msg="mi_cmd_disassemble: Invalid filename."
271-data-disassemble -s 0x8c4a8e -e 0x8c4af2 -- 0
271^done,asm_insns=[{address="0x008c4a8e",func-name="ahb_bus_lock",offset="2",inst="movs\tr4, #0"}...<cut>]

The most weird thing is that GDB does not recognize the path drivers\\parb\\parb.c after it reported this file at the stack list. 

I'm debugging in Windows/Cygwin. My GDB is 
GNU gdb (GDB)
This GDB was configured as "--host=i686-pc-cygwin --target=arm-elf".

What function is doing lookup for a file path/name? I'm going to debug it...


More information about the Gdb mailing list