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 gdb/15240] New: record function-call-history prints a singleline for recursive function calls


http://sourceware.org/bugzilla/show_bug.cgi?id=15240

             Bug #: 15240
           Summary: record function-call-history prints a single line for
                    recursive function calls
           Product: gdb
           Version: unknown
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
        AssignedTo: unassigned@sourceware.org
        ReportedBy: markus.t.metzger@intel.com
    Classification: Unclassified


For a recursive function call, the "record function-call-history" command
prints a single line for the caller and the callee. It should instead print
separate lines for each instance of that recursive function.

Example:

1  void foo (int n)
2  {
3    if (n > 2)
4      foo (n-1);
5  }

It currently prints:

(gdb) record function-call-history /l
0  foo.c:2-5  foo

It should print:

(gdb) record function-call-history /l
0  foo.c:2-4  foo
1  foo.c:2-4  foo
2  foo.c:2-5  foo
3  foo.c:5    foo
4  foo.c:5    foo

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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]