* Wierd problem with gdb 6.x and separate debug info
@ 2004-05-01 8:39 Olivier Crete
2004-05-01 13:00 ` Andrew Cagney
0 siblings, 1 reply; 5+ messages in thread
From: Olivier Crete @ 2004-05-01 8:39 UTC (permalink / raw)
To: gdb
[-- Attachment #1: Type: text/plain, Size: 2014 bytes --]
Hi,
When I use separate debug infos made with "objcopy
--only-keep-debug" (I havent tested with eu-strip, but they should have
the same behavior now, right?) I get messages such as the following for
every loaded .so file that has separate debug info. Am I doing something
wrong?
warning: no loadable sections found in added symbol-file
/lib/.debug/libm-2.3.2.so.dbg
warning: section .note.ABI-tag not found in
/lib/.debug/libm-2.3.2.so.dbg
warning: section .hash not found in /lib/.debug/libm-2.3.2.so.dbg
warning: section .dynsym not found in /lib/.debug/libm-2.3.2.so.dbg
warning: section .dynstr not found in /lib/.debug/libm-2.3.2.so.dbg
warning: section .gnu.version not found in /lib/.debug/libm-2.3.2.so.dbg
warning: section .gnu.version_d not found in
/lib/.debug/libm-2.3.2.so.dbg
warning: section .gnu.version_r not found in
/lib/.debug/libm-2.3.2.so.dbg
warning: section .rel.dyn not found in /lib/.debug/libm-2.3.2.so.dbg
warning: section .rel.plt not found in /lib/.debug/libm-2.3.2.so.dbg
warning: section .init not found in /lib/.debug/libm-2.3.2.so.dbg
warning: section .plt not found in /lib/.debug/libm-2.3.2.so.dbg
warning: section .text not found in /lib/.debug/libm-2.3.2.so.dbg
warning: section .fini not found in /lib/.debug/libm-2.3.2.so.dbg
warning: section .rodata not found in /lib/.debug/libm-2.3.2.so.dbg
warning: section .interp not found in /lib/.debug/libm-2.3.2.so.dbg
warning: section .eh_frame not found in /lib/.debug/libm-2.3.2.so.dbg
warning: section .data not found in /lib/.debug/libm-2.3.2.so.dbg
warning: section .dynamic not found in /lib/.debug/libm-2.3.2.so.dbg
warning: section .ctors not found in /lib/.debug/libm-2.3.2.so.dbg
warning: section .dtors not found in /lib/.debug/libm-2.3.2.so.dbg
warning: section .jcr not found in /lib/.debug/libm-2.3.2.so.dbg
warning: section .got not found in /lib/.debug/libm-2.3.2.so.dbg
warning: section .bss not found in /lib/.debug/libm-2.3.2.so.dbg
--
Olivier Crête
tester@tester.ca
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Wierd problem with gdb 6.x and separate debug info
2004-05-01 8:39 Wierd problem with gdb 6.x and separate debug info Olivier Crete
@ 2004-05-01 13:00 ` Andrew Cagney
2004-05-01 13:23 ` Olivier Crete
0 siblings, 1 reply; 5+ messages in thread
From: Andrew Cagney @ 2004-05-01 13:00 UTC (permalink / raw)
To: Olivier Crete; +Cc: gdb
Two thoughts,
Look at, and run, the gdb.base/sepdebug.exp testcase. Running that will
at least confirm that the mechanism is working.
After that, it depends on the system, look at "set
debug-file-directory". Your system's debug directory may not match GDBs.
Andrew
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Wierd problem with gdb 6.x and separate debug info
2004-05-01 13:00 ` Andrew Cagney
@ 2004-05-01 13:23 ` Olivier Crete
2004-05-01 14:11 ` Andrew Cagney
0 siblings, 1 reply; 5+ messages in thread
From: Olivier Crete @ 2004-05-01 13:23 UTC (permalink / raw)
To: Andrew Cagney; +Cc: gdb
[-- Attachment #1: Type: text/plain, Size: 592 bytes --]
Hi,
On Sat, 2004-05-01 at 15:00, Andrew Cagney wrote:
> Look at, and run, the gdb.base/sepdebug.exp testcase. Running that will
> at least confirm that the mechanism is working.
I get 2 errors.
FAIL: run until function breakpoint
FAIL: run until function breakpoint, optimized file
Both using yesterday's cvs snapshot and 6.0.
> After that, it depends on the system, look at "set
> debug-file-directory". Your system's debug directory may not match GDBs.
I've put the debug info in .debug/ in the same directory as the libs..
--
Olivier Crête
tester@tester.ca
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Wierd problem with gdb 6.x and separate debug info
2004-05-01 13:23 ` Olivier Crete
@ 2004-05-01 14:11 ` Andrew Cagney
2004-05-01 19:14 ` Olivier Crete
0 siblings, 1 reply; 5+ messages in thread
From: Andrew Cagney @ 2004-05-01 14:11 UTC (permalink / raw)
To: Olivier Crete; +Cc: gdb
> Hi,
>
> On Sat, 2004-05-01 at 15:00, Andrew Cagney wrote:
>
>>> Look at, and run, the gdb.base/sepdebug.exp testcase. Running that will
>>> at least confirm that the mechanism is working.
>
>
> I get 2 errors.
> FAIL: run until function breakpoint
> FAIL: run until function breakpoint, optimized file
On Red Hat's RHEL 3 system (i386) I see no failures.
Do you get the other warnings (see gdb.log)? If not, then these
failures are probably due to other bugs.
> Both using yesterday's cvs snapshot and 6.0.
>
>
>>> After that, it depends on the system, look at "set
>>> debug-file-directory". Your system's debug directory may not match GDBs.
>
>
> I've put the debug info in .debug/ in the same directory as the libs..
Ok, I guess it is finding the relevant files. Look in gdb.log and check
exactly how objcopy is run.
Andrew
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Wierd problem with gdb 6.x and separate debug info
2004-05-01 14:11 ` Andrew Cagney
@ 2004-05-01 19:14 ` Olivier Crete
0 siblings, 0 replies; 5+ messages in thread
From: Olivier Crete @ 2004-05-01 19:14 UTC (permalink / raw)
To: Andrew Cagney; +Cc: gdb
[-- Attachment #1: Type: text/plain, Size: 232 bytes --]
Hi,
I found the problem.. I was inadvertently using an older binutils with a
"broken" --only-keep-debug and I wasn't doing --strip-debug.. I
switched to eu-strip and it now works fine.
--
Olivier Crête
tester@tester.ca
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-05-01 19:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-01 8:39 Wierd problem with gdb 6.x and separate debug info Olivier Crete
2004-05-01 13:00 ` Andrew Cagney
2004-05-01 13:23 ` Olivier Crete
2004-05-01 14:11 ` Andrew Cagney
2004-05-01 19:14 ` Olivier Crete
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox