The current behavior described in documentation is misleading: commands sent before attaching to inferior. The commands are sent after the GDB is attached, which is too late, especially if you wanted to set e.g. the baudrate. The preRunCommands section should be used instead.