public inbox for bfd@sourceware.org
 help / color / mirror / Atom feed
* DWARF read
@ 1999-02-05 11:43 H.J. Lu
  1999-02-05 11:57 ` Ian Lance Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: H.J. Lu @ 1999-02-05 11:43 UTC (permalink / raw)
  To: Ian Lance Taylor; +Cc: bfd

Hi,

I noticed that there is no DWARF read in BFD. As the result, one ld
test failed on Solaris/x86:

gcc -g -I/net/shanghai/local/work/gnu/src/binutils/ld/testsuite/ld-undefined -c -O2 -g /net/shanghai/local/work/gnu/src/binutils/ld/testsuite/ld-undefined/undefined.c
-o tmpdir/undefined.o
/export/home/hjl/build/gnu/bin/binutils/ld/ld-new -e start -o tmpdir/undefined
tmpdir/undefined.o
ld-new: warning: cannot find entry symbol start; defaulting to 08048074
tmpdir/undefined.o: In function `function':
tmpdir/undefined.o(.text+0x4): undefined reference to `this_function_is_not_defined'
PASS: undefined
PASS: undefined function
FAIL: undefined line

However, gdb knows how to read DWARF. Shouldn't it be moved to BFD so
that other problems can access DWARF also?

Thanks.


-- 
H.J. Lu (hjl@gnu.org)

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

* Re: DWARF read
  1999-02-05 11:43 DWARF read H.J. Lu
@ 1999-02-05 11:57 ` Ian Lance Taylor
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 1999-02-05 11:57 UTC (permalink / raw)
  To: hjl; +Cc: bfd

   From: hjl@varesearch.com (H.J. Lu)
   Date: Fri, 5 Feb 1999 11:43:18 -0800 (PST)

   I noticed that there is no DWARF read in BFD. As the result, one ld
   test failed on Solaris/x86:

   gcc -g -I/net/shanghai/local/work/gnu/src/binutils/ld/testsuite/ld-undefined -c -O2 -g /net/shanghai/local/work/gnu/src/binutils/ld/testsuite/ld-undefined/undefined.c
   -o tmpdir/undefined.o
   /export/home/hjl/build/gnu/bin/binutils/ld/ld-new -e start -o tmpdir/undefined
   tmpdir/undefined.o
   ld-new: warning: cannot find entry symbol start; defaulting to 08048074
   tmpdir/undefined.o: In function `function':
   tmpdir/undefined.o(.text+0x4): undefined reference to `this_function_is_not_defined'
   PASS: undefined
   PASS: undefined function
   FAIL: undefined line

   However, gdb knows how to read DWARF. Shouldn't it be moved to BFD so
   that other problems can access DWARF also?

What vintage sources are you using?  Gavin Romig-Koch added DWARF 2
debug reading to BFD in December 1997, and he added DWARF 1 in October
1998.  Solaris/x86 almost certainly uses DWARF 1.  If you are getting
the above error from recent sources, then there is a bug somewhere.

The gdb debug format parsing code is not in BFD for any format.  The
handling of debugging information is central to gdb, and it's never
seemed useful to provide the complex gdb handling to any other
program.  BFD has much simpler and less efficient versions of
debugging information handling.

Ian

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

end of thread, other threads:[~1999-02-05 11:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-02-05 11:43 DWARF read H.J. Lu
1999-02-05 11:57 ` Ian Lance Taylor

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).