This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Source files as symlinks for 5.2.1


On Redhat Linux 7.1 with GDB 5.2.1:
  $ mkdir /tmp/a /tmp/b
  $ cd /tmp/a
  $ ln -s ../b/sample.c link.c
  $ ls -ld link.c
  ... link.c -> ../b/sample.c
  $ gcc -g link.c
  $ gdb a.out
  (gdb) list
  (gdb) info source
  Current source file is link.c
  Compilation directory is /tmp/a/
  Located in /tmp/b/sample.c
  Contains 6 lines.
  Source language is c.
  Compiled with stabs debugging format.

Why isn't the source file '/tmp/a/link.c'?

-- 
albert chin (china@thewrittenword.com)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]