New function null_stream
authorYao Qi <yao.qi@linaro.org>
Thu, 26 Jan 2017 14:29:19 +0000 (14:29 +0000)
committerYao Qi <yao.qi@linaro.org>
Thu, 26 Jan 2017 14:29:19 +0000 (14:29 +0000)
commit80d758749a7a679288e6e72b2e849b814413b719
tree016ba1a6b78e1496d0983dad8ae9a8b9042edfee
parent8e87a59348adb7e4c31c8f4faf86df8b17ffb54a
New function null_stream

This patch adds a new function null_stream, which returns a null
stream.  The null stream can be used in multiple places.  It is
used in gdb_insn_length, and the following patches will use it too.

gdb:

2017-01-26  Yao Qi  <yao.qi@linaro.org>

* disasm.c (do_ui_file_delete): Delete.
(gdb_insn_length): Move code creating stream to ...
* utils.c (null_stream): ... here.  New function.
* utils.h (null_stream): Declare.
gdb/ChangeLog
gdb/disasm.c
gdb/utils.c
gdb/utils.h
This page took 0.027625 seconds and 4 git commands to generate.