Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Jul 2004 04:26:06 GMT
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 56836 for review
Message-ID:  <200407090426.i694Q6lC040434@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=56836

Change 56836 by marcel@marcel_nfs on 2004/07/09 04:25:08

	Implement the C and S packets (continue with signal and step
	with signal respectively). We ignore the signal.

Affected files ...

.. //depot/projects/gdb/sys/gdb/gdb_main.c#17 edit

Differences ...

==== //depot/projects/gdb/sys/gdb/gdb_main.c#17 (text+ko) ====

@@ -125,6 +125,14 @@
 			kdb_cpu_clear_singlestep();
 			return (1);
 		}
+		case 'C': {	/* Continue with signal. */
+			uintmax_t addr, sig;
+			if (!gdb_rx_varhex(&sig) && gdb_rx_char() == ';' &&
+			    !gdb_rx_varhex(&addr))
+				gdb_cpu_setreg(GDB_REG_PC, addr);
+			kdb_cpu_clear_singlestep();
+			return (1);
+		}
 		case 'g': {	/* Read registers. */
 			size_t r;
 			gdb_tx_begin(0);
@@ -223,6 +231,14 @@
 			kdb_cpu_set_singlestep();
 			return (1);
 		}
+		case 'S': {	/* Step with signal. */
+			uintmax_t addr, sig;
+			if (!gdb_rx_varhex(&sig) && gdb_rx_char() == ';' &&
+			    !gdb_rx_varhex(&addr))
+				gdb_cpu_setreg(GDB_REG_PC, addr);
+			kdb_cpu_set_singlestep();
+			return (1);
+		}
 		case 'T': {	/* Thread alive. */
 			intmax_t tid;
 			gdb_rx_varhex(&tid);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407090426.i694Q6lC040434>