Download new exe with gdb

I am currently trying to use gdb to parse exe, and from my house I am running an application like:

gdb "c:\file.exe"

And gdb launches and downloads this file automatically.

Now the problem is that from where I am atm, the command line is disabled, and therefore I can not start the terminal window with the file name as an argument.

The only thing I think atm can do is open the file gdb.exedirectly and then load exe with a command or something else from gdb itself.

Is there a command that I can use to load exe to debug from the application itself, rather than passing it as an argument?

(gdb) <some command> "c:\file.exe"
+3
source share
2

(GDB) file c:\file.exe

+7

, , @Arkaitz Jimenez

file.exe , attach

+2

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


All Articles