Code cleanup: Make parts of print_command_1 public
authorJan Kratochvil <jan.kratochvil@redhat.com>
Sat, 16 May 2015 12:26:06 +0000 (14:26 +0200)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Sat, 16 May 2015 12:26:06 +0000 (14:26 +0200)
commit1c88ceb1bedc81dbfd1d076e4a49bbf533b4e238
tree536661170661d5de5ca7a65457d1be3aaa8dd6e1
parent0b738f2744178ad33eeb60bcd9bdfb77adb5605b
Code cleanup: Make parts of print_command_1 public

The later 'compile print' command should share its behavior with the existing
'print' command.  Make the needed existing parts of print_command_1 public.

gdb/ChangeLog
2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>

* printcmd.c (struct format_data): Move it to valprint.h.
(print_command_parse_format, print_value): New functions from ...
(print_command_1): ... here.  Call them.
* valprint.h (struct format_data): Move it here from printcmd.c.
(print_command_parse_format, print_value): New declarations.
gdb/ChangeLog
gdb/printcmd.c
gdb/valprint.h