This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/15240] New: record function-call-history prints a singleline for recursive function calls
- From: "markus.t.metzger at intel dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 07 Mar 2013 13:33:08 +0000
- Subject: [Bug gdb/15240] New: record function-call-history prints a singleline for recursive function calls
- Auto-submitted: auto-generated
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.