diff options
author | Thomas Lord <lord@cygnus> | 1993-11-01 22:25:23 +0000 |
---|---|---|
committer | Thomas Lord <lord@cygnus> | 1993-11-01 22:25:23 +0000 |
commit | 199b2450f62ad6ffbe56ec34fc447716b811579d (patch) | |
tree | 07400f3981865f129b912a51b85e69b7b8d1ee22 /gdb/h8300-tdep.c | |
parent | b3c0fc577b17083c8bdc3ed5cffc4ca50aefaa5e (diff) | |
download | gdb-199b2450f62ad6ffbe56ec34fc447716b811579d.zip gdb-199b2450f62ad6ffbe56ec34fc447716b811579d.tar.gz gdb-199b2450f62ad6ffbe56ec34fc447716b811579d.tar.bz2 |
Change the stream argument to _filtered to GDB_FILE *.
Change all references to stdout/stderr to gdb_stdout/gdb_stderr.
Replace all calls to stdio output functions with calls to
corresponding _unfiltered functions (`fprintf_unfiltered')
Replaced calls to fopen for output to gdb_fopen.
Added sufficient goo to utils.c and defs.h to make the above work.
The net effect is that stdio output functions are only directly used
in utils.c. Elsewhere, the _unfiltered and _filtered functions and
GDB_FILE type are used.
In the near future, GDB_FILE will stop being equivalant to FILE.
The semantics of some commands has changed in a very subtle way:
called in the right context, they may cause new occurences of
prompt_for_continue() behavior. The testsuite doesn't notice anything
like this, though.
Please respect this change by not reintroducing stdio output
dependencies in the main body of gdb code. All output from commands
should go to a GDB_FILE.
Target-specific code can still use stdio directly to communicate with
targets.
Diffstat (limited to 'gdb/h8300-tdep.c')
-rw-r--r-- | gdb/h8300-tdep.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/gdb/h8300-tdep.c b/gdb/h8300-tdep.c index e139174..862d1af 100644 --- a/gdb/h8300-tdep.c +++ b/gdb/h8300-tdep.c @@ -100,7 +100,7 @@ h8300_skip_prologue (start_pc) int print_insn (memaddr, stream) CORE_ADDR memaddr; - FILE *stream; + GDB_FILE *stream; { disassemble_info info; GDB_INIT_DISASSEMBLE_INFO(info, stream); @@ -415,8 +415,8 @@ set_machine (args, from_tty) char *args; int from_tty; { - printf ("\"set machine\" must be followed by h8300 or h8300h.\n"); - help_list (setmemorylist, "set memory ", -1, stdout); + printf_unfiltered ("\"set machine\" must be followed by h8300 or h8300h.\n"); + help_list (setmemorylist, "set memory ", -1, gdb_stdout); } void @@ -448,37 +448,37 @@ print_register_hook (regno) read_relative_register_raw_bytes (regno, b); l = b[1]; - printf ("\t"); - printf ("I-%d - ", (l & 0x80) != 0); - printf ("H-%d - ", (l & 0x20) != 0); + printf_unfiltered ("\t"); + printf_unfiltered ("I-%d - ", (l & 0x80) != 0); + printf_unfiltered ("H-%d - ", (l & 0x20) != 0); N = (l & 0x8) != 0; Z = (l & 0x4) != 0; V = (l & 0x2) != 0; C = (l & 0x1) != 0; - printf ("N-%d ", N); - printf ("Z-%d ", Z); - printf ("V-%d ", V); - printf ("C-%d ", C); + printf_unfiltered ("N-%d ", N); + printf_unfiltered ("Z-%d ", Z); + printf_unfiltered ("V-%d ", V); + printf_unfiltered ("C-%d ", C); if ((C | Z) == 0) - printf ("u> "); + printf_unfiltered ("u> "); if ((C | Z) == 1) - printf ("u<= "); + printf_unfiltered ("u<= "); if ((C == 0)) - printf ("u>= "); + printf_unfiltered ("u>= "); if (C == 1) - printf ("u< "); + printf_unfiltered ("u< "); if (Z == 0) - printf ("!= "); + printf_unfiltered ("!= "); if (Z == 1) - printf ("== "); + printf_unfiltered ("== "); if ((N ^ V) == 0) - printf (">= "); + printf_unfiltered (">= "); if ((N ^ V) == 1) - printf ("< "); + printf_unfiltered ("< "); if ((Z | (N ^ V)) == 0) - printf ("> "); + printf_unfiltered ("> "); if ((Z | (N ^ V)) == 1) - printf ("<= "); + printf_unfiltered ("<= "); } } |