* printcmd.c (printf_c_string,printf_wide_c_string): New functions.
authorDoug Evans <dje@google.com>
Mon, 11 Feb 2013 22:04:58 +0000 (22:04 +0000)
committerDoug Evans <dje@google.com>
Mon, 11 Feb 2013 22:04:58 +0000 (22:04 +0000)
commitc2792f5a8f0273b6599c905ac107603b2000cc06
tree94a0b89326c3dcc3988bce82658acb3b9be50b6c
parentf5c033f1f3d7534aa9513c49a89d97ef0bd1cac3
* printcmd.c (printf_c_string,printf_wide_c_string): New functions.
(printf_decfloat): New function.  Broken out from ui_printf.
Remove unnecessary code to shift the entire format string down.
(printf_pointer): New function.
(ui_printf): Code to print C strings, wide C strings, decfloats,
and pointers moved to separate functions.
gdb/ChangeLog
gdb/printcmd.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/printcmds.exp