public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* #line in g++
@ 2002-09-16  8:48 Aldo Dolfi
  0 siblings, 0 replies; only message in thread
From: Aldo Dolfi @ 2002-09-16  8:48 UTC (permalink / raw)
  To: gcc-help

Hello,

I have a problem in using #line directive with c++ compiler.
If I force a line of code in a `cfile.c' to be considered as
coming from a different source file `source.ext' with a

# line 99 "source.ext"

directive and compile it with g++ it does not work. I mean
that looking at the object file with `objdump -G' I don't
find any reference to the string `source.ext' and if I try
symbolic debugging (ddd) I don't see this file in the list
of sources.
Looking at the assembler output (-E) I saw only .stabn are
inserted and not .stabs "source.ext"

If I compile the same source file with gcc it works.

Are there any differences in the syntax or usage of #line
between the two compilers?

Thank you!
Aldo Dolfi

PS Can you please cc the answer to me?

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-09-16 15:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-16  8:48 #line in g++ Aldo Dolfi

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