@Test
	public void testWriteMem() throws Exception {
		try (GdbAndConnection conn = startAndConnectGdb()) {
			conn.execute("""
					file bash
					ghidra trace start
					%s
					break main
					run"""
					.formatted(INSTRUMENT_STOPPED));
			RemoteMethod writeMem = conn.getMethod("write_mem");
			try (ManagedDomainObject mdo = openDomainObject("/New Traces/gdb/bash")) {
				tb = new ToyDBTraceBuilder((Trace) mdo.get());
				waitStopped();
				long pcOff = Long.decode(conn.executeCapture("print/x $pc").split("=")[1].strip());
				TraceObject inf1 = Objects.requireNonNull(tb.obj("Inferiors[1]"));

				writeMem.invoke(Map.ofEntries(
					Map.entry("inferior", inf1),
					Map.entry("address", tb.addr(pcOff)),
					Map.entry("data", new byte[] { 1, 2, 3, 4 })));

				MemDump dump = parseHexDump(conn.executeCapture("x/4bx $pc"));
				assertEquals(pcOff, dump.address());
				assertArrayEquals(new byte[] { 1, 2, 3, 4 }, dump.data());
			}
		}
	}
Later versions recognize that disabling the only location disables the whole
breakpoint.
Ghidra/Test/DebuggerIntegrationTest/src/test.slow/java/agent/gdb/rmi/GdbMethodsTest.java