[PATCH v3 1/2] [func_call] Add function-call-history-length command to MI.

Eli Zaretskii eliz@gnu.org
Wed Jul 6 13:45:24 GMT 2022


> Date: Wed,  6 Jul 2022 15:36:38 +0200
> From: Ari Hannula via Gdb-patches <gdb-patches@sourceware.org>
> Cc: Tim Wiederhake <tim.wiederhake@intel.com>
> 
> From: Tim Wiederhake <tim.wiederhake@intel.com>
> 
> This allows MI clients like Eclipse to retrieve the length of the function
> call history.
> 
> Adds documentation for the command.
> 
> Adds tests for the command.
> 
> Signed-off-by: Tim Wiederhake <tim.wiederhake@intel.com>
> Signed-off-by: Ari Hannula <ari.hannula@intel.com>
> ---
>  gdb/Makefile.in                               |  1 +
>  gdb/doc/gdb.texinfo                           | 28 ++++++
>  gdb/mi/mi-cmd-record.c                        | 34 +++++++
>  gdb/mi/mi-cmd-record.h                        | 27 ++++++
>  gdb/mi/mi-cmds.c                              |  2 +
>  gdb/mi/mi-cmds.h                              |  1 +
>  gdb/record-btrace.c                           | 12 +++
>  gdb/target-delegates.c                        | 27 ++++++
>  gdb/target.c                                  |  8 ++
>  gdb/target.h                                  |  7 ++
>  .../gdb.mi/mi-function_call_history.c         | 43 +++++++++
>  .../gdb.mi/mi-function_call_history.exp       | 89 +++++++++++++++++++
>  12 files changed, 279 insertions(+)
>  create mode 100644 gdb/mi/mi-cmd-record.c
>  create mode 100644 gdb/mi/mi-cmd-record.h
>  create mode 100644 gdb/testsuite/gdb.mi/mi-function_call_history.c
>  create mode 100644 gdb/testsuite/gdb.mi/mi-function_call_history.exp

Thanks, the documentation part is OK.


More information about the Gdb-patches mailing list