nakst / gf

A GDB frontend for Linux.
MIT License
1.8k stars 61 forks source link

Specify path to executable via arguments #178

Open mitjafelicijan opened 1 month ago

mitjafelicijan commented 1 month ago

I am probably missing something, but is it possible to pass path to executable and populate the field in gf2 via arguments like gf2 ./a.out like you do in gdb?

image

I can't seem to figure this out, and it's a bit annoying to constantly add that manually each time I open gf2.

Again, maybe I am missing something here.

Thanks in advance.

greg7mdp commented 3 weeks ago

Create a file ~/.config/gf2_config.ini and add something like:

[executable]
path=./unittests/unit_test
arguments=--run_test=basic_test
ask_directory=0

[commands]
Set breakpoint=b tests.cpp:72