@Test
	public void testWriteReg() throws Exception {
		try (GdbAndConnection conn = startAndConnectGdb()) {
			conn.execute("""
					file bash
					ghidra trace start
					%s
					break main
					run"""
					.formatted(INSTRUMENT_STOPPED));
			RemoteMethod writeReg = conn.getMethod("write_reg");
			try (ManagedDomainObject mdo = openDomainObject("/New Traces/gdb/bash")) {
				tb = new ToyDBTraceBuilder((Trace) mdo.get());
				waitStopped();
				conn.execute("ghidra trace tx-open Init 'ghidra trace putreg'");
				TraceObject frame =
					Objects.requireNonNull(tb.obj("Inferiors[1].Threads[1].Stack[0]"));

				writeReg.invoke(Map.ofEntries(
					Map.entry("frame", frame),
					Map.entry("name", "RCX"),
					Map.entry("value", Utils.longToBytes(0xdeadbeefL, 8, true))));

				String out = conn.executeCapture("print/x $rcx");
				assertEquals("$1 = 0xdeadbeef", out.strip());
			}
		}
	}
Later versions recognize that disabling the only location disables the whole
breakpoint.
Ghidra/Test/DebuggerIntegrationTest/src/test.slow/java/agent/gdb/rmi/GdbMethodsTest.java