aboutsummaryrefslogtreecommitdiff
path: root/gdb/monitor.h
diff options
context:
space:
mode:
authorJ.T. Conklin <jtc@acorntoolworks.com>1995-05-19 22:44:51 +0000
committerJ.T. Conklin <jtc@acorntoolworks.com>1995-05-19 22:44:51 +0000
commite3033bb0860511d42dd38962b1dda9d2c1f7b79d (patch)
tree7b8cea526ac5b074d77b7509fd219c166260f626 /gdb/monitor.h
parent078d1a5afa60040887118f869dbe49b9bb929b46 (diff)
downloadgdb-e3033bb0860511d42dd38962b1dda9d2c1f7b79d.zip
gdb-e3033bb0860511d42dd38962b1dda9d2c1f7b79d.tar.gz
gdb-e3033bb0860511d42dd38962b1dda9d2c1f7b79d.tar.bz2
* defs.h (ATTR_FORMAT): New macro, expands to gcc's format
attribute when compiled by gcc. * defs.h, language.h, monitor.h: Changed many function declarations to use ATTR_FORMAT. * breakpoint.c (delete_command); source.c (directory_command); top.c (define_command): Changed call to query() that had too many arguments. * printcmd.c (address_info): Changed call to printf_filtered() that had too many arguments.
Diffstat (limited to 'gdb/monitor.h')
-rw-r--r--gdb/monitor.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/monitor.h b/gdb/monitor.h
index dde19aa..85de892 100644
--- a/gdb/monitor.h
+++ b/gdb/monitor.h
@@ -172,6 +172,8 @@ extern void monitor_open PARAMS ((char *args, struct monitor_ops *ops, int from_
extern char *monitor_supply_register PARAMS ((int regno, char *valstr));
extern int monitor_expect PARAMS ((char *prompt, char *buf, int buflen));
extern int monitor_expect_prompt PARAMS ((char *buf, int buflen));
-extern void monitor_printf PARAMS ((char *, ...));
-extern void monitor_printf_noecho PARAMS ((char *, ...));
+extern void monitor_printf PARAMS ((char *, ...))
+ ATTR_FORMAT(printf, 1, 2);
+extern void monitor_printf_noecho PARAMS ((char *, ...))
+ ATTR_FORMAT(printf, 1, 2);
extern void init_monitor_ops PARAMS ((struct target_ops *));