This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug debug/23190] [4.0/4.1 Regression] debug info omitted for uninitialized variables (stabs)


------- Additional Comments From dpatel at apple dot com  2005-08-02 16:52 -------
Subject: Re:  [4.0/4.1 Regression] debug info omitted for uninitialized variables (stabs)


On Aug 1, 2005, at 8:25 PM, mark at codesourcery dot com wrote:

> In any case, the problem is now either in the C front end or in the  
> DBX
> generator.  Since the DWARF-2 generators do something reasonable,
> AFAICT, I would guess the problem is in either the DBX generator,  
> or the
>   GDB reader for STABS, or in the STABS format itself.

This does not look like STABS or DWARF-2 specific. Right now it
does work even in DWARF-2 mode also. With the attached patch it DWARF-2
also works.

GCC Mainline ===

Using stabs ===
Reading symbols for shared libraries .. done
Breakpoint 1 at 0x1d9c: file /tmp/t.c, line 6.
type = <unknown type>
type = <unknown type>
$1 = <unknown type>
$2 = <unknown type>

Using DWARF ===
Reading symbols for shared libraries .. done
Breakpoint 1 at 0x2d04: file /tmp/t.c, line 6.
type = <unknown type>
type = int
$1 = <unknown type>
$2 = 0

GCC Mainline with fix===

Using stabs ===
Reading symbols for shared libraries .. done
Breakpoint 1 at 0x1d9c: file /tmp/t.c, line 6.
type = int
type = int
$1 = 0
$2 = 0

Using DWARF ===
Reading symbols for shared libraries .. done
Breakpoint 1 at 0x2d04: file /tmp/t.c, line 6.
type = int
type = int
$1 = 0
$2 = 0


-
Devang



-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]