Skyfall director Marc Forster and later Sam Mendes explicitly framed Judi Dench's portrayal of M (revealed to be named Olivia Mansfield) with strong maternal overtones. She acts as a demanding, occasionally ruthless pseudo-parent to the orphaned Bond.
M: "Ran out of drink where you were, did they?" James Bond: "What was it you said? 'Take the bloody shot.'"