Article View: gnu.gcc.bug
Article #6116gcc ignores #line directives on Solaris X86
From: Peter Chubb
Date: Wed, 04 Dec 1996 00:00
Date: Wed, 04 Dec 1996 00:00
33 lines
1753 bytes
1753 bytes
Hi,
Using gcc version 2.7.2.1 on i386-unknown-solaris2.5, I get
the behaviour in the trace below. Note that despite the #line
directive, gdb believes that the filename is a.c.
Gcc on i386-unknown-linux and on sparc-sun-solaris2.5 do not exhibit
this behaviour.
$ cat a.c
#line 1 "fred"
/* ARGSUSED */
main(int ac, const char **argv)
{
return 0;
}
$ gcc --version
2.7.2.1
$ gcc -g a.c
$ gdb --version
GDB 4.16 (i386-unknown-solaris2.5),
Copyright 1996 Free Software Foundation, Inc.
$ gdb a.out
GDB is free software and you are welcome to distribute copies of it
under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.16 (i386-unknown-solaris2.5),
Copyright 1996 Free Software Foundation, Inc...
(gdb) info line main
Line 3 of "a.c" starts at address 0x8048790 <main>
and ends at 0x8048793 <main+3>.
(gdb) q
Technical Details
Message-ID:
<m0vVAHc-000FiPC@bookworm.sw.oz.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113d02,b269406be9be693b,start
X-Google-Attributes: gid113d02,public
From: peterc@bookworm.sw.oz.au (Peter Chubb)
Subject: gcc ignores #line directives on Solaris X86
Date: 1996/12/04
Message-ID: <m0vVAHc-000FiPC@bookworm.sw.oz.au>
X-Deja-AN: 202243186
sender: bug-gcc-request@prep.ai.mit.edu
comments: Hyperbole mail buttons accepted, v04.01.
content-type: text/plain; charset=US-ASCII
f.cedj2$s: kO2+-5<]afj@kC!:uw\(<>lVpk)lPZs+2(=?=D/TZPG+P9LDN#1RRUPxdX
x-face: .slVUC18R`%{j(W3ztQe~*ATzet;h`*Wv33MZ]*M,}9AP<`+C=U)c#NzI5vK!0^d#6:<_`a
x-gateway: relay2.UU.NET from bug-gcc to gnu.gcc.bug; Wed, 4 Dec 1996 00:54:55 EST
mime-version: 1.0 (generated by tm-edit 7.48)
reply-to: peterc@suite.sw.oz.au
newsgroups: gnu.gcc.bug