> > does anyone know how to automate gdb so that in the autorun script, I can > have it do: > if exists(lib/core) > gdb bin/circle lib/core>>core.dump > where > quit > rm -f lib/core > endif create a .rc file for gdb that contains your gdb commands. mine is basically like: printf "********************************************\n" tty /dev/null run -q 4000 >>&syslog shell date where ( I called it .gdbinit) and instead of calling circle normally in the script, jsut do gdb bin/circle -x .gdbinit -batch >>&gdblog then to remove to core file, do something like if (-r lib/core) then rm -f lib/core echo "Core file removed" endif > > essentially, core dumps are very useful to me, but having a 5.5meg file > hanging around is just annoying to both me and my quota... > thanx >
This archive was generated by hypermail 2b30 : 12/18/00 PST