python - How to run GDB with the results of a script? -


simple, maybe not simple issue. how can run gdb results of script?

what mean instead of saying:

run arg1  

you say:

run "python generatingscript.py"  

which output args. i'm aware find way sleeping program after run args command line, darn convenient if there way kind of thing directly in gdb.

just context, use case situation writing crash test cases long strings of hex data. putting them in hand @ command line isn't convenient thing.

you can use gdb --args option this: gdb --args your_program $(python generatingscript.py.


Comments

Popular posts from this blog

ssh - Vagrant Windows - ssh_exchange_identification: read: Connection reset by peer -

gcc - Neither ld wrap nor LD_PRELOAD working to intercept system call -

maven - jacoco coverage per test setup -