Re: [patch v9 22/23] testsuite, gdb.btrace: add btrace tests

Jan Kratochvil
2013-03-04T19:47:17Z

On Mon, 04 Mar 2013 18:06:09 +0100, Markus Metzger wrote:
> From: Christian Himpel <christian.himpel@intel.com>
>
> Recursive function calls are listed as only one function call. This is
> marked as an XFAIL.

That is a known defect of GDB, not a defect of system component we cannot fix.
Therefore it should be KFAIL and the problem should be described (copy/pasted)
to GDB Bugzilla to get a PR number for the 'kfail' command.

Thanks,
Jan

[...]
> +# at this point we expect to have main, fib, ..., fib, main, where fib occurs 8 times,
> +# so we limit the output to only show the latest 10 function calls
> +gdb_test_no_output "set record function-call-history-size 10"
> +set message "show recursive function call history"
> +gdb_test_multiple "record function-call-history" $message {
> + -re "13 main\r\n14 fib\r\n15 fib\r\n16 fib\r\n17 fib\r\n18 fib\r\n19 fib\r\n20 fib\r\n21 fib\r\n22 main\r\n$gdb_prompt " {
> + pass $message
> + }
> + -re "13 inc\r\n14 main\r\n15 inc\r\n16 main\r\n17 inc\r\n18 main\r\n19 inc\r\n20 main\r\n21 fib\r\n22 main\r\n$gdb_prompt " {
> + # recursive function calls appear only as 1 call
> + xfail $message
> + }
> +}