[gdb] Simplify get_frame_function

Use block::containing_function to simplify get_frame_function.

While we're at it, modernize using nullptr.
1 file changed