[Bug debug/33044] Local static variable in C++ constructor not visible for debugging

2008-08-29 Thread jason at gcc dot gnu dot org
--- Comment #14 from jason at gcc dot gnu dot org 2008-08-29 16:09 --- Dodji is right: since the variable is shared between all concrete instances, there is no need to repeat anything about it in the concrete instance. The debugger should find the information it wants in the abstract in

[Bug debug/33044] Local static variable in C++ constructor not visible for debugging

2008-08-29 Thread dodji at gcc dot gnu dot org
--- Comment #13 from dodji at gcc dot gnu dot org 2008-08-29 14:41 --- Created an attachment (id=16162) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16162&action=view) The debug info of the program Okay, here is a more accurate analysis. I will refer to the debug info attached.

[Bug debug/33044] Local static variable in C++ constructor not visible for debugging

2008-08-29 Thread dodji at gcc dot gnu dot org
--- Comment #12 from dodji at gcc dot gnu dot org 2008-08-29 09:58 --- This is an update of what we get with gcc-4_3-branch. For the program (line numbers added for better legibility): 1 #include 2 class A { 3 public: 4A (int a, int b); 5int a_;

[Bug debug/33044] Local static variable in C++ constructor not visible for debugging

2008-08-27 Thread le dot ben dot smith at gmail dot com
--- Comment #11 from le dot ben dot smith at gmail dot com 2008-08-27 23:26 --- I just noticed this problem with gcc 4.3.0. I'm not familiar with compiler internals, so I don't understand all the details of the previous comments. It sounds like this is a gdb bug then... Is that corre

[Bug debug/33044] Local static variable in C++ constructor not visible for debugging

2008-01-13 Thread rguenth at gcc dot gnu dot org
--- Comment #10 from rguenth at gcc dot gnu dot org 2008-01-13 15:43 --- Unclear status of this bug. Removing target milestone. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug debug/33044] Local static variable in C++ constructor not visible for debugging

2007-08-24 Thread pinskia at gmail dot com
--- Comment #9 from pinskia at gmail dot com 2007-08-24 16:51 --- Subject: Re: Local static variable in C++ constructor not visible for debugging On 24 Aug 2007 16:45:41 -, nikolay at totalviewtech dot com <[EMAIL PROTECTED]> wrote: > What do you mean? The IA64 C++ ABI requires tw

Re: [Bug debug/33044] Local static variable in C++ constructor not visible for debugging

2007-08-24 Thread Andrew Pinski
On 24 Aug 2007 16:45:41 -, nikolay at totalviewtech dot com <[EMAIL PROTECTED]> wrote: > What do you mean? The IA64 C++ ABI requires two (or three) versions of constructor. So GCC "clones" functions to deal with that. And we emit the context of the local static variable part of the original

[Bug debug/33044] Local static variable in C++ constructor not visible for debugging

2007-08-24 Thread nikolay at totalviewtech dot com
--- Comment #8 from nikolay at totalviewtech dot com 2007-08-24 16:45 --- (In reply to comment #7) > This all comes down to cloning. > What do you mean? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33044

[Bug debug/33044] Local static variable in C++ constructor not visible for debugging

2007-08-24 Thread pinskia at gcc dot gnu dot org
--- Comment #7 from pinskia at gcc dot gnu dot org 2007-08-24 16:14 --- This all comes down to cloning. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33044

[Bug debug/33044] Local static variable in C++ constructor not visible for debugging

2007-08-24 Thread seppo at totalviewtech dot com
--- Comment #6 from seppo at totalviewtech dot com 2007-08-24 13:52 --- Hi Andrew, Reopened the bug (see comment above). Do also notice that the (due to the above) static foofoo inside constructor is still not visible to either TV or gdb. I have changed the title of the bug to reflect