You can pipe core dumps to a program, and so write your own filter. Extract from man core
Since kernel 2.6.19, Linux supports an alternate syntax for the /proc/sys/kernel/core_pattern file. If the first character of this file is a pipe symbol (|), then the remainder of the line is interpreted as a program to be executed. Instead of being written to a disk file, the core dump is given as standard input to the program.
You can also control which mappings are written to the core dump, this maybe use to reduce the core dump size.
Since kernel 2.6.23, the Linux-specific /proc/PID/coredump_filter file can be used to control which memory segments are written to the core dump file
Of course, all these depends of kernel version and configuration options.
see the link I've provided for examples or details.