PERFORCE change 56836 for review
Marcel Moolenaar
marcel at FreeBSD.org
Thu Jul 8 21:26:07 PDT 2004
http://perforce.freebsd.org/chv.cgi?CH=56836
Change 56836 by marcel at 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);
More information about the p4-projects
mailing list