public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/12901] New: g++ generates wrong line numbers on solaris/gdb
@ 2003-11-04 23:53 dhazeghi at yahoo dot com
  2003-11-04 23:56 ` [Bug debug/12901] " dhazeghi at yahoo dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-11-04 23:53 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug debug/12901] g++ generates wrong line numbers on solaris/gdb
  2003-11-04 23:53 [Bug debug/12901] New: g++ generates wrong line numbers on solaris/gdb dhazeghi at yahoo dot com
@ 2003-11-04 23:56 ` dhazeghi at yahoo dot com
  2003-11-05 10:28 ` ebotcazou at gcc dot gnu dot org
  2004-04-08 12:13 ` ebotcazou at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-11-04 23:56 UTC (permalink / raw)
  To: gcc-bugs

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



------- Additional Comments From dhazeghi at yahoo dot com  2003-11-04 23:56 -------
Created an attachment (id=5059)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5059&action=view)
testcase including sources and crashing binary

Oh I forgot to mention that this occurs with gdb 5.3. Haven't tested newer.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug debug/12901] g++ generates wrong line numbers on solaris/gdb
  2003-11-04 23:53 [Bug debug/12901] New: g++ generates wrong line numbers on solaris/gdb dhazeghi at yahoo dot com
  2003-11-04 23:56 ` [Bug debug/12901] " dhazeghi at yahoo dot com
@ 2003-11-05 10:28 ` ebotcazou at gcc dot gnu dot org
  2004-04-08 12:13 ` ebotcazou at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2003-11-05 10:28 UTC (permalink / raw)
  To: gcc-bugs

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


ebotcazou at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
  GCC build triplet|                            |sparc-sun-solaris2.8
   GCC host triplet|                            |sparc-sun-solaris2.8
   Last reconfirmed|0000-00-00 00:00:00         |2003-11-05 10:28:39
               date|                            |


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2003-11-05 10:28 -------
Confirmed on 3.3 branch and mainline (with GDB 5.3 and GDB 6.0).

GCC 2.95.3 gives "Line number 23 out of range; classes.cxx has 5 lines."


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug debug/12901] g++ generates wrong line numbers on solaris/gdb
  2003-11-04 23:53 [Bug debug/12901] New: g++ generates wrong line numbers on solaris/gdb dhazeghi at yahoo dot com
  2003-11-04 23:56 ` [Bug debug/12901] " dhazeghi at yahoo dot com
  2003-11-05 10:28 ` ebotcazou at gcc dot gnu dot org
@ 2004-04-08 12:13 ` ebotcazou at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-04-08 12:13 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2004-04-08 12:13 -------
Fixed by the switch to DWARF-2 as the default debugging format.  The problem
still affects g++ on Solaris 2.5.1 and 2.6 though, because it still use STABS there.

Given that the STABS support has already started to bitrot, I'm closing the bug.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |3.4.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12901


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-04-08 12:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-04 23:53 [Bug debug/12901] New: g++ generates wrong line numbers on solaris/gdb dhazeghi at yahoo dot com
2003-11-04 23:56 ` [Bug debug/12901] " dhazeghi at yahoo dot com
2003-11-05 10:28 ` ebotcazou at gcc dot gnu dot org
2004-04-08 12:13 ` ebotcazou at gcc dot gnu dot org

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