Eduard Florinescu Asked: 2012-11-27 02:02:27 +0800 CST2012-11-27 02:02:27 +0800 CST 2012-11-27 02:02:27 +0800 CST Is there debug.exe equivalent for linux? 772 Is there a Windows debug.exe equivalent where I can write machine code and see what results they have after execution? windows 3 Answers Voted Best Answer Juan Ramos 2013-04-20T09:05:35+08:002013-04-20T09:05:35+08:00 You can emulate debug.exe from DOSBOX... make a dir in your computer and paste in it debug.exe open dosbox and mount your dir with: mount x /home/[user]/[folderCreated] change to x: run debug.exe kercker 2012-11-27T02:09:52+08:002012-11-27T02:09:52+08:00 Try gdb Maybe it will help you. You can 'set write on' after opening an executable with gdb. Then you can use 'set *(unsigned char *)(hex_address) = machine_code_of_an_instruction' to change the machine code at hex_address. False Sense Of Security 2014-03-10T21:05:03+08:002014-03-10T21:05:03+08:00 I think, what you're looking for is winegdb. Initially, it should allow you to debug Win32 applications in Linux.
You can emulate debug.exe from DOSBOX...
make a dir in your computer and paste in it debug.exe
open dosbox and mount your dir with:
mount x /home/[user]/[folderCreated]
change to x:
run debug.exe
Try gdb Maybe it will help you.
You can 'set write on' after opening an executable with gdb.
Then you can use 'set *(unsigned char *)(hex_address) = machine_code_of_an_instruction' to change the machine code at hex_address.
I think, what you're looking for is winegdb. Initially, it should allow you to debug Win32 applications in Linux.