I noticed a very strange thing with DWARF to CTF conversion when cc is called 
for .i file.

Suppose that you have program foo.c.

$ cc -g -c foo.c
$ ctfconvert -i -L VERSION foo.o
$ ctfdump foo.o

produces a dump of CTF information. But the following doesn't work:

$ cc -g -E foo.c >foo.i
$ cc -g -c foo.i
$ ctfconvert -i -L VERSION foo.o
$ ctfdump foo.o
ctfdump: 0.o does not contain .SUNW_ctf data

But it works if we do

$ mv foo.i bar.c
$ cc -g -c bar.i
$ ctfconvert -i -L VERSION bar.o
$ ctfdump bar.o

Any idea what might be causing this?

- akolb


Reply via email to