Hi, I just double checked the gdb-wrapper.sh script and spotted two errors. All lines starting with "print" should have a "\n" as end of lines. It happens that both lines starting with "handle" do not have such "\n". Please add it as here shown:
printf '# Automatically generated batch\n' > $PREFIX.batch printf 'set pagination off\n' >> $PREFIX.batch printf 'set logging file %s\n' $PREFIX.log >> $PREFIX.batch printf 'set logging redirect on\n' >> $PREFIX.batch printf 'set logging on\n' >> $PREFIX.batch printf 'handle all nostop print pass\n' >> $PREFIX.batch printf 'handle SIGSEGV stop print pass\n' >> $PREFIX.batch printf 'run\n' >> $PREFIX.batch printf 'thread apply all bt\n' >> $PREFIX.batch printf 'backtrace\n' >> $PREFIX.batch printf 'print this\n' >> $PREFIX.batch printf 'generate-core-file %s\n' $PREFIX.core >> $PREFIX.batch
Bye, Giuseppe
Hi,
I just double checked the gdb-wrapper.sh script and spotted two errors. All lines starting with "print" should have a "\n" as end of lines. It happens that both lines starting with "handle" do not have such "\n". Please add it as here shown:
printf '# Automatically generated batch\n' > $PREFIX.batch
printf 'set pagination off\n' >> $PREFIX.batch
printf 'set logging file %s\n' $PREFIX.log >> $PREFIX.batch
printf 'set logging redirect on\n' >> $PREFIX.batch
printf 'set logging on\n' >> $PREFIX.batch
printf 'handle all nostop print pass\n' >> $PREFIX.batch
printf 'handle SIGSEGV stop print pass\n' >> $PREFIX.batch
printf 'run\n' >> $PREFIX.batch
printf 'thread apply all bt\n' >> $PREFIX.batch
printf 'backtrace\n' >> $PREFIX.batch
printf 'print this\n' >> $PREFIX.batch
printf 'generate-core-file %s\n' $PREFIX.core >> $PREFIX.batch
Bye,
Giuseppe