Move all the flash size mapping from gdb server into core.