Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

c

windows

objdump

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?

like image 362
Elliott Avatar asked Feb 07 '26 15:02

Elliott


1 Answers

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.

like image 129
Dummy00001 Avatar answered Feb 09 '26 06:02

Dummy00001



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!