delve icon indicating copy to clipboard operation
delve copied to clipboard

feature request: support --eval-command/-ex equivalent

Open asm89 opened this issue 4 years ago • 1 comments
trafficstars

In GDB you can pass individual initial commands to run as command line arguments. E.g. gdb -ex 'b file.c:42' -ex 'b file.c:313'. This is useful if you already know what breakpoints you want to set for example, or to quickly iterate on configuring your setup.

The dlv exec command takes a file with initial commands to run through the --init flag. Would you consider adding a (repeated) flag to pass initial commands directly through the command line too? If yes, I'm happy to send a pull request that implements the feature.

asm89 avatar May 26 '21 15:05 asm89

many shells have the ability to pass the output of one argument as a file to another (for example dlv --init <(printf ...)) so this would be just a matter of ergonomics.

aarzilli avatar May 27 '21 12:05 aarzilli