diff options
author | Joel Brobecker <brobecker@gnat.com> | 2011-02-24 07:39:48 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2011-02-24 07:39:48 +0000 |
commit | a04b0428abc8564638c910f80b68a1cc7f14d3b2 (patch) | |
tree | bd34ea0a6e12ba8af1f16dcafebda64166737547 /gdb/printcmd.h | |
parent | 633ff500c5d9c76c0097985c4f6d83acdaaf08cb (diff) | |
download | binutils-a04b0428abc8564638c910f80b68a1cc7f14d3b2.zip binutils-a04b0428abc8564638c910f80b68a1cc7f14d3b2.tar.gz binutils-a04b0428abc8564638c910f80b68a1cc7f14d3b2.tar.bz2 |
Revert the following change (not approved yet):
2011-02-21 Hui Zhu <teawater@gmail.com>
* Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
* ax-gdb.c (gen_printf_expr_callback): New function.
* ax-gdb.h (gen_printf_expr_callback): Forward declare.
* ax-general.c (ax_memcpy): New function.
(ax_print): Handle "printf".
(ax_reqs): Ditto.
* ax.h (ax_memcpy): Forward declare.
* common/ax.def (invalid2): Removed.
(printf): New entry.
* printcmd.c (printcmd.h): New include.
(string_printf): New function.
(ui_printf): Removed.
(printf_command): Remove static. Call string_printf.
(eval_command): Call string_printf.
* printcmd.h: New file.
* tracepoint.c (validate_actionline,
encode_actions_1): handle printf_command.
Diffstat (limited to 'gdb/printcmd.h')
-rw-r--r-- | gdb/printcmd.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/gdb/printcmd.h b/gdb/printcmd.h deleted file mode 100644 index 0a1c2a9..0000000 --- a/gdb/printcmd.h +++ /dev/null @@ -1,30 +0,0 @@ -/* Print values for GNU debugger GDB. - - Copyright (C) 2011 Free Software Foundation, Inc. - - This file is part of GDB. - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see <http://www.gnu.org/licenses/>. */ - -#ifndef _PRINTCMD_H_ -#define _PRINTCMD_H_ - -extern void printf_command (char *arg, int from_tty); -typedef void (printf_callback) (char *fbuf, char **expp, void *loc_v, - void *aexpr_v); -extern void string_printf (char *arg, struct ui_file *stream, - printf_callback callback, void *loc_v, - void *aexpr_v); - -#endif /* _PRINTCMD_H_ */ |