aboutsummaryrefslogtreecommitdiff
path: root/gdb/disasm-selftests.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/disasm-selftests.c')
-rw-r--r--gdb/disasm-selftests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/disasm-selftests.c b/gdb/disasm-selftests.c
index c89c5ed..7d0b006 100644
--- a/gdb/disasm-selftests.c
+++ b/gdb/disasm-selftests.c
@@ -113,7 +113,7 @@ print_one_insn_test (struct gdbarch *gdbarch)
const gdb_byte *insn,
size_t len)
: gdb_disassembler (gdbarch,
- (verbose ? gdb_stdout : null_stream ()),
+ (verbose ? gdb_stdout : &null_stream),
gdb_disassembler_test::read_memory),
m_insn (insn), m_len (len)
{
@@ -173,7 +173,7 @@ memory_error_test (struct gdbarch *gdbarch)
{
public:
gdb_disassembler_test (struct gdbarch *gdbarch)
- : gdb_disassembler (gdbarch, null_stream (),
+ : gdb_disassembler (gdbarch, &null_stream,
gdb_disassembler_test::read_memory)
{
}