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

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -