@Test
	public void testOnBreakpointModified() throws Exception {
		String print = DummyProc.which("expPrint");
		try (GdbAndTrace conn = startAndSyncGdb()) {
			conn.execute("file " + print);
			assertEquals(0, tb.objValues(lastSnap(conn), "Breakpoints[]").size());

			conn.execute("break main");
			TraceObject brk = waitForPass(() -> {
				List<Object> brks = tb.objValues(lastSnap(conn), "Breakpoints[]");
				assertEquals(1, brks.size());
				return (TraceObject) brks.get(0);
			});
			assertEquals(null, tb.objValue(brk, lastSnap(conn), "Commands"));

			conn.execute("""
					commands %s
					  echo test
					end""".formatted(brk.getCanonicalPath().index()));
			waitForPass(
				() -> assertEquals("echo test\n", tb.objValue(brk, lastSnap(conn), "Commands")));
		}
	}
Termination does not clear objfiles. Not until we run a new target.
Ghidra/Test/DebuggerIntegrationTest/src/test.slow/java/agent/gdb/rmi/GdbHooksTest.java