[patch] Disassembly improvements
Abid, Hafiz
Hafiz_Abid@mentor.com
Thu Oct 10 13:14:00 GMT 2013
Hi Pedro,
I am attaching the patch that was mentioned in the following thread. I resurrected it from our internal repo, did a bit of manual testing and run the regression suite without any problem. It basically reads memory from the target in a buffer in gdb_disassembly and tries to use this buffer in dis_asm_read_memory instead of reading from the target. This saves us on repeated memory read calls. The problem was noted when eclipse was trying to fill its disassembly view.
https://sourceware.org/ml/gdb-patches/2013-10/msg00221.html
Regards,
Abid
2013-10-10 Taimoor Mirza <taimoor_mirza@mentor.com>
* disasm.c (DIS_BUF_SIZE): New define.
(dis_asm_read_memory): Read from the disassembly buffer instead
of target memory directly.
(gdb_disassembly): Fill the disassembly buffer with a chunk of
the memory to disassemble.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: disasm.patch
Type: application/octet-stream
Size: 2939 bytes
Desc: disasm.patch
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20131010/dc2e265e/attachment.obj>
More information about the Gdb-patches
mailing list