sh - Bash string, passed to GDB -


i'm trying write bash script autorestart application have. want have program run in gdb. anyways not issue is.

if watch gist: https://gist.github.com/lillecarl/5421446

you see on line 91 "call" file gdbcommands. really grinds gears must have external file, of gurus have suggestions on how merge wowadmin.sh? in case must, can separate file. prefer inside sh file.

best regards carl hjerpe!

you can pass multiple command using -ex switch. reason not documented in man (at least on centos), appears in full gdb manual http://sourceware.org/gdb/current/onlinedocs/gdb.html#invocation

 gdb -ex 'print "one"' -ex 'print "two"' my_prog 

Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -