Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

segv_handler calls a completely silly shell script #1

Open
lbdroid opened this issue Jul 19, 2017 · 0 comments
Open

segv_handler calls a completely silly shell script #1

lbdroid opened this issue Jul 19, 2017 · 0 comments

Comments

@lbdroid
Copy link

lbdroid commented Jul 19, 2017

You're using this in order to drive a script through gdb since you need to generate the output automatically rather than immediately interacting with the debugger.

The shell script is silly and needless overhead.

Instead of system("silly shell script"), use this;

FILE *gdbin = popen(gdbcmd, "w");
fprintf(gdbin, "set height 0\nbt full\n....");
pclose(gdbin);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant