@@ -2772,7 +2772,9 @@ class DevtoolIdeSdkTests(DevtoolBase):
# check if resolving std::vector works with python scripts
gdb_batch_cmd += " -ex 'list cpp-example.cpp:55,55'"
- gdb_batch_cmd += " -ex 'break cpp-example.cpp:55'"
+ # Break on line 56 (the std::cout after the declaration) so the vector
+ # constructor on line 55 has already run when GDB stops.
+ gdb_batch_cmd += " -ex 'break cpp-example.cpp:56'"
gdb_batch_cmd += " -ex 'continue'"
gdb_batch_cmd += " -ex 'print numbers'"
gdb_batch_cmd += " -ex 'continue'"