I am running an embedded application on ARM9 board, where total flash size is 180MB only. I am able to run gdb, but when I do
gdb
(gdb) generate-core-
in your shell rc-file:
limit coredumpsize 50000 # or whatever limit size you like
that should set the limit for everything, including GDB
Note:
If you set it to 0 , you can make sure your home directory is not cluttered with core dump files.