| Index: samples/gdb-integration-run.sh
|
| diff --git a/samples/gdb-integration-run.sh b/samples/gdb-integration-run.sh
|
| new file mode 100755
|
| index 0000000000000000000000000000000000000000..db44d7a956311f8860d993b93e82967c5451e1b9
|
| --- /dev/null
|
| +++ b/samples/gdb-integration-run.sh
|
| @@ -0,0 +1,19 @@
|
| +#!/bin/bash
|
| +UNAMESTR=`uname`
|
| +if [[ "$UNAMESTR" == 'Linux' ]]; then
|
| + GDB='gdb'
|
| +elif [[ "$UNAMESTR" == 'Darwin' ]]; then
|
| + GDB='fsf-gdb'
|
| +fi
|
| +rm /tmp/elfdump*.o
|
| +GDB_ARGS="--command=samples/gdb-integration-prelude.gdb"
|
| +GDB_HEADLESS_ARGS="$GDB_ARGS --command=samples/gdb-integration.gdb"
|
| +JS_SHELL="gdb-integration_g"
|
| +JS_SHELL_ARGS="--gdbjit --gdbjit_full --gdbjit_dump_filter=gdb --gdbjit_dump --main-cycle-in-js samples/gdb-integration.js"
|
| +$GDB $GDB_HEADLESS_ARGS --args $JS_SHELL $JS_SHELL_ARGS
|
| +if [[ "$UNAMESTR" == 'Linux' ]]; then
|
| + objdump --dwarf /tmp/elfdumpgdbSomeFunction1.o
|
| +elif [[ "$UNAMESTR" == 'Darwin' ]]; then
|
| + otool -hl /tmp/elfdumpgdbSomeFunction1.o
|
| +fi
|
| +echo "$GDB $GDB_ARGS --args $JS_SHELL $JS_SHELL_ARGS"
|
|
|