public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/23336] New: enum constants not visible to gdb
@ 2005-08-11 18:34 tromey at gcc dot gnu dot org
  2005-08-11 18:59 ` [Bug debug/23336] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
  2005-09-27 15:58 ` mmitchel at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: tromey at gcc dot gnu dot org @ 2005-08-11 18:34 UTC (permalink / raw)
  To: gcc-bugs

This is with today's cvs head gcc and cvs head gdb.
I'm running on x86 FC2.

The test program:

#include <stdio.h>

enum java_tree_index
{
  JTI_PROMOTED_BYTE_TYPE_NODE,
  JTI_PROMOTED_SHORT_TYPE_NODE,
  JTI_PROMOTED_CHAR_TYPE_NODE,
  JTI_PROMOTED_BOOLEAN_TYPE_NODE,

  JTI_MAX
};

int main()
{
  printf ("%d\n", (int) JTI_MAX);
}


what happens:
opsy. gcc -g -o zz zz.c
opsy. ~/gnu/baseline-gdb/install/bin/gdb zz
GNU gdb 6.3.50.20050811-cvs
Copyright 2004 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 "i686-pc-linux-gnu"...Using host libthread_db library
"/lib/tls/libthread_db.so.1".
                                                                                
(gdb) b main
Breakpoint 1 at 0x8048380: file zz.c, line 15.
(gdb) r
Starting program: /tmp/zz
                                                                                
Breakpoint 1, main () at zz.c:15
15        printf ("%d\n", (int) JTI_MAX);
(gdb) p JTI_MAX
No symbol "JTI_MAX" in current context.


I think it should know the value of JTI_MAX here.
I know this used to work; for instance it works fine with the
system compiler on FC2 - gcc (GCC) 3.3.3 20040412 (Red Hat Linux 3.3.3-7)
(FWIW this bug is a big impediment to debugging gcj.)

-- 
           Summary: enum constants not visible to gdb
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tromey at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu


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


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

* [Bug debug/23336] [3.4/4.0/4.1 Regression] enum constants not visible to gdb
  2005-08-11 18:34 [Bug debug/23336] New: enum constants not visible to gdb tromey at gcc dot gnu dot org
@ 2005-08-11 18:59 ` pinskia at gcc dot gnu dot org
  2005-09-27 15:58 ` mmitchel at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-11 18:59 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-11 18:59 -------
Confirmed, another -feliminate-unused-debug-types bug.

a regression from 3.3.3.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |wrong-debug
      Known to fail|                            |3.4.0 4.0.0 4.1.0
      Known to work|                            |3.3.3
   Last reconfirmed|0000-00-00 00:00:00         |2005-08-11 18:59:16
               date|                            |
            Summary|enum constants not visible  |[3.4/4.0/4.1 Regression]
                   |to gdb                      |enum constants not visible
                   |                            |to gdb
   Target Milestone|---                         |4.0.2


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


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

* [Bug debug/23336] [3.4/4.0/4.1 Regression] enum constants not visible to gdb
  2005-08-11 18:34 [Bug debug/23336] New: enum constants not visible to gdb tromey at gcc dot gnu dot org
  2005-08-11 18:59 ` [Bug debug/23336] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-09-27 15:58 ` mmitchel at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-09-27 15:58 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.0.2                       |4.0.3


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


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

end of thread, other threads:[~2005-09-27 15:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-11 18:34 [Bug debug/23336] New: enum constants not visible to gdb tromey at gcc dot gnu dot org
2005-08-11 18:59 ` [Bug debug/23336] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-09-27 15:58 ` mmitchel 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).