[PATCH 3/8] Disassembly unit test: disassemble one instruction

Pedro Alves palves@redhat.com
Thu Jan 12 16:06:00 GMT 2017


On 01/12/2017 03:15 PM, Pedro Alves wrote:
> Putting it all together, you'd have something like:
> 
>     explicit gdb_disassembler_test (struct gdbarch *gdbarch,
> 			            struct ui_file *stream,

                                    ^^^^^^^^^^^^^^^^^^^^^^

This stream parameter here shouldn't exist, of course.  It's just
that my Thunderbird hasn't learned to flag coding problems yet.  :-)

> 				    const gdb_byte *insn)
>       : gdb_disassembler (gdbarch, 
>                           (DISASSEMBLER_TEST_VERBOSE
>                            ? gdb_stdout : null_stream ()),
> 			  gdb_disassembler_test::read_memory),
> 	m_insn (insn)
>     {}


-- 
Thanks,
Pedro Alves



More information about the Gdb-patches mailing list