I've been struggling with this for a while. I've gone back and reviewed
all
the messages in this topic on the subject, and I still can't figure it out.
-- I'm disabling frame pointer elimination via "-disable-fp-elim"
-- I see debugging information in my .s file.
-- My command line for compiling the LLVM-generated looks like this:
gcc -g -O0 -x assembler ReflectionTest.s -o ReflectionTest
-L/Users/talin/Projects/tart/build-eclipse/runtime -l runtime
-- here's what I see when I run 'dwarfdump':
> dwarfdump test/stdlib/ReflectionTest
----------------------------------------------------------------------
File: test/stdlib/ReflectionTest (i386)
----------------------------------------------------------------------
.debug_info contents:
< EMPTY >
-- When I try to debug in gdb, it prints this:
warning: Could not find object file
"/var/folders/h6/h6He5G34EF8g9zpg3SNFF++++TI/-Tmp-//ccoTexQw.o" - no
debug
information available for "ReflectionTest.tart".
--
-- Talin
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20091018/a6785c33/attachment.html>
Anton Korobeynikov
2009-Oct-19 07:17 UTC
[LLVMdev] Still can't get source-level debugging to work
> warning: Could not find object file > "/var/folders/h6/h6He5G34EF8g9zpg3SNFF++++TI/-Tmp-//ccoTexQw.o" - no debug > information available for "ReflectionTest.tart".It seems you're on darwin, right? Then you need another build steps in order to see dwarf stuff -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
Yes I am on darwin. On Mon, Oct 19, 2009 at 12:17 AM, Anton Korobeynikov < anton at korobeynikov.info> wrote:> > warning: Could not find object file > > "/var/folders/h6/h6He5G34EF8g9zpg3SNFF++++TI/-Tmp-//ccoTexQw.o" - no > debug > > information available for "ReflectionTest.tart". > It seems you're on darwin, right? Then you need another build steps in > order to see dwarf stuff > > -- > With best regards, Anton Korobeynikov > Faculty of Mathematics and Mechanics, Saint Petersburg State University >-- -- Talin -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091019/3d616e6a/attachment.html>