How to make objdump -D only display a specific function in Windows?

I want to display the machine code of a specific function. For example, on Linux, I would enter:

objdump -D x.out | grep -A20 main.: 

What will be the equivalent in Windows?

+3
source share
1 answer

What would be the equivalent in the windows?

At the top of the head, you simply save the output to a file:

objdump -D x.out > x.out.dump

then open the file ( x.out.dump) in the selected text editor.

On Windows, I mainly use GUI debuggers to look at the code of an object. Windows is not a very friendly command line environment. Otherwise, you can install CygWin , run bash in the terminal or cmd.exe and use grep as if you were on Linux.

+1

Source: https://habr.com/ru/post/1760463/


All Articles