3

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

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

What would the equivalent be in Windows?

Ciro Santilli OurBigBook.com
  • 347,512
  • 102
  • 1,199
  • 985
Elliott
  • 33
  • 1
  • 1
  • 3
  • OS agnostic question that actually asks how to make it dump just one function, not just a `grep -A`: http://stackoverflow.com/questions/22769246/disassemble-one-function-using-objdump – Ciro Santilli OurBigBook.com Jun 26 '15 at 19:34

1 Answers1

1

What would the equivalent be in windows?

Off the top of head, you just save the output into a file:

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

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

On Windows to peek into the object code I find myself mostly using GUI debuggers. Windows is not very command-line friendly environment. Otherwise, you might want to install the CygWin, start bash in terminal or the cmd.exe and use the grep as if you were under Linux.

Dummy00001
  • 16,630
  • 5
  • 41
  • 63