i left just channelinfo in gdbtrick.sh:bruintje71 wrote:I have put the gdb binary and the gdbtrick.sh script (the one last posted by Arris69) in the mtd_rwarea.
Code: Select all
#!/bin/sh
### begin configure me
# gdb_binary: where your gdb binary resides
gdb_binary=/mtd_rwarea/
# gdb_commands: this is a temporary file where gdb commands are stored
gdb_commands=/mtd_rwarea/gdbtrick.gdb
# gdb_delay: gdb will be scheduled to run after $gdb_delay seconds
# this is for letting exeDSP to settle down at TV startup
gdb_delay=30
# libraries: absolute path of libraries to be loaded
# there can be several, separated spaces!!
# this script requires paths WITHOUT spaces
libraries="/mtd_tlib/GGame/channelinfo/loader.so" # add more libraries here
### end configure me
Code: Select all
#mtd_rwarea/gdbtrick.sh
The following commands:
---
attach 49
detach
---
will be executed by /mtd_rwarea/ in 30 secs!!
# mtd_rwarea/gdbtrick.sh: mtd_rwarea/gdbtrick.sh: 38: /mtd_rwarea/: Permission denied
Code: Select all
{ sleep $gdb_delay; $gdb_binary -batch -x $gdb_commands; } &