防止objdump换行

时间:2019-07-11 07:41:20

标签: parsing disassembly objdump

在使用objdump时,我经常会得到如下代码:

a0df:   c7 05 58 4b 02 00 00    mov    DWORD PTR ds:0x24b58,0x6400
a0e6:   64 00 00 
...
a2da:   f7 05 6c 4b 02 00 ff    test   DWORD PTR ds:0x24b6c,0xffffffff
a2e1:   ff ff ff 

我想得到的是:

a0df:   c7 05 58 4b 02 00 00 64 00 00   mov    DWORD PTR ds:0x24b58,0x6400
...
a2da:   f7 05 6c 4b 02 00 ff ff ff ff   test   DWORD PTR ds:0x24b6c,0xffffffff

是否可以告诉objdump不要换行?

1 个答案:

答案 0 :(得分:0)

我自己找到了。我一直在寻找一个名为 wrap 的东西,但是控制它的参数却被伪装成'-w /-wide':

   -w
   --wide
       Format some lines for output devices that have more than 80 columns.  
       Also do not truncate symbol names when they are displayed.