Move declaration of max_user_call_depth to header
authorChristian Biesinger <cbiesinger@google.com>
Thu, 10 Oct 2019 04:27:33 +0000 (23:27 -0500)
committerChristian Biesinger <cbiesinger@google.com>
Sat, 12 Oct 2019 19:31:26 +0000 (14:31 -0500)
commitcc8dee1f1c67be4155225c6c29dc1245abb89812
treeeed9d10ce5704b5174f1484a3e5203605e339daf
parent03d0d46a0e60203528f8d385a4136c870ff02261
Move declaration of max_user_call_depth to header

Also removes an unnecessary declaration of cmdlist in cli-cmds.c.
I don't understand why it is there, the definition of cmdlist is
at the top of the same file.

gdb/ChangeLog:

2019-10-12  Christian Biesinger  <cbiesinger@google.com>

* cli/cli-cmds.c (max_user_call_depth): Move comment to header.
(show_user): Remove declaration of cmdlist.
* cli/cli-cmds.h (max_user_call_depth): Declare.
* cli/cli-script.c (execute_user_command): Remove declaration
of max_user_call_depth.
gdb/ChangeLog
gdb/cli/cli-cmds.c
gdb/cli/cli-cmds.h
gdb/cli/cli-script.c