Files
Andrew Burgess 23aa2befce gdb/python: fix invalid use disassemble_info::stream
After this commit:

  commit 81384924cdcc9eb2676dd9084b76845d7d0e0759
  Date:   Tue Apr 5 11:06:16 2022 +0100

      gdb: have gdb_disassemble_info carry 'this' in its stream pointer

The disassemble_info::stream field will no longer be a ui_file*.  That
commit failed to update one location in py-disasm.c though.

While running some tests using the Python disassembler API, I
triggered a call to gdbpy_disassembler::print_address_func, and, as I
had compiled GDB with the undefined behaviour sanitizer, GDB crashed
as the code currently (incorrectly) casts the stream field to be a
ui_file*.

In this commit I fix this error.

In order to test this case I had to tweak the existing test case a
little.  I also spotted some debug printf statements in py-disasm.py,
which I have removed.
2022-07-25 19:26:24 +01:00
..
2022-07-15 07:55:32 -06:00
2022-07-08 14:14:58 -06:00
2022-06-23 09:27:30 -06:00
2022-07-18 11:25:34 -06:00
2022-07-05 10:28:39 -06:00
2022-07-05 10:28:39 -06:00
2022-07-05 11:22:20 -06:00
2022-06-23 09:27:30 -06:00
2022-06-23 09:27:30 -06:00
2022-07-21 14:55:00 +02:00