RFC: Adding visualization of jumps to objdump's disassembly output

Nick Clifton nickc@redhat.com
Tue Jan 7 18:19:00 GMT 2020


Hi Guys,

  Attached is the latest version of Thomas Troeger's patch to add
  visualization of jumps to objdump's output.  When enabled, the output
  changes to look something like this snippet:
  
  c6:	|  |     \----------> be 00 00 00 00       	mov    $0x0,%esi
  cb:	|  |           /----> 48 8b 3d 00 00 00 00 	mov    0x0(%rip),%rdi        # d2 <main+0xd2>
  d2:	|  |           |      31 c0                	xor    %eax,%eax
  d4:	|  |           |  /-- e8 00 00 00 00       	callq  d9 <main+0xd9>
  d9:	|  |           |  \-> bf 02 00 00 00       	mov    $0x2,%edi
  de:	|  +-----------|----- e8 00 00 00 00       	callq  e3 <main+0xe3>
  e3:	|  \-----------|----> 48 89 da             	mov    %rbx,%rdx
  e6:	|              |      be 00 00 00 00       	mov    $0x0,%esi
  eb:	|              \----- eb de                	jmp    cb <main+0xcb>
  ed:	\-------------------> 48 8b 16             	mov    (%rsi),%rdx

  (Not shown in this email is the fact that you can also add
  color/colour to the output...)
   
  I am posting the patch here as I would very much like to see it added
  before the 2.34 branch is cut, but I wanted more pairs of eyes than
  just mine to have a look over it.  So - does anyone have any concerns
  or issues with the patch ?

Cheers
  Nick

PS.  Still working on the ChangeLog entries...

-------------- next part --------------
A non-text attachment was scrubbed...
Name: objdump-jump-visualization.patch
Type: text/x-patch
Size: 31029 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20200107/599e5923/attachment.bin>


More information about the Binutils mailing list