Thanks, this did work.
Can I step into(s) c++ extension  from gdb python without setting a breakpoint at the c++ function in advance?  Because  sometimes it’s not convenient  to find the corresponding c++ function in advance.