bash - Run gdb command from shell script -


i wondering if possible pass command gdb shell script. demonstrate in code, easier understand.

#!/bin/sh gdb --silent application.app b -[class method] 

this causes execution of script stop @ line 2, , continue when quit gdb.
how pass command, if possible? :)

gdb has option run commands file option --command=file. can write gdb commands inside file.


Comments

Popular posts from this blog

How to logout from a login page in asp.net -

Stack level too deep error after upgrade to rails 3.2 and ruby 1.9.3 -