This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB 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 c++/22242] New: recursive display of variable information


https://sourceware.org/bugzilla/show_bug.cgi?id=22242

            Bug ID: 22242
           Summary: recursive display of variable information
           Product: gdb
           Version: 7.12.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
          Assignee: unassigned at sourceware dot org
          Reporter: nolange79 at gmail dot com
  Target Milestone: ---

Created attachment 10502
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10502&action=edit
Code for demonstrating the "infinite print"

Seems like the heuristics to prevent recursing into static members ain't
working with more complex code.
This is rather annoying cause it kills the debugger session in eclipse.


To reproduce the issue:

1) Compile the attached source with g++:
   g++ -O0 -g3 recursivegdb.cpp
2) Debug the output:
   gdb a.out
3) Set breakpoint at main and run
   b main
   run
4) display variable v
   p v
5) Try some minutes to reach the end of it...

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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