public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/10542] New: 'set debug-file-directory' has no effect
@ 2009-08-21 14:31 gdb+kisch at sesamstrasse dot dyndns dot tv
  2009-08-21 14:46 ` [Bug symtab/10542] " gdb+kisch at sesamstrasse dot dyndns dot tv
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: gdb+kisch at sesamstrasse dot dyndns dot tv @ 2009-08-21 14:31 UTC (permalink / raw)
  To: gdb-prs

I'm cross-debugging a remote target over a TCP-connection.
The executable to debug has a separated debug information file on the debug host.
The build-id method is used to link the executable to its debug info.
I'm trying to point gdb to the installation directory of the debug info files with
  set debug-file-directoy /path/to/debugfiles

This setting doesn't seem to have any effect (other than on "show debug-file-directory").

By starting the cross-gdb under strace, I can see that gdb searches the debugfiles at
/opt/crosstool/lib/debug (it was configured with --prefix=/opt/crosstool).
When I provide a symbolic link at that place, all the debuginfo files are found correctly.

So it seems that gdb is ignoring the debug-file-directory setting in my case.

-- 
           Summary: 'set debug-file-directory' has no effect
           Product: gdb
           Version: 6.8
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: symtab
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: gdb+kisch at sesamstrasse dot dyndns dot tv
                CC: gdb-prs at sourceware dot org
 GCC build triplet: i686-pc-linux
  GCC host triplet: i686-pc-linux
GCC target triplet: powerpc-any-linux


http://sourceware.org/bugzilla/show_bug.cgi?id=10542

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug symtab/10542] 'set debug-file-directory' has no effect
  2009-08-21 14:31 [Bug symtab/10542] New: 'set debug-file-directory' has no effect gdb+kisch at sesamstrasse dot dyndns dot tv
@ 2009-08-21 14:46 ` gdb+kisch at sesamstrasse dot dyndns dot tv
  2009-08-21 14:47 ` gdb+kisch at sesamstrasse dot dyndns dot tv
  2009-08-21 14:55 ` gdb+kisch at sesamstrasse dot dyndns dot tv
  2 siblings, 0 replies; 4+ messages in thread
From: gdb+kisch at sesamstrasse dot dyndns dot tv @ 2009-08-21 14:46 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From gdb+kisch at sesamstrasse dot dyndns dot tv  2009-08-21 14:46 -------
gdbinit file used:

set history expansion 1
set history filename /var/tmp/se-build/kisch/gnash/gdbhistory
set history save 1
set history size 9999
set solib-search-path /home/kisch/workspace/PPC/common/lib
set debug-file-directory /home/kisch/workspace/PPC/common/debug
target remote 10.49.68.88:10000


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10542

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug symtab/10542] 'set debug-file-directory' has no effect
  2009-08-21 14:31 [Bug symtab/10542] New: 'set debug-file-directory' has no effect gdb+kisch at sesamstrasse dot dyndns dot tv
  2009-08-21 14:46 ` [Bug symtab/10542] " gdb+kisch at sesamstrasse dot dyndns dot tv
@ 2009-08-21 14:47 ` gdb+kisch at sesamstrasse dot dyndns dot tv
  2009-08-21 14:55 ` gdb+kisch at sesamstrasse dot dyndns dot tv
  2 siblings, 0 replies; 4+ messages in thread
From: gdb+kisch at sesamstrasse dot dyndns dot tv @ 2009-08-21 14:47 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From gdb+kisch at sesamstrasse dot dyndns dot tv  2009-08-21 14:47 -------
part of strace output showing gdb accessing /opt/crosstool/lib/debug

[...]
_llseek(5, 32768, [32768], SEEK_SET)    = 0
open("/proc/meminfo", O_RDONLY)         = 6
fstat64(6, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f2e000
read(6, "MemTotal:      1034756 kB\nMemFre"..., 1024) = 846
close(6)                                = 0
munmap(0xb7f2e000, 4096)                = 0
_llseek(5, 131072, [131072], SEEK_SET)  = 0
read(5, "ot detect controlling TTY\0\0\0WARN"..., 4096) = 4096
read(5, "\236\2\235\3\234\4\233\5\232\6\231\7\230\10\227\t\226\n"..., 4096) = 4096
access("/opt/crosstool/lib/debug/.build-id/69/b8e57055c551bcc63c6ac2272d7fcf06ff8d5e.debug", 
F_OK) = -1 ENOENT (No such file or directory)
write(1, "(no debugging symbols found)\n", 29(no debugging symbols found)
) = 29
close(5)                                = 0
munmap(0xb7f2f000, 4096)                = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
stat64("/var/tmp/se-build/kisch/gnash/gdbinit", {st_mode=S_IFREG|0664, st_size=282, ...}) = 0
open("/var/tmp/se-build/kisch/gnash/gdbinit", O_RDONLY) = 5
[...]

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10542

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug symtab/10542] 'set debug-file-directory' has no effect
  2009-08-21 14:31 [Bug symtab/10542] New: 'set debug-file-directory' has no effect gdb+kisch at sesamstrasse dot dyndns dot tv
  2009-08-21 14:46 ` [Bug symtab/10542] " gdb+kisch at sesamstrasse dot dyndns dot tv
  2009-08-21 14:47 ` gdb+kisch at sesamstrasse dot dyndns dot tv
@ 2009-08-21 14:55 ` gdb+kisch at sesamstrasse dot dyndns dot tv
  2 siblings, 0 replies; 4+ messages in thread
From: gdb+kisch at sesamstrasse dot dyndns dot tv @ 2009-08-21 14:55 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From gdb+kisch at sesamstrasse dot dyndns dot tv  2009-08-21 14:55 -------
same behaviour on host arch i686-apple-darwin

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10542

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-08-21 14:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-21 14:31 [Bug symtab/10542] New: 'set debug-file-directory' has no effect gdb+kisch at sesamstrasse dot dyndns dot tv
2009-08-21 14:46 ` [Bug symtab/10542] " gdb+kisch at sesamstrasse dot dyndns dot tv
2009-08-21 14:47 ` gdb+kisch at sesamstrasse dot dyndns dot tv
2009-08-21 14:55 ` gdb+kisch at sesamstrasse dot dyndns dot tv

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).