Thread View: gnu.gcc.bug
1 messages
1 total messages
Started by Peter Chubb
Wed, 04 Dec 1996 00:00
gcc ignores #line directives on Solaris X86
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads