From 7cf838bb4a662cb0b0d1a05e1e0497a593970817 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Tue, 8 Mar 2022 23:04:35 +0100 Subject: [PATCH] Rename example, and update doc. Configuration option simix/breakpoint was renamed some time ago. --- MANIFEST.in | 2 +- docs/source/Configuring_SimGrid.rst | 4 ++-- examples/cpp/CMakeLists.txt | 6 +++--- .../{simix-breakpoint.tesh => debug-breakpoint.tesh} | 0 4 files changed, 6 insertions(+), 6 deletions(-) rename examples/cpp/comm-pingpong/{simix-breakpoint.tesh => debug-breakpoint.tesh} (100%) diff --git a/MANIFEST.in b/MANIFEST.in index eb199af7fd..3825de6ff6 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -180,9 +180,9 @@ include examples/cpp/comm-failure/s4u-comm-failure.cpp include examples/cpp/comm-failure/s4u-comm-failure.tesh include examples/cpp/comm-host2host/s4u-comm-host2host.cpp include examples/cpp/comm-host2host/s4u-comm-host2host.tesh +include examples/cpp/comm-pingpong/debug-breakpoint.tesh include examples/cpp/comm-pingpong/s4u-comm-pingpong.cpp include examples/cpp/comm-pingpong/s4u-comm-pingpong.tesh -include examples/cpp/comm-pingpong/simix-breakpoint.tesh include examples/cpp/comm-ready/s4u-comm-ready.cpp include examples/cpp/comm-ready/s4u-comm-ready.tesh include examples/cpp/comm-serialize/s4u-comm-serialize.cpp diff --git a/docs/source/Configuring_SimGrid.rst b/docs/source/Configuring_SimGrid.rst index 7b90c7debd..fcd52dd697 100644 --- a/docs/source/Configuring_SimGrid.rst +++ b/docs/source/Configuring_SimGrid.rst @@ -1663,12 +1663,12 @@ reaches the given time, a SIGTRAP is raised. This can be used to stop the execution and get a backtrace with a debugger. It is also possible to set the breakpoint from inside the debugger, by -writing in global variable simgrid::simix::breakpoint. For example, +writing in global variable simgrid::kernel::cfg_breakpoint. For example, with gdb: .. code-block:: none - set variable simgrid::simix::breakpoint = 3.1416 + set variable simgrid::kernel::cfg_breakpoint = 3.1416 .. _cfg=debug/verbose-exit: diff --git a/examples/cpp/CMakeLists.txt b/examples/cpp/CMakeLists.txt index a51254c6c4..8c775f4bb4 100644 --- a/examples/cpp/CMakeLists.txt +++ b/examples/cpp/CMakeLists.txt @@ -226,15 +226,15 @@ foreach (example exec-ptask trace-categories trace-masterworkers trace-platform endforeach() if (NOT enable_memcheck AND NOT WIN32) - ADD_TESH(simix-breakpoint --setenv bindir=${CMAKE_CURRENT_BINARY_DIR}/comm-pingpong + ADD_TESH(debug-breakpoint --setenv bindir=${CMAKE_CURRENT_BINARY_DIR}/comm-pingpong --setenv platfdir=${CMAKE_HOME_DIRECTORY}/examples/platforms - ${CMAKE_CURRENT_SOURCE_DIR}/comm-pingpong/simix-breakpoint.tesh) + ${CMAKE_CURRENT_SOURCE_DIR}/comm-pingpong/debug-breakpoint.tesh) endif() # Add all extra files to the archive #################################### set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/mc-bugged1-liveness/s4u-mc-bugged1-liveness.cpp PARENT_SCOPE) -set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/comm-pingpong/simix-breakpoint.tesh +set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/comm-pingpong/debug-breakpoint.tesh ${CMAKE_CURRENT_SOURCE_DIR}/mc-bugged1-liveness/s4u-mc-bugged1-liveness.tesh ${CMAKE_CURRENT_SOURCE_DIR}/mc-bugged1-liveness/s4u-mc-bugged1-liveness-visited.tesh PARENT_SCOPE) set(xml_files ${xml_files} ${CMAKE_CURRENT_SOURCE_DIR}/actor-create/s4u-actor-create_d.xml diff --git a/examples/cpp/comm-pingpong/simix-breakpoint.tesh b/examples/cpp/comm-pingpong/debug-breakpoint.tesh similarity index 100% rename from examples/cpp/comm-pingpong/simix-breakpoint.tesh rename to examples/cpp/comm-pingpong/debug-breakpoint.tesh -- 2.20.1