This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/12901] New: g++ generates wrong line numbers on solaris/gdb
- From: "dhazeghi at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Nov 2003 23:53:56 -0000
- Subject: [Bug debug/12901] New: g++ generates wrong line numbers on solaris/gdb
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12901
Summary: g++ generates wrong line numbers on solaris/gdb
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P2
Component: debug
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dhazeghi at yahoo dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: sparc-sun-solaris2.8
See bug 7360 for more details.
Symptom is seen by:
bash-2.05b$ g++ -g test.cxx classes.cxx -o test
bash-2.05b$ gdb test
GNU gdb 5.3
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or 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.
This GDB was configured as "sparc-sun-solaris2.8"...
(gdb) list D
Line number 20 out of range; classes.cxx has 5 lines.
Clearly there is no such line, and equally clearly, D isn't on it.