On Fri, Feb 8, 2013 at 10:05 AM, Doug Evans wrote: > On Tue, Feb 5, 2013 at 5:53 PM, Siva Chandra wrote: >> The only useful entry point currently available is gdb_disassembly and >> I do not think it is a bad entry point. Other disassembly functions in >> disasm.c are static. > > Well, it begs the question what entrypoint into libopcodes does > gdb_disassembly use? :-) > Anyways, my point is gdb_disassembly is a bit high level for the > Python API for me. Thanks for your detailed reply. I now have a patch which does not use ui_out. Instead of calling gdb_disassembly, it essentially re-implements disasm.c:dump_insns. The patch is attached. 2013-02-12 Siva Chandra Reddy Add a new method 'disassemble' to gdb.Architecture class. * python/py-arch.c (archpy_disassmble): Implementation of the new method gdb.Architecture.disassemble. (arch_object_methods): Add entry for the new method.