Constify prompt argument to read_command_lines
authorTom Tromey <tom@tromey.com>
Wed, 18 Apr 2018 21:59:04 +0000 (15:59 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 4 May 2018 21:58:07 +0000 (15:58 -0600)
commit295dc222a712b700d9afa7e2462a68b866b120e1
tree3e9e7bc69a97c6b5553175f9ff3ff6f184abdfbd
parent1263a9d5f1c6198cdb4e73bafe86ca451d35684d
Constify prompt argument to read_command_lines

The prompt argument to read_command_lines can be const.  This patch
makes this change, and also removes some fixed-sized buffers in favor
of using string_printf.

ChangeLog
2018-05-04  Tom Tromey  <tom@tromey.com>

* tracepoint.c (actions_command): Update.
* cli/cli-script.h (read_command_lines): Update.
* cli/cli-script.c (read_command_lines): Constify prompt_arg.
(MAX_TMPBUF): Remove define.
(define_command): Use string_printf.
(document_command): Likewise.
* breakpoint.c (commands_command_1): Update.
gdb/ChangeLog
gdb/breakpoint.c
gdb/cli/cli-script.c
gdb/cli/cli-script.h
gdb/tracepoint.c